VectorSprite
Object Hierarchy:
Description:
[
CCode ( type_id =
"shumate_vector_sprite_get_type ()" ) ]
[
Version ( since =
"1.1" ) ]
public class VectorSprite :
Object,
Paintable,
SymbolicPaintable
A sprite used to draw textures or icons.
Symbolic icons
If a sprite is created from a [iface@Gtk.SymbolicPaintable] source, such as a symbolic icon, then when the sprite is part of a symbol
layer it will be drawn using the icon-color property (or the text color, if the sprite is part of a formatted string).
Content:
Properties:
- public int height { get; construct; }
The height at which the sprite should be drawn, in pixels.
- public double scale_factor { get; construct; }
The intended scale factor of the sprite.
- public Paintable source_paintable { get; construct; }
The [iface@Gdk.
- public Rectangle source_rect { get; construct; }
The area of the source rectangle to draw, or
null to use the entire paintable.
- public int width { get; construct; }
The width at which the sprite should be drawn, in pixels.
Creation methods:
- public VectorSprite (Paintable source_paintable)
Creates a new [class@VectorSprite] using the paintable's intrinsic
size.
- public VectorSprite.full (Paintable source_paintable, int width, int height, double scale_factor, Rectangle? source_rect)
Creates a new [class@VectorSprite] with the given size, scale factor,
and area of the source paintable.
Methods:
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gdk.Paintable
All known members inherited from interface Gtk.SymbolicPaintable