Class: Cairo::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/gdk3/cairo.rb

Instance Method Summary collapse

Instance Method Details

#set_source_color_rawObject



20
# File 'lib/gdk3/cairo.rb', line 20

alias_method :set_source_color_raw, :set_source_color

#set_source_pixbuf(pixbuf, pixbuf_x = 0, pixbuf_y = 0) ⇒ Object



60
61
62
# File 'lib/gdk3/cairo.rb', line 60

def set_source_pixbuf(pixbuf, pixbuf_x=0, pixbuf_y=0)
  set_source_pixbuf_raw(pixbuf, pixbuf_x, pixbuf_y)
end

#set_source_pixbuf_rawObject



59
# File 'lib/gdk3/cairo.rb', line 59

alias_method :set_source_pixbuf_raw, :set_source_pixbuf

#set_source_rgba_rawObject



38
# File 'lib/gdk3/cairo.rb', line 38

alias_method :set_source_rgba_raw, :set_source_rgba

#source_color=(color) ⇒ Object



32
33
34
35
# File 'lib/gdk3/cairo.rb', line 32

def source_color=(color)
  set_source_color(color)
  color
end

#source_rgba=(rgba) ⇒ Object



54
55
56
57
# File 'lib/gdk3/cairo.rb', line 54

def source_rgba=(rgba)
  set_source_rgba(rgba)
  rgba
end