package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Drop_down/index.html
Module Wrappers.Drop_down
type t = [ `drop_down | `widget | `initially_unowned | `object_ ] Gobject.objval new_ :
Ocgtk_gio.Gio.Wrappers.List_model.t option ->
[ `expression ] Gobject.obj option ->
tCreate a new DropDown
val new_from_strings : string array -> tCreate a new DropDown
val set_show_arrow : t -> bool -> unitSets whether an arrow will be displayed within the widget.
val set_selected : t -> int -> unitSelects the item at the given position.
val set_search_match_mode : t -> Gtk_enums.stringfiltermatchmode -> unitSets the match mode for the search filter.
val set_model : t -> Ocgtk_gio.Gio.Wrappers.List_model.t option -> unitSets the `GListModel` to use.
val set_list_factory :
t ->
[ `list_item_factory | `object_ ] Gobject.obj option ->
unitSets the `GtkListItemFactory` to use for populating list items in the popup.
val set_header_factory :
t ->
[ `list_item_factory | `object_ ] Gobject.obj option ->
unitSets the `GtkListItemFactory` to use for creating header widgets for the popup.
val set_factory :
t ->
[ `list_item_factory | `object_ ] Gobject.obj option ->
unitSets the `GtkListItemFactory` to use for populating list items.
val set_expression : t -> [ `expression ] Gobject.obj option -> unitSets the expression that gets evaluated to obtain strings from items.
This is used for search in the popup. The expression must have a value type of %G_TYPE_STRING.
val set_enable_search : t -> bool -> unitSets whether a search entry will be shown in the popup that allows to search for items in the list.
Note that property@Gtk.DropDown:expression must be set for search to work.
val get_show_arrow : t -> boolReturns whether to show an arrow within the widget.
val get_selected_item : t -> [ `object_ ] Gobject.obj optionGets the selected item. If no item is selected, %NULL is returned.
val get_selected : t -> intGets the position of the selected item.
val get_search_match_mode : t -> Gtk_enums.stringfiltermatchmodeReturns the match mode that the search filter is using.
val get_model : t -> Ocgtk_gio.Gio.Wrappers.List_model.t optionGets the model that provides the displayed items.
val get_list_factory :
t ->
[ `list_item_factory | `object_ ] Gobject.obj optionGets the factory that's currently used to populate list items in the popup.
val get_header_factory :
t ->
[ `list_item_factory | `object_ ] Gobject.obj optionGets the factory that's currently used to create header widgets for the popup.
val get_factory : t -> [ `list_item_factory | `object_ ] Gobject.obj optionGets the factory that's currently used to populate list items.
The factory returned by this function is always used for the item in the button. It is also used for items in the popup if property@Gtk.DropDown:list-factory is not set.
val get_expression : t -> [ `expression ] Gobject.obj optionGets the expression set that is used to obtain strings from items.
See method@Gtk.DropDown.set_expression.
val get_enable_search : t -> boolReturns whether search is enabled.
val on_activate :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_id