pub struct IListPage(/* private fields */);Expand description
The IListPage interface represents a page in the Command Palette that displays a list of items. It is used to present a collection of items in a structured format, allowing users to interact with and select from the list.
Implementations§
Source§impl IListPage
impl IListPage
Sourcepub fn SearchText(&self) -> Result<HSTRING>
pub fn SearchText(&self) -> Result<HSTRING>
The text used to filter the list items. This property allows users to search for specific items within the list.
Sourcepub fn PlaceholderText(&self) -> Result<HSTRING>
pub fn PlaceholderText(&self) -> Result<HSTRING>
The text to display when the list is empty or no items match the current filters. This property provides context to the user about the state of the list.
Sourcepub fn ShowDetails(&self) -> Result<bool>
pub fn ShowDetails(&self) -> Result<bool>
Indicates whether to show detailed information about the items in the list. This property can be used to toggle between a summary view and a detailed view of the items.
Sourcepub fn Filters(&self) -> Result<IFilters>
pub fn Filters(&self) -> Result<IFilters>
The filters applied to the list. This property allows users to refine the items displayed in the list based on specific criteria.
Sourcepub fn GridProperties(&self) -> Result<IGridProperties>
pub fn GridProperties(&self) -> Result<IGridProperties>
The properties of the grid layout used to display the list items. This property defines how the items are arranged and presented in the grid.
Sourcepub fn HasMoreItems(&self) -> Result<bool>
pub fn HasMoreItems(&self) -> Result<bool>
Indicates whether there are more items to load in the list. This property is used to determine if additional items can be fetched or displayed.
Sourcepub fn EmptyContent(&self) -> Result<ICommandItem>
pub fn EmptyContent(&self) -> Result<ICommandItem>
The content to display when the list is empty. This property can be used to provide a message or action for the user when there are no items to display.
Sourcepub fn GetItems(&self) -> Result<Array<IListItem>>
pub fn GetItems(&self) -> Result<Array<IListItem>>
The GetItems method retrieves the items to be displayed in the list. This method is used to fetch the data that populates the list.
§Returns
An array of IListItem containing the items to be displayed in the list. The array may be empty if there are no items to display or if the filters applied to the list result in no matching items.
Sourcepub fn LoadMore(&self) -> Result<()>
pub fn LoadMore(&self) -> Result<()>
The LoadMore method is used to load additional items into the list. This method is typically called when the user requests more items, such as when scrolling to the end of the list or clicking a “Load More” button.
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<DynamicListPage> for IListPage
impl AsImpl<DynamicListPage> for IListPage
Source§impl ComObjectInterface<IListPage> for DynamicListPage_Impl
impl ComObjectInterface<IListPage> for DynamicListPage_Impl
Source§fn as_interface_ref(&self) -> InterfaceRef<'_, IListPage>
fn as_interface_ref(&self) -> InterfaceRef<'_, IListPage>
T.Source§impl ComObjectInterface<IListPage> for ListPage_Impl
impl ComObjectInterface<IListPage> for ListPage_Impl
Source§fn as_interface_ref(&self) -> InterfaceRef<'_, IListPage>
fn as_interface_ref(&self) -> InterfaceRef<'_, IListPage>
T.impl Eq for IListPage
Source§impl From<&IListPage> for &IInspectable
impl From<&IListPage> for &IInspectable
Source§impl From<DynamicListPage> for IListPage
impl From<DynamicListPage> for IListPage
Source§fn from(this: DynamicListPage) -> Self
fn from(this: DynamicListPage) -> Self
Source§impl From<IListPage> for IInspectable
impl From<IListPage> for IInspectable
Source§impl Interface for IListPage
impl Interface for IListPage
Source§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Interface implementation.Source§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Source§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
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>
&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>
&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>
&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>
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
QueryInterface on this interface Read moreSource§fn to_ref(&self) -> InterfaceRef<'_, Self>
fn to_ref(&self) -> InterfaceRef<'_, Self>
InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically,
and eliminates the need for dynamic reference count adjustments (AddRef/Release).