Struct fidl_fuchsia_settings::CaptionFontStyle
source · 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>
Implementations§
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 Decode<CaptionFontStyle> for CaptionFontStyle
impl Decode<CaptionFontStyle> for CaptionFontStyle
source§impl Encode<CaptionFontStyle> for &CaptionFontStyle
impl Encode<CaptionFontStyle> for &CaptionFontStyle
source§impl Encode<CaptionFontStyle> for CaptionFontStyle
impl Encode<CaptionFontStyle> for CaptionFontStyle
source§impl PartialEq<CaptionFontStyle> for CaptionFontStyle
impl PartialEq<CaptionFontStyle> for CaptionFontStyle
source§fn eq(&self, other: &CaptionFontStyle) -> bool
fn eq(&self, other: &CaptionFontStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for CaptionFontStyle
impl TypeMarker for CaptionFontStyle
§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
§type Borrowed<'a> = &'a <CaptionFontStyle as TypeMarker>::Owned
type Borrowed<'a> = &'a <CaptionFontStyle as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more