[−][src]Struct dxplr::dwrite::TextLayout
Trait Implementations
impl Clone for TextLayout
[src]
pub fn clone(&self) -> TextLayout
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TextLayout
[src]
impl ITextFormat for TextLayout
[src]
pub fn get_flow_direction(&self) -> FlowDirection
[src]
pub fn get_font_collection(&self) -> Result<Option<FontCollection>, HResult>
[src]
pub fn get_font_family_name(&self) -> Result<String, HResult>
[src]
pub fn get_font_family_name_length(&self) -> u32
[src]
pub fn get_font_size(&self) -> f32
[src]
pub fn get_font_stretch(&self) -> FontStretch
[src]
pub fn get_font_style(&self) -> FontStyle
[src]
pub fn get_font_weight(&self) -> FontWeight
[src]
pub fn get_incremental_tab_stop(&self) -> f32
[src]
pub fn get_line_spacing(&self) -> Result<GetLineSpacingResult, HResult>
[src]
pub fn get_locale_name(&self) -> Result<String, HResult>
[src]
pub fn get_locale_name_length(&self) -> u32
[src]
pub fn get_paragraph_alignment(&self) -> ParagraphAlignment
[src]
pub fn get_reading_direction(&self) -> ReadingDirection
[src]
pub fn get_text_alignment(&self) -> TextAlignment
[src]
pub fn get_trimming(&self) -> Result<GetTrimmingResult, HResult>
[src]
pub fn get_word_wrapping(&self) -> WordWrapping
[src]
pub fn set_flow_direction(
&self,
flow_direction: FlowDirection
) -> Result<(), HResult>
[src]
&self,
flow_direction: FlowDirection
) -> Result<(), HResult>
pub fn set_incremental_tab_stop(&self, tab_stop: f32) -> Result<(), HResult>
[src]
pub fn set_line_spacing(
&self,
method: LineSpacingMethod,
line_spacing: f32,
baseline: f32
) -> Result<(), HResult>
[src]
&self,
method: LineSpacingMethod,
line_spacing: f32,
baseline: f32
) -> Result<(), HResult>
pub fn set_paragraph_alignment(
&self,
alignment: ParagraphAlignment
) -> Result<(), HResult>
[src]
&self,
alignment: ParagraphAlignment
) -> Result<(), HResult>
pub fn set_text_alignment(
&self,
alignment: TextAlignment
) -> Result<(), HResult>
[src]
&self,
alignment: TextAlignment
) -> Result<(), HResult>
pub fn set_trimming(
&self,
options: &Trimming,
sign: &impl IInlineObject
) -> Result<(), HResult>
[src]
&self,
options: &Trimming,
sign: &impl IInlineObject
) -> Result<(), HResult>
pub fn set_word_wrapping(
&self,
word_wrapping: WordWrapping
) -> Result<(), HResult>
[src]
&self,
word_wrapping: WordWrapping
) -> Result<(), HResult>
impl ITextLayout for TextLayout
[src]
pub fn determine_min_width(&self) -> Result<f32, HResult>
[src]
pub fn draw(
&self,
context: Option<*mut c_void>,
renderer: &impl ITextRenderer,
origin_x: f32,
origin_y: f32
) -> Result<(), HResult>
[src]
&self,
context: Option<*mut c_void>,
renderer: &impl ITextRenderer,
origin_x: f32,
origin_y: f32
) -> Result<(), HResult>
pub fn get_cluster_metrics(&self) -> Result<Vec<ClusterMetrics>, HResult>
[src]
pub fn get_drawing_effect(
&self,
current_position: u32
) -> Result<(Unknown, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(Unknown, TextRange), HResult>
pub fn get_font_collection(
&self,
current_position: u32
) -> Result<(FontCollection, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(FontCollection, TextRange), HResult>
pub fn get_font_family_name(
&self,
current_position: u32
) -> Result<(String, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(String, TextRange), HResult>
pub fn get_font_family_name_length(
&self,
current_position: u32
) -> Result<(u32, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(u32, TextRange), HResult>
pub fn get_font_size(
&self,
current_position: u32
) -> Result<(f32, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(f32, TextRange), HResult>
pub fn get_font_stretch(
&self,
current_position: u32
) -> Result<(FontStretch, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(FontStretch, TextRange), HResult>
pub fn get_font_style(
&self,
current_position: u32
) -> Result<(FontStyle, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(FontStyle, TextRange), HResult>
pub fn get_font_weight(
&self,
current_position: u32
) -> Result<(FontWeight, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(FontWeight, TextRange), HResult>
pub fn get_inline_object(
&self,
current_position: u32
) -> Result<(InlineObject, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(InlineObject, TextRange), HResult>
pub fn get_line_metrics(&self) -> Result<Vec<LineMetrics>, HResult>
[src]
pub fn get_locale_name(
&self,
current_position: u32
) -> Result<(String, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(String, TextRange), HResult>
pub fn get_locale_name_length(
&self,
current_position: u32
) -> Result<(u32, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(u32, TextRange), HResult>
pub fn get_max_height(&self) -> f32
[src]
pub fn get_max_width(&self) -> f32
[src]
pub fn get_metrics(&self) -> Result<TextMetrics, HResult>
[src]
pub fn get_overhang_metrics(&self) -> Result<OverhangMetrics, HResult>
[src]
pub fn get_strikethrough(
&self,
current_position: u32
) -> Result<(bool, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(bool, TextRange), HResult>
pub fn get_typography(
&self,
current_position: u32
) -> Result<(Typography, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(Typography, TextRange), HResult>
pub fn get_underline(
&self,
current_position: u32
) -> Result<(bool, TextRange), HResult>
[src]
&self,
current_position: u32
) -> Result<(bool, TextRange), HResult>
pub fn hit_test_point(
&self,
x: f32,
y: f32
) -> Result<HitTestPointResult, HResult>
[src]
&self,
x: f32,
y: f32
) -> Result<HitTestPointResult, HResult>
pub fn hit_test_text_position(
&self,
text_position: u32,
is_trailing_hit: bool
) -> Result<HitTestTextPositionResult, HResult>
[src]
&self,
text_position: u32,
is_trailing_hit: bool
) -> Result<HitTestTextPositionResult, HResult>
pub fn hit_test_text_range(
&self,
text_position: u32,
text_length: u32,
origin_x: f32,
origin_y: f32
) -> Result<Vec<HitTestMetrics>, HResult>
[src]
&self,
text_position: u32,
text_length: u32,
origin_x: f32,
origin_y: f32
) -> Result<Vec<HitTestMetrics>, HResult>
pub fn set_drawing_effect(
&self,
effect: &impl Interface,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
effect: &impl Interface,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_font_collection(
&self,
collection: &impl IFontCollection,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
collection: &impl IFontCollection,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_font_family_name(
&self,
family_name: impl AsRef<str>,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
family_name: impl AsRef<str>,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_font_size(
&self,
size: f32,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
size: f32,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_font_stretch(
&self,
stretch: FontStretch,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
stretch: FontStretch,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_font_style(
&self,
style: FontStyle,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
style: FontStyle,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_font_weight(
&self,
weight: FontWeight,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
weight: FontWeight,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_inline_object(
&self,
inline_object: &impl IInlineObject,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
inline_object: &impl IInlineObject,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_locale_name(
&self,
locale_name: impl AsRef<str>,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
locale_name: impl AsRef<str>,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_max_height(&self, height: f32) -> Result<(), HResult>
[src]
pub fn set_max_width(&self, width: f32) -> Result<(), HResult>
[src]
pub fn set_strikethrough(
&self,
has_strikethrough: bool,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
has_strikethrough: bool,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_typography(
&self,
typography: &impl ITypography,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
typography: &impl ITypography,
text_range: TextRange
) -> Result<(), HResult>
pub fn set_underline(
&self,
has_underline: bool,
text_range: TextRange
) -> Result<(), HResult>
[src]
&self,
has_underline: bool,
text_range: TextRange
) -> Result<(), HResult>
impl Interface for TextLayout
[src]
type APIType = IDWriteTextLayout
pub fn new(p: ComPtr<Self::APIType>) -> Self
[src]
pub fn uuidof() -> Guid
[src]
pub fn as_ptr(&self) -> *mut Self::APIType
[src]
pub fn as_com_ptr(&self) -> &ComPtr<Self::APIType>
[src]
pub fn as_unknown(&self) -> *mut IUnknown
[src]
pub fn from_com_ptr(p: ComPtr<Self::APIType>) -> Self
[src]
pub fn query_interface<T: Interface>(&self) -> Result<T, HResult>
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextLayout
impl Send for TextLayout
impl Sync for TextLayout
impl Unpin for TextLayout
impl UnwindSafe for TextLayout
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,