2 * Acess2 Window Manager v3
3 * - By John Hodge (thePowersGang)
5 * renderer/widget/button.c
10 #include "./colours.h"
12 void Widget_Button_Render(tWindow *Window, tElement *Element)
16 Element->CachedX+1, Element->CachedY+1,
17 Element->CachedW-2, Element->CachedH-2,
22 Element->CachedX, Element->CachedY,
23 Element->CachedW-1, Element->CachedH-1,
28 int Widget_Button_MouseButton(tElement *Element, int X, int Y, int Button, int bPress)
30 _SysDebug("Ele %i - Button %i %s",
32 (bPress ? "pressed" : "released")
34 if(!bPress) Widget_Fire(Element);
38 DEFWIDGETTYPE(ELETYPE_BUTTON, "Button",
40 .Render = Widget_Button_Render,
41 .MouseButton = Widget_Button_MouseButton