diff options
author | inmarket <andrewh@inmarket.com.au> | 2014-05-21 13:02:00 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2014-05-21 13:02:00 +1000 |
commit | 34e23320b4c69f5e409f25431603d901abfc4740 (patch) | |
tree | 2959d9c395b5364243a267229779e8afd8ee094d /src/gwin/gcontainer.c | |
parent | 7afe4e78b7ffd2150f7eba51d6613422ccc7abe5 (diff) | |
download | uGFX-34e23320b4c69f5e409f25431603d901abfc4740.tar.gz uGFX-34e23320b4c69f5e409f25431603d901abfc4740.tar.bz2 uGFX-34e23320b4c69f5e409f25431603d901abfc4740.zip |
Significant changes to the window redrawing methodology.
Move and Resize should probably work for containers now
Still to be tested - nested containers, progressbar timers while redrawing its container, move/resize on containers.
Diffstat (limited to 'src/gwin/gcontainer.c')
-rw-r--r-- | src/gwin/gcontainer.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/gwin/gcontainer.c b/src/gwin/gcontainer.c index 998433b4..46e89032 100644 --- a/src/gwin/gcontainer.c +++ b/src/gwin/gcontainer.c @@ -41,46 +41,6 @@ void _gcontainerDestroy(GHandle gh) { _gwidgetDestroy(gh); } -void _gcontainerRedraw(GHandle gh) { - GHandle child; - - if (!(gh->flags & GWIN_FLG_SYSVISIBLE)) - return; - - ((GWidgetObject *)gh)->fnDraw((GWidgetObject *)gh, ((GWidgetObject *)gh)->fnParam); - - for(child = gwinGetFirstChild(gh); child; child = gwinGetSibling(child)) - gwinRedraw(child); -} - -void _gcontainerUpdate(GHandle gh) { - GHandle child; - - if (!(gh->flags & GWIN_FLG_SYSVISIBLE)) - return; - - #if GDISP_NEED_CLIP - gdispGSetClip(gh->display, gh->x, gh->y, gh->width, gh->height); - #endif - ((GWidgetObject *)gh)->fnDraw((GWidgetObject *)gh, ((GWidgetObject *)gh)->fnParam); - - for(child = gwinGetFirstChild(gh); child; child = gwinGetSibling(child)) - gwinRedraw(child); -} - -void _gwinRecurse(GHandle gh, bool_t (*fn)(GHandle gh)) { - if (fn(gh) && (gh->flags & GWIN_FLG_CONTAINER)) { - // Apply to this windows children - for(gh = gwinGetFirstChild(gh); gh; gh = gwinGetSibling(gh)) { - // Only recurse when we have to. Otherwise apply it directly - if ((gh->flags & GWIN_FLG_CONTAINER)) - _gwinRecurse(gh, fn); - else - fn(gh); - } - } -} - GHandle gwinGetFirstChild(GHandle gh) { GHandle child; |