ui/gtk/button.h

changeset 109
c3dfcb8f0be7
parent 60
ee4e4742391e
child 110
c00e968d018b
equal deleted inserted replaced
108:77254bd6dccb 109:c3dfcb8f0be7
34 #include "toolkit.h" 34 #include "toolkit.h"
35 35
36 #ifdef __cplusplus 36 #ifdef __cplusplus
37 extern "C" { 37 extern "C" {
38 #endif 38 #endif
39
40 typedef struct UiLinkButton {
41 UiObject *obj;
42 GtkWidget *widget;
43 UiLinkType type;
44 UiBool nofollow;
45 char *link;
46 ui_callback onclick;
47 void *onclickdata;
48 } UiLinkButton;
39 49
40 void ui_button_set_icon_name(GtkWidget *button, const char *icon_name); 50 void ui_button_set_icon_name(GtkWidget *button, const char *icon_name);
41 51
42 typedef void (*ui_toggled_func)(void*, void*); 52 typedef void (*ui_toggled_func)(void*, void*);
43 53
87 void ui_radio_obs(GtkToggleButton *widget, UiVarEventData *event); 97 void ui_radio_obs(GtkToggleButton *widget, UiVarEventData *event);
88 98
89 int64_t ui_radiobutton_get(UiInteger *value); 99 int64_t ui_radiobutton_get(UiInteger *value);
90 void ui_radiobutton_set(UiInteger *value, int64_t i); 100 void ui_radiobutton_set(UiInteger *value, int64_t i);
91 101
102 char* ui_linkbutton_get(UiString *s);
103 void ui_linkbutton_set(UiString *s, const char *str);
104
92 #ifdef __cplusplus 105 #ifdef __cplusplus
93 } 106 }
94 #endif 107 #endif
95 108
96 #endif /* BUTTON_H */ 109 #endif /* BUTTON_H */

mercurial