Struct windows::UI::Composition::Compositor
pub struct Compositor(/* private fields */);
Implementations§
§impl Compositor
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<IInspectable> for Compositor
impl CanInto<IInspectable> for Compositor
§impl CanInto<IUnknown> for Compositor
impl CanInto<IUnknown> for Compositor
§impl Clone for Compositor
impl Clone for Compositor
§fn clone(&self) -> Compositor
fn clone(&self) -> Compositor
Returns a copy 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 Compositor
impl Debug for Compositor
§impl From<&Compositor> for &IInspectable
impl From<&Compositor> for &IInspectable
§fn from(value: &Compositor) -> Self
fn from(value: &Compositor) -> Self
Converts to this type from the input type.
§impl From<&Compositor> for &IUnknown
impl From<&Compositor> for &IUnknown
§fn from(value: &Compositor) -> Self
fn from(value: &Compositor) -> Self
Converts to this type from the input type.
§impl From<Compositor> for IInspectable
impl From<Compositor> for IInspectable
§fn from(value: Compositor) -> Self
fn from(value: Compositor) -> Self
Converts to this type from the input type.
§impl From<Compositor> for IUnknown
impl From<Compositor> for IUnknown
§fn from(value: Compositor) -> Self
fn from(value: Compositor) -> Self
Converts to this type from the input type.
§impl Interface for Compositor
impl Interface for Compositor
§const IID: GUID = <ICompositor as windows_core::Interface>::IID
const IID: GUID = <ICompositor as windows_core::Interface>::IID
The
GUID
associated with the interface.§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 PartialEq for Compositor
impl PartialEq for Compositor
§fn eq(&self, other: &Compositor) -> bool
fn eq(&self, other: &Compositor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Compositor
impl Send for Compositor
impl StructuralPartialEq for Compositor
impl Sync for Compositor
Auto Trait Implementations§
impl Freeze for Compositor
impl RefUnwindSafe for Compositor
impl Unpin for Compositor
impl UnwindSafe for Compositor
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
)