pub struct OsdPosition {
pub type_: String,
pub x: Option<f32>,
pub y: Option<f32>,
}Expand description
Screen position of an OSD element.
Fields§
§type_: StringPosition type: "UpperLeft", "UpperRight", "LowerLeft",
"LowerRight", or "Custom".
x: Option<f32>Normalised X coordinate [-1.0, 1.0], used for "Custom" type.
y: Option<f32>Normalised Y coordinate [-1.0, 1.0], used for "Custom" type.
Trait Implementations§
Source§impl Clone for OsdPosition
impl Clone for OsdPosition
Source§fn clone(&self) -> OsdPosition
fn clone(&self) -> OsdPosition
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 OsdPosition
impl Debug for OsdPosition
Source§impl Default for OsdPosition
impl Default for OsdPosition
Source§fn default() -> OsdPosition
fn default() -> OsdPosition
Returns the “default value” for a type. Read more
Source§impl PartialEq for OsdPosition
impl PartialEq for OsdPosition
impl StructuralPartialEq for OsdPosition
Auto Trait Implementations§
impl Freeze for OsdPosition
impl RefUnwindSafe for OsdPosition
impl Send for OsdPosition
impl Sync for OsdPosition
impl Unpin for OsdPosition
impl UnsafeUnpin for OsdPosition
impl UnwindSafe for OsdPosition
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