2 * Acess2 Window Manager v3
3 * - By John Hodge (thePowersGang)
5 * renderer/widget/subwin.c
6 * - Embedded Window Widget Type
10 #include "./colours.h"
12 void Widget_SubWin_Render(tWindow *Window, tElement *Element)
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);
21 DEFWIDGETTYPE(ELETYPE_SUBWIN,
22 WIDGETTYPE_FLAG_NOCHILDREN,
23 .Render = Widget_SubWin_Render