Source file ogtkButtonProps.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
open GtkSignal
open Gobject
open Data
let set = set
let get = get
let param = param
open GtkButtonProps
open GtkButtonProps
class virtual button_props = object
val virtual obj : _ obj
method set_focus_on_click = set Button.P.focus_on_click obj
method set_image = set {Button.P.image with conv=GObj.conv_widget} obj
method set_image_position = set Button.P.image_position obj
method set_label = set Button.P.label obj
method set_use_stock = set Button.P.use_stock obj
method set_use_underline = set Button.P.use_underline obj
method set_relief = set Button.P.relief obj
method set_xalign = set Button.P.xalign obj
method set_yalign = set Button.P.yalign obj
method focus_on_click = get Button.P.focus_on_click obj
method image = get {Button.P.image with conv=GObj.conv_widget} obj
method image_position = get Button.P.image_position obj
method label = get Button.P.label obj
method use_stock = get Button.P.use_stock obj
method use_underline = get Button.P.use_underline obj
method relief = get Button.P.relief obj
method xalign = get Button.P.xalign obj
method yalign = get Button.P.yalign obj
end
class virtual button_sigs = object (self)
method private virtual connect :
'b. ('a,'b) GtkSignal.t -> callback:'b -> GtkSignal.id
method private virtual notify :
'b. ('a,'b) property -> callback:('b -> unit) -> GtkSignal.id
method clicked = self#connect Button.S.clicked
method enter = self#connect Button.S.enter
method leave = self#connect Button.S.leave
method pressed = self#connect Button.S.pressed
method released = self#connect Button.S.released
method notify_focus_on_click ~callback =
self#notify Button.P.focus_on_click ~callback
method notify_image ~callback =
self#notify {Button.P.image with conv=GObj.conv_widget} ~callback
method notify_image_position ~callback =
self#notify Button.P.image_position ~callback
method notify_label ~callback = self#notify Button.P.label ~callback
method notify_use_stock ~callback =
self#notify Button.P.use_stock ~callback
method notify_use_underline ~callback =
self#notify Button.P.use_underline ~callback
method notify_relief ~callback = self#notify Button.P.relief ~callback
method notify_xalign ~callback = self#notify Button.P.xalign ~callback
method notify_yalign ~callback = self#notify Button.P.yalign ~callback
end
class virtual color_button_props = object
val virtual obj : _ obj
method set_alpha = set ColorButton.P.alpha obj
method set_color = set ColorButton.P.color obj
method set_rgba = set ColorButton.P.rgba obj
method set_show_editor = set ColorButton.P.show_editor obj
method set_title = set ColorButton.P.title obj
method set_use_alpha = set ColorButton.P.use_alpha obj
method alpha = get ColorButton.P.alpha obj
method color = get ColorButton.P.color obj
method rgba = get ColorButton.P.rgba obj
method show_editor = get ColorButton.P.show_editor obj
method title = get ColorButton.P.title obj
method use_alpha = get ColorButton.P.use_alpha obj
end
class virtual font_button_props = object
val virtual obj : _ obj
method set_font_name = set FontButton.P.font_name obj
method set_show_size = set FontButton.P.show_size obj
method set_show_style = set FontButton.P.show_style obj
method set_title = set FontButton.P.title obj
method set_use_font = set FontButton.P.use_font obj
method set_use_size = set FontButton.P.use_size obj
method font_name = get FontButton.P.font_name obj
method show_size = get FontButton.P.show_size obj
method show_style = get FontButton.P.show_style obj
method title = get FontButton.P.title obj
method use_font = get FontButton.P.use_font obj
method use_size = get FontButton.P.use_size obj
end
class virtual tool_item_props = object
val virtual obj : _ obj
method set_is_important = set ToolItem.P.is_important obj
method set_visible_horizontal = set ToolItem.P.visible_horizontal obj
method set_visible_vertical = set ToolItem.P.visible_vertical obj
method is_important = get ToolItem.P.is_important obj
method visible_horizontal = get ToolItem.P.visible_horizontal obj
method visible_vertical = get ToolItem.P.visible_vertical obj
end
class virtual tool_button_props = object
val virtual obj : _ obj
method set_icon_widget =
set {ToolButton.P.icon_widget with conv=GObj.conv_widget} obj
method set_label = set ToolButton.P.label obj
method set_label_widget =
set {ToolButton.P.label_widget with conv=GObj.conv_widget} obj
method set_stock_id = set ToolButton.P.stock_id obj
method set_use_underline = set ToolButton.P.use_underline obj
method icon_widget =
get {ToolButton.P.icon_widget with conv=GObj.conv_widget} obj
method label = get ToolButton.P.label obj
method label_widget =
get {ToolButton.P.label_widget with conv=GObj.conv_widget} obj
method stock_id = get ToolButton.P.stock_id obj
method use_underline = get ToolButton.P.use_underline obj
end
class virtual toolbar_props = object
val virtual obj : _ obj
method set_icon_size = set Toolbar.P.icon_size obj
method set_icon_size_set = set Toolbar.P.icon_size_set obj
method set_show_arrow = set Toolbar.P.show_arrow obj
method set_toolbar_style = set Toolbar.P.toolbar_style obj
method icon_size = get Toolbar.P.icon_size obj
method icon_size_set = get Toolbar.P.icon_size_set obj
method show_arrow = get Toolbar.P.show_arrow obj
method toolbar_style = get Toolbar.P.toolbar_style obj
end
class virtual toolbar_sigs = object (self)
method private virtual connect :
'b. ('a,'b) GtkSignal.t -> callback:'b -> GtkSignal.id
method private virtual notify :
'b. ('a,'b) property -> callback:('b -> unit) -> GtkSignal.id
method style_changed = self#connect Toolbar.S.style_changed
method focus_home_or_end = self#connect Toolbar.S.focus_home_or_end
method move_focus = self#connect Toolbar.S.move_focus
method popup_context_menu = self#connect Toolbar.S.popup_context_menu
method notify_icon_size ~callback =
self#notify Toolbar.P.icon_size ~callback
method notify_icon_size_set ~callback =
self#notify Toolbar.P.icon_size_set ~callback
method notify_show_arrow ~callback =
self#notify Toolbar.P.show_arrow ~callback
method notify_toolbar_style ~callback =
self#notify Toolbar.P.toolbar_style ~callback
end
class virtual link_button_props = object
val virtual obj : _ obj
method set_uri = set LinkButton.P.uri obj
method uri = get LinkButton.P.uri obj
end