1 /* hildon-1.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Hildon", lower_case_cprefix = "hildon_")]
5 [CCode (cprefix = "HILDON_CAPTION_POSITION_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
6 public enum CaptionIconPosition {
10 [CCode (cprefix = "HILDON_CAPTION_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
11 public enum CaptionStatus {
15 [CCode (cprefix = "HILDON_DATE_TIME_ERROR_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
16 public enum DateTimeError {
42 [CCode (cprefix = "HILDON_NOTE_TYPE_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
43 public enum NoteType {
50 [CCode (cprefix = "HILDON_NUMBER_EDITOR_ERROR_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
51 public enum NumberEditorErrorType {
56 [CCode (cprefix = "HILDON_WINDOW_CO_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
57 public enum WindowClipboardOperation {
62 [CCode (cprefix = "HILDON_WIZARD_DIALOG_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
63 public enum WizardDialogResponse {
69 [CCode (cprefix = "HILDON_CALENDAR_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
71 public enum CalendarDisplayOptions {
78 [CCode (cheader_filename = "hildon/hildon.h")]
79 public class Banner : Gtk.Window, Atk.Implementor, Gtk.Buildable {
80 public void set_fraction (double fraction);
81 public void set_icon (string icon_name);
82 public void set_icon_from_file (string icon_file);
83 public void set_markup (string markup);
84 public void set_text (string text);
85 public void set_timeout (uint timeout);
86 public static weak Gtk.Widget show_animation (Gtk.Widget widget, string animation_name, string text);
87 public static weak Gtk.Widget show_information (Gtk.Widget widget, string icon_name, string text);
88 public static weak Gtk.Widget show_information_with_markup (Gtk.Widget widget, string icon_name, string markup);
89 public static weak Gtk.Widget show_informationf (Gtk.Widget widget, string icon_name, string format);
90 public static weak Gtk.Widget show_progress (Gtk.Widget widget, Gtk.ProgressBar bar, string text);
92 public bool is_timed { get; construct; }
94 public Gtk.Window parent_window { get; construct; }
96 public uint timeout { get; construct; }
98 [CCode (cheader_filename = "hildon/hildon.h")]
99 public class BreadCrumbTrail : Gtk.Container, Atk.Implementor, Gtk.Buildable {
100 public void clear ();
101 public BreadCrumbTrail ();
103 public void push (Hildon.BreadCrumb item, void* id, GLib.DestroyNotify notify);
104 public void push_icon (string text, Gtk.Widget icon, void* id, GLib.DestroyNotify destroy);
105 public void push_text (string text, void* id, GLib.DestroyNotify notify);
106 public virtual signal bool crumb_clicked (void* id);
107 public virtual signal void move_parent ();
109 [CCode (cheader_filename = "hildon/hildon.h")]
110 public class Calendar : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
111 public weak Gtk.Style header_style;
112 public weak Gtk.Style label_style;
113 public int selected_day;
115 public weak int[] day_month;
116 public int num_marked_dates;
118 public weak int[] marked_date;
119 public Hildon.CalendarDisplayOptions display_flags;
121 public weak Gdk.Color[] marked_date_color;
122 public weak Gdk.GC gc;
123 public weak Gdk.GC xor_gc;
124 public int focus_row;
125 public int focus_col;
126 public int highlight_row;
127 public int highlight_col;
129 public weak char[] grow_space;
130 public void clear_marks ();
131 public void freeze ();
132 public void get_date (uint year, uint month, uint day);
133 public Hildon.CalendarDisplayOptions get_display_options ();
134 public bool mark_day (uint day);
136 public void select_day (uint day);
137 public bool select_month (uint month, uint year);
138 public void set_display_options (Hildon.CalendarDisplayOptions flags);
140 public bool unmark_day (uint day);
142 public int day { get; set; }
144 public int max_year { get; set; }
146 public int min_year { get; set; }
148 public int month { get; set; }
150 public bool no_month_change { get; set; }
152 public bool show_day_names { get; set; }
154 public bool show_heading { get; set; }
156 public bool show_week_numbers { get; set; }
158 public int week_start { get; set; }
160 public int year { get; set; }
161 public virtual signal void day_selected ();
162 public virtual signal void day_selected_double_click ();
163 public virtual signal void erroneous_date ();
164 public virtual signal void month_changed ();
165 public virtual signal void next_month ();
166 public virtual signal void next_year ();
167 public virtual signal void prev_month ();
168 public virtual signal void prev_year ();
169 public virtual signal void selected_date ();
171 [CCode (cheader_filename = "hildon/hildon.h")]
172 public class CalendarPopup : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
173 public void get_date (uint year, uint month, uint day);
174 public CalendarPopup (Gtk.Window parent, uint year, uint month, uint day);
175 public void set_date (uint year, uint month, uint day);
177 public int day { get; set; }
179 public uint max_year { set; }
181 public uint min_year { set; }
183 public int month { get; set; }
185 public int year { get; set; }
187 [CCode (cheader_filename = "hildon/hildon.h")]
188 public class Caption : Gtk.EventBox, Atk.Implementor, Gtk.Buildable {
189 public bool get_child_expand ();
190 public weak Gtk.Widget get_icon_image ();
191 public Hildon.CaptionIconPosition get_icon_position ();
192 public weak string get_label ();
193 public float get_label_alignment ();
194 public weak string get_separator ();
195 public weak Gtk.SizeGroup get_size_group ();
196 public Hildon.CaptionStatus get_status ();
197 public bool is_mandatory ();
198 public Caption (Gtk.SizeGroup group, string value, Gtk.Widget control, Gtk.Widget icon, Hildon.CaptionStatus flag);
199 public void set_child_expand (bool expand);
200 public void set_icon_image (Gtk.Widget icon);
201 public void set_icon_position (Hildon.CaptionIconPosition pos);
202 public void set_label (string label);
203 public void set_label_alignment (float alignment);
204 public void set_label_markup (string markup);
205 public void set_separator (string separator);
206 public void set_size_group (Gtk.SizeGroup new_group);
207 public void set_status (Hildon.CaptionStatus flag);
209 public Gtk.Widget icon { get; set; }
210 public Hildon.CaptionIconPosition icon_position { get; set; }
211 public string label { get; set; }
213 public string markup { set; }
214 public string separator { get; set; }
215 public Gtk.SizeGroup size_group { get; set; }
216 public Hildon.CaptionStatus status { get; set; }
217 public virtual signal void activate ();
219 [CCode (cheader_filename = "hildon/hildon.h")]
220 public class CodeDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
221 public void clear_code ();
222 public weak string get_code ();
223 public CodeDialog ();
224 public void set_help_text (string text);
225 public void set_input_sensitive (bool sensitive);
226 public virtual signal void input ();
228 [CCode (cheader_filename = "hildon/hildon.h")]
229 public class ColorButton : Gtk.Button, Atk.Implementor, Gtk.Buildable {
230 public void get_color (out Gdk.Color color);
231 public bool get_popup_shown ();
232 public ColorButton ();
233 public ColorButton.with_color (Gdk.Color color);
234 public void popdown ();
235 public void set_color (Gdk.Color color);
236 public Gdk.Color color { get; set; }
237 public bool popup_shown { get; }
239 [CCode (cheader_filename = "hildon/hildon.h")]
240 public class ColorChooser : Gtk.Widget, Atk.Implementor, Gtk.Buildable {
241 public void get_color (out Gdk.Color color);
242 public ColorChooser ();
243 public virtual void set_color (Gdk.Color color);
244 public Gdk.Color color { get; set; }
245 public virtual signal void color_changed ();
247 [CCode (cheader_filename = "hildon/hildon.h")]
248 public class ColorChooserDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
249 public void get_color (out Gdk.Color color);
250 public ColorChooserDialog ();
251 public void set_color (Gdk.Color color);
253 [CCode (cheader_filename = "hildon/hildon.h")]
254 public class Controlbar : Gtk.Scale, Atk.Implementor, Gtk.Buildable {
255 public int get_max ();
256 public int get_min ();
257 public int get_value ();
258 public Controlbar ();
259 public void set_max (int max);
260 public void set_min (int min);
261 public void set_range (int min, int max);
262 public void set_value (int value);
263 public int max { get; set; }
264 public int min { get; set; }
265 public int value { get; set; }
266 public virtual signal void end_reached (bool end);
268 [CCode (cheader_filename = "hildon/hildon.h")]
269 public class DateEditor : Gtk.Container, Atk.Implementor, Gtk.Buildable {
270 public void get_date (uint year, uint month, uint day);
271 public uint get_day ();
272 public uint get_month ();
273 public uint get_year ();
274 public DateEditor ();
275 public void set_date (uint year, uint month, uint day);
276 public bool set_day (uint day);
277 public bool set_month (uint month);
278 public bool set_year (uint year);
279 public uint day { get; set; }
281 public uint max_year { get; set; }
283 public uint min_year { get; set; }
284 public uint month { get; set; }
285 public uint year { get; set; }
286 public virtual signal bool date_error (Hildon.DateTimeError type);
288 [CCode (cheader_filename = "hildon/hildon.h")]
289 public class FindToolbar : Gtk.Toolbar, Atk.Implementor, Gtk.Buildable {
290 public int get_active ();
291 public bool get_active_iter (out Gtk.TreeIter iter);
292 public int get_last_index ();
293 public void highlight_entry (bool get_focus);
294 public FindToolbar (string label);
295 public FindToolbar.with_model (string label, Gtk.ListStore model, int column);
296 public void set_active (int index);
297 public void set_active_iter (Gtk.TreeIter iter);
299 public int column { get; set; }
301 public int history_limit { get; set construct; }
303 public string label { get; set construct; }
305 public Gtk.ListStore list { get; set; }
307 public int max_characters { get; set construct; }
309 public string prefix { get; set; }
310 public virtual signal void close ();
311 public virtual signal bool history_append ();
312 public virtual signal void invalid_input ();
313 public virtual signal void search ();
315 [CCode (cheader_filename = "hildon/hildon.h")]
316 public class FontSelectionDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
317 public weak string get_preview_text ();
318 public FontSelectionDialog (Gtk.Window parent, string title);
319 public void set_preview_text (string text);
321 public bool bold { get; set; }
323 public bool bold_set { get; set construct; }
325 public Gdk.Color color { get; set; }
327 public bool color_set { get; set construct; }
329 public string family { get; set; }
331 public bool family_set { get; set construct; }
333 public double font_scaling { get; set; }
335 public bool italic { get; set; }
337 public bool italic_set { get; set construct; }
339 public int position { get; set; }
341 public bool position_set { get; set construct; }
342 public string preview_text { get; set; }
344 public int size { get; set; }
346 public bool size_set { get; set construct; }
348 public bool strikethrough { get; set; }
350 public bool strikethrough_set { get; set construct; }
352 public bool underline { get; set; }
354 public bool underline_set { get; set construct; }
356 [CCode (cheader_filename = "hildon/hildon.h")]
357 public class GetPasswordDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
358 public weak string get_password ();
359 public GetPasswordDialog (Gtk.Window parent, bool get_old);
360 public GetPasswordDialog.with_default (Gtk.Window parent, string password, bool get_old);
361 public void set_caption (string new_caption);
362 public void set_max_characters (int max_characters);
363 public void set_message (string message);
365 public string caption_label { get; set; }
367 public bool get_old { get; construct; }
369 public int max_characters { get; set; }
371 public string message { get; set; }
373 public bool numbers_only { get; set; }
375 public string password { get; set; }
377 [CCode (cheader_filename = "hildon/hildon.h")]
378 public class HVolumebar : Hildon.Volumebar, Atk.Implementor, Gtk.Buildable {
379 public HVolumebar ();
381 [CCode (cheader_filename = "hildon/hildon.h")]
382 public class LoginDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
383 public weak string get_password ();
384 public weak string get_username ();
385 public LoginDialog (Gtk.Window parent);
386 public LoginDialog.with_default (Gtk.Window parent, string name, string password);
387 public void set_message (string msg);
389 public string message { get; set; }
391 public string password { get; set; }
393 public string username { get; set; }
395 [CCode (cheader_filename = "hildon/hildon.h")]
396 public class Note : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
397 public Note.cancel_with_progress_bar (Gtk.Window parent, string description, Gtk.ProgressBar progressbar);
398 public Note.confirmation (Gtk.Window parent, string description);
399 public Note.confirmation_add_buttons (Gtk.Window parent, string description);
400 public Note.confirmation_with_icon_name (Gtk.Window parent, string description, string icon_name);
401 public Note.information (Gtk.Window parent, string description);
402 public Note.information_with_icon_name (Gtk.Window parent, string description, string icon_name);
403 public void set_button_text (string text);
404 public void set_button_texts (string text_ok, string text_cancel);
406 public string description { get; set; }
408 public string icon { get; set; }
410 public Gtk.ProgressBar progressbar { get; set; }
412 public string stock_icon { get; set; }
414 [CCode (cheader_filename = "hildon/hildon.h")]
415 public class NumberEditor : Gtk.Container, Atk.Implementor, Gtk.Buildable {
416 public int get_value ();
417 public NumberEditor (int min, int max);
418 public void set_range (int min, int max);
419 public void set_value (int value);
420 public int value { get; set; }
421 public virtual signal bool range_error (Hildon.NumberEditorErrorType type);
423 [CCode (cheader_filename = "hildon/hildon.h")]
424 public class Program : GLib.Object {
425 public void add_window (Hildon.Window window);
426 public bool get_can_hibernate ();
427 public weak Gtk.Menu get_common_menu ();
428 public weak Gtk.Toolbar get_common_toolbar ();
429 public static weak Hildon.Program get_instance ();
430 public bool get_is_topmost ();
431 public void remove_window (Hildon.Window window);
432 public void set_can_hibernate (bool can_hibernate);
433 public void set_common_menu (Gtk.Menu menu);
434 public void set_common_toolbar (Gtk.Toolbar toolbar);
435 public bool can_hibernate { get; set; }
436 public bool is_topmost { get; }
438 [CCode (cheader_filename = "hildon/hildon.h")]
439 public class RangeEditor : Gtk.Container, Atk.Implementor, Gtk.Buildable {
440 public int get_higher ();
441 public int get_lower ();
442 public int get_max ();
443 public int get_min ();
444 public void get_range (int start, int end);
445 public weak string get_separator ();
446 public RangeEditor ();
447 public RangeEditor.with_separator (string separator);
448 public void set_higher (int value);
449 public void set_limits (int start, int end);
450 public void set_lower (int value);
451 public void set_max (int value);
452 public void set_min (int value);
453 public void set_range (int start, int end);
454 public void set_separator (string separator);
455 public int higher { get; set construct; }
456 public int lower { get; set construct; }
457 public int max { get; set construct; }
458 public int min { get; set construct; }
459 public string separator { get; set construct; }
461 [CCode (cheader_filename = "hildon/hildon.h")]
462 public class Seekbar : Gtk.Scale, Atk.Implementor, Gtk.Buildable {
463 public uint get_fraction ();
464 public int get_position ();
465 public int get_total_time ();
467 public void set_fraction (uint fraction);
468 public void set_position (int time);
469 public void set_total_time (int time);
470 public double fraction { get; set; }
471 public double position { get; set; }
472 public double total_time { get; set; }
474 [CCode (cheader_filename = "hildon/hildon.h")]
475 public class SetPasswordDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
476 public weak string get_password ();
477 public bool get_protected ();
478 public SetPasswordDialog (Gtk.Window parent, bool modify_protection);
479 public SetPasswordDialog.with_default (Gtk.Window parent, string password, bool modify_protection);
480 public void set_message (string message);
482 public string message { get; set; }
484 public bool modify_protection { get; construct; }
486 public string password { get; set; }
488 [CCode (cheader_filename = "hildon/hildon.h")]
489 public class SortDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
490 public int add_sort_key (string sort_key);
491 public int add_sort_key_reversed (string sort_key);
492 public int get_sort_key ();
493 public Gtk.SortType get_sort_order ();
494 public SortDialog (Gtk.Window parent);
495 public void set_sort_key (int key);
496 public void set_sort_order (Gtk.SortType order);
497 public int sort_key { get; set; }
498 public Gtk.SortType sort_order { get; set; }
500 [CCode (cheader_filename = "hildon/hildon.h")]
501 public class TimeEditor : Gtk.Container, Atk.Implementor, Gtk.Buildable {
502 public uint get_duration_max ();
503 public uint get_duration_min ();
504 public bool get_duration_mode ();
505 public void get_duration_range (uint min_seconds, uint max_seconds);
506 public bool get_show_hours ();
507 public bool get_show_seconds ();
508 public uint get_ticks ();
509 public void get_time (uint hours, uint minutes, uint seconds);
510 public static void get_time_separators (Gtk.Label hm_sep_label, Gtk.Label ms_sep_label);
511 public TimeEditor ();
512 public void set_duration_max (uint duration_max);
513 public void set_duration_min (uint duration_min);
514 public void set_duration_mode (bool duration_mode);
515 public void set_duration_range (uint min_seconds, uint max_seconds);
516 public void set_show_hours (bool show_hours);
517 public void set_show_seconds (bool show_seconds);
518 public void set_ticks (uint ticks);
519 public void set_time (uint hours, uint minutes, uint seconds);
520 public uint duration_max { get; set; }
521 public uint duration_min { get; set; }
522 public bool duration_mode { get; set; }
523 public bool show_hours { get; set; }
524 public bool show_seconds { get; set; }
525 public uint ticks { get; set; }
526 public virtual signal bool time_error (Hildon.DateTimeError type);
528 [CCode (cheader_filename = "hildon/hildon.h")]
529 public class TimePicker : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
530 public void get_time (uint hours, uint minutes);
531 public TimePicker (Gtk.Window parent);
532 public void set_time (uint hours, uint minutes);
534 public uint minutes { get; set; }
536 [CCode (cheader_filename = "hildon/hildon.h")]
537 public class VVolumebar : Hildon.Volumebar, Atk.Implementor, Gtk.Buildable {
538 public VVolumebar ();
540 [CCode (cheader_filename = "hildon/hildon.h")]
541 public class Volumebar : Gtk.Container, Atk.Implementor, Gtk.Buildable {
542 public weak Gtk.Adjustment get_adjustment ();
543 public double get_level ();
544 public bool get_mute ();
545 public void set_level (double level);
546 public void set_mute (bool mute);
547 public void set_range_insensitive_message (string message);
548 public void set_range_insensitive_messagef (string format);
550 public bool can_focus { get; set construct; }
552 public bool has_mute { get; set construct; }
553 public double level { get; set; }
554 public bool mute { get; set; }
555 public virtual signal void level_changed ();
556 public virtual signal void mute_toggled ();
558 [CCode (cheader_filename = "hildon/hildon.h")]
559 public class VolumebarRange : Gtk.Scale, Atk.Implementor, Gtk.Buildable {
560 public double get_level ();
561 public VolumebarRange (Gtk.Orientation orientation);
562 public void set_level (double level);
563 public double level { get; set; }
565 [CCode (cheader_filename = "hildon/hildon.h")]
566 public class WeekdayPicker : Gtk.Container, Atk.Implementor, Gtk.Buildable {
567 public bool isset_day (GLib.DateWeekday day);
568 public WeekdayPicker ();
569 public void set_all ();
570 public void set_day (GLib.DateWeekday day);
571 public void toggle_day (GLib.DateWeekday day);
572 public void unset_all ();
573 public void unset_day (GLib.DateWeekday day);
574 public virtual signal void selection_changed (int p0);
576 [CCode (cheader_filename = "hildon/hildon.h")]
577 public class Window : Gtk.Window, Atk.Implementor, Gtk.Buildable {
578 public void add_toolbar (Gtk.Toolbar toolbar);
579 public void add_with_scrollbar (Gtk.Widget child);
580 public bool get_is_topmost ();
581 public weak Gtk.Menu get_menu ();
583 public void remove_toolbar (Gtk.Toolbar toolbar);
584 public void set_menu (Gtk.Menu menu);
585 public bool is_topmost { get; }
586 public virtual signal void clipboard_operation (int operation);
588 [CCode (cheader_filename = "hildon/hildon.h")]
589 public class WizardDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
590 public WizardDialog (Gtk.Window parent, string wizard_name, Gtk.Notebook notebook);
592 public bool autotitle { get; set; }
594 public string wizard_name { get; set; }
596 public Gtk.Notebook wizard_notebook { get; set; }
598 [CCode (cheader_filename = "hildon/hildon.h")]
599 public interface BreadCrumb : Gtk.Widget {
600 public void activated ();
601 public abstract void get_natural_size (int width, int height);
602 public virtual signal void crumb_activated ();
604 [CCode (cheader_filename = "hildon/hildon.h")]
605 public const int MAJOR_VERSION;
606 [CCode (cheader_filename = "hildon/hildon.h")]
607 public const int MARGIN_DEFAULT;
608 [CCode (cheader_filename = "hildon/hildon.h")]
609 public const int MARGIN_DOUBLE;
610 [CCode (cheader_filename = "hildon/hildon.h")]
611 public const int MARGIN_HALF;
612 [CCode (cheader_filename = "hildon/hildon.h")]
613 public const int MARGIN_TRIPLE;
614 [CCode (cheader_filename = "hildon/hildon.h")]
615 public const int MICRO_VERSION;
616 [CCode (cheader_filename = "hildon/hildon.h")]
617 public const int MINOR_VERSION;
618 [CCode (cheader_filename = "hildon/hildon.h")]
619 public const int WINDOW_LONG_PRESS_TIME;
620 [CCode (cheader_filename = "hildon/hildon.h")]
621 public static int get_icon_pixel_size (Gtk.IconSize size);
622 [CCode (cheader_filename = "hildon/hildon.h")]
623 public static bool helper_event_button_is_finger (Gdk.EventButton event);
624 [CCode (cheader_filename = "hildon/hildon.h")]
625 public static void helper_set_insensitive_message (Gtk.Widget widget, string message);
626 [CCode (cheader_filename = "hildon/hildon.h")]
627 public static void helper_set_insensitive_messagef (Gtk.Widget widget, string format);
628 [CCode (cheader_filename = "hildon/hildon.h")]
629 public static ulong helper_set_logical_color (Gtk.Widget widget, Gtk.RcFlags rcflags, Gtk.StateType state, string logicalcolorname);
630 [CCode (cheader_filename = "hildon/hildon.h")]
631 public static ulong helper_set_logical_font (Gtk.Widget widget, string logicalfontname);
632 [CCode (cheader_filename = "hildon/hildon.h")]
633 public static void helper_set_thumb_scrollbar (Gtk.ScrolledWindow win, bool thumb);
634 [CCode (cheader_filename = "hildon/hildon.h")]
635 public static void play_system_sound (string sample);