Trait ITextRangeProvider_Impl
pub trait ITextRangeProvider_Impl: IUnknownImpl {
Show 18 methods
// Required methods
fn Clone(&self) -> Result<ITextRangeProvider>;
fn Compare(&self, range: Ref<'_, ITextRangeProvider>) -> Result<BOOL>;
fn CompareEndpoints(
&self,
endpoint: TextPatternRangeEndpoint,
targetrange: Ref<'_, ITextRangeProvider>,
targetendpoint: TextPatternRangeEndpoint,
) -> Result<i32>;
fn ExpandToEnclosingUnit(&self, unit: TextUnit) -> Result<()>;
fn FindAttribute(
&self,
attributeid: UIA_TEXTATTRIBUTE_ID,
val: &VARIANT,
backward: BOOL,
) -> Result<ITextRangeProvider>;
fn FindText(
&self,
text: &BSTR,
backward: BOOL,
ignorecase: BOOL,
) -> Result<ITextRangeProvider>;
fn GetAttributeValue(
&self,
attributeid: UIA_TEXTATTRIBUTE_ID,
) -> Result<VARIANT>;
fn GetBoundingRectangles(&self) -> Result<*mut SAFEARRAY>;
fn GetEnclosingElement(&self) -> Result<IRawElementProviderSimple>;
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,
endpoint: TextPatternRangeEndpoint,
targetrange: Ref<'_, ITextRangeProvider>,
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<*mut SAFEARRAY>;
}
Required Methods§
fn Clone(&self) -> Result<ITextRangeProvider>
fn Compare(&self, range: Ref<'_, ITextRangeProvider>) -> Result<BOOL>
fn CompareEndpoints( &self, endpoint: TextPatternRangeEndpoint, targetrange: Ref<'_, ITextRangeProvider>, targetendpoint: TextPatternRangeEndpoint, ) -> Result<i32>
fn ExpandToEnclosingUnit(&self, unit: TextUnit) -> Result<()>
fn FindAttribute( &self, attributeid: UIA_TEXTATTRIBUTE_ID, val: &VARIANT, backward: BOOL, ) -> Result<ITextRangeProvider>
fn FindText( &self, text: &BSTR, backward: BOOL, ignorecase: BOOL, ) -> Result<ITextRangeProvider>
fn GetAttributeValue( &self, attributeid: UIA_TEXTATTRIBUTE_ID, ) -> Result<VARIANT>
fn GetBoundingRectangles(&self) -> Result<*mut SAFEARRAY>
fn GetEnclosingElement(&self) -> Result<IRawElementProviderSimple>
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, endpoint: TextPatternRangeEndpoint, targetrange: Ref<'_, ITextRangeProvider>, 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<*mut SAFEARRAY>
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.