Merge branch 'master' of git://localhost/acess2
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / renderers / widget / subwin.c
1 /*
2  * Acess2 Window Manager v3
3  * - By John Hodge (thePowersGang)
4  * 
5  * renderer/widget/subwin.c
6  * - Embedded Window Widget Type
7  */
8 #include <common.h>
9 #include "./common.h"
10 #include "./colours.h"
11
12 void Widget_SubWin_Render(tWindow *Window, tElement *Element)
13 {
14         // Ensure that child window is positioned relative to this window
15         WM_SetRelative(Element->Data, 1);
16         // Note: Doesn't actually render, but does poke the child window
17         WM_MoveWindow(Element->Data, Element->CachedX, Element->CachedY);
18         WM_ResizeWindow(Element->Data, Element->CachedW, Element->CachedH);
19 }
20
21 DEFWIDGETTYPE(ELETYPE_SUBWIN,
22         WIDGETTYPE_FLAG_NOCHILDREN,
23         .Render = Widget_SubWin_Render
24         )

UCC git Repository :: git.ucc.asn.au