Class: TD::Types::StoryAreaPosition

Inherits:
Base
  • Object
show all
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

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#corner_radius_percentageFloat

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

Returns:

  • (Float)

    the current value of corner_radius_percentage



11
12
13
# File 'lib/tdlib/types/story_area_position.rb', line 11

def corner_radius_percentage
  @corner_radius_percentage
end

#height_percentageFloat

The height of the rectangle, as a percentage of the media height.

Returns:

  • (Float)

    the current value of height_percentage



11
12
13
# File 'lib/tdlib/types/story_area_position.rb', line 11

def height_percentage
  @height_percentage
end

#rotation_angleFloat

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

Returns:

  • (Float)

    the current value of rotation_angle



11
12
13
# File 'lib/tdlib/types/story_area_position.rb', line 11

def rotation_angle
  @rotation_angle
end

#width_percentageFloat

The width of the rectangle, as a percentage of the media width.

Returns:

  • (Float)

    the current value of width_percentage



11
12
13
# File 'lib/tdlib/types/story_area_position.rb', line 11

def width_percentage
  @width_percentage
end

#x_percentageFloat

The abscissa of the rectangle’s center, as a percentage of the media width.

Returns:

  • (Float)

    the current value of x_percentage



11
12
13
# File 'lib/tdlib/types/story_area_position.rb', line 11

def x_percentage
  @x_percentage
end

#y_percentageFloat

The ordinate of the rectangle’s center, as a percentage of the media height.

Returns:

  • (Float)

    the current value of y_percentage



11
12
13
# File 'lib/tdlib/types/story_area_position.rb', line 11

def y_percentage
  @y_percentage
end