class
Celestine::Image
- Celestine::Image
- Celestine::Drawable
- Reference
- Object
Overview
Draws and holds information for images
Included Modules
- Celestine::Modules::Animate
- Celestine::Modules::Animate::Motion
- Celestine::Modules::Animate::Transform
- Celestine::Modules::Body
- Celestine::Modules::Clip
- Celestine::Modules::Filter
- Celestine::Modules::Mask
- Celestine::Modules::Transform
Defined in:
drawables/image.crConstant Summary
-
TAG =
"image"
Instance Method Summary
-
#draw(io : IO) : Nil
Draws the image to an
IO -
#href : String | Nil
The URI for the image
-
#href=(href : String | Nil)
The URI for the image
-
#rendering : String | Nil
How the image should be rendered.
-
#rendering=(rendering : String | Nil)
How the image should be rendered.
Instance methods inherited from module Celestine::Modules::Animate::Transform
animate_transform_rotate(&block : Celestine::Animate::Transform::Rotate -> )
animate_transform_rotate,
animate_transform_scale(&block : Celestine::Animate::Transform::Scale -> )
animate_transform_scale,
animate_transform_skew_x(&block : Celestine::Animate::Transform::SkewX -> )
animate_transform_skew_x,
animate_transform_skew_y(&block : Celestine::Animate::Transform::SkewY -> )
animate_transform_skew_y,
animate_transform_translate(&block : Celestine::Animate::Transform::Translate -> )
animate_transform_translate
Instance methods inherited from module Celestine::Modules::Animate::Motion
animate_motion(&block : Celestine::Animate::Motion -> )
animate_motion
Instance methods inherited from module Celestine::Modules::Animate
animate(&block : Celestine::Animate -> )
animate
Instance methods inherited from module Celestine::Modules::Clip
clip_path_attribute(io : IO)
clip_path_attribute,
clip_rule : String | Nil
clip_rule,
clip_rule=(val : String)
clip_rule=,
set_clip_path(id : String)set_clip_path(clip_path : Celestine::ClipPath) set_clip_path
Instance methods inherited from module Celestine::Modules::Filter
filter_attribute(io : IO)
filter_attribute,
set_filter(id : String)set_filter(filter : Celestine::Filter) set_filter
Instance methods inherited from module Celestine::Modules::Mask
mask_attribute(io : IO)
mask_attribute,
set_mask(id : String)set_mask(mask : Celestine::Mask) set_mask
Instance methods inherited from module Celestine::Modules::Body
body_attribute(io)
body_attribute,
height : IFNumber | Nil
height,
height=(height : IFNumber | Nil)
height=,
height_units : String | Nil
height_units,
height_units=(height_units : String | Nil)
height_units=,
width : IFNumber | Nil
width,
width=(width : IFNumber | Nil)
width=,
width_units : String | Nil
width_units,
width_units=(width_units : String | Nil)
width_units=
Instance methods inherited from module Celestine::Modules::Position
position_attribute(io : IO)
position_attribute,
x : IFNumber | Nil
x,
x=(x : IFNumber | Nil)
x=,
x_units : String | Nil
x_units,
x_units=(x_units : String | Nil)
x_units=,
y : IFNumber | Nil
y,
y=(y : IFNumber | Nil)
y=,
y_units : String | Nil
y_units,
y_units=(y_units : String | Nil)
y_units=
Instance methods inherited from module Celestine::Modules::Transform
transform(&block : Celestine::Drawable::Transform -> )
transform,
transform_attribute(io : IO)
transform_attribute
Instance methods inherited from class Celestine::Drawable
class_attribute(io : IO)
class_attribute,
classes : Array(String)
classes,
classes=(val : Array(String))
classes=,
custom_attribute(io : IO)
custom_attribute,
custom_attrs : Hash(String, String)
custom_attrs,
custom_attrs=(val : Hash(String, String))
custom_attrs=,
draw(io : IO) : Nil
draw,
has_inner_elements? : Bool
has_inner_elements?,
id : String | Nil
id,
id=(id : String | Nil)
id=,
id_attribute(io : IO)
id_attribute,
inner_elements : IO::Memory
inner_elements,
inner_elements=(val : IO::Memory)
inner_elements=,
style : Hash(String, String)
style,
style=(val : Hash(String, String))
style=,
style_attribute(io : IO)
style_attribute,
to_s(io : IO) : Nilto_s : String to_s
Instance Method Detail
def rendering : String | Nil
#
How the image should be rendered.
- Potential values:
auto | optimizeSpeed | optimizeQuality - Mozilla SVG Docs
def rendering=(rendering : String | Nil)
#
How the image should be rendered.
- Potential values:
auto | optimizeSpeed | optimizeQuality - Mozilla SVG Docs