PageRenderTime 244ms CodeModel.GetById 101ms app.highlight 1ms RepoModel.GetById 140ms app.codeStats 0ms

/tools/luagen/idl/ftk_widget.idl

http://ftk.googlecode.com/
IDL | 72 lines | 66 code | 6 blank | 0 comment | 0 complexity | 2e3825c03ff3e989726a37073d0c545d MD5 | raw file
 1#include "ftk_typedef.idl"
 2
 3interface FtkWidget
 4{
 5	int ftk_widget_type(in FtkWidgetPtr thiz);
 6	int ftk_widget_top(in FtkWidgetPtr thiz);
 7	int ftk_widget_left(in FtkWidgetPtr thiz);
 8	int ftk_widget_top_abs(in FtkWidgetPtr thiz);
 9	int ftk_widget_left_abs(in FtkWidgetPtr thiz);
10	int ftk_widget_top_in_window(in FtkWidgetPtr thiz);
11	int ftk_widget_left_in_window(in FtkWidgetPtr thiz);
12	int ftk_widget_width(in FtkWidgetPtr thiz);
13	int ftk_widget_height(in FtkWidgetPtr thiz);
14	int ftk_widget_is_insensitive(in FtkWidgetPtr thiz);
15	int ftk_widget_is_visible(in FtkWidgetPtr thiz);
16	int ftk_widget_is_focused(in FtkWidgetPtr thiz);
17	int ftk_widget_is_active(in FtkWidgetPtr thiz);
18	int ftk_widget_id(in FtkWidgetPtr thiz);
19	Ret ftk_widget_update(in FtkWidgetPtr thiz);
20	FtkGcPtr ftk_widget_get_gc(in FtkWidgetPtr thiz);
21	FtkCanvasPtr ftk_widget_canvas(in FtkWidgetPtr thiz);
22	int ftk_widget_has_attr(in FtkWidgetPtr thiz, in int attr);
23	int ftk_widget_state(in FtkWidgetPtr thiz);
24	voidPtr ftk_widget_user_data(in FtkWidgetPtr thiz);
25	CStrPtr ftk_widget_get_text(in FtkWidgetPtr thiz);
26	Ret ftk_widget_invalidate(in FtkWidgetPtr thiz);
27
28	void ftk_widget_show(in FtkWidgetPtr thiz, in int visible);
29	void ftk_widget_show_all(in FtkWidgetPtr thiz, in int visible);
30	void ftk_widget_set_visible(in FtkWidgetPtr thiz, in int visible);
31	void ftk_widget_move(in FtkWidgetPtr thiz, in int x, in int y);
32	void ftk_widget_resize(in FtkWidgetPtr thiz, in int width, in int height);
33	void ftk_widget_move_resize(in FtkWidgetPtr thiz, in int x, in int y, in int width, in int height);
34	void ftk_widget_set_type(in FtkWidgetPtr thiz, in int type);
35	void ftk_widget_set_insensitive(in FtkWidgetPtr thiz, in int insensitive);
36	void ftk_widget_set_focused(in FtkWidgetPtr thiz, in int focused);
37	void ftk_widget_set_active(in FtkWidgetPtr thiz, in int active);
38	void ftk_widget_set_id(in FtkWidgetPtr thiz, in int id);
39	void ftk_widget_set_canvas(in FtkWidgetPtr thiz, in FtkCanvasPtr canvas);
40	void ftk_widget_set_parent(in FtkWidgetPtr thiz, in FtkWidgetPtr parent);
41	void ftk_widget_set_text(in FtkWidgetPtr thiz, in CStrPtr text);
42	void ftk_widget_set_font(in FtkWidgetPtr thiz, in CStrPtr font_desc);
43	void ftk_widget_set_font_size(in FtkWidgetPtr thiz, in int font_size);
44	void ftk_widget_append_child(in FtkWidgetPtr thiz, in FtkWidgetPtr child);
45	void ftk_widget_append_sibling(in FtkWidgetPtr thiz, in FtkWidgetPtr next);
46	void ftk_widget_remove_child(in FtkWidgetPtr thiz, in FtkWidgetPtr child);
47	void ftk_widget_set_attr(in FtkWidgetPtr thiz, in int attr);
48	void ftk_widget_unset_attr(in FtkWidgetPtr thiz, in int attr);
49	void ftk_widget_set_user_data(in FtkWidgetPtr thiz, in FtkDestroyFunc destroy);
50	void ftk_widget_set_gc(in FtkWidgetPtr thiz, in int state, in FtkGcPtr gc);
51	void ftk_widget_reset_gc(in FtkWidgetPtr thiz, in int state, in FtkGcPtr gc);
52	void ftk_widget_set_event_listener(in FtkWidgetPtr thiz, in FtkEventListenerFunc listener);
53
54	FtkWidgetPtr ftk_widget_toplevel(in FtkWidgetPtr thiz);
55	FtkWidgetPtr ftk_widget_parent(in FtkWidgetPtr thiz);
56	FtkWidgetPtr ftk_widget_prev(in FtkWidgetPtr thiz);
57	FtkWidgetPtr ftk_widget_next(in FtkWidgetPtr thiz);
58	FtkWidgetPtr ftk_widget_child(in FtkWidgetPtr thiz);
59	FtkWidgetPtr ftk_widget_last_child(in FtkWidgetPtr thiz);
60	FtkWidgetPtr ftk_widget_lookup(in FtkWidgetPtr thiz, in int id);
61
62	void ftk_widget_paint(in FtkWidgetPtr thiz, in FtkRectPtr rects, in int rect_nr);
63	void ftk_widget_destroy(in FtkWidgetPtr thiz);
64
65	void ftk_widget_ref(in FtkWidgetPtr thiz);
66	void ftk_widget_unref(in FtkWidgetPtr thiz);
67
68	Ret  ftk_widget_paint_self(in FtkWidgetPtr thiz, in FtkRectPtr rects, in int rect_nr);
69	void ftk_widget_ref_self(in FtkWidgetPtr thiz);
70	void ftk_widget_unref_self(in FtkWidgetPtr thiz);
71	Ret  ftk_widget_event(in FtkWidgetPtr thiz, in FtkEventPtr event);
72};