Struct windows::UI::Colors

pub struct Colors(/* private fields */);

Implementations§

§

impl Colors

pub fn AliceBlue() -> Result<Color>

pub fn AntiqueWhite() -> Result<Color>

pub fn Aqua() -> Result<Color>

pub fn Aquamarine() -> Result<Color>

pub fn Azure() -> Result<Color>

pub fn Beige() -> Result<Color>

pub fn Bisque() -> Result<Color>

pub fn Black() -> Result<Color>

pub fn BlanchedAlmond() -> Result<Color>

pub fn Blue() -> Result<Color>

pub fn BlueViolet() -> Result<Color>

pub fn Brown() -> Result<Color>

pub fn BurlyWood() -> Result<Color>

pub fn CadetBlue() -> Result<Color>

pub fn Chartreuse() -> Result<Color>

pub fn Chocolate() -> Result<Color>

pub fn Coral() -> Result<Color>

pub fn CornflowerBlue() -> Result<Color>

pub fn Cornsilk() -> Result<Color>

pub fn Crimson() -> Result<Color>

pub fn Cyan() -> Result<Color>

pub fn DarkBlue() -> Result<Color>

pub fn DarkCyan() -> Result<Color>

pub fn DarkGoldenrod() -> Result<Color>

pub fn DarkGray() -> Result<Color>

pub fn DarkGreen() -> Result<Color>

pub fn DarkKhaki() -> Result<Color>

pub fn DarkMagenta() -> Result<Color>

pub fn DarkOliveGreen() -> Result<Color>

pub fn DarkOrange() -> Result<Color>

pub fn DarkOrchid() -> Result<Color>

pub fn DarkRed() -> Result<Color>

pub fn DarkSalmon() -> Result<Color>

pub fn DarkSeaGreen() -> Result<Color>

pub fn DarkSlateBlue() -> Result<Color>

pub fn DarkSlateGray() -> Result<Color>

pub fn DarkTurquoise() -> Result<Color>

pub fn DarkViolet() -> Result<Color>

pub fn DeepPink() -> Result<Color>

pub fn DeepSkyBlue() -> Result<Color>

pub fn DimGray() -> Result<Color>

pub fn DodgerBlue() -> Result<Color>

pub fn Firebrick() -> Result<Color>

pub fn FloralWhite() -> Result<Color>

pub fn ForestGreen() -> Result<Color>

pub fn Fuchsia() -> Result<Color>

pub fn Gainsboro() -> Result<Color>

pub fn GhostWhite() -> Result<Color>

pub fn Gold() -> Result<Color>

pub fn Goldenrod() -> Result<Color>

pub fn Gray() -> Result<Color>

pub fn Green() -> Result<Color>

pub fn GreenYellow() -> Result<Color>

pub fn Honeydew() -> Result<Color>

pub fn HotPink() -> Result<Color>

pub fn IndianRed() -> Result<Color>

pub fn Indigo() -> Result<Color>

pub fn Ivory() -> Result<Color>

pub fn Khaki() -> Result<Color>

pub fn Lavender() -> Result<Color>

pub fn LavenderBlush() -> Result<Color>

pub fn LawnGreen() -> Result<Color>

pub fn LemonChiffon() -> Result<Color>

pub fn LightBlue() -> Result<Color>

pub fn LightCoral() -> Result<Color>

pub fn LightCyan() -> Result<Color>

pub fn LightGoldenrodYellow() -> Result<Color>

pub fn LightGreen() -> Result<Color>

pub fn LightGray() -> Result<Color>

pub fn LightPink() -> Result<Color>

pub fn LightSalmon() -> Result<Color>

pub fn LightSeaGreen() -> Result<Color>

pub fn LightSkyBlue() -> Result<Color>

pub fn LightSlateGray() -> Result<Color>

pub fn LightSteelBlue() -> Result<Color>

pub fn LightYellow() -> Result<Color>

pub fn Lime() -> Result<Color>

pub fn LimeGreen() -> Result<Color>

pub fn Linen() -> Result<Color>

pub fn Magenta() -> Result<Color>

pub fn Maroon() -> Result<Color>

pub fn MediumAquamarine() -> Result<Color>

pub fn MediumBlue() -> Result<Color>

pub fn MediumOrchid() -> Result<Color>

pub fn MediumPurple() -> Result<Color>

pub fn MediumSeaGreen() -> Result<Color>

pub fn MediumSlateBlue() -> Result<Color>

pub fn MediumSpringGreen() -> Result<Color>

pub fn MediumTurquoise() -> Result<Color>

pub fn MediumVioletRed() -> Result<Color>

pub fn MidnightBlue() -> Result<Color>

pub fn MintCream() -> Result<Color>

pub fn MistyRose() -> Result<Color>

pub fn Moccasin() -> Result<Color>

pub fn NavajoWhite() -> Result<Color>

pub fn Navy() -> Result<Color>

pub fn OldLace() -> Result<Color>

pub fn Olive() -> Result<Color>

pub fn OliveDrab() -> Result<Color>

pub fn Orange() -> Result<Color>

pub fn OrangeRed() -> Result<Color>

pub fn Orchid() -> Result<Color>

pub fn PaleGoldenrod() -> Result<Color>

pub fn PaleGreen() -> Result<Color>

pub fn PaleTurquoise() -> Result<Color>

pub fn PaleVioletRed() -> Result<Color>

pub fn PapayaWhip() -> Result<Color>

pub fn PeachPuff() -> Result<Color>

pub fn Peru() -> Result<Color>

pub fn Pink() -> Result<Color>

pub fn Plum() -> Result<Color>

pub fn PowderBlue() -> Result<Color>

pub fn Purple() -> Result<Color>

pub fn Red() -> Result<Color>

pub fn RosyBrown() -> Result<Color>

pub fn RoyalBlue() -> Result<Color>

pub fn SaddleBrown() -> Result<Color>

pub fn Salmon() -> Result<Color>

pub fn SandyBrown() -> Result<Color>

pub fn SeaGreen() -> Result<Color>

pub fn SeaShell() -> Result<Color>

pub fn Sienna() -> Result<Color>

pub fn Silver() -> Result<Color>

pub fn SkyBlue() -> Result<Color>

pub fn SlateBlue() -> Result<Color>

pub fn SlateGray() -> Result<Color>

pub fn Snow() -> Result<Color>

pub fn SpringGreen() -> Result<Color>

pub fn SteelBlue() -> Result<Color>

pub fn Tan() -> Result<Color>

pub fn Teal() -> Result<Color>

pub fn Thistle() -> Result<Color>

pub fn Tomato() -> Result<Color>

pub fn Transparent() -> Result<Color>

pub fn Turquoise() -> Result<Color>

pub fn Violet() -> Result<Color>

pub fn Wheat() -> Result<Color>

pub fn White() -> Result<Color>

pub fn WhiteSmoke() -> Result<Color>

pub fn Yellow() -> Result<Color>

pub fn YellowGreen() -> Result<Color>

Trait Implementations§

§

impl CanInto<IInspectable> for Colors

§

const QUERY: bool = false

§

impl CanInto<IUnknown> for Colors

§

const QUERY: bool = false

§

impl Clone for Colors

§

fn clone(&self) -> Colors

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Colors

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl From<&Colors> for &IInspectable

§

fn from(value: &Colors) -> Self

Converts to this type from the input type.
§

impl From<&Colors> for &IUnknown

§

fn from(value: &Colors) -> Self

Converts to this type from the input type.
§

impl From<Colors> for IInspectable

§

fn from(value: Colors) -> Self

Converts to this type from the input type.
§

impl From<Colors> for IUnknown

§

fn from(value: Colors) -> Self

Converts to this type from the input type.
§

impl Interface for Colors

§

const IID: GUID = <IColors as windows_core::Interface>::IID

The GUID associated with the interface.
§

fn as_raw(&self) -> *mut c_void

Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface implementation.
§

fn into_raw(self) -> *mut c_void

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. Read more
§

fn is_object<T>(&self) -> bool
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

Returns true if the given COM interface refers to an implementation of T. Read more
§

fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. &MyApp_Impl, not the inner &MyApp object. Read more
§

fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. MyApp_Impl, not the inner MyApp object. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a [Weak] reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

fn to_ref(&self) -> InterfaceRef<'_, Self>

Creates an InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically, and eliminates the need for dynamic reference count adjustments (AddRef/Release).
§

impl PartialEq for Colors

§

fn eq(&self, other: &Colors) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for Colors

§

impl Send for Colors

§

impl StructuralPartialEq for Colors

§

impl Sync for Colors

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.