Struct windows::UI::Composition::Compositor

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

Implementations§

§

impl Compositor

pub fn new() -> Result<Self>

pub fn Close(&self) -> Result<()>

pub fn CreateColorKeyFrameAnimation(&self) -> Result<ColorKeyFrameAnimation>

pub fn CreateColorBrush(&self) -> Result<CompositionColorBrush>

pub fn CreateColorBrushWithColor( &self, color: Color, ) -> Result<CompositionColorBrush>

pub fn CreateContainerVisual(&self) -> Result<ContainerVisual>

pub fn CreateCubicBezierEasingFunction( &self, controlpoint1: Vector2, controlpoint2: Vector2, ) -> Result<CubicBezierEasingFunction>

pub fn CreateEffectFactory<P0>( &self, graphicseffect: P0, ) -> Result<CompositionEffectFactory>
where P0: Param<IGraphicsEffect>,

pub fn CreateEffectFactoryWithProperties<P0, P1>( &self, graphicseffect: P0, animatableproperties: P1, ) -> Result<CompositionEffectFactory>
where P0: Param<IGraphicsEffect>, P1: Param<IIterable<HSTRING>>,

pub fn CreateExpressionAnimation(&self) -> Result<ExpressionAnimation>

pub fn CreateExpressionAnimationWithExpression( &self, expression: &HSTRING, ) -> Result<ExpressionAnimation>

pub fn CreateInsetClip(&self) -> Result<InsetClip>

pub fn CreateInsetClipWithInsets( &self, leftinset: f32, topinset: f32, rightinset: f32, bottominset: f32, ) -> Result<InsetClip>

pub fn CreateLinearEasingFunction(&self) -> Result<LinearEasingFunction>

pub fn CreatePropertySet(&self) -> Result<CompositionPropertySet>

pub fn CreateQuaternionKeyFrameAnimation( &self, ) -> Result<QuaternionKeyFrameAnimation>

pub fn CreateScalarKeyFrameAnimation(&self) -> Result<ScalarKeyFrameAnimation>

pub fn CreateScopedBatch( &self, batchtype: CompositionBatchTypes, ) -> Result<CompositionScopedBatch>

pub fn CreateSpriteVisual(&self) -> Result<SpriteVisual>

pub fn CreateSurfaceBrush(&self) -> Result<CompositionSurfaceBrush>

pub fn CreateSurfaceBrushWithSurface<P0>( &self, surface: P0, ) -> Result<CompositionSurfaceBrush>
where P0: Param<ICompositionSurface>,

pub fn CreateTargetForCurrentView(&self) -> Result<CompositionTarget>

pub fn CreateVector2KeyFrameAnimation(&self) -> Result<Vector2KeyFrameAnimation>

pub fn CreateVector3KeyFrameAnimation(&self) -> Result<Vector3KeyFrameAnimation>

pub fn CreateVector4KeyFrameAnimation(&self) -> Result<Vector4KeyFrameAnimation>

pub fn GetCommitBatch( &self, batchtype: CompositionBatchTypes, ) -> Result<CompositionCommitBatch>

pub fn CreateAmbientLight(&self) -> Result<AmbientLight>

pub fn CreateAnimationGroup(&self) -> Result<CompositionAnimationGroup>

pub fn CreateBackdropBrush(&self) -> Result<CompositionBackdropBrush>

pub fn CreateDistantLight(&self) -> Result<DistantLight>

pub fn CreateDropShadow(&self) -> Result<DropShadow>

pub fn CreateImplicitAnimationCollection( &self, ) -> Result<ImplicitAnimationCollection>

pub fn CreateLayerVisual(&self) -> Result<LayerVisual>

pub fn CreateMaskBrush(&self) -> Result<CompositionMaskBrush>

pub fn CreateNineGridBrush(&self) -> Result<CompositionNineGridBrush>

pub fn CreatePointLight(&self) -> Result<PointLight>

pub fn CreateSpotLight(&self) -> Result<SpotLight>

pub fn CreateStepEasingFunction(&self) -> Result<StepEasingFunction>

pub fn CreateStepEasingFunctionWithStepCount( &self, stepcount: i32, ) -> Result<StepEasingFunction>

pub fn CreateHostBackdropBrush(&self) -> Result<CompositionBackdropBrush>

pub fn CreateColorGradientStop(&self) -> Result<CompositionColorGradientStop>

pub fn CreateColorGradientStopWithOffsetAndColor( &self, offset: f32, color: Color, ) -> Result<CompositionColorGradientStop>

pub fn CreateLinearGradientBrush( &self, ) -> Result<CompositionLinearGradientBrush>

pub fn CreateSpringScalarAnimation( &self, ) -> Result<SpringScalarNaturalMotionAnimation>

pub fn CreateSpringVector2Animation( &self, ) -> Result<SpringVector2NaturalMotionAnimation>

pub fn CreateSpringVector3Animation( &self, ) -> Result<SpringVector3NaturalMotionAnimation>

pub fn Comment(&self) -> Result<HSTRING>

pub fn SetComment(&self, value: &HSTRING) -> Result<()>

pub fn GlobalPlaybackRate(&self) -> Result<f32>

pub fn SetGlobalPlaybackRate(&self, value: f32) -> Result<()>

pub fn CreateBounceScalarAnimation( &self, ) -> Result<BounceScalarNaturalMotionAnimation>

pub fn CreateBounceVector2Animation( &self, ) -> Result<BounceVector2NaturalMotionAnimation>

pub fn CreateBounceVector3Animation( &self, ) -> Result<BounceVector3NaturalMotionAnimation>

pub fn CreateContainerShape(&self) -> Result<CompositionContainerShape>

pub fn CreateEllipseGeometry(&self) -> Result<CompositionEllipseGeometry>

pub fn CreateLineGeometry(&self) -> Result<CompositionLineGeometry>

pub fn CreatePathGeometry(&self) -> Result<CompositionPathGeometry>

pub fn CreatePathGeometryWithPath<P0>( &self, path: P0, ) -> Result<CompositionPathGeometry>
where P0: Param<CompositionPath>,

pub fn CreatePathKeyFrameAnimation(&self) -> Result<PathKeyFrameAnimation>

pub fn CreateRectangleGeometry(&self) -> Result<CompositionRectangleGeometry>

pub fn CreateRoundedRectangleGeometry( &self, ) -> Result<CompositionRoundedRectangleGeometry>

pub fn CreateShapeVisual(&self) -> Result<ShapeVisual>

pub fn CreateSpriteShape(&self) -> Result<CompositionSpriteShape>

pub fn CreateSpriteShapeWithGeometry<P0>( &self, geometry: P0, ) -> Result<CompositionSpriteShape>
where P0: Param<CompositionGeometry>,

pub fn CreateViewBox(&self) -> Result<CompositionViewBox>

pub fn RequestCommitAsync(&self) -> Result<IAsyncAction>

pub fn CreateGeometricClip(&self) -> Result<CompositionGeometricClip>

pub fn CreateGeometricClipWithGeometry<P0>( &self, geometry: P0, ) -> Result<CompositionGeometricClip>
where P0: Param<CompositionGeometry>,

pub fn CreateRedirectVisual(&self) -> Result<RedirectVisual>

pub fn CreateRedirectVisualWithSourceVisual<P0>( &self, source: P0, ) -> Result<RedirectVisual>
where P0: Param<Visual>,

pub fn CreateBooleanKeyFrameAnimation(&self) -> Result<BooleanKeyFrameAnimation>

pub fn DispatcherQueue(&self) -> Result<DispatcherQueue>

pub fn CreateAnimationPropertyInfo(&self) -> Result<AnimationPropertyInfo>

pub fn CreateRectangleClip(&self) -> Result<RectangleClip>

pub fn CreateRectangleClipWithSides( &self, left: f32, top: f32, right: f32, bottom: f32, ) -> Result<RectangleClip>

pub fn CreateRectangleClipWithSidesAndRadius( &self, left: f32, top: f32, right: f32, bottom: f32, topleftradius: Vector2, toprightradius: Vector2, bottomrightradius: Vector2, bottomleftradius: Vector2, ) -> Result<RectangleClip>

pub fn CreateAnimationController(&self) -> Result<AnimationController>

pub fn MaxGlobalPlaybackRate() -> Result<f32>

pub fn MinGlobalPlaybackRate() -> Result<f32>

pub fn TryCreateBlurredWallpaperBackdropBrush( &self, ) -> Result<CompositionBackdropBrush>

pub fn CreateProjectedShadowCaster( &self, ) -> Result<CompositionProjectedShadowCaster>

pub fn CreateProjectedShadow(&self) -> Result<CompositionProjectedShadow>

pub fn CreateProjectedShadowReceiver( &self, ) -> Result<CompositionProjectedShadowReceiver>

pub fn CreateRadialGradientBrush( &self, ) -> Result<CompositionRadialGradientBrush>

pub fn CreateVisualSurface(&self) -> Result<CompositionVisualSurface>

Trait Implementations§

§

impl CanInto<IClosable> for Compositor

§

const QUERY: bool = true

§

impl CanInto<IInspectable> for Compositor

§

const QUERY: bool = false

§

impl CanInto<IUnknown> for Compositor

§

const QUERY: bool = false

§

impl Clone for Compositor

§

fn clone(&self) -> Compositor

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 Compositor

§

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

Formats the value using the given formatter. Read more
§

impl From<&Compositor> for &IInspectable

§

fn from(value: &Compositor) -> Self

Converts to this type from the input type.
§

impl From<&Compositor> for &IUnknown

§

fn from(value: &Compositor) -> Self

Converts to this type from the input type.
§

impl From<Compositor> for IInspectable

§

fn from(value: Compositor) -> Self

Converts to this type from the input type.
§

impl From<Compositor> for IUnknown

§

fn from(value: Compositor) -> Self

Converts to this type from the input type.
§

impl Interface for Compositor

§

const IID: GUID = <ICompositor 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 Compositor

§

fn eq(&self, other: &Compositor) -> 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 Compositor

§

impl Send for Compositor

§

impl StructuralPartialEq for Compositor

§

impl Sync for Compositor

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.