Trait IUIAutomationTextRange_Impl
pub trait IUIAutomationTextRange_Impl: IUnknownImpl {
Show 18 methods
// Required methods
fn Clone(&self) -> Result<IUIAutomationTextRange>;
fn Compare(&self, range: Ref<'_, IUIAutomationTextRange>) -> Result<BOOL>;
fn CompareEndpoints(
&self,
srcendpoint: TextPatternRangeEndpoint,
range: Ref<'_, IUIAutomationTextRange>,
targetendpoint: TextPatternRangeEndpoint,
) -> Result<i32>;
fn ExpandToEnclosingUnit(&self, textunit: TextUnit) -> Result<()>;
fn FindAttribute(
&self,
attr: UIA_TEXTATTRIBUTE_ID,
val: &VARIANT,
backward: BOOL,
) -> Result<IUIAutomationTextRange>;
fn FindText(
&self,
text: &BSTR,
backward: BOOL,
ignorecase: BOOL,
) -> Result<IUIAutomationTextRange>;
fn GetAttributeValue(&self, attr: UIA_TEXTATTRIBUTE_ID) -> Result<VARIANT>;
fn GetBoundingRectangles(&self) -> Result<*mut SAFEARRAY>;
fn GetEnclosingElement(&self) -> Result<IUIAutomationElement>;
fn GetText(&self, maxlength: i32) -> Result<BSTR>;
fn Move(&self, unit: TextUnit, count: i32) -> Result<i32>;
fn MoveEndpointByUnit(
&self,
endpoint: TextPatternRangeEndpoint,
unit: TextUnit,
count: i32,
) -> Result<i32>;
fn MoveEndpointByRange(
&self,
srcendpoint: TextPatternRangeEndpoint,
range: Ref<'_, IUIAutomationTextRange>,
targetendpoint: TextPatternRangeEndpoint,
) -> Result<()>;
fn Select(&self) -> Result<()>;
fn AddToSelection(&self) -> Result<()>;
fn RemoveFromSelection(&self) -> Result<()>;
fn ScrollIntoView(&self, aligntotop: BOOL) -> Result<()>;
fn GetChildren(&self) -> Result<IUIAutomationElementArray>;
}
Required Methods§
fn Clone(&self) -> Result<IUIAutomationTextRange>
fn Compare(&self, range: Ref<'_, IUIAutomationTextRange>) -> Result<BOOL>
fn CompareEndpoints( &self, srcendpoint: TextPatternRangeEndpoint, range: Ref<'_, IUIAutomationTextRange>, targetendpoint: TextPatternRangeEndpoint, ) -> Result<i32>
fn ExpandToEnclosingUnit(&self, textunit: TextUnit) -> Result<()>
fn FindAttribute( &self, attr: UIA_TEXTATTRIBUTE_ID, val: &VARIANT, backward: BOOL, ) -> Result<IUIAutomationTextRange>
fn FindText( &self, text: &BSTR, backward: BOOL, ignorecase: BOOL, ) -> Result<IUIAutomationTextRange>
fn GetAttributeValue(&self, attr: UIA_TEXTATTRIBUTE_ID) -> Result<VARIANT>
fn GetBoundingRectangles(&self) -> Result<*mut SAFEARRAY>
fn GetEnclosingElement(&self) -> Result<IUIAutomationElement>
fn GetText(&self, maxlength: i32) -> Result<BSTR>
fn Move(&self, unit: TextUnit, count: i32) -> Result<i32>
fn MoveEndpointByUnit( &self, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, ) -> Result<i32>
fn MoveEndpointByRange( &self, srcendpoint: TextPatternRangeEndpoint, range: Ref<'_, IUIAutomationTextRange>, targetendpoint: TextPatternRangeEndpoint, ) -> Result<()>
fn Select(&self) -> Result<()>
fn AddToSelection(&self) -> Result<()>
fn RemoveFromSelection(&self) -> Result<()>
fn ScrollIntoView(&self, aligntotop: BOOL) -> Result<()>
fn GetChildren(&self) -> Result<IUIAutomationElementArray>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.