Skip to content

abstract class Celestine::Drawable
inherits Reference #

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

Methods#

#class_attribute(io : IO) #

Rendered class options

View source

#classes : Array(String) #

A list of the classes for this object

View source

#classes=(classes : Array(String)) #

A list of the classes for this object

View source

#custom_attribute(io : IO) #

Rendered custom attributes

View source

#custom_attrs : Hash(String, String) #

A list of custom attributes

View source

#custom_attrs=(custom_attrs) #

A list of custom attributes

View source

abstract #draw(io : IO) : Nil #

Main draw method for a drawable. Takes in and interacts with an io.

View source

#id : String? #

ID of this object

View source

#id=(id : String?) #

ID of this object

View source

#id_attribute(io : IO) #

Render ID options

View source

#inner_elements : IO::Memory #

The inner elements of this drawable.

View source

#inner_elements=(inner_elements) #

The inner elements of this drawable.

View source

#style : Hash(String, String) #

A list of the style options

View source

#style=(style) #

A list of the style options

View source

#style_attribute(io : IO) #

Rendered style options

View source