Struct MediaColors
pub struct MediaColors {
pub letterbox: AlphaColor<Srgb>,
pub scrim: AlphaColor<Srgb>,
pub ink: AlphaColor<Srgb>,
pub ink_dim: AlphaColor<Srgb>,
pub guide: AlphaColor<Srgb>,
}Expand description
What is drawn straight onto media (video, a camera viewfinder, a photo): the letterbox around a frame, the fade under text that sits on the picture, and that text. Media is dark or light regardless of the theme, so these are the same in every theme; only the hue of the neutral material follows it. Controls over media are a floating Panel on the material instead, inked from the theme.
Fields§
§letterbox: AlphaColor<Srgb>Behind a frame that does not fill its box. Near-black in every theme, so a light theme does not turn the letterbox mid-grey.
scrim: AlphaColor<Srgb>The colour of a fade under text on media
(ui::overlay::scrim::vertical_fade).
ink: AlphaColor<Srgb>Primary ink on Self::scrim and on the letterbox.
ink_dim: AlphaColor<Srgb>Secondary ink on Self::scrim and on the letterbox.
guide: AlphaColor<Srgb>A composition guide drawn over a live picture (thirds, a level line, a crop frame’s grid): media ink, translucent so the picture stays the subject.
Implementations§
§impl MediaColors
impl MediaColors
pub fn new(hue: f32) -> MediaColors
pub fn new(hue: f32) -> MediaColors
The media set in the neutral material’s hue at no chroma: media
takes no temperature from the workspace.
Trait Implementations§
§impl Clone for MediaColors
impl Clone for MediaColors
§fn clone(&self) -> MediaColors
fn clone(&self) -> MediaColors
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for MediaColors
impl Debug for MediaColors
§impl PartialEq for MediaColors
impl PartialEq for MediaColors
impl Copy for MediaColors
impl StructuralPartialEq for MediaColors
Auto Trait Implementations§
impl Freeze for MediaColors
impl RefUnwindSafe for MediaColors
impl Send for MediaColors
impl Sync for MediaColors
impl Unpin for MediaColors
impl UnsafeUnpin for MediaColors
impl UnwindSafe for MediaColors
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more