1 /* mx-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Mx", lower_case_cprefix = "mx_")]
5 [CCode (cheader_filename = "mx/mx.h")]
6 public class Action : GLib.InitiallyUnowned {
7 [CCode (has_construct_function = false)]
9 [CCode (has_construct_function = false)]
10 public Action.full (string name, string display_name, GLib.Callback activated_cb);
11 public bool get_active ();
12 public unowned string get_display_name ();
13 public unowned string get_icon ();
14 public unowned string get_name ();
15 public void set_active (bool active);
16 public void set_display_name (string name);
17 public void set_icon (string name);
18 public void set_name (string name);
19 public bool active { get; set; }
20 public string display_name { get; set; }
21 public string icon { get; set; }
22 public string name { get; set; }
23 public virtual signal void activated ();
25 [CCode (cheader_filename = "mx/mx.h")]
26 public class Adjustment : GLib.Object {
27 [CCode (has_construct_function = false)]
29 public bool get_elastic ();
30 public double get_lower ();
31 public double get_page_increment ();
32 public double get_page_size ();
33 public double get_step_increment ();
34 public double get_upper ();
35 public double get_value ();
36 public void get_values (double value, double lower, double upper, double step_increment, double page_increment, double page_size);
37 public void interpolate (double value, uint duration, ulong mode);
38 public void interpolate_relative (double offset, uint duration, ulong mode);
39 public void set_elastic (bool elastic);
40 public void set_lower (double lower);
41 public void set_page_increment (double increment);
42 public void set_page_size (double page_size);
43 public void set_step_increment (double increment);
44 public void set_upper (double upper);
45 public void set_value (double value);
46 public void set_values (double value, double lower, double upper, double step_increment, double page_increment, double page_size);
47 [CCode (has_construct_function = false)]
48 public Adjustment.with_values (double value, double lower, double upper, double step_increment, double page_increment, double page_size);
49 public bool elastic { get; set construct; }
50 public double lower { get; set construct; }
51 public double page_increment { get; set construct; }
52 public double page_size { get; set construct; }
53 public double step_increment { get; set construct; }
54 public double upper { get; set construct; }
55 public double value { get; set construct; }
56 public virtual signal void changed ();
58 [CCode (cheader_filename = "mx/mx.h")]
59 public class Application : GLib.Object {
60 [CCode (has_construct_function = false)]
61 public Application ([CCode (array_length_pos = 0.9)] ref unowned string[] argv, string name, Mx.ApplicationFlags flags);
62 public void add_action (Mx.Action action);
63 public void add_window (Mx.Window window);
64 public virtual unowned Mx.Window create_window ();
65 public unowned GLib.List get_actions ();
66 public Mx.ApplicationFlags get_flags ();
67 public unowned GLib.List get_windows ();
68 public void invoke_action (string name);
69 public bool is_running ();
72 public virtual void raise ();
73 public void remove_action (string name);
74 public void remove_window (Mx.Window window);
77 public string application_name { owned get; construct; }
78 public uint flags { get; construct; }
79 public virtual signal void actions_changed ();
81 [CCode (cheader_filename = "mx/mx.h")]
82 public class Bin : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
83 [CCode (has_construct_function = false)]
85 public void allocate_child (Clutter.ActorBox box, Clutter.AllocationFlags flags);
86 public void get_alignment (Mx.Align x_align, Mx.Align y_align);
87 public unowned Clutter.Actor get_child ();
88 public void get_fill (bool x_fill, bool y_fill);
89 public void set_alignment (Mx.Align x_align, Mx.Align y_align);
90 public void set_child (Clutter.Actor child);
91 public void set_fill (bool x_fill, bool y_fill);
92 public Clutter.Actor child { get; set; }
94 public Mx.Align x_align { get; set; }
96 public bool x_fill { get; set; }
98 public Mx.Align y_align { get; set; }
100 public bool y_fill { get; set; }
103 [CCode (type_id = "MX_TYPE_BORDER_IMAGE", cheader_filename = "mx/mx.h")]
104 public class BorderImage {
109 public weak string uri;
110 public static void set_from_string (GLib.Value value, string str, string filename);
112 [CCode (cheader_filename = "mx/mx.h")]
113 public class BoxLayout : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Scrollable, Mx.Focusable {
114 [CCode (type = "ClutterActor*", has_construct_function = false)]
116 public void add_actor_with_properties (Clutter.Actor actor, int position, ...);
117 public bool get_enable_animations ();
118 public Mx.Orientation get_orientation ();
119 public uint get_spacing ();
120 public void set_enable_animations (bool enable_animations);
121 public void set_orientation (Mx.Orientation orientation);
122 public void set_spacing (uint spacing);
123 public bool enable_animations { get; set; }
124 public Mx.Orientation orientation { get; set; }
125 public uint spacing { get; set; }
127 [CCode (cheader_filename = "mx/mx.h")]
128 public class BoxLayoutChild : Clutter.ChildMeta {
129 [CCode (has_construct_function = false)]
130 protected BoxLayoutChild ();
131 public static bool get_expand (Mx.BoxLayout box_layout, Clutter.Actor child);
132 public static Mx.Align get_x_align (Mx.BoxLayout box_layout, Clutter.Actor child);
133 public static bool get_x_fill (Mx.BoxLayout box_layout, Clutter.Actor child);
134 public static Mx.Align get_y_align (Mx.BoxLayout box_layout, Clutter.Actor child);
135 public static bool get_y_fill (Mx.BoxLayout box_layout, Clutter.Actor child);
136 public static void set_expand (Mx.BoxLayout box_layout, Clutter.Actor child, bool expand);
137 public static void set_x_align (Mx.BoxLayout box_layout, Clutter.Actor child, Mx.Align x_align);
138 public static void set_x_fill (Mx.BoxLayout box_layout, Clutter.Actor child, bool x_fill);
139 public static void set_y_align (Mx.BoxLayout box_layout, Clutter.Actor child, Mx.Align y_align);
140 public static void set_y_fill (Mx.BoxLayout box_layout, Clutter.Actor child, bool y_fill);
141 public bool expand { get; set; }
142 public Mx.Align x_align { get; set; }
143 public bool x_fill { get; set; }
144 public Mx.Align y_align { get; set; }
145 public bool y_fill { get; set; }
147 [CCode (cheader_filename = "mx/mx.h")]
148 public class Button : Mx.Bin, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
149 [CCode (type = "ClutterActor*", has_construct_function = false)]
151 public bool get_is_toggle ();
152 public unowned string get_label ();
153 public bool get_toggled ();
154 public void set_is_toggle (bool toggle);
155 public void set_label (string text);
156 public void set_toggled (bool toggled);
157 [CCode (type = "ClutterActor*", has_construct_function = false)]
158 public Button.with_label (string text);
159 public bool is_toggle { get; set; }
160 public string label { get; set; }
161 public bool toggled { get; set; }
162 public virtual signal void clicked ();
164 [CCode (cheader_filename = "mx/mx.h")]
165 public class ButtonGroup : GLib.InitiallyUnowned {
166 [CCode (has_construct_function = false)]
167 public ButtonGroup ();
168 public void add (Mx.Button button);
169 public void @foreach (Clutter.Callback callback);
170 public unowned Mx.Button get_active_button ();
171 public bool get_allow_no_active ();
172 public unowned GLib.SList get_buttons ();
173 public void remove (Mx.Button button);
174 public void set_active_button (Mx.Button? button);
175 public void set_allow_no_active (bool allow_no_active);
176 public Mx.Button active_button { get; set; }
177 public bool allow_no_active { get; set; }
179 [CCode (cheader_filename = "mx/mx.h")]
180 public class Clipboard : GLib.Object {
181 [CCode (has_construct_function = false)]
182 protected Clipboard ();
183 public static unowned Mx.Clipboard get_default ();
184 public void get_text (Mx.ClipboardCallbackFunc callback);
185 public void set_text (string text);
187 [CCode (cheader_filename = "mx/mx.h")]
188 public class ComboBox : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Mx.Focusable {
189 [CCode (type = "ClutterActor*", has_construct_function = false)]
191 public void append_text (string text);
192 public unowned string get_active_icon_name ();
193 public unowned string get_active_text ();
194 public int get_index ();
195 public void insert_text (int position, string text);
196 public void insert_text_with_icon (int position, string text, string icon);
197 public void prepend_text (string text);
198 public void remove_text (int position);
199 public void set_active_icon_name (string icon_name);
200 public void set_active_text (string text);
201 public void set_index (int index);
202 public string active_icon_name { get; set; }
203 public string active_text { get; set; }
204 public int index { get; set; }
206 [CCode (cheader_filename = "mx/mx.h")]
207 public class DeformBowTie : Mx.DeformTexture, Clutter.Scriptable, Mx.Stylable {
208 [CCode (type = "ClutterActor*", has_construct_function = false)]
209 public DeformBowTie ();
210 public bool get_flip_back ();
211 public double get_period ();
212 public void set_flip_back (bool flip_back);
213 public void set_period (double period);
214 public bool flip_back { get; set; }
215 public double period { get; set; }
217 [CCode (cheader_filename = "mx/mx.h")]
218 public class DeformPageTurn : Mx.DeformTexture, Clutter.Scriptable, Mx.Stylable {
219 [CCode (type = "ClutterActor*", has_construct_function = false)]
220 public DeformPageTurn ();
221 public double get_angle ();
222 public double get_period ();
223 public double get_radius ();
224 public void set_angle (double angle);
225 public void set_period (double period);
226 public void set_radius (double radius);
227 public double angle { get; set; }
228 public double period { get; set; }
229 public double radius { get; set; }
231 [CCode (cheader_filename = "mx/mx.h")]
232 public class DeformTexture : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
233 [CCode (has_construct_function = false)]
234 protected DeformTexture ();
236 public virtual void deform (Cogl.TextureVertex vertex, float width, float height);
237 public void get_resolution (int tiles_x, int tiles_y);
238 public void get_textures (out unowned Clutter.Texture front, out unowned Clutter.Texture back);
239 public void invalidate ();
240 public void set_resolution (int tiles_x, int tiles_y);
241 public void set_textures (Clutter.Texture front, Clutter.Texture back);
243 public Clutter.Texture back { owned get; set; }
245 public Clutter.Texture front { owned get; set; }
247 public int tiles_x { get; set; }
249 public int tiles_y { get; set; }
251 [CCode (cheader_filename = "mx/mx.h")]
252 public class DeformWaves : Mx.DeformTexture, Clutter.Scriptable, Mx.Stylable {
253 [CCode (type = "ClutterActor*", has_construct_function = false)]
254 public DeformWaves ();
255 public double get_amplitude ();
256 public double get_angle ();
257 public double get_period ();
258 public double get_radius ();
259 public void set_amplitude (double amplitude);
260 public void set_angle (double angle);
261 public void set_period (double period);
262 public void set_radius (double radius);
263 public double amplitude { get; set; }
264 public double angle { get; set; }
265 public double period { get; set; }
266 public double radius { get; set; }
268 [CCode (cheader_filename = "mx/mx.h")]
269 public class Entry : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Mx.Focusable {
270 [CCode (type = "ClutterActor*", has_construct_function = false)]
272 public unowned Clutter.Actor get_clutter_text ();
273 public unowned string get_hint_text ();
274 public unichar get_password_char ();
275 public unowned string get_text ();
276 public void set_hint_text (string text);
277 public void set_password_char (unichar password_char);
278 public void set_primary_icon_from_file (string filename);
279 public void set_secondary_icon_from_file (string filename);
280 public void set_text (string text);
281 [CCode (type = "ClutterActor*", has_construct_function = false)]
282 public Entry.with_text (string text);
283 public Clutter.Text clutter_text { get; }
284 public string hint_text { get; set; }
285 public uint password_char { get; set; }
286 public string text { get; set; }
287 public virtual signal void primary_icon_clicked ();
288 public virtual signal void secondary_icon_clicked ();
290 [CCode (cheader_filename = "mx/mx.h")]
291 public class Expander : Mx.Bin, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
292 [CCode (type = "ClutterActor*", has_construct_function = false)]
294 public bool get_expanded ();
295 public void set_expanded (bool expanded);
296 public void set_label (string label);
297 public bool expanded { get; set; }
299 public string label { owned get; set; }
300 public virtual signal void expand_complete ();
302 [CCode (cheader_filename = "mx/mx.h")]
303 public class FloatingWidget : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
304 [CCode (has_construct_function = false)]
305 protected FloatingWidget ();
307 public virtual void floating_paint (Clutter.Actor actor);
309 public virtual void floating_pick (Clutter.Actor actor, Clutter.Color color);
311 [CCode (cheader_filename = "mx/mx.h")]
312 public class FocusManager : GLib.Object {
313 [CCode (has_construct_function = false)]
314 protected FocusManager ();
315 public unowned Mx.Focusable get_focused ();
316 public static unowned Mx.FocusManager get_for_stage (Clutter.Stage stage);
317 public unowned Clutter.Stage get_stage ();
318 public void move_focus (Mx.FocusDirection direction);
319 public void push_focus (Mx.Focusable focusable);
320 public Clutter.Actor focused { get; }
321 public Clutter.Stage stage { get; }
323 [CCode (cheader_filename = "mx/mx.h")]
324 public class Frame : Mx.Bin, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
325 [CCode (type = "ClutterActor*", has_construct_function = false)]
328 [CCode (cheader_filename = "mx/mx.h")]
329 public class Grid : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Scrollable, Mx.Focusable {
330 [CCode (type = "ClutterActor*", has_construct_function = false)]
332 public Mx.Align get_child_x_align ();
333 public Mx.Align get_child_y_align ();
334 public float get_column_spacing ();
335 public bool get_homogenous_columns ();
336 public bool get_homogenous_rows ();
337 public bool get_line_alignment ();
338 public int get_max_stride ();
339 public Mx.Orientation get_orientation ();
340 public float get_row_spacing ();
341 public void set_child_x_align (Mx.Align value);
342 public void set_child_y_align (Mx.Align value);
343 public void set_column_spacing (float value);
344 public void set_homogenous_columns (bool value);
345 public void set_homogenous_rows (bool value);
346 public void set_line_alignment (Mx.Align value);
347 public void set_max_stride (int value);
348 public void set_orientation (Mx.Orientation orientation);
349 public void set_row_spacing (float value);
350 public Mx.Align child_x_align { get; set construct; }
351 public Mx.Align child_y_align { get; set construct; }
352 public float column_spacing { get; set construct; }
353 public bool homogenous_columns { get; set construct; }
354 public bool homogenous_rows { get; set construct; }
355 public Mx.Align line_alignment { get; set construct; }
356 public int max_stride { get; set construct; }
357 public Mx.Orientation orientation { get; set construct; }
358 public float row_spacing { get; set construct; }
360 [CCode (cheader_filename = "mx/mx.h")]
361 public class Icon : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
362 [CCode (type = "ClutterActor*", has_construct_function = false)]
364 public unowned string get_icon_name ();
365 public int get_icon_size ();
366 public void set_icon_name (string icon_name);
367 public void set_icon_size (int size);
368 public string icon_name { get; set; }
369 public int icon_size { get; set; }
371 [CCode (cheader_filename = "mx/mx.h")]
372 public class IconTheme : GLib.Object {
373 [CCode (has_construct_function = false)]
375 public static unowned Mx.IconTheme get_default ();
376 public unowned GLib.List get_search_paths ();
377 public unowned string get_theme_name ();
378 public bool has_icon (string icon_name);
379 public unowned Cogl.Bitmap lookup (string icon_name, int size);
380 public unowned Clutter.Texture lookup_texture (string icon_name, int size);
381 public void set_search_paths (GLib.List paths);
382 public void set_theme_name (string theme_name);
383 public string theme_name { get; set; }
385 [CCode (cheader_filename = "mx/mx.h")]
386 public class ItemView : Mx.Grid, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Scrollable, Mx.Focusable {
387 [CCode (type = "ClutterActor*", has_construct_function = false)]
389 public void add_attribute (string attribute, int column);
390 public void freeze ();
391 public unowned Mx.ItemFactory get_factory ();
392 public GLib.Type get_item_type ();
393 public unowned Clutter.Model get_model ();
394 public void set_factory (Mx.ItemFactory factory);
395 public void set_item_type (GLib.Type item_type);
396 public void set_model (Clutter.Model model);
398 public GLib.Object factory { get; set; }
399 public GLib.Type item_type { get; set; }
400 public Clutter.Model model { get; set; }
402 [CCode (cheader_filename = "mx/mx.h")]
403 public class Label : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
404 [CCode (type = "ClutterActor*", has_construct_function = false)]
406 public unowned Clutter.Actor get_clutter_text ();
407 public unowned string get_text ();
408 public Mx.Align get_x_align ();
409 public Mx.Align get_y_align ();
410 public void set_text (string text);
411 public void set_x_align (Mx.Align align);
412 public void set_y_align (Mx.Align align);
413 [CCode (type = "ClutterActor*", has_construct_function = false)]
414 public Label.with_text (string text);
415 public Clutter.Text clutter_text { get; }
416 public string text { get; set; }
417 public Mx.Align x_align { get; set; }
418 public Mx.Align y_align { get; set; }
420 [CCode (cheader_filename = "mx/mx.h")]
421 public class ListView : Mx.BoxLayout, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Scrollable, Mx.Focusable {
422 [CCode (type = "ClutterActor*", has_construct_function = false)]
424 public void add_attribute (string attribute, int column);
425 public void freeze ();
426 public unowned Mx.ItemFactory get_factory ();
427 public GLib.Type get_item_type ();
428 public unowned Clutter.Model get_model ();
429 public void set_factory (Mx.ItemFactory factory);
430 public void set_item_type (GLib.Type item_type);
431 public void set_model (Clutter.Model model);
433 public GLib.Object factory { get; set; }
434 public GLib.Type item_type { get; set; }
435 public Clutter.Model model { get; set; }
437 [CCode (cheader_filename = "mx/mx.h")]
438 public class Menu : Mx.FloatingWidget, Clutter.Scriptable, Mx.Stylable {
439 [CCode (type = "ClutterActor*", has_construct_function = false)]
441 public void add_action (Mx.Action action);
442 public void remove_action (Mx.Action action);
443 public void remove_all ();
444 public void show_with_position (float x, float y);
445 public virtual signal void action_activated (Mx.Action action);
447 [CCode (cheader_filename = "mx/mx.h")]
448 public class Notebook : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Clutter.Container {
449 [CCode (type = "ClutterActor*", has_construct_function = false)]
451 public unowned Clutter.Actor get_current_page ();
452 public bool get_enable_gestures ();
453 public void set_current_page (Clutter.Actor page);
454 public void set_enable_gestures (bool enabled);
455 public Clutter.Actor current_page { get; set; }
456 public bool enable_gestures { get; set; }
458 [CCode (cheader_filename = "mx/mx.h")]
459 public class Offscreen : Clutter.Texture, Clutter.Scriptable, Clutter.Container {
460 [CCode (type = "ClutterActor*", has_construct_function = false)]
462 public bool get_auto_update ();
463 public unowned Clutter.Actor get_child ();
464 public bool get_pick_child ();
466 public virtual void paint_child ();
467 public void set_auto_update (bool auto_update);
468 public void set_child (Clutter.Actor actor);
469 public void set_pick_child (bool pick);
470 public void update ();
471 public bool auto_update { get; set; }
472 public Clutter.Actor child { get; set; }
473 public bool pick_child { get; set; }
475 [CCode (cheader_filename = "mx/mx.h")]
476 public class PathBar : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Mx.Focusable {
477 [CCode (type = "ClutterActor*", has_construct_function = false)]
479 public void clear ();
480 public bool get_clear_on_change ();
481 public bool get_editable ();
482 public unowned Mx.Entry get_entry ();
483 public unowned string get_label (int level);
484 public int get_level ();
485 public unowned string get_text ();
487 public int push (string name);
488 public void set_clear_on_change (bool clear_on_change);
489 public void set_editable (bool editable);
490 public void set_label (int level, string label);
491 public void set_text (string text);
492 public bool clear_on_change { get; set; }
493 public bool editable { get; set; }
494 public Mx.Entry entry { get; }
495 public int level { get; }
497 [CCode (cheader_filename = "mx/mx.h")]
498 public class ProgressBar : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
499 [CCode (type = "ClutterActor*", has_construct_function = false)]
500 public ProgressBar ();
501 public double get_progress ();
502 public void set_progress (double progress);
503 public double progress { get; set; }
505 [CCode (cheader_filename = "mx/mx.h")]
506 public class ScrollBar : Mx.Bin, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
507 [CCode (type = "ClutterActor*", has_construct_function = false)]
509 public unowned Mx.Adjustment get_adjustment ();
510 public Mx.Orientation get_orientation ();
511 public void set_adjustment (Mx.Adjustment adjustment);
512 public void set_orientation (Mx.Orientation orientation);
513 [CCode (type = "ClutterActor*", has_construct_function = false)]
514 public ScrollBar.with_adjustment (Mx.Adjustment adjustment);
515 public Mx.Adjustment adjustment { get; set; }
516 public Mx.Orientation orientation { get; set; }
517 public virtual signal void scroll_start ();
518 public virtual signal void scroll_stop ();
520 [CCode (cheader_filename = "mx/mx.h")]
521 public class ScrollView : Mx.Bin, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
522 [CCode (type = "ClutterActor*", has_construct_function = false)]
523 public ScrollView ();
524 public void ensure_visible (Clutter.Geometry geometry);
525 public bool get_enable_gestures ();
526 public bool get_enable_mouse_scrolling ();
527 public Mx.ScrollPolicy get_scroll_policy ();
528 public void set_enable_gestures (bool enabled);
529 public void set_enable_mouse_scrolling (bool enabled);
530 public void set_scroll_policy (Mx.ScrollPolicy policy);
531 public bool enable_gestures { get; set; }
532 public bool enable_mouse_scrolling { get; set; }
533 public Mx.ScrollPolicy scroll_policy { get; set; }
535 [CCode (cheader_filename = "mx/mx.h")]
536 public class Slider : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
537 [CCode (type = "ClutterActor*", has_construct_function = false)]
539 public double get_value ();
540 public void set_value (double value);
541 public double value { get; set; }
543 [CCode (cheader_filename = "mx/mx.h")]
544 public class Style : GLib.Object {
545 [CCode (has_construct_function = false)]
547 public void @get (Mx.Stylable stylable, ...);
548 public static unowned Mx.Style get_default ();
549 public void get_property (Mx.Stylable stylable, Clutter.ParamSpecColor pspec, GLib.Value value);
550 public void get_valist (Mx.Stylable stylable, string first_property_name, void* va_args);
551 public bool load_from_file (string filename) throws GLib.Error;
552 public virtual signal void changed ();
554 [CCode (cheader_filename = "mx/mx.h")]
555 public class Table : Mx.Widget, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
556 [CCode (type = "ClutterActor*", has_construct_function = false)]
558 public void add_actor_with_properties (Clutter.Actor actor, int row, int column, ...);
559 public int get_column_count ();
560 public int get_column_spacing ();
561 public int get_row_count ();
562 public int get_row_spacing ();
563 public void set_column_spacing (int spacing);
564 public void set_row_spacing (int spacing);
565 public int column_count { get; }
566 public int column_spacing { get; set; }
567 public int row_count { get; }
568 public int row_spacing { get; set; }
570 [CCode (cheader_filename = "mx/mx.h")]
571 public class TableChild : Clutter.ChildMeta {
572 [CCode (has_construct_function = false)]
573 protected TableChild ();
574 public static int get_column (Mx.Table table, Clutter.Actor child);
575 public static int get_column_span (Mx.Table table, Clutter.Actor child);
576 public static int get_row (Mx.Table table, Clutter.Actor child);
577 public static int get_row_span (Mx.Table table, Clutter.Actor child);
578 public static Mx.Align get_x_align (Mx.Table table, Clutter.Actor child);
579 public static bool get_x_expand (Mx.Table table, Clutter.Actor child);
580 public static bool get_x_fill (Mx.Table table, Clutter.Actor child);
581 public static Mx.Align get_y_align (Mx.Table table, Clutter.Actor child);
582 public static bool get_y_expand (Mx.Table table, Clutter.Actor child);
583 public static bool get_y_fill (Mx.Table table, Clutter.Actor child);
584 public static void set_column (Mx.Table table, Clutter.Actor child, int col);
585 public static void set_column_span (Mx.Table table, Clutter.Actor child, int span);
586 public static void set_row (Mx.Table table, Clutter.Actor child, int row);
587 public static void set_row_span (Mx.Table table, Clutter.Actor child, int span);
588 public static void set_x_align (Mx.Table table, Clutter.Actor child, Mx.Align align);
589 public static void set_x_expand (Mx.Table table, Clutter.Actor child, bool expand);
590 public static void set_x_fill (Mx.Table table, Clutter.Actor child, bool fill);
591 public static void set_y_align (Mx.Table table, Clutter.Actor child, Mx.Align align);
592 public static void set_y_expand (Mx.Table table, Clutter.Actor child, bool expand);
593 public static void set_y_fill (Mx.Table table, Clutter.Actor child, bool fill);
594 public int column { get; set; }
595 public int column_span { get; set; }
596 public int row { get; set; }
597 public int row_span { get; set; }
598 public Mx.Align x_align { get; set; }
599 public bool x_expand { get; set; }
600 public bool x_fill { get; set; }
601 public Mx.Align y_align { get; set; }
602 public bool y_expand { get; set; }
603 public bool y_fill { get; set; }
605 [CCode (cheader_filename = "mx/mx.h")]
606 public class TextureCache : GLib.Object {
607 [CCode (has_construct_function = false)]
608 protected TextureCache ();
610 public virtual void error_loading (GLib.Error error);
611 public unowned Clutter.Actor get_actor (string path);
612 public unowned Cogl.Bitmap get_cogl_texture (string path);
613 public static unowned Mx.TextureCache get_default ();
614 public int get_size ();
615 public unowned Clutter.Texture get_texture (string path);
616 public void load_cache (string filename);
618 public virtual void loaded (string path, Clutter.Texture texture);
620 [CCode (cheader_filename = "mx/mx.h")]
621 public class TextureFrame : Clutter.Actor, Clutter.Scriptable {
622 [CCode (type = "ClutterActor*", has_construct_function = false)]
623 public TextureFrame (Clutter.Texture texture, float top, float right, float bottom, float left);
624 public void get_border_values (float top, float right, float bottom, float left);
625 public unowned Clutter.Texture get_parent_texture ();
626 public void set_border_values (float top, float right, float bottom, float left);
627 public void set_parent_texture (Clutter.Texture texture);
629 public float bottom { get; set construct; }
631 public float left { get; set construct; }
632 public Clutter.Texture parent_texture { get; set construct; }
634 public float right { get; set construct; }
636 public float top { get; set construct; }
638 [CCode (cheader_filename = "mx/mx.h")]
639 public class Toggle : Mx.Widget, Clutter.Scriptable, Mx.Stylable {
640 [CCode (type = "ClutterActor*", has_construct_function = false)]
642 public bool get_active ();
643 public void set_active (bool active);
644 public bool active { get; set; }
646 [CCode (cheader_filename = "mx/mx.h")]
647 public class Toolbar : Mx.Bin, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable {
648 [CCode (type = "ClutterActor*", has_construct_function = false)]
650 public bool get_has_close_button ();
651 public void set_has_close_button (bool has_close_button);
652 public bool has_close_button { get; set; }
653 public virtual signal bool close_button_clicked ();
655 [CCode (cheader_filename = "mx/mx.h")]
656 public class Tooltip : Mx.FloatingWidget, Clutter.Scriptable, Mx.Stylable {
657 [CCode (has_construct_function = false)]
658 protected Tooltip ();
659 public unowned string get_text ();
660 public Clutter.Geometry get_tip_area ();
662 public void set_text (string text);
663 public void set_tip_area (Clutter.Geometry area);
665 public string text { get; set; }
666 public Clutter.Geometry tip_area { get; set; }
668 [CCode (cheader_filename = "mx/mx.h")]
669 public class Viewport : Mx.Bin, Clutter.Scriptable, Mx.Stylable, Clutter.Container, Mx.Focusable, Mx.Scrollable {
670 [CCode (type = "ClutterActor*", has_construct_function = false)]
672 public void get_origin (float x, float y, float z);
673 public bool get_sync_adjustments ();
674 public void set_origin (float x, float y, float z);
675 public void set_sync_adjustments (bool sync);
676 public bool sync_adjustments { get; set; }
678 public float x_origin { get; set; }
680 public float y_origin { get; set; }
682 public float z_origin { get; set; }
684 [CCode (cheader_filename = "mx/mx.h")]
685 public class Widget : Clutter.Actor, Clutter.Scriptable, Mx.Stylable {
686 [CCode (has_construct_function = false)]
688 public void get_available_area (Clutter.ActorBox allocation, Clutter.ActorBox area);
689 public unowned Clutter.Actor get_background_image ();
690 public unowned Clutter.Actor get_border_image ();
691 public bool get_disabled ();
692 public unowned Mx.Menu get_menu ();
693 public void get_padding (Mx.Padding padding);
694 public unowned string get_tooltip_text ();
695 public void hide_tooltip ();
696 public void long_press_cancel ();
697 public void long_press_query (Clutter.ButtonEvent event);
698 public virtual void paint_background ();
699 public void set_disabled (bool disabled);
700 public void set_menu (Mx.Menu menu);
701 public void set_tooltip_text (string text);
702 public void show_tooltip ();
703 public bool disabled { get; set; }
704 public Mx.Menu menu { get; set; }
705 public string tooltip_text { get; set; }
706 public virtual signal bool long_press (float action, float x, Mx.LongPressAction y);
708 [CCode (cheader_filename = "mx/mx.h")]
709 public class Window : GLib.Object {
710 [CCode (has_construct_function = false)]
712 public unowned Clutter.Actor get_child ();
713 public unowned Clutter.Stage get_clutter_stage ();
714 public static unowned Mx.Window get_for_stage (Clutter.Stage stage);
715 public bool get_has_toolbar ();
716 public unowned string get_icon_name ();
717 public bool get_small_screen ();
718 public unowned Mx.Toolbar get_toolbar ();
719 public void get_window_position (int x, int y);
720 public void set_child (Clutter.Actor actor);
721 public void set_has_toolbar (bool toolbar);
722 public void set_icon_from_cogl_texture (Cogl.Bitmap texture);
723 public void set_icon_name (string icon_name);
724 public void set_small_screen (bool small_screen);
725 public void set_window_position (int x, int y);
726 [CCode (has_construct_function = false)]
727 public Window.with_clutter_stage (Clutter.Stage stage);
728 public Clutter.Actor child { get; set; }
729 public Clutter.Stage clutter_stage { get; construct; }
730 public bool has_toolbar { get; set; }
732 public string icon_cogl_texture { set; }
733 public string icon_name { get; set; }
734 public bool small_screen { get; set; }
735 public Mx.Toolbar toolbar { get; }
736 public virtual signal void destroy ();
738 [CCode (cheader_filename = "mx/mx.h")]
739 public interface Draggable : Clutter.Actor {
740 public void disable ();
741 public void enable ();
742 public Mx.DragAxis get_axis ();
743 public unowned Clutter.Actor get_drag_actor ();
744 public uint get_drag_threshold ();
745 public bool is_enabled ();
746 public void set_axis (Mx.DragAxis axis);
747 public void set_drag_actor (Clutter.Actor actor);
748 public void set_drag_threshold (uint threshold);
749 public Mx.DragAxis axis { get; set; }
750 public Clutter.Actor drag_actor { get; set; }
751 public bool drag_enabled { get; set; }
752 public uint drag_threshold { get; set; }
753 public signal void drag_begin (float event_x, float event_y, int event_button, Clutter.ModifierType modifiers);
754 public signal void drag_end (float event_x, float event_y);
755 public signal void drag_motion (float delta_x, float delta_y);
757 [CCode (cheader_filename = "mx/mx.h")]
758 public interface Droppable : Clutter.Actor {
759 public bool accept_drop (Mx.Draggable draggable);
760 public void disable ();
761 public void enable ();
762 public bool is_enabled ();
763 public bool drop_enabled { get; set; }
764 public signal void drop (Clutter.Actor draggable, float event_x, float event_y, int button, Clutter.ModifierType modifiers);
765 public signal void over_in (Clutter.Actor draggable);
766 public signal void over_out (Clutter.Actor draggable);
768 [CCode (cheader_filename = "mx/mx.h")]
769 public interface Focusable {
770 public abstract unowned Mx.Focusable accept_focus (Mx.FocusHint hint);
771 public abstract unowned Mx.Focusable move_focus (Mx.FocusDirection direction, Mx.Focusable from);
773 [CCode (cheader_filename = "mx/mx.h")]
774 public interface ItemFactory {
775 public abstract unowned Clutter.Actor create ();
777 [CCode (cheader_filename = "mx/mx.h")]
778 public interface Scrollable {
779 public abstract void get_adjustments (out unowned Mx.Adjustment hadjustment, out unowned Mx.Adjustment vadjustment);
780 public abstract void set_adjustments (Mx.Adjustment hadjustment, Mx.Adjustment vadjustment);
782 [CCode (cheader_filename = "mx/mx.h")]
783 public interface Stylable {
784 public void apply_clutter_text_attributes (Clutter.Text text);
785 public void connect_change_notifiers ();
786 public unowned Clutter.ParamSpecColor find_property (string property_name);
787 public void @get (...);
788 public bool get_default_value (string property_name, GLib.Value value_out);
789 public void get_property (string property_name, GLib.Value value);
790 public abstract unowned Mx.Style get_style ();
791 public abstract unowned string get_style_class ();
792 public abstract unowned string get_style_pseudo_class ();
793 public unowned Clutter.ParamSpecColor list_properties (uint n_props);
794 public abstract void set_style (Mx.Style style);
795 public abstract void set_style_class (string style_class);
796 public abstract void set_style_pseudo_class (string pseudo_class);
798 public signal void style_changed (Mx.StyleChangedFlags flags);
800 [CCode (type_id = "MX_TYPE_PADDING", cheader_filename = "mx/mx.h")]
801 public struct Padding {
807 [CCode (cprefix = "MX_ALIGN_", cheader_filename = "mx/mx.h")]
813 [CCode (cprefix = "MX_APPLICATION_", cheader_filename = "mx/mx.h")]
815 public enum ApplicationFlags {
819 [CCode (cprefix = "MX_DRAG_AXIS_", cheader_filename = "mx/mx.h")]
820 public enum DragAxis {
825 [CCode (cprefix = "MX_FOCUS_DIRECTION_", cheader_filename = "mx/mx.h")]
826 public enum FocusDirection {
835 [CCode (cprefix = "MX_FOCUS_HINT_", cheader_filename = "mx/mx.h")]
836 public enum FocusHint {
841 [CCode (cprefix = "MX_FONT_WEIGHT_", cheader_filename = "mx/mx.h")]
842 public enum FontWeight {
848 [CCode (cprefix = "MX_LONG_PRESS_", cheader_filename = "mx/mx.h")]
849 public enum LongPressAction {
854 [CCode (cprefix = "MX_ORIENTATION_", cheader_filename = "mx/mx.h")]
855 public enum Orientation {
859 [CCode (cprefix = "MX_SCROLL_POLICY_", cheader_filename = "mx/mx.h")]
860 public enum ScrollPolicy {
866 [CCode (cprefix = "MX_STYLE_CHANGED_", cheader_filename = "mx/mx.h")]
868 public enum StyleChangedFlags {
872 [CCode (cprefix = "MX_STYLE_ERROR_INVALID_", cheader_filename = "mx/mx.h")]
873 public enum StyleError {
876 [CCode (cheader_filename = "mx/mx.h")]
877 public delegate void ClipboardCallbackFunc (Mx.Clipboard clipboard, string text);
878 [CCode (cheader_filename = "mx/mx.h")]
879 public const int MAJOR_VERSION;
880 [CCode (cheader_filename = "mx/mx.h")]
881 public const int MICRO_VERSION;
882 [CCode (cheader_filename = "mx/mx.h")]
883 public const int MINOR_VERSION;
884 [CCode (cheader_filename = "mx/mx.h")]
885 public const int VERSION_HEX;
886 [CCode (cheader_filename = "mx/mx.h")]
887 public const string VERSION_S;
888 [CCode (cheader_filename = "mx/mx.h")]
889 public static void actor_box_clamp_to_pixels (Clutter.ActorBox box);
890 [CCode (cheader_filename = "mx/mx.h")]
891 public static void allocate_align_fill (Clutter.Actor child, Clutter.ActorBox childbox, Mx.Align x_alignment, Mx.Align y_alignment, bool x_fill, bool y_fill);
892 [CCode (cheader_filename = "mx/mx.h")]
893 public static void font_weight_set_from_string (GLib.Value value, string str);
894 [CCode (cheader_filename = "mx/mx.h")]
895 public static void set_locale ();
896 [CCode (cheader_filename = "mx/mx.h")]
897 public static unowned string utils_format_time (GLib.TimeVal time_);