pub struct UiAutomationTogglePattern(/* private fields */);Expand description
提供对控件的访问,该控件可以在一组状态之间循环,并在设置状态后保持状态。
Implementations§
source§impl UiAutomationTogglePattern
impl UiAutomationTogglePattern
sourcepub fn obtain(value: &UiAutomationElement) -> Result<Self, String>
pub fn obtain(value: &UiAutomationElement) -> Result<Self, String>
从UI元素获取此模式。
sourcepub fn get_toggle_state(&self) -> ToggleState
pub fn get_toggle_state(&self) -> ToggleState
检索控件的状态。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiAutomationTogglePattern
impl RefUnwindSafe for UiAutomationTogglePattern
impl !Send for UiAutomationTogglePattern
impl !Sync for UiAutomationTogglePattern
impl Unpin for UiAutomationTogglePattern
impl UnwindSafe for UiAutomationTogglePattern
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