Class: TD::Types::StoryAreaPosition
- Defined in:
- lib/tdlib/types/story_area_position.rb
Overview
Describes position of a clickable rectangle area on a story media.
Instance Attribute Summary collapse
-
#corner_radius_percentage ⇒ Float
The radius of the rectangle corner rounding, as a percentage of the media width.
-
#height_percentage ⇒ Float
The height of the rectangle, as a percentage of the media height.
-
#rotation_angle ⇒ Float
Clockwise rotation angle of the rectangle, in degrees; 0-360.
-
#width_percentage ⇒ Float
The width of the rectangle, as a percentage of the media width.
-
#x_percentage ⇒ Float
The abscissa of the rectangle’s center, as a percentage of the media width.
-
#y_percentage ⇒ Float
The ordinate of the rectangle’s center, as a percentage of the media height.
Method Summary
Methods inherited from Base
Instance Attribute Details
#corner_radius_percentage ⇒ Float
The radius of the rectangle corner rounding, as a percentage of the media width.
11 12 13 |
# File 'lib/tdlib/types/story_area_position.rb', line 11 def corner_radius_percentage @corner_radius_percentage end |
#height_percentage ⇒ Float
The height of the rectangle, as a percentage of the media height.
11 12 13 |
# File 'lib/tdlib/types/story_area_position.rb', line 11 def height_percentage @height_percentage end |
#rotation_angle ⇒ Float
Clockwise rotation angle of the rectangle, in degrees; 0-360.
11 12 13 |
# File 'lib/tdlib/types/story_area_position.rb', line 11 def rotation_angle @rotation_angle end |
#width_percentage ⇒ Float
The width of the rectangle, as a percentage of the media width.
11 12 13 |
# File 'lib/tdlib/types/story_area_position.rb', line 11 def width_percentage @width_percentage end |
#x_percentage ⇒ Float
The abscissa of the rectangle’s center, as a percentage of the media width.
11 12 13 |
# File 'lib/tdlib/types/story_area_position.rb', line 11 def x_percentage @x_percentage end |
#y_percentage ⇒ Float
The ordinate of the rectangle’s center, as a percentage of the media height.
11 12 13 |
# File 'lib/tdlib/types/story_area_position.rb', line 11 def y_percentage @y_percentage end |