4cdaabad8661a5b7cc16fdd4703d20ec3b7795c3
[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         // Note: Doesn't actually render, but does poke the child window
15         WM_MoveWindow(Element->Data, Element->CachedX, Element->CachedY);
16         WM_ResizeWindow(Element->Data, Element->CachedW, Element->CachedH);
17 }
18
19 DEFWIDGETTYPE(ELETYPE_SUBWIN,
20         WIDGETTYPE_FLAG_NOCHILDREN,
21         .Render = Widget_SubWin_Render
22         )
23

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