abstract class Celestine::Drawable
- Celestine::Drawable
- Reference
- Object
Overview
Basic SVG drawable, inheritted by stuff like circles, rectangles, etc.
Direct Known Subclasses
- Celestine::Anchor
- Celestine::Animate
- Celestine::Animate::Motion
- Celestine::Circle
- Celestine::Ellipse
- Celestine::Filter
- Celestine::Filter::Basic
- Celestine::Filter::ComponentTransfer::Func
- Celestine::Gradient
- Celestine::Gradient::Stop
- Celestine::Group
- Celestine::Image
- Celestine::Marker
- Celestine::Mask
- Celestine::Modules::Animate::Transform::Rotate
- Celestine::Modules::Animate::Transform::Scale
- Celestine::Modules::Animate::Transform::SkewX
- Celestine::Modules::Animate::Transform::SkewY
- Celestine::Modules::Animate::Transform::Translate
- Celestine::Path
- Celestine::Pattern
- Celestine::Rectangle
- Celestine::Svg
- Celestine::Text
- Celestine::Use
Defined in:
drawables/drawable.crInstance Method Summary
-
#class_attribute(io : IO)
Rendered class options
-
#classes : Array(String)
A list of the classes for this object
-
#classes=(classes : Array(String))
A list of the classes for this object
-
#custom_attribute(io : IO)
Rendered custom attributes
-
#custom_attrs : Hash(String, String)
A list of custom attributes
-
#custom_attrs=(custom_attrs : Hash(String, String))
A list of custom attributes
-
#draw(io : IO) : Nil
Main draw method for a drawable.
-
#id : String | Nil
ID of this object
-
#id=(id : String | Nil)
ID of this object
-
#id_attribute(io : IO)
Render ID options
-
#inner_elements : IO::Memory
The inner elements of this drawable.
-
#inner_elements=(inner_elements : IO::Memory)
The inner elements of this drawable.
-
#style : Hash(String, String)
A list of the style options
-
#style=(style : Hash(String, String))
A list of the style options
-
#style_attribute(io : IO)
Rendered style options
Instance Method Detail
abstract
def draw(io : IO) : Nil
#
Main draw method for a drawable. Takes in and interacts with an io.