Struct uiautomation::controls::HeaderControl

source ·
pub struct HeaderControl { /* private fields */ }
Expand description

Wrapper a Header element as control. The control type of the element must be UIA_HeaderControlTypeId.

  • Must support: None
  • Conditional support: Transform

Trait Implementations§

source§

impl AsRef<UIElement> for HeaderControl

source§

fn as_ref(&self) -> &UIElement

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Control for HeaderControl

source§

const TYPE: ControlType = ControlType::Header

Defines the control type id.
source§

impl Debug for HeaderControl

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for HeaderControl

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Into<UIElement> for HeaderControl

source§

fn into(self) -> UIElement

Converts this type into the (usually inferred) input type.
source§

impl Transform for HeaderControl

source§

fn can_move(&self) -> Result<bool>

Indicates whether the element can be moved.
source§

fn move_to(&self, x: f64, y: f64) -> Result<()>

Moves the UI Automation element.
source§

fn can_resize(&self) -> Result<bool>

Indicates whether the element can be resized.
source§

fn resize(&self, width: f64, height: f64) -> Result<()>

Resizes the UI Automation element.
source§

fn can_rotate(&self) -> Result<bool>

Indicates whether the element can be rotated.
source§

fn rotate(&self, degrees: f64) -> Result<()>

Rotates the UI Automation element.
source§

fn can_zoom(&self) -> Result<bool>

Indicates whether the control supports zooming of its viewport.
source§

fn get_zoom_level(&self) -> Result<f64>

Retrieves the zoom level of the control’s viewport.
source§

fn get_zoom_minimum(&self) -> Result<f64>

Retrieves the minimum zoom level of the control’s viewport.
source§

fn get_zoom_maximum(&self) -> Result<f64>

Retrieves the maximum zoom level of the control’s viewport.
source§

fn zoom(&self, zoom_value: f64) -> Result<()>

Zooms the viewport of the control.
source§

fn zoom_by_unit(&self, zoom_unit: ZoomUnit) -> Result<()>

Zooms the viewport of the control by the specified unit.
source§

impl TryFrom<&UIElement> for HeaderControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: &UIElement) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<UIElement> for HeaderControl

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(control: UIElement) -> Result<Self>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.