class
Hamilton::Types::StoryAreaPosition
- Hamilton::Types::StoryAreaPosition
- Reference
- Object
Overview
Describes the position of a clickable area within a story.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/story_area_position.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#corner_radius_percentage : Float32
The radius of the rectangle corner rounding, as a percentage of the media width.
-
#corner_radius_percentage=(corner_radius_percentage : Float32)
The radius of the rectangle corner rounding, as a percentage of the media width.
-
#height_percentage : Float32
The height of the area's rectangle, as a percentage of the media height.
-
#height_percentage=(height_percentage : Float32)
The height of the area's rectangle, as a percentage of the media height.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#rotation_angle : Float32
The clockwise rotation angle of the rectangle, in degrees; 0-360.
-
#rotation_angle=(rotation_angle : Float32)
The clockwise rotation angle of the rectangle, in degrees; 0-360.
-
#width_percentage : Float32
The width of the area's rectangle, as a percentage of the media width.
-
#width_percentage=(width_percentage : Float32)
The width of the area's rectangle, as a percentage of the media width.
-
#x_percentage : Float32
The abscissa of the area's center, as a percentage of the media width.
-
#x_percentage=(x_percentage : Float32)
The abscissa of the area's center, as a percentage of the media width.
-
#y_percentage : Float32
The ordinate of the area's center, as a percentage of the media height.
-
#y_percentage=(y_percentage : Float32)
The ordinate of the area's center, as a percentage of the media height.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The radius of the rectangle corner rounding, as a percentage of the media width.
The radius of the rectangle corner rounding, as a percentage of the media width.
The height of the area's rectangle, as a percentage of the media height.
The height of the area's rectangle, as a percentage of the media height.
The clockwise rotation angle of the rectangle, in degrees; 0-360.
The width of the area's rectangle, as a percentage of the media width.
The width of the area's rectangle, as a percentage of the media width.
The abscissa of the area's center, as a percentage of the media width.
The ordinate of the area's center, as a percentage of the media height.
The ordinate of the area's center, as a percentage of the media height.