added experimental gwinGetEnabled()
This commit is contained in:
parent
abe6a47c1f
commit
12a7d7957b
@ -237,7 +237,17 @@ void gwinSetEnabled(GHandle gh, bool_t enabled) {
|
||||
}
|
||||
|
||||
bool_t gwinGetEnabled(GHandle gh) {
|
||||
#if GWIN_NEED_HIERARCHY
|
||||
GHandle e = gh;
|
||||
while (e) {
|
||||
if ( e->flags & GWIN_FLG_ENABLED);
|
||||
return TRUE;
|
||||
e = e->parent;
|
||||
};
|
||||
return FALSE;
|
||||
#else
|
||||
return (gh->flags & GWIN_FLG_ENABLED) ? TRUE : FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
void gwinMove(GHandle gh, coord_t x, coord_t y) {
|
||||
|
Loading…
Reference in New Issue
Block a user