module Gtk::FontChooser

Overview

Gtk::FontChooser is an interface that can be implemented by widgets for choosing fonts.

In GTK, the main objects that implement this interface are Gtk::FontChooserWidget, Gtk::FontChooserDialog and Gtk::FontButton.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/font_chooser.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


[View source]

Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def filter_func=(filter : Gtk::FontFilterFunc | Nil) : Nil #

[View source]
def font : String | Nil #

[View source]
def font=(fontname : String) : Nil #

[View source]
def font=(value : Nil) : Nil #

Set #font property to nil.


[View source]
def font? : String | Nil #

Same as #font, but can return nil.


[View source]
def font_activated_signal #

[View source]
def font_desc : Pango::FontDescription | Nil #

[View source]
def font_desc=(font_desc : Pango::FontDescription) : Nil #

[View source]
def font_desc=(value : Pango::FontDescription | Nil) : Pango::FontDescription | Nil #

[View source]
def font_face : Pango::FontFace | Nil #

[View source]
def font_family : Pango::FontFamily | Nil #

[View source]
def font_features : String #

[View source]
def font_features? : String | Nil #

Same as #font_features, but can return nil.


[View source]
def font_map : Pango::FontMap | Nil #

[View source]
def font_map=(fontmap : Pango::FontMap | Nil) : Nil #

[View source]
def font_size : Int32 #

[View source]
def language : String #

[View source]
def language=(language : String) : Nil #

[View source]
def language=(value : Nil) : Nil #

Set #language property to nil.


[View source]
def language? : String | Nil #

Same as #language, but can return nil.


[View source]
def level : Gtk::FontChooserLevel #

[View source]
def level=(level : Gtk::FontChooserLevel) : Nil #

[View source]
def preview_text : String #

[View source]
def preview_text=(text : String) : Nil #

[View source]
def preview_text=(value : Nil) : Nil #

Set #preview_text property to nil.


[View source]
def preview_text? : String | Nil #

Same as #preview_text, but can return nil.


[View source]
def show_preview_entry : Bool #

[View source]
def show_preview_entry=(show_preview_entry : Bool) : Nil #

[View source]
def show_preview_entry? : Bool #

[View source]
abstract def to_unsafe #

[View source]