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: IntoParam<IGraphicsEffect>,
pub fn CreateEffectFactoryWithProperties<P0, P1>( &self, graphicseffect: P0, animatableproperties: P1 ) -> Result<CompositionEffectFactory>
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: IntoParam<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: IntoParam<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: IntoParam<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: IntoParam<CompositionGeometry>,
pub fn CreateRedirectVisual(&self) -> Result<RedirectVisual>
pub fn CreateRedirectVisualWithSourceVisual<P0>(
&self,
source: P0
) -> Result<RedirectVisual>where
P0: IntoParam<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 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
§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§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§
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