/usr/lib/ocaml/lablgtk2/gPack.mli is in liblablgtk2-ocaml-dev 2.18.3+dfsg-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 | (**************************************************************************)
(* Lablgtk *)
(* *)
(* This program is free software; you can redistribute it *)
(* and/or modify it under the terms of the GNU Library General *)
(* Public License as published by the Free Software Foundation *)
(* version 2, with the exception described in file COPYING which *)
(* comes with the library. *)
(* *)
(* This program is distributed in the hope that it will be useful, *)
(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)
(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)
(* GNU Library General Public License for more details. *)
(* *)
(* You should have received a copy of the GNU Library General *)
(* Public License along with this program; if not, write to the *)
(* Free Software Foundation, Inc., 59 Temple Place, Suite 330, *)
(* Boston, MA 02111-1307 USA *)
(* *)
(* *)
(**************************************************************************)
(* $Id$ *)
open Gtk
open GObj
open GContainer
(** Several container widgets *)
(** {3 Boxes} *)
(** @gtkdoc gtk GtkBox *)
class box_skel : ([> box] as 'a) obj ->
object
inherit GContainer.container
val obj : 'a obj
method pack :
?from:Tags.pack_type ->
?expand:bool -> ?fill:bool -> ?padding:int -> widget -> unit
(** @param from default value is [`START]
@param expand default value is [false]
@param fill default value is [true], ignored if [expand] is [false] *)
method reorder_child : widget -> pos:int -> unit
method set_child_packing :
?from:Tags.pack_type ->
?expand:bool -> ?fill:bool -> ?padding:int -> widget -> unit
method set_homogeneous : bool -> unit
method homogeneous : bool
method set_spacing : int -> unit
method spacing : int
end
(** A base class for box containers
@gtkdoc gtk GtkBox *)
class box : ([> Gtk.box] as 'a) obj ->
object
inherit box_skel
val obj : 'a obj
method connect : GContainer.container_signals
end
(** @gtkdoc gtk GtkBox
@param homogeneous default value is [false] *)
val box :
Tags.orientation ->
?homogeneous:bool ->
?spacing:int ->
?border_width:int ->
?width:int ->
?height:int -> ?packing:(widget -> unit) -> ?show:bool -> unit -> box
(** @gtkdoc gtk GtkVBox
@param homogeneous default value is [false] *)
val vbox :
?homogeneous:bool ->
?spacing:int ->
?border_width:int ->
?width:int ->
?height:int -> ?packing:(widget -> unit) -> ?show:bool -> unit -> box
(** @gtkdoc gtk GtkHVBox
@param homogeneous default value is [false] *)
val hbox :
?homogeneous:bool ->
?spacing:int ->
?border_width:int ->
?width:int ->
?height:int -> ?packing:(widget -> unit) -> ?show:bool -> unit -> box
(** @gtkdoc gtk GtkButtonBox *)
class button_box : ([> Gtk.button_box] as 'a) obj ->
object
inherit box
val obj : 'a obj
method set_child_ipadding : ?x:int -> ?y:int -> unit -> unit (** @deprecated . *)
method set_child_size : ?width:int -> ?height:int -> unit -> unit (** @deprecated . *)
method set_layout : Gtk.Tags.button_box_style -> unit
method layout : Gtk.Tags.button_box_style
method get_child_secondary : widget -> bool (** @since GTK 2.4 *)
method set_child_secondary : widget -> bool -> unit (** @since GTK 2.4 *)
end
(** @gtkdoc gtk GtkButtonBox *)
val button_box :
Tags.orientation ->
?spacing:int ->
?child_width:int ->
?child_height:int ->
?child_ipadx:int ->
?child_ipady:int ->
?layout:GtkPack.BBox.bbox_style ->
?border_width:int ->
?width:int ->
?height:int ->
?packing:(widget -> unit) -> ?show:bool -> unit -> button_box
(** {3 GtkTable} *)
(** Pack widgets in regular patterns
@gtkdoc gtk GtkTable *)
class table :
Gtk.table obj ->
object
inherit GContainer.container_full
val obj : Gtk.table obj
method attach :
left:int ->
top:int ->
?right:int ->
?bottom:int ->
?expand:Tags.expand_type ->
?fill:Tags.expand_type ->
?shrink:Tags.expand_type ->
?xpadding:int -> ?ypadding:int -> widget -> unit
(** @param left column number to attach the left side of the widget to
@param top row number to attach the top of the widget to
@param right default value is [left+1]
@param bottom default value is [top+1]
@param expand default value is [`NONE]
@param fill default value is [`BOTH]
@param shrink default value is [`NONE] *)
method col_spacings : int
method columns : int
method homogeneous : bool
method row_spacings : int
method rows : int
method set_col_spacing : int -> int -> unit
method set_col_spacings : int -> unit
method set_columns : int -> unit
method set_homogeneous : bool -> unit
method set_row_spacing : int -> int -> unit
method set_row_spacings : int -> unit
method set_rows : int -> unit
end
(** @gtkdoc gtk GtkTable *)
val table :
?columns:int ->
?rows:int ->
?homogeneous:bool ->
?row_spacings:int ->
?col_spacings:int ->
?border_width:int ->
?width:int ->
?height:int ->
?packing:(widget -> unit) -> ?show:bool -> unit -> table
(** {3 GtkFixed} *)
(** A container which allows you to position widgets at fixed coordinates
@gtkdoc gtk GtkFixed *)
class fixed :
Gtk.fixed obj ->
object
inherit GContainer.container_full
val obj : Gtk.fixed obj
method event : event_ops
method move : widget -> x:int -> y:int -> unit
method put : widget -> x:int -> y:int -> unit
method set_has_window : bool -> unit
method has_window : bool
end
(** @gtkdoc gtk GtkFixed *)
val fixed :
?has_window: bool ->
?border_width:int ->
?width:int ->
?height:int ->
?packing:(widget -> unit) -> ?show:bool -> unit -> fixed
(** {3 GtkLayout} *)
(** Infinite scrollable area containing child widgets and/or custom drawing
@gtkdoc gtk GtkLayout *)
class layout :
'a obj ->
object
inherit GContainer.container_full
constraint 'a = [> Gtk.layout]
val obj : 'a obj
method event : event_ops
method bin_window : Gdk.window
method freeze : unit -> unit
method hadjustment : GData.adjustment
method height : int
method move : widget -> x:int -> y:int -> unit
method put : widget -> x:int -> y:int -> unit
method set_hadjustment : GData.adjustment -> unit
method set_height : int -> unit
method set_vadjustment : GData.adjustment -> unit
method set_width : int -> unit
method thaw : unit -> unit
method vadjustment : GData.adjustment
method width : int
end
(** @gtkdoc gtk GtkLayout *)
val layout :
?hadjustment:GData.adjustment ->
?vadjustment:GData.adjustment ->
?layout_width:int ->
?layout_height:int ->
?border_width:int ->
?width:int ->
?height:int ->
?packing:(widget -> unit) -> ?show:bool -> unit -> layout
(** {3 GtkNotebook} *)
(** @gtkdoc gtk GtkNotebook *)
class notebook_signals : [> Gtk.notebook] obj ->
object
inherit GContainer.container_signals
method change_current_page : callback:(int -> unit) -> GtkSignal.id
method create_window : callback:(page:GObj.widget -> x:int -> y:int -> unit) -> GtkSignal.id
method move_focus_out : callback:(GtkEnums.direction_type -> unit) -> GtkSignal.id
method notify_enable_popup : callback:(bool -> unit) -> GtkSignal.id
method notify_homogeneous_tabs : callback:(bool -> unit) -> GtkSignal.id
method notify_scrollable : callback:(bool -> unit) -> GtkSignal.id
method notify_show_border : callback:(bool -> unit) -> GtkSignal.id
method notify_show_tabs : callback:(bool -> unit) -> GtkSignal.id
method notify_tab_hborder : callback:(int -> unit) -> GtkSignal.id
method notify_tab_pos : callback:(GtkEnums.position_type -> unit) -> GtkSignal.id
method notify_tab_vborder : callback:(int -> unit) -> GtkSignal.id
method page_added : callback:(GObj.widget -> int -> unit) -> GtkSignal.id
method page_removed : callback:(GObj.widget -> int -> unit) -> GtkSignal.id
method page_reordered : callback:(GObj.widget -> int -> unit) -> GtkSignal.id
method reorder_tab : callback:(GtkEnums.direction_type -> bool -> unit) -> GtkSignal.id
method select_page : callback:(bool -> unit) -> GtkSignal.id
method switch_page : callback:(int -> unit) -> GtkSignal.id
end
(** A tabbed notebook container
@gtkdoc gtk GtkNotebook *)
class notebook : Gtk.notebook obj ->
object
inherit GContainer.container
val obj : Gtk.notebook obj
method as_notebook : Gtk.notebook Gtk.obj
method event : event_ops
method append_page :
?tab_label:widget -> ?menu_label:widget -> widget -> int
method connect : notebook_signals
method current_page : int
method get_menu_label : widget -> widget
method get_nth_page : int -> widget
method get_tab_label : widget -> widget
method get_tab_reorderable : widget -> bool
method goto_page : int -> unit
method insert_page :
?tab_label:widget -> ?menu_label:widget -> ?pos:int -> widget -> int
method next_page : unit -> unit
method page_num : widget -> int
method prepend_page :
?tab_label:widget -> ?menu_label:widget -> widget -> int
method previous_page : unit -> unit
method remove_page : int -> unit
method reorder_child : widget -> int -> unit
method set_enable_popup : bool -> unit
method set_homogeneous_tabs : bool -> unit
method set_page :
?tab_label:widget -> ?menu_label:widget -> widget -> unit
method set_scrollable : bool -> unit
method set_show_border : bool -> unit
method set_show_tabs : bool -> unit
method set_tab_border : int -> unit
method set_tab_hborder : int -> unit
method set_tab_reorderable : widget -> bool -> unit
method set_tab_vborder : int -> unit
method set_tab_pos : Tags.position -> unit
method enable_popup : bool
method homogeneous_tabs : bool
method scrollable : bool
method show_border : bool
method show_tabs : bool
method tab_hborder : int
method tab_pos : GtkEnums.position_type
method tab_vborder : int
end
(** @gtkdoc gtk GtkNotebook *)
val notebook :
?enable_popup:bool ->
?homogeneous_tabs:bool ->
?scrollable:bool ->
?show_border:bool ->
?show_tabs:bool ->
?tab_border:int ->
?tab_pos:Tags.position ->
?border_width:int ->
?width:int ->
?height:int ->
?packing:(widget -> unit) -> ?show:bool -> unit -> notebook
(** {3 GtkPaned} *)
(** Base class for widgets with two adjustable panes
@gtkdoc gtk GtkPaned *)
class paned :
Gtk.paned obj ->
object
inherit GContainer.container_full
val obj : Gtk.paned obj
method event : event_ops
method add1 : widget -> unit
method add2 : widget -> unit
method pack1 : ?resize:bool -> ?shrink:bool -> widget -> unit
(** @param resize default value is [false]
@param shrink default value is [false] *)
method pack2 : ?resize:bool -> ?shrink:bool -> widget -> unit
(** @param resize default value is [false]
@param shrink default value is [false] *)
method child1 : widget
method child2 : widget
method set_position : int -> unit
method position : int
method max_position : int (** @since GTK 2.4 *)
method min_position : int (** @since GTK 2.4 *)
end
(** @gtkdoc gtk GtkPaned *)
val paned :
Tags.orientation ->
?border_width:int ->
?width:int ->
?height:int ->
?packing:(widget -> unit) -> ?show:bool -> unit -> paned
|