Enum ForegroundHint
#[repr(i32)]pub enum ForegroundHint {
None = 0,
Translucent = 1,
Opaque = 2,
}Expand description
Hint for foreground handling of nodes.
Variants§
None = 0
No hint given, assumed the background of a node can be rendered after content.
Translucent = 1
Some elements rendered within the node are translucent over the background.
Opaque = 2
Node content is assumed to be fully opaque, meaning that there is no need to render the background.
Implementations§
§impl ForegroundHint
impl ForegroundHint
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> ForegroundHint
Trait Implementations§
§impl Clone for ForegroundHint
impl Clone for ForegroundHint
§fn clone(&self) -> ForegroundHint
fn clone(&self) -> ForegroundHint
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 more§impl Debug for ForegroundHint
impl Debug for ForegroundHint
§impl Display for ForegroundHint
impl Display for ForegroundHint
§impl PartialEq for ForegroundHint
impl PartialEq for ForegroundHint
§impl VariantConstraint for ForegroundHint
impl VariantConstraint for ForegroundHint
§type DataArg<'a> = ForegroundHint
type DataArg<'a> = ForegroundHint
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = ForegroundHint
type RetArg = ForegroundHint
§fn as_arg(&self) -> <ForegroundHint as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <ForegroundHint as VariantConstraint>::DataArg<'_>
impl Copy for ForegroundHint
impl Eq for ForegroundHint
impl PropertyTypeConstraint for ForegroundHint
impl StructuralPartialEq for ForegroundHint
Auto Trait Implementations§
impl Freeze for ForegroundHint
impl RefUnwindSafe for ForegroundHint
impl Send for ForegroundHint
impl Sync for ForegroundHint
impl Unpin for ForegroundHint
impl UnwindSafe for ForegroundHint
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