pub struct IContentPage(/* private fields */);Expand description
The IContentPage interface is used to define a content page in the Command Palette. Content pages can be used to display additional information or resources related to the item being displayed in the Command Palette.
Implementations§
Source§impl IContentPage
impl IContentPage
Sourcepub fn GetContent(&self) -> Result<Array<IContent>>
pub fn GetContent(&self) -> Result<Array<IContent>>
The GetContent method retrieves the content associated with the content page. This method is used to display additional information or resources related to the item being displayed in the Command Palette.
Sourcepub fn Commands(&self) -> Result<Array<IContextItem>>
pub fn Commands(&self) -> Result<Array<IContextItem>>
The commands associated with the content page.
Sourcepub fn Id(&self) -> Result<HSTRING>
pub fn Id(&self) -> Result<HSTRING>
Gets the ID of the command. This is optional but can help support more efficient command lookup in ICommandProvider::GetCommand.
Sourcepub fn ItemsChanged<P0>(&self, handler: P0) -> Result<i64>
pub fn ItemsChanged<P0>(&self, handler: P0) -> Result<i64>
Sourcepub fn RemoveItemsChanged(&self, token: i64) -> Result<()>
pub fn RemoveItemsChanged(&self, token: i64) -> Result<()>
Sourcepub fn PropChanged<P0>(&self, handler: P0) -> Result<i64>
pub fn PropChanged<P0>(&self, handler: P0) -> Result<i64>
Sourcepub fn RemovePropChanged(&self, token: i64) -> Result<()>
pub fn RemovePropChanged(&self, token: i64) -> Result<()>
Sourcepub fn AccentColor(&self) -> Result<OptionalColor>
pub fn AccentColor(&self) -> Result<OptionalColor>
The accent color of the page.
Trait Implementations§
Source§impl AsImpl<ContentPage> for IContentPage
impl AsImpl<ContentPage> for IContentPage
Source§impl CanInto<IInspectable> for IContentPage
impl CanInto<IInspectable> for IContentPage
Source§impl CanInto<INotifyItemsChanged> for IContentPage
impl CanInto<INotifyItemsChanged> for IContentPage
Source§impl CanInto<INotifyPropChanged> for IContentPage
impl CanInto<INotifyPropChanged> for IContentPage
Source§impl Clone for IContentPage
impl Clone for IContentPage
Source§fn clone(&self) -> IContentPage
fn clone(&self) -> IContentPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComObjectInterface<IContentPage> for ContentPage_Impl
impl ComObjectInterface<IContentPage> for ContentPage_Impl
Source§fn as_interface_ref(&self) -> InterfaceRef<'_, IContentPage>
fn as_interface_ref(&self) -> InterfaceRef<'_, IContentPage>
Gets a borrowed interface that is implemented by
T.Source§impl Debug for IContentPage
impl Debug for IContentPage
impl Eq for IContentPage
Source§impl From<&IContentPage> for &IInspectable
impl From<&IContentPage> for &IInspectable
Source§fn from(value: &IContentPage) -> Self
fn from(value: &IContentPage) -> Self
Converts to this type from the input type.
Source§impl From<&IContentPage> for &IUnknown
impl From<&IContentPage> for &IUnknown
Source§fn from(value: &IContentPage) -> Self
fn from(value: &IContentPage) -> Self
Converts to this type from the input type.
Source§impl From<ContentPage> for IContentPage
impl From<ContentPage> for IContentPage
Source§fn from(this: ContentPage) -> Self
fn from(this: ContentPage) -> Self
Converts to this type from the input type.
Source§impl From<IContentPage> for IInspectable
impl From<IContentPage> for IInspectable
Source§fn from(value: IContentPage) -> Self
fn from(value: IContentPage) -> Self
Converts to this type from the input type.
Source§impl From<IContentPage> for IUnknown
impl From<IContentPage> for IUnknown
Source§fn from(value: IContentPage) -> Self
fn from(value: IContentPage) -> Self
Converts to this type from the input type.
Source§impl Interface for IContentPage
impl Interface for IContentPage
Source§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.Source§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.
Source§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 moreSource§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
This casts the given COM interface to [
&dyn Any]. Read moreSource§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
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 moreSource§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
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 moreSource§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a
Weak reference to this object.Source§unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT
Call
QueryInterface on this interface Read moreSource§fn to_ref(&self) -> InterfaceRef<'_, Self>
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).Source§impl PartialEq for IContentPage
impl PartialEq for IContentPage
Source§fn eq(&self, other: &IContentPage) -> bool
fn eq(&self, other: &IContentPage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IContentPage
Auto Trait Implementations§
impl !Send for IContentPage
impl !Sync for IContentPage
impl Freeze for IContentPage
impl RefUnwindSafe for IContentPage
impl Unpin for IContentPage
impl UnsafeUnpin for IContentPage
impl UnwindSafe for IContentPage
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