CppKore: add getter for child control count

This commit is contained in:
Kawe Mazidjatari 2024-04-17 20:26:42 +02:00
parent 4c99efa889
commit d5db4674a4
2 changed files with 7 additions and 0 deletions

View File

@ -725,6 +725,11 @@ namespace Forms
return this->_RTTI;
}
uint32_t Control::GetControlCount()
{
return this->_Controls->Count();
}
Control* Control::FindForm()
{
auto Cur = this;

View File

@ -209,6 +209,8 @@ namespace Forms
HWND GetHandle();
// Returns the type of this control
ControlTypes GetType();
// Returns the number of child controls
uint32_t GetControlCount();
// Retrieves the form that the control is on.
Control* FindForm();