Rename GetControlTemplateObject(bool) to TypedControlTemplateObject(bool)

This commit is contained in:
Zihan Chen
2021-06-19 04:34:29 -07:00
parent a59ce7eb44
commit a871d2cb69
3 changed files with 125 additions and 117 deletions

View File

@@ -10161,6 +10161,15 @@ Basic Construction
return dynamic_cast<T*>(QueryService(QueryServiceHelper<T>::GetIdentifier()));
}
templates::GuiControlTemplate* TypedControlTemplateObject(bool ensureExists)
{
if (ensureExists)
{
EnsureControlTemplateExists();
}
return controlTemplateObject;
}
/// <summary>Add a service to this control dynamically. The added service cannot override existing services.</summary>
/// <returns>Returns true if this operation succeeded.</returns>
/// <param name="identifier">The identifier. You are suggested to fill this parameter using the value from the interface's GetIdentifier function, or <see cref="QueryTypedService`1"/> will not work on this service.</param>
@@ -10227,7 +10236,7 @@ Basic Construction
BASE_TYPE::CheckAndStoreControlTemplate(value); \
} \
public: \
templates::Gui##TEMPLATE* GetControlTemplateObject(bool ensureExists) \
templates::Gui##TEMPLATE* TypedControlTemplateObject(bool ensureExists) \
{ \
if (ensureExists) \
{ \