package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Font_dialog/index.html
Module Wrappers.Font_dialog
type t = [ `font_dialog | `object_ ] Gobject.objval new_ : unit -> tCreate a new FontDialog
val set_title : t -> string -> unitSets the title that will be shown on the font chooser dialog.
val set_modal : t -> bool -> unitSets whether the font chooser dialog blocks interaction with the parent window while it is presented.
val set_language : t -> Ocgtk_pango.Pango.Wrappers.Language.t -> unitSets the language for which font features are applied.
val set_font_map : t -> Ocgtk_pango.Pango.Wrappers.Font_map.t option -> unitSets the fontmap from which fonts are selected.
If @fontmap is `NULL`, the default fontmap is used.
val set_filter : t -> [ `filter | `object_ ] Gobject.obj option -> unitAdds a filter that decides which fonts to display in the font chooser dialog.
The `GtkFilter` must be able to handle both `PangoFontFamily` and `PangoFontFace` objects.
val get_title : t -> stringReturns the title that will be shown on the font chooser dialog.
val get_modal : t -> boolReturns whether the font chooser dialog blocks interaction with the parent window while it is presented.
val get_language : t -> Ocgtk_pango.Pango.Wrappers.Language.t optionReturns the language for which font features are applied.
val get_font_map : t -> Ocgtk_pango.Pango.Wrappers.Font_map.t optionReturns the fontmap from which fonts are selected, or `NULL` for the default fontmap.
val get_filter : t -> [ `filter | `object_ ] Gobject.obj optionReturns the filter that decides which fonts to display in the font chooser dialog.
val choose_font_finish :
t ->
Ocgtk_gio.Gio.Wrappers.Async_result.t ->
(Ocgtk_pango.Pango.Wrappers.Font_description.t option, GError.t) resultFinishes the method@Gtk.FontDialog.choose_font call and returns the resulting font description.
val choose_family_finish :
t ->
Ocgtk_gio.Gio.Wrappers.Async_result.t ->
(Ocgtk_pango.Pango.Wrappers.Font_family.t option, GError.t) resultFinishes the method@Gtk.FontDialog.choose_family call and returns the resulting family.
This function never returns an error. If the operation is not finished successfully, the value passed as @initial_value to method@Gtk.FontDialog.choose_family is returned.
val choose_face_finish :
t ->
Ocgtk_gio.Gio.Wrappers.Async_result.t ->
(Ocgtk_pango.Pango.Wrappers.Font_face.t option, GError.t) resultFinishes the method@Gtk.FontDialog.choose_face call and returns the resulting font face.