Slide 36
Slide 36 text
TypeStruct
Position = TypeStruct.new(
x: Numeric,
y: Numeric,
)
Text = TypeStruct.new(
font_id: Integer,
position: Position,
option: Option,
)
Image = TypeStruct.new(
image_id: Integer,
position: Position,
)
Content = TypeStruct.new(
content_id: Integer,
items: ArrayOf(Image | Text),
)
Obj = TypeStruct.new(
object_id: Integer,
contents: ArrayOf(Content),
)