pub struct Colors(/* private fields */);
Implementations§
§impl Colors
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 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 Interface for Colors
impl Interface for Colors
§fn as_raw(&self) -> *mut c_void
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
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.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
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>,
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) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
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>,
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>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.impl Eq for Colors
impl Send for Colors
impl StructuralPartialEq for Colors
impl Sync for Colors
Auto Trait Implementations§
impl Freeze for Colors
impl RefUnwindSafe for Colors
impl Unpin for Colors
impl UnwindSafe for Colors
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)