Class: Pango::Layout

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/pango/layout.rb,
lib/pango/deprecated.rb

Instance Method Summary collapse

Instance Method Details

#set_font_description(description) ⇒ Object Also known as: font_description=



20
21
22
23
24
25
# File 'lib/pango/layout.rb', line 20

def set_font_description(description)
  unless description.is_a?(FontDescription)
    description = FontDescription.new(description)
  end
  set_font_description_raw(description)
end

#set_font_description_rawObject



19
# File 'lib/pango/layout.rb', line 19

alias_method :set_font_description_raw, :set_font_description

#set_markup(markup) ⇒ Object Also known as: markup=



36
37
38
# File 'lib/pango/layout.rb', line 36

def set_markup(markup)
  set_markup_raw(markup, markup.bytesize)
end

#set_markup_rawObject



35
# File 'lib/pango/layout.rb', line 35

alias_method :set_markup_raw, :set_markup

#set_text(text) ⇒ Object Also known as: text=



30
31
32
# File 'lib/pango/layout.rb', line 30

def set_text(text)
  set_text_raw(text, text.bytesize)
end

#set_text_rawObject



29
# File 'lib/pango/layout.rb', line 29

alias_method :set_text_raw, :set_text