class Hamilton::Types::StoryAreaPosition

Overview

Describes the position of a clickable area within a story.

Included Modules

Defined in:

types/story_area_position.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def corner_radius_percentage : Float32 #

The radius of the rectangle corner rounding, as a percentage of the media width.


def corner_radius_percentage=(corner_radius_percentage : Float32) #

The radius of the rectangle corner rounding, as a percentage of the media width.


def height_percentage : Float32 #

The height of the area's rectangle, as a percentage of the media height.


def height_percentage=(height_percentage : Float32) #

The height of the area's rectangle, as a percentage of the media height.


def non_nil_fields : Array(String) #

List of available non-nil fields.


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

List of available non-nil fields.


def rotation_angle : Float32 #

The clockwise rotation angle of the rectangle, in degrees; 0-360.


def rotation_angle=(rotation_angle : Float32) #

The clockwise rotation angle of the rectangle, in degrees; 0-360.


def width_percentage : Float32 #

The width of the area's rectangle, as a percentage of the media width.


def width_percentage=(width_percentage : Float32) #

The width of the area's rectangle, as a percentage of the media width.


def x_percentage : Float32 #

The abscissa of the area's center, as a percentage of the media width.


def x_percentage=(x_percentage : Float32) #

The abscissa of the area's center, as a percentage of the media width.


def y_percentage : Float32 #

The ordinate of the area's center, as a percentage of the media height.


def y_percentage=(y_percentage : Float32) #

The ordinate of the area's center, as a percentage of the media height.