abstract class Celestine::Drawable

Overview

Basic SVG drawable, inheritted by stuff like circles, rectangles, etc.

Direct Known Subclasses

Defined in:

drawables/drawable.cr

Instance Method Summary

Instance Method Detail

def class_attribute(io : IO) #

Rendered class options


[View source]
def classes : Array(String) #

A list of the classes for this object


[View source]
def classes=(classes : Array(String)) #

A list of the classes for this object


[View source]
def custom_attribute(io : IO) #

Rendered custom attributes


[View source]
def custom_attrs : Hash(String, String) #

A list of custom attributes


[View source]
def custom_attrs=(custom_attrs : Hash(String, String)) #

A list of custom attributes


[View source]
abstract def draw(io : IO) : Nil #

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


[View source]
def id : String | Nil #

ID of this object


[View source]
def id=(id : String | Nil) #

ID of this object


[View source]
def id_attribute(io : IO) #

Render ID options


[View source]
def inner_elements : IO::Memory #

The inner elements of this drawable.


[View source]
def inner_elements=(inner_elements : IO::Memory) #

The inner elements of this drawable.


[View source]
def style : Hash(String, String) #

A list of the style options


[View source]
def style=(style : Hash(String, String)) #

A list of the style options


[View source]
def style_attribute(io : IO) #

Rendered style options


[View source]