Struct SecondaryTile
pub struct SecondaryTile(/* private fields */);
Implementations§
§impl SecondaryTile
impl SecondaryTile
pub fn new() -> Result<Self>
pub fn SetTileId(&self, value: &HSTRING) -> Result<()>
pub fn TileId(&self) -> Result<HSTRING>
pub fn SetArguments(&self, value: &HSTRING) -> Result<()>
pub fn Arguments(&self) -> Result<HSTRING>
pub fn SetShortName(&self, value: &HSTRING) -> Result<()>
pub fn ShortName(&self) -> Result<HSTRING>
pub fn SetDisplayName(&self, value: &HSTRING) -> Result<()>
pub fn DisplayName(&self) -> Result<HSTRING>
pub fn SetLogo<P0>(&self, value: P0) -> Result<()>where
P0: Param<Uri>,
pub fn Logo(&self) -> Result<Uri>
pub fn SetSmallLogo<P0>(&self, value: P0) -> Result<()>where
P0: Param<Uri>,
pub fn SmallLogo(&self) -> Result<Uri>
pub fn SetWideLogo<P0>(&self, value: P0) -> Result<()>where
P0: Param<Uri>,
pub fn WideLogo(&self) -> Result<Uri>
pub fn SetLockScreenBadgeLogo<P0>(&self, value: P0) -> Result<()>where
P0: Param<Uri>,
pub fn LockScreenBadgeLogo(&self) -> Result<Uri>
pub fn SetLockScreenDisplayBadgeAndTileText(&self, value: bool) -> Result<()>
pub fn LockScreenDisplayBadgeAndTileText(&self) -> Result<bool>
pub fn SetTileOptions(&self, value: TileOptions) -> Result<()>
pub fn TileOptions(&self) -> Result<TileOptions>
pub fn SetForegroundText(&self, value: ForegroundText) -> Result<()>
pub fn ForegroundText(&self) -> Result<ForegroundText>
pub fn SetBackgroundColor(&self, value: Color) -> Result<()>
pub fn BackgroundColor(&self) -> Result<Color>
pub fn RequestCreateAsync(&self) -> Result<IAsyncOperation<bool>>
pub fn RequestCreateAsyncWithPoint( &self, invocationpoint: Point, ) -> Result<IAsyncOperation<bool>>
pub fn RequestCreateAsyncWithRect( &self, selection: Rect, ) -> Result<IAsyncOperation<bool>>
pub fn RequestCreateAsyncWithRectAndPlacement( &self, selection: Rect, preferredplacement: Placement, ) -> Result<IAsyncOperation<bool>>
pub fn RequestDeleteAsync(&self) -> Result<IAsyncOperation<bool>>
pub fn RequestDeleteAsyncWithPoint( &self, invocationpoint: Point, ) -> Result<IAsyncOperation<bool>>
pub fn RequestDeleteAsyncWithRect( &self, selection: Rect, ) -> Result<IAsyncOperation<bool>>
pub fn RequestDeleteAsyncWithRectAndPlacement( &self, selection: Rect, preferredplacement: Placement, ) -> Result<IAsyncOperation<bool>>
pub fn UpdateAsync(&self) -> Result<IAsyncOperation<bool>>
pub fn SetPhoneticName(&self, value: &HSTRING) -> Result<()>
pub fn PhoneticName(&self) -> Result<HSTRING>
pub fn VisualElements(&self) -> Result<SecondaryTileVisualElements>
pub fn SetRoamingEnabled(&self, value: bool) -> Result<()>
pub fn RoamingEnabled(&self) -> Result<bool>
pub fn VisualElementsRequested<P0>(&self, handler: P0) -> Result<i64>
pub fn RemoveVisualElementsRequested(&self, token: i64) -> Result<()>
pub fn CreateTile<P5>(
tileid: &HSTRING,
shortname: &HSTRING,
displayname: &HSTRING,
arguments: &HSTRING,
tileoptions: TileOptions,
logoreference: P5,
) -> Result<SecondaryTile>where
P5: Param<Uri>,
pub fn CreateWideTile<P5, P6>( tileid: &HSTRING, shortname: &HSTRING, displayname: &HSTRING, arguments: &HSTRING, tileoptions: TileOptions, logoreference: P5, widelogoreference: P6, ) -> Result<SecondaryTile>
pub fn CreateWithId(tileid: &HSTRING) -> Result<SecondaryTile>
pub fn CreateMinimalTile<P3>(
tileid: &HSTRING,
displayname: &HSTRING,
arguments: &HSTRING,
square150x150logo: P3,
desiredsize: TileSize,
) -> Result<SecondaryTile>where
P3: Param<Uri>,
pub fn Exists(tileid: &HSTRING) -> Result<bool>
pub fn FindAllAsync() -> Result<IAsyncOperation<IVectorView<SecondaryTile>>>
pub fn FindAllForApplicationAsync( applicationid: &HSTRING, ) -> Result<IAsyncOperation<IVectorView<SecondaryTile>>>
pub fn FindAllForPackageAsync() -> Result<IAsyncOperation<IVectorView<SecondaryTile>>>
Trait Implementations§
§impl CanInto<IInspectable> for SecondaryTile
impl CanInto<IInspectable> for SecondaryTile
§impl CanInto<IUnknown> for SecondaryTile
impl CanInto<IUnknown> for SecondaryTile
§impl Clone for SecondaryTile
impl Clone for SecondaryTile
§fn clone(&self) -> SecondaryTile
fn clone(&self) -> SecondaryTile
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 SecondaryTile
impl Debug for SecondaryTile
§impl From<&SecondaryTile> for &IInspectable
impl From<&SecondaryTile> for &IInspectable
§fn from(value: &SecondaryTile) -> Self
fn from(value: &SecondaryTile) -> Self
Converts to this type from the input type.
§impl From<&SecondaryTile> for &IUnknown
impl From<&SecondaryTile> for &IUnknown
§fn from(value: &SecondaryTile) -> Self
fn from(value: &SecondaryTile) -> Self
Converts to this type from the input type.
§impl From<SecondaryTile> for IInspectable
impl From<SecondaryTile> for IInspectable
§fn from(value: SecondaryTile) -> Self
fn from(value: SecondaryTile) -> Self
Converts to this type from the input type.
§impl From<SecondaryTile> for IUnknown
impl From<SecondaryTile> for IUnknown
§fn from(value: SecondaryTile) -> Self
fn from(value: SecondaryTile) -> Self
Converts to this type from the input type.
§impl Interface for SecondaryTile
impl Interface for SecondaryTile
§const IID: GUID = <ISecondaryTile as windows_core::Interface>::IID
const IID: GUID = <ISecondaryTile 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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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 SecondaryTile
impl PartialEq for SecondaryTile
impl Eq for SecondaryTile
impl Send for SecondaryTile
impl StructuralPartialEq for SecondaryTile
impl Sync for SecondaryTile
Auto Trait Implementations§
impl Freeze for SecondaryTile
impl RefUnwindSafe for SecondaryTile
impl Unpin for SecondaryTile
impl UnwindSafe for SecondaryTile
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