mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CppKore: add getter for child control count
This commit is contained in:
parent
168ad9aabd
commit
649c0ee241
src/thirdparty/cppnet/cppkore
5
src/thirdparty/cppnet/cppkore/Control.cpp
vendored
5
src/thirdparty/cppnet/cppkore/Control.cpp
vendored
@ -725,6 +725,11 @@ namespace Forms
|
||||
return this->_RTTI;
|
||||
}
|
||||
|
||||
uint32_t Control::GetControlCount()
|
||||
{
|
||||
return this->_Controls->Count();
|
||||
}
|
||||
|
||||
Control* Control::FindForm()
|
||||
{
|
||||
auto Cur = this;
|
||||
|
2
src/thirdparty/cppnet/cppkore/Control.h
vendored
2
src/thirdparty/cppnet/cppkore/Control.h
vendored
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user