From e49436170aa547ec713b8510bec955985f09cb89 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 15 Apr 2015 22:56:03 -0400 Subject: Migrated test.c and fixed some errorss in ui.idl. --- new/ui.idl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'new/ui.idl') diff --git a/new/ui.idl b/new/ui.idl index d6a1c1c..a0f0fa2 100644 --- a/new/ui.idl +++ b/new/ui.idl @@ -98,7 +98,7 @@ interface Parent { // It is called when a widget is shown or hidden or when a control is added or removed from a container such as uiStack. func Update(void); }; -func uiNewParent(osParent uintptr_t) *Parent; +func NewParent(osParent uintptr_t) *Parent; interface Window { field Internal *void; @@ -108,12 +108,12 @@ interface Window { func SetTitle(title *const char); func Show(void); func Hide(void); - func OnClosing(f *func(w *Window, data *void), data *void); + func OnClosing(f *func(w *Window, data *void) int, data *void); func SetChild(c *Control); func Margined(void) int; func SetMargined(margined int); }; -func uiNewWindow(title *const char, width int, height int) *Window; +func NewWindow(title *const char, width int, height int) *Window; interface Button from Control { func Text(void) *char; @@ -150,7 +150,7 @@ interface Label from Control { func Text(void) *char; func SetText(text *const char); }; -func NewLabel(void) *Label; +func NewLabel(text *const char) *Label; interface Tab from Control { func AddPage(name *const char, c *Control); -- cgit v1.2.3