package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Grid_view/index.html
Module Wrappers.Grid_view
type t =
[ `grid_view | `list_base | `widget | `initially_unowned | `object_ ]
Gobject.objval new_ :
[ `selection_model ] Gobject.obj option ->
[ `list_item_factory | `object_ ] Gobject.obj option ->
tCreate a new GridView
val set_tab_behavior : t -> Gtk_enums.listtabbehavior -> unitSets the behavior of the <kbd>Tab</kbd> and <kbd>Shift</kbd>+<kbd>Tab</kbd> keys.
val set_single_click_activate : t -> bool -> unitSets whether items should be activated on single click and selected on hover.
val set_model : t -> [ `selection_model ] Gobject.obj option -> unitSets the model to use.
This must be a iface@Gtk.SelectionModel.
val set_min_columns : t -> int -> unitSets the minimum number of columns to use.
This number must be at least 1.
If @min_columns is smaller than the minimum set via method@Gtk.GridView.set_max_columns, that value is ignored.
val set_max_columns : t -> int -> unitSets the maximum number of columns to use.
This number must be at least 1.
If @max_columns is smaller than the minimum set via method@Gtk.GridView.set_min_columns, that value is used instead.
val set_factory :
t ->
[ `list_item_factory | `object_ ] Gobject.obj option ->
unitSets the `GtkListItemFactory` to use for populating list items.
val set_enable_rubberband : t -> bool -> unitSets whether selections can be changed by dragging with the mouse.
val scroll_to :
t ->
int ->
Gtk_enums.listscrollflags ->
[ `scroll_info ] Gobject.obj option ->
unitScrolls to the item at the given position and performs the actions specified in @flags.
This function works no matter if the gridview is shown or focused. If it isn't, then the changes will take effect once that happens.
val get_tab_behavior : t -> Gtk_enums.listtabbehaviorGets the behavior set for the <kbd>Tab</kbd> key.
val get_single_click_activate : t -> boolReturns whether items will be activated on single click and selected on hover.
val get_model : t -> [ `selection_model ] Gobject.obj optionGets the model that's currently used to read the items displayed.
val get_min_columns : t -> intGets the minimum number of columns that the grid will use.
val get_max_columns : t -> intGets the maximum number of columns that the grid will use.
val get_factory : t -> [ `list_item_factory | `object_ ] Gobject.obj optionGets the factory that's currently used to populate list items.
val get_enable_rubberband : t -> boolReturns whether rows can be selected by dragging with the mouse.
val on_activate :
?after:bool ->
t ->
callback:(position:int -> unit) ->
Gobject.Signal.handler_id