pub struct OsdCaption {
pub font: String,
pub size: u16,
pub x: i16,
pub y: i16,
pub wrap: i16,
pub align: OsdCaptionAlign,
pub format: OsdCaptionFormat,
pub colour: u32,
pub text: String,
}Expand description
A caption, as a setting gives it.
Fields§
§font: StringThe font’s name, empty for the layout’s.
size: u16The size, zero for the layout’s.
x: i16The horizontal position, i16::MIN for the layout’s.
y: i16The vertical position, i16::MIN for the layout’s.
wrap: i16The wrap width in pixels: -1 automatic, 0 none, -2 the layout’s.
align: OsdCaptionAlignThe alignment.
format: OsdCaptionFormatHow the text is read.
colour: u32The colour as 0xRRGGBB, u32::MAX for the layout’s.
text: StringThe text.
Trait Implementations§
Source§impl Clone for OsdCaption
impl Clone for OsdCaption
Source§impl Debug for OsdCaption
impl Debug for OsdCaption
impl Eq for OsdCaption
Source§impl PartialEq for OsdCaption
impl PartialEq for OsdCaption
impl StructuralPartialEq for OsdCaption
Auto Trait Implementations§
impl Freeze for OsdCaption
impl RefUnwindSafe for OsdCaption
impl Send for OsdCaption
impl Sync for OsdCaption
impl Unpin for OsdCaption
impl UnsafeUnpin for OsdCaption
impl UnwindSafe for OsdCaption
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