package lablgtk3

  1. Overview
  2. Docs
OCaml interface to GTK+3

Install

Dune Dependency

Authors

Maintainers

Sources

lablgtk3-3.1.5.tbz
sha256=d4821cdbecf3ae374f20317d63e43fe58030c3ba9657b51a2e83e652197e8eac
sha512=83f0be38a1e21737de93f88b0adac15cdcc50cf712d773720b9bc1e8d8ffdb2c660d35840f25d326a42a9d4e6537e6cef466099bf72494196b2cc79977e703e3

doc/lablgtk3/GTree/index.html

Module GTreeSource

Tree and list widgets @gtkdoc gtk TreeWidget

New GtkTreeView/Model framework

Sourcetype 'a column = {
  1. index : int;
  2. conv : 'a Gobject.data_conv;
  3. creator : int;
}
Sourceclass column_list : object ... end
Sourceclass row_reference : Gtk.row_reference -> model:[> `treemodel ] Gtk.obj -> object ... end
Models
Sourceclass model_signals : [> `treemodel ] Gtk.obj -> object ... end

@gtkdoc gtk GtkTreeModel

Sourceval model_ids : (int, int) Hashtbl.t
Sourceclass model : ([> `treemodel ] as 'a) Gtk.obj -> object ... end

@gtkdoc gtk GtkTreeModel

Sourceclass tree_sortable_signals : ([> `treesortable | `treemodel ] as 'a) Gtk.obj -> object ... end

@gtkdoc gtk GtkTreeSortable

Sourceclass tree_sortable : ([> `treesortable | `treemodel ] as 'a) Gtk.obj -> object ... end

@gtkdoc gtk GtkTreeSortable

Special value for the #set_sort_column_id method of GTree.tree_sortable.

Sourceval default_sort_column_id : int
Sourceval unsorted_sort_column_id : int
Sourceclass tree_store : Gtk.tree_store -> object ... end

@gtkdoc gtk GtkTreeStore

Sourceval tree_store : column_list -> tree_store

@gtkdoc gtk GtkTreeStore

Sourceclass list_store : Gtk.list_store -> object ... end

@gtkdoc gtk GtkListStore

Sourceval list_store : column_list -> list_store

@gtkdoc gtk GtkListStore

Sourceval store_of_list : 'a Gobject.data_conv -> 'a list -> list_store * 'a column

Convenience function to map a caml list into a GTree.list_store with a single column

Sourceclass model_sort : Gtk.tree_model_sort -> object ... end

@gtkdoc gtk GtkTreeModelSort

Sourceval model_sort : model -> model_sort

@gtkdoc gtk GtkTreeModelSort

Sourceclass model_filter : Gtk.tree_model_filter -> object ... end
Sourceval model_filter : ?virtual_root:Gtk.tree_path -> model -> model_filter
  • since GTK 2.4

@gtkdoc gtk GtkTreeModelFilter

Sourcemodule Path : sig ... end
Selection

@gtkdoc gtk GtkTreeSelection

Sourceclass selection : Gtk.tree_selection -> object ... end

The selection object for GTree.view @gtkdoc gtk GtkTreeSelection

Views
Sourceclass type cell_renderer = object ... end
Sourceclass cell_layout : ([> Gtk.cell_layout ] as 'a) Gtk.obj -> object ... end
Sourceclass view_column_signals : [> `gtk | `treeviewcolumn ] Gtk.obj -> object ... end

@gtkdoc gtk GtkTreeViewColumn

A visible column in a GTree.view widget @gtkdoc gtk GtkTreeViewColumn

Sourceval view_column : ?title:string -> ?renderer:(cell_renderer * (string * 'a column) list) -> unit -> view_column

@gtkdoc gtk GtkTreeViewColumn

Sourceclass view_signals : [> Gtk.tree_view ] Gtk.obj -> object ... end

@gtkdoc gtk GtkTreeView

Sourceclass view : Gtk.tree_view Gtk.obj -> object ... end

A widget for displaying both trees and lists @gtkdoc gtk GtkTreeView

Sourceval view : ?model:model -> ?hadjustment:GData.adjustment -> ?vadjustment:GData.adjustment -> ?enable_search:bool -> ?fixed_height_mode:bool -> ?headers_clickable:bool -> ?headers_visible:bool -> ?reorderable:bool -> ?rules_hint:bool -> ?search_column:int -> ?tooltip_column:int -> ?border_width:int -> ?width:int -> ?height:int -> ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> view

@gtkdoc gtk GtkTreeView

  • parameter enable_search

    default value is true

  • parameter fixed_height_mode

    default value is false

  • parameter headers_clickable

    default value is false

  • parameter headers_visible

    default value is true

  • parameter reorderable

    default value is false

  • parameter rules_hint

    default value is false

Cell Renderers
Sourcetype cell_properties = [
  1. | `CELL_BACKGROUND of string
  2. | `CELL_BACKGROUND_GDK of Gdk.color
  3. | `CELL_BACKGROUND_SET of bool
  4. | `HEIGHT of int
  5. | `IS_EXPANDED of bool
  6. | `IS_EXPANDER of bool
  7. | `MODE of Gtk.Tags.cell_renderer_mode
  8. | `VISIBLE of bool
  9. | `WIDTH of int
  10. | `XALIGN of float
  11. | `XPAD of int
  12. | `YALIGN of float
  13. | `YPAD of int
]
Sourcetype cell_properties_pixbuf = [
  1. | cell_properties
  2. | `PIXBUF of GdkPixbuf.pixbuf
  3. | `PIXBUF_EXPANDER_CLOSED of GdkPixbuf.pixbuf
  4. | `PIXBUF_EXPANDER_OPEN of GdkPixbuf.pixbuf
  5. | `STOCK_DETAIL of string
  6. | `STOCK_ID of string
  7. | `STOCK_SIZE of Gtk.Tags.icon_size
]
Sourcetype cell_properties_text = [
  1. | cell_properties
  2. | `BACKGROUND of string
  3. | `BACKGROUND_GDK of Gdk.color
  4. | `BACKGROUND_SET of bool
  5. | `EDITABLE of bool
  6. | `FAMILY of string
  7. | `FONT of string
  8. | `FONT_DESC of Pango.font_description
  9. | `FOREGROUND of string
  10. | `FOREGROUND_GDK of Gdk.color
  11. | `FOREGROUND_SET of bool
  12. | `MARKUP of string
  13. | `RISE of int
  14. | `SCALE of Pango.Tags.scale
  15. | `SINGLE_PARAGRAPH_MODE of bool
  16. | `SIZE of int
  17. | `SIZE_POINTS of float
  18. | `STRETCH of Pango.Tags.stretch
  19. | `STRIKETHROUGH of bool
  20. | `STYLE of Pango.Tags.style
  21. | `TEXT of string
  22. | `UNDERLINE of Pango.Tags.underline
  23. | `VARIANT of Pango.Tags.variant
  24. | `WEIGHT of Pango.Tags.weight
  25. | `WRAP_MODE of Pango.Tags.wrap_mode
  26. | `WRAP_WIDTH of int
]
Sourcetype cell_properties_toggle = [
  1. | cell_properties
  2. | `ACTIVATABLE of bool
  3. | `ACTIVE of bool
  4. | `INCONSISTENT of bool
  5. | `RADIO of bool
]
Sourcetype cell_properties_progress = [
  1. | cell_properties
  2. | `VALUE of int
  3. | `TEXT of string option
]
Sourcetype cell_properties_combo = [
  1. | cell_properties_text
  2. | `MODEL of model option
  3. | `TEXT_COLUMN of string column
  4. | `HAS_ENTRY of bool
]
Sourcetype cell_properties_accel = [
  1. | cell_properties_text
  2. | `KEY of Gdk.keysym
  3. | `ACCEL_MODE of GtkEnums.cell_renderer_accel_mode
  4. | `MODS of GdkEnums.modifier list
  5. | `KEYCODE of int
]
Sourceclass type ['a, 'b] cell_renderer_skel = object ... end

@gtkdoc gtk GtkCellRenderer

Sourceclass virtual ['a, 'b] cell_renderer_impl : ([> Gtk.cell_renderer ] as 'a) Gtk.obj -> object ... end

@gtkdoc gtk GtkCellRenderer

@gtkdoc gtk GtkCellRendererPixbuf

Sourceclass cell_renderer_text_signals : ([> Gtk.cell_renderer_text ] as 'a) Gtk.obj -> object ... end

@gtkdoc gtk GtkCellRendererText

@gtkdoc gtk GtkCellRendererText

@gtkdoc gtk GtkCellRendererToggle

@gtkdoc gtk GtkCellRendererToggle

Sourceval cell_renderer_pixbuf : cell_properties_pixbuf list -> cell_renderer_pixbuf

@gtkdoc gtk GtkCellRendererPixbuf

Sourceval cell_renderer_text : cell_properties_text list -> cell_renderer_text

@gtkdoc gtk GtkCellRendererText

Sourceval cell_renderer_toggle : cell_properties_toggle list -> cell_renderer_toggle

@gtkdoc gtk GtkCellRendererToggle

Sourceval cell_renderer_progress : cell_properties_progress list -> cell_renderer_progress
  • since GTK 2.6

@gtkdoc gtk GtkCellRendererProgress

Sourceval cell_renderer_combo : cell_properties_combo list -> cell_renderer_combo
  • since GTK 2.6

@gtkdoc gtk GtkCellRendererCombo

Sourceval cell_renderer_accel : cell_properties_accel list -> cell_renderer_accel
  • since GTK 2.10

@gtkdoc gtk GtkCellRendererAccel

GtkIconView

Sourceclass icon_view_signals : [> Gtk.icon_view ] Gtk.obj -> object ... end

@gtkdoc gtk GtkIconView

Sourceclass icon_view : ([> Gtk.icon_view ] as 'a) Gtk.obj -> object ... end

A widget which displays a list of icons in a grid @gtkdoc gtk GtkIconView

Sourceval icon_view : ?model:model -> ?columns:int -> ?orientation:GtkEnums.orientation -> ?selection_mode:GtkEnums.selection_mode -> ?border_width:int -> ?width:int -> ?height:int -> ?packing:(GObj.widget -> unit) -> ?show:bool -> unit -> icon_view

A widget which displays a list of icons in a grid @gtkdoc gtk GtkIconView

  • since GTK 2.6
Sourceclass type virtual ['obj, 'row, 'a, 'b, 'c] custom_tree_model_type = object ... end
Sourceclass virtual ['row, 'a, 'b, 'c] custom_tree_model : column_list -> [Gtk.tree_model_custom, 'row, 'a, 'b, 'c] custom_tree_model_type

A base class to inherit from to make a custom tree model.

OCaml

Innovation. Community. Security.