abstract class Celestine::Drawable

Overview

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

Direct Known Subclasses

Defined in:

Instance Method Summary

Instance Method Detail

def class_attribute(io : IO) #

Rendered class options


def classes : Array(String) #

A list of the classes for this object


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

A list of the classes for this object


def custom_attribute(io : IO) #

Rendered custom attributes


def custom_attrs : Hash(String, String) #

A list of custom attributes


def custom_attrs=(custom_attrs) #

A list of custom attributes


abstract def draw(io : IO) : Nil #

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


def id : String? #

ID of this object


def id=(id : String?) #

ID of this object


def id_attribute(io : IO) #

Render ID options


def inner_elements : IO::Memory #

The inner elements of this drawable.


def inner_elements=(inner_elements) #

The inner elements of this drawable.


def style : Hash(String, String) #

A list of the style options


def style=(style) #

A list of the style options


def style_attribute(io : IO) #

Rendered style options