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::ClipPath
- Celestine::Ellipse
- Celestine::Filter
- Celestine::Filter::Basic
- Celestine::Filter::ComponentTransfer::Func
- Celestine::Gradient
- Celestine::Gradient::Stop
- Celestine::Group
- Celestine::Image
- Celestine::Line
- 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::Polygon
- Celestine::Polyline
- Celestine::Rectangle
- Celestine::Style
- Celestine::Svg
- Celestine::Symbol
- Celestine::Text
- Celestine::TSpan
- Celestine::Use
Defined in:
drawables/drawable.crInstance Method Summary
-
#class_attribute(io : IO)
Rendered class options
- #classes : Array(String)
- #classes=(val : Array(String))
-
#custom_attribute(io : IO)
Rendered custom attributes
- #custom_attrs : Hash(String, String)
- #custom_attrs=(val : Hash(String, String))
-
#draw(io : IO) : Nil
Main draw method for a drawable.
-
#has_inner_elements? : Bool
Returns true if this drawable has child elements written to its inner buffer
-
#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
- #inner_elements=(val : IO::Memory)
- #style : Hash(String, String)
- #style=(val : Hash(String, String))
-
#style_attribute(io : IO)
Rendered style options
-
#to_s(io : IO) : Nil
Serializes this drawable to an IO
-
#to_s : String
Serializes this drawable to a String
Instance Method Detail
abstract
def draw(io : IO) : Nil
#
Main draw method for a drawable. Takes in and interacts with an io.
def has_inner_elements? : Bool
#
Returns true if this drawable has child elements written to its inner buffer