cmdpal 0.1.0

Rust SDK for PowerToys Command Palette
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{bindings::*, page::content::ContentPage};
use windows::core::{ComObject, implement};

#[implement(ICommandSettings)]
pub struct CommandSettings(pub ComObject<ContentPage>);

impl ICommandSettings_Impl for CommandSettings_Impl {
    fn SettingsPage(&self) -> windows_core::Result<IContentPage> {
        Ok(self.0.to_interface())
    }
}