File: gtkMisc.props

package info (click to toggle)
lablgtk3 3.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,760 kB
  • sloc: ml: 40,727; ansic: 22,210; makefile: 156; sh: 17
file content (172 lines) | stat: -rw-r--r-- 6,043 bytes parent folder | download | duplicates (2)
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
(* $Id$ *)

initializer "ml_gtkmisc_init"

header {
open Gtk
}

conversions {
  GtkStock "GtkStock.conv"
}

boxed {
  GdkEventButton    "GdkEvent.Button.t"
}

classes {
  GdkPixbuf "GdkPixbuf.pixbuf"
  GtkMenu "Gtk.menu obj"
}

prefix ""
class GtkStatusIcon set wrap wrapsig : GObject {
  "screen"          GdkScreen        : Read / Write
  "visible"         gboolean         : Read / Write
  "tooltip_markup"  gchararray       : Read / Write
  "tooltip_text"    gchararray       : Read / Write
  method set_from_pixbuf : "GdkPixbuf.pixbuf -> unit"
  method set_from_file : "string -> unit"
  method set_from_stock : "string -> unit"
  method set_from_icon_name : "string -> unit"
  method get_pixbuf : "GdkPixbuf.pixbuf"
  method get_stock : "string"
  method get_icon_name : "string"
  method get_size : "int"
  method set_screen : "Gdk.screen -> unit"
  method get_screen : "Gdk.screen"
  method is_embedded : "bool"
  signal activate
  signal popup_menu : guint guint
  signal size_changed : gint
}

prefix "Gtk"

class Misc abstract set wrap : Widget {
  "xalign"               gfloat               : Read / Write
  "yalign"               gfloat               : Read / Write
  "xpad"                 gint                 : Read / Write
  "ypad"                 gint                 : Read / Write
}

class Label set wrap : Misc {
  "label"	         gchararray           : Read / Write
  "use-markup"           gboolean             : Read / Write
  "use-underline"        gboolean             : Read / Write
  "mnemonic-keyval"      guint                : Read
  "mnemonic-widget"      GtkWidget_opt        : Read / Write
  "justify"              GtkJustification     : Read / Write
  "wrap"(line_wrap)      gboolean             : Read / Write
  "pattern"              gchararray           : Write
  "selectable"           gboolean             : Read / Write
  "attributes"           PangoAttrList        : Read / Write
  "cursor-position"      gint                 : Read
  "selection-bound"      gint                 : Read

  (* new properties in GTK 2.6 *)
  "angle"                gdouble               : Read / Write / NoSet
  "ellipsize"            PangoEllipsizeMode    : Read / Write
  "max-width-chars"      gint                  : Read / Write / NoSet
  "single-line-mode"     gboolean              : Read / Write / NoSet
  "width-chars"          gint                  : Read / Write / NoSet

  method get_text : "string"
  method set_text : "string -> unit"
  method select_region : "int -> int -> unit"
  method get_selection_bounds : "(int * int) option"
  method get_layout : "Pango.layout"
  signal copy_clipboard
  signal move_cursor : GtkMovementStep gint gboolean
  signal populate_popup : GtkMenu
}

(* not in 3
class TipsQuery set wrap wrapsig : Label {
  "caller"               GtkWidget_opt        : Read / Write
  "emit-always"          gboolean             : Read / Write
  "label-inactive"       gchararray           : Read / Write
  "label-no-tip"         gchararray           : Read / Write
  method start_query
  method stop_query
  signal start_query
  signal stop_query
  signal widget_entered :  GtkWidget_opt text:string privat:string
  signal widget_selected :
    GtkWidget_opt text:string privat:string GdkEventButton -> bool
}
*)

class Arrow set wrap : Misc {
  "arrow-type"(kind)     GtkArrowType         : Read / Write
  "shadow-type"(shadow)  GtkShadowType        : Read / Write
}

class Image set wrap : Misc {
  "file"                 gchararray           : Write
  "gicon"                GIcon                : Read / Write
  "icon-name"            gchararray           : Read / Write
  "icon-set"             GtkIconSet           : Read / Write
  "icon-size"            GtkIconSize          : Read / Write
  "pixbuf"               GdkPixbuf            : Read / Write
  "pixbuf-animation"     GdkPixbufAnimation   : Read / Write
  "pixel-size"           gint                 : Read / Write
  "resource"             gchararray           : Read / Write
  "stock"                GtkStock             : Read / Write
  "storage-type"         GtkImageType         : Read
  "surface"              CairoSurface         : Read / Write
  "use-fallback"         gboolean             : Read / Write
  method clear
}

class ColorSelection set wrap : Box {
  "current-alpha"(alpha) guint                : Read / Write
  "current-color"(color) GdkColor             : Read / Write
  "has-opacity-control"  gboolean             : Read / Write
  "has-palette"          gboolean             : Read / Write
  signal color_changed
}

class FontSelection set wrap : Box {
  (* bug in Gtk: "font"                 GdkFont_opt          : Read *)
  "font-name"            gchararray           : Read / Write
  "preview-text"         gchararray           : Read / Write
}

class Statusbar set : Box {
 "shadow-type"           GtkShadowType        : Read
  method get_context_id : "string -> statusbar_context"
  method push : "statusbar_context -> text:string -> statusbar_message"
  method pop : "statusbar_context ->  unit"
  method remove : "statusbar_context -> statusbar_message -> unit"
  signal text_popped : guint gchararray
  signal text_pushed : guint gchararray
}


class Calendar wrap wrapsig : Widget {
  "day"                  gint                  : Read / Write
  "month"                gint                  : Read / Write
  "year"                 gint                  : Read / Write
  method select_month : "month:int -> year:int -> unit"
  method select_day : "int -> unit"
  method mark_day : "int -> unit"
  method unmark_day : "int -> unit"
  method clear_marks
  method set_display_options : "Gtk.Tags.calendar_display_options list -> unit"
  method get_date : "int * int * int" (* year * month * day *)
  signal day_selected
  signal day_selected_double_click
  signal month_changed
  signal next_month
  signal next_year
  signal prev_month
  signal prev_year
}

class DrawingArea : Widget {
}

class Separator hv : Widget {
  "orientation"          GtkOrientation       : Read / Write / NoSet
}