mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-03-23 15:52:56 +08:00
Rename GetControlTemplateObject(bool) to TypedControlTemplateObject(bool)
This commit is contained in:
@@ -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) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user