pub struct CaptionFontStyle {
pub family: Option<CaptionFontFamily>,
pub color: Option<ColorRgba>,
pub relative_size: Option<f32>,
pub char_edge_style: Option<EdgeStyle>,
/* private fields */
}
Expand description
Font, size, and color of closed captions text.
Fields§
§family: Option<CaptionFontFamily>
§color: Option<ColorRgba>
47 CFR §79.103(c)(2) requires at least 3-bit RGB for user override of closed-captions color.
Each color channel should be a finite number otherwise will cause SetAccessibilityInfo to fail with INVALID_VALUE.
relative_size: Option<f32>
Size of closed captions text relative to the default captions size. A range of [0.5, 2] is guaranteed to be supported (as 47 CFR §79.103(c)(4) establishes). Size should be a finite number.
char_edge_style: Option<EdgeStyle>
Trait Implementations§
Source§impl Clone for CaptionFontStyle
impl Clone for CaptionFontStyle
Source§fn clone(&self) -> CaptionFontStyle
fn clone(&self) -> CaptionFontStyle
Returns a copy 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 CaptionFontStyle
impl Debug for CaptionFontStyle
Source§impl<D: ResourceDialect> Decode<CaptionFontStyle, D> for CaptionFontStyle
impl<D: ResourceDialect> Decode<CaptionFontStyle, D> for CaptionFontStyle
Source§impl Default for CaptionFontStyle
impl Default for CaptionFontStyle
Source§fn default() -> CaptionFontStyle
fn default() -> CaptionFontStyle
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<CaptionFontStyle, D> for &CaptionFontStyle
impl<D: ResourceDialect> Encode<CaptionFontStyle, D> for &CaptionFontStyle
Source§impl PartialEq for CaptionFontStyle
impl PartialEq for CaptionFontStyle
Source§impl TypeMarker for CaptionFontStyle
impl TypeMarker for CaptionFontStyle
Source§type Owned = CaptionFontStyle
type Owned = CaptionFontStyle
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for CaptionFontStyle
impl ValueTypeMarker for CaptionFontStyle
Source§type Borrowed<'a> = &'a CaptionFontStyle
type Borrowed<'a> = &'a CaptionFontStyle
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for CaptionFontStyle
impl StructuralPartialEq for CaptionFontStyle
Auto Trait Implementations§
impl Freeze for CaptionFontStyle
impl RefUnwindSafe for CaptionFontStyle
impl Send for CaptionFontStyle
impl Sync for CaptionFontStyle
impl Unpin for CaptionFontStyle
impl UnwindSafe for CaptionFontStyle
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)