added experimental gwinGetEnabled()

This commit is contained in:
Joel Bodenmann 2014-01-04 15:12:06 +01:00
parent abe6a47c1f
commit 12a7d7957b

View File

@ -237,7 +237,17 @@ void gwinSetEnabled(GHandle gh, bool_t enabled) {
}
bool_t gwinGetEnabled(GHandle gh) {
return (gh->flags & GWIN_FLG_ENABLED) ? TRUE : FALSE;
#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) {