Class: Qt::Pixmap
Class Method Summary collapse
-
.from_renderer(size, renderer, id = nil) ⇒ Object
Render a pixmap using an svg renderer.
-
.from_svg(size, file, id = nil) ⇒ Object
Render a pixmap from an svg file.
Instance Method Summary collapse
-
#add_effect(effect) ⇒ Object
Add an effect to this pixmap.
- #to_pix ⇒ Object
Class Method Details
.from_renderer(size, renderer, id = nil) ⇒ Object
Render a pixmap using an svg renderer. See also Qt::Image#renderer.
195 196 197 |
# File 'lib/rui/toolkits/qtbase/qt.rb', line 195 def self.from_renderer(size, renderer, id = nil) Qt::Image.from_renderer(size, renderer, id).to_pix end |
Instance Method Details
#add_effect(effect) ⇒ Object
Add an effect to this pixmap. If later this pixmap is assigned to an Item, all its effects will be transferred to it.
181 182 183 |
# File 'lib/rui/toolkits/qtbase/qt.rb', line 181 def add_effect(effect) effects << effect end |
#to_pix ⇒ Object
199 200 201 |
# File 'lib/rui/toolkits/qtbase/qt.rb', line 199 def to_pix self end |