class Cairo::Context
Public Instance Methods
set_source_pixbuf(pixbuf, pixbuf_x=0, pixbuf_y=0)
click to toggle source
# File lib/gdk4/cairo.rb, line 42 def set_source_pixbuf(pixbuf, pixbuf_x=0, pixbuf_y=0) set_source_pixbuf_raw(pixbuf, pixbuf_x, pixbuf_y) end
Also aliased as: set_source_pixbuf_raw
set_source_rgba(rgba, g=nil, b=nil, a=nil)
click to toggle source
# File lib/gdk4/cairo.rb, line 21 def set_source_rgba(rgba, g=nil, b=nil, a=nil) case rgba when Gdk::RGBA set_source_gdk_rgba(rgba) when Array set_source_rgba_raw(rgba) else r = rgba set_source_rgba_raw([r, g, b, a || 1.0]) end end
source_rgba=(rgba)
click to toggle source
# File lib/gdk4/cairo.rb, line 36 def source_rgba=(rgba) set_source_rgba(rgba) rgba end