/* Do not edit by hand. This file was machine generated. */ #ifndef _UI_H_ #define _UI_H_ /* Use the structure and string defined in this file like this: TUI_APPLICATION *app; UI ui; app = TUI_APPLICATION_create(); TUI_construct(app, &ui, ui_layout); TUI_WIDGET_set_callback_data(ui.foo, ptr); */ /* This structure can be used in your application to set specific values and set callback data for your widgets. Only widgets that have been given a name are stored in this structure. */ typedef struct ui { TUI *tui; TUI_WIDGET *new_file; TUI_WIDGET *undo; } UI; /* This string should be passed to TUI_construct() by your application to build your user interface. */ static const char *ui_layout = " ui {" " major_version = 0;" " minor_version = 1;" " window {" " text = 'foo';" " x = 100;" " y = 100;" " w = 330;" " h = 200;" " button {" " text = 'Hello';" " x = 100;" " y = 50;" " }" " button {" " text = 'Exit';" " x = 200;" " y = 150;" " callback = 'exit_callback';" " }" " radio_button {" " text = 'Radio 1';" " x = 50;" " y = 200;" " radio_value = 1;" " callback = 'radio_callback';" " }" " radio_button {" " text = 'Radio 2';" " x = 50;" " y = 232;" " radio_value = 2;" " callback = 'radio_callback';" " }" " radio_button {" " text = 'Radio 3';" " x = 50;" " y = 264;" " radio_value = 3;" " callback = 'radio_callback';" " }" " menubar {" " pulldown {" " text = 'File';" " menuitem {" " text = 'New';" " name = 'new_file';" " callback = 'new_file_callback';" " }" " menuitem {" " text = 'Open...';" " }" " menuseparator {}" " menuitem {" " text = 'Save';" " }" " menuitem {" " text = 'Save As...';" " }" " menuseparator {}" " menuitem {" " text = 'Exit';" " callback = 'exit_callback';" " }" " }" " pulldown {" " text = 'Edit';" " disabled;" " menuitem {" " text = 'Undo';" " key = 'z';" " name = 'undo';" " }" " menuseparator {}" " menuitem {" " text = 'Cut';" " }" " menuitem {" " text = 'Copy';" " }" " menuitem {" " text = 'Paste';" " }" " }" " pulldown {" " text = 'Help';" " menuitem {" " text = 'Shortcuts...';" " }" " }" " }" " }" " }" ; #endif /* _UI_H_ */