pub struct StoryAreaPosition {
pub x_percentage: f64,
pub y_percentage: f64,
pub width_percentage: f64,
pub height_percentage: f64,
pub rotation_angle: f64,
}
Expand description
Describes position of a clickable rectangle area on a story media
Fields§
§x_percentage: f64
The abscissa of the rectangle’s center, as a percentage of the media width
y_percentage: f64
The ordinate of the rectangle’s center, as a percentage of the media height
width_percentage: f64
The width of the rectangle, as a percentage of the media width
height_percentage: f64
The height of the rectangle, as a percentage of the media height
rotation_angle: f64
Clockwise rotation angle of the rectangle, in degrees; 0-360
Trait Implementations§
Source§impl Clone for StoryAreaPosition
impl Clone for StoryAreaPosition
Source§fn clone(&self) -> StoryAreaPosition
fn clone(&self) -> StoryAreaPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StoryAreaPosition
impl Debug for StoryAreaPosition
Source§impl Default for StoryAreaPosition
impl Default for StoryAreaPosition
Source§fn default() -> StoryAreaPosition
fn default() -> StoryAreaPosition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoryAreaPosition
impl<'de> Deserialize<'de> for StoryAreaPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StoryAreaPosition
impl PartialEq for StoryAreaPosition
Source§impl Serialize for StoryAreaPosition
impl Serialize for StoryAreaPosition
impl StructuralPartialEq for StoryAreaPosition
Auto Trait Implementations§
impl Freeze for StoryAreaPosition
impl RefUnwindSafe for StoryAreaPosition
impl Send for StoryAreaPosition
impl Sync for StoryAreaPosition
impl Unpin for StoryAreaPosition
impl UnwindSafe for StoryAreaPosition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more