package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/List_view/index.html
Module Wrappers.List_view
type t =
[ `list_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 ListView
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 rows should be activated on single click and selected on hover.
val set_show_separators : t -> bool -> unitSets whether the list box should show separators between rows.
val set_model : t -> [ `selection_model ] Gobject.obj option -> unitSets the model to use.
This must be a iface@Gtk.SelectionModel to use.
val set_header_factory :
t ->
[ `list_item_factory | `object_ ] Gobject.obj option ->
unitSets the `GtkListItemFactory` to use for populating the class@Gtk.ListHeader objects used in section headers.
If this factory is set to %NULL, the list will not show section headers.
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 listview 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 rows will be activated on single click and selected on hover.
val get_show_separators : t -> boolReturns whether the list box should show separators between rows.
val get_model : t -> [ `selection_model ] Gobject.obj optionGets the model that's currently used to read the items displayed.
val get_header_factory :
t ->
[ `list_item_factory | `object_ ] Gobject.obj optionGets the factory that's currently used to populate section headers.
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