package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Font_dialog_button/index.html
Module Wrappers.Font_dialog_button
type t =
[ `font_dialog_button | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : [ `font_dialog | `object_ ] Gobject.obj option -> tCreate a new FontDialogButton
val set_use_size : t -> bool -> unitIf @use_size is `TRUE`, the font name will be written using the selected font size.
val set_use_font : t -> bool -> unitIf @use_font is `TRUE`, the font name will be written using the selected font.
val set_level : t -> Gtk_enums.fontlevel -> unitSets the level of detail at which this dialog lets the user select fonts.
val set_language : t -> Ocgtk_pango.Pango.Wrappers.Language.t option -> unitSets the language to use for font features.
val set_font_features : t -> string option -> unitSets the font features of the button.
val set_font_desc : t -> Ocgtk_pango.Pango.Wrappers.Font_description.t -> unitSets the font of the button.
val set_dialog : t -> [ `font_dialog | `object_ ] Gobject.obj -> unitSets a `GtkFontDialog` object to use for creating the font chooser dialog that is presented when the user clicks the button.
val get_use_size : t -> boolReturns whether the selected font size is used in the label.
val get_use_font : t -> boolReturns whether the selected font is used in the label.
val get_level : t -> Gtk_enums.fontlevelReturns the level of detail at which this dialog lets the user select fonts.
val get_language : t -> Ocgtk_pango.Pango.Wrappers.Language.t optionReturns the language that is used for font features.
val get_font_features : t -> string optionReturns the font features of the button.
This function is what should be used to obtain the font features that were chosen by the user. To get informed about changes, listen to "notify::font-features".
Note that the button will only let users choose font features if property@Gtk.FontDialogButton:level is set to `GTK_FONT_LEVEL_FEATURES`.
val get_font_desc : t -> Ocgtk_pango.Pango.Wrappers.Font_description.t optionReturns the font of the button.
This function is what should be used to obtain the font that was chosen by the user. To get informed about changes, listen to "notify::font-desc".
val get_dialog : t -> [ `font_dialog | `object_ ] Gobject.obj optionReturns the `GtkFontDialog` of @self.
val on_activate :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_id