Struct directwrite::text_format::TextFormat
source · #[repr(C)]pub struct TextFormat { /* private fields */ }
Implementations
sourceimpl TextFormat
impl TextFormat
pub fn create<'a>(factory: &'a Factory) -> TextFormatBuilder<'a>
pub fn get_flow_direction(&self) -> DWResult<FlowDirection>
pub fn get_font_collection(&self) -> Option<FontCollection>
pub fn get_font_family_name(&self) -> DWResult<String>
pub fn get_font_size(&self) -> f32
pub fn get_font_stretch(&self) -> DWResult<FontStretch>
pub fn get_font_style(&self) -> DWResult<FontStyle>
pub fn get_font_weight(&self) -> DWResult<FontWeight>
pub fn get_incremental_tabstop(&self) -> f32
pub fn get_line_spacing(&self) -> DWResult<LineSpacing>
pub fn get_locale_name(&self) -> DWResult<String>
pub fn get_paragraph_alignment(&self) -> DWResult<ParagraphAlignment>
pub fn get_reading_direction(&self) -> DWResult<ReadingDirection>
pub fn get_text_alignment(&self) -> DWResult<TextAlignment>
pub fn get_word_wrapping(&self) -> DWResult<WordWrapping>
pub fn set_flow_direction(&self, value: FlowDirection) -> DWResult<()>
pub fn set_incremental_tabstop(&self, value: f32) -> DWResult<()>
pub fn set_line_spacing(
&self,
method: LineSpacingMethod,
spacing: f32,
baseline: f32
) -> DWResult<()>
pub fn set_paragraph_alignment(&self, value: ParagraphAlignment) -> DWResult<()>
pub fn set_reading_direction(&self, value: ReadingDirection) -> DWResult<()>
pub fn set_text_alignment(&self, value: TextAlignment) -> DWResult<()>
pub fn set_word_wrapping(&self, value: WordWrapping) -> DWResult<()>
pub unsafe fn from_raw(ptr: *mut IDWriteTextFormat) -> Self
pub unsafe fn get_raw(&self) -> *mut IDWriteTextFormat
Trait Implementations
sourceimpl Clone for TextFormat
impl Clone for TextFormat
sourcefn clone(&self) -> TextFormat
fn clone(&self) -> TextFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl PartialEq<TextFormat> for TextFormat
impl PartialEq<TextFormat> for TextFormat
sourcefn eq(&self, other: &TextFormat) -> bool
fn eq(&self, other: &TextFormat) -> bool
impl Send for TextFormat
impl StructuralPartialEq for TextFormat
impl Sync for TextFormat
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more