Struct mltg_bindings::Windows::Win32::Graphics::DirectWrite::IDWriteTextLayout [−][src]
#[repr(transparent)]pub struct IDWriteTextLayout(_);
Implementations
pub unsafe fn SetParagraphAlignment(
&self,
paragraphalignment: DWRITE_PARAGRAPH_ALIGNMENT
) -> Result<()>
pub unsafe fn SetReadingDirection(
&self,
readingdirection: DWRITE_READING_DIRECTION
) -> Result<()>
pub unsafe fn SetTrimming<'a>(
&self,
trimmingoptions: *const DWRITE_TRIMMING,
trimmingsign: impl IntoParam<'a, IDWriteInlineObject>
) -> Result<()>
pub unsafe fn SetLineSpacing(
&self,
linespacingmethod: DWRITE_LINE_SPACING_METHOD,
linespacing: f32,
baseline: f32
) -> Result<()>
pub unsafe fn GetTrimming(
&self,
trimmingoptions: *mut DWRITE_TRIMMING,
trimmingsign: *mut Option<IDWriteInlineObject>
) -> Result<()>
pub unsafe fn GetLineSpacing(
&self,
linespacingmethod: *mut DWRITE_LINE_SPACING_METHOD,
linespacing: *mut f32,
baseline: *mut f32
) -> Result<()>
pub unsafe fn SetFontCollection<'a>(
&self,
fontcollection: impl IntoParam<'a, IDWriteFontCollection>,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetFontFamilyName<'a>(
&self,
fontfamilyname: impl IntoParam<'a, PWSTR>,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetFontWeight<'a>(
&self,
fontweight: DWRITE_FONT_WEIGHT,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetFontStyle<'a>(
&self,
fontstyle: DWRITE_FONT_STYLE,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetFontStretch<'a>(
&self,
fontstretch: DWRITE_FONT_STRETCH,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetFontSize<'a>(
&self,
fontsize: f32,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetUnderline<'a>(
&self,
hasunderline: impl IntoParam<'a, BOOL>,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetStrikethrough<'a>(
&self,
hasstrikethrough: impl IntoParam<'a, BOOL>,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetDrawingEffect<'a>(
&self,
drawingeffect: impl IntoParam<'a, IUnknown>,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetInlineObject<'a>(
&self,
inlineobject: impl IntoParam<'a, IDWriteInlineObject>,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetTypography<'a>(
&self,
typography: impl IntoParam<'a, IDWriteTypography>,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn SetLocaleName<'a>(
&self,
localename: impl IntoParam<'a, PWSTR>,
textrange: impl IntoParam<'a, DWRITE_TEXT_RANGE>
) -> Result<()>
pub unsafe fn GetFontCollection2(
&self,
currentposition: u32,
fontcollection: *mut Option<IDWriteFontCollection>,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetFontFamilyNameLength2(
&self,
currentposition: u32,
namelength: *mut u32,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetFontFamilyName2(
&self,
currentposition: u32,
fontfamilyname: PWSTR,
namesize: u32,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetFontWeight2(
&self,
currentposition: u32,
fontweight: *mut DWRITE_FONT_WEIGHT,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetFontStyle2(
&self,
currentposition: u32,
fontstyle: *mut DWRITE_FONT_STYLE,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetFontStretch2(
&self,
currentposition: u32,
fontstretch: *mut DWRITE_FONT_STRETCH,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetFontSize2(
&self,
currentposition: u32,
fontsize: *mut f32,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetUnderline(
&self,
currentposition: u32,
hasunderline: *mut BOOL,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetStrikethrough(
&self,
currentposition: u32,
hasstrikethrough: *mut BOOL,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetDrawingEffect(
&self,
currentposition: u32,
drawingeffect: *mut Option<IUnknown>,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetInlineObject(
&self,
currentposition: u32,
inlineobject: *mut Option<IDWriteInlineObject>,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetTypography(
&self,
currentposition: u32,
typography: *mut Option<IDWriteTypography>,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetLocaleNameLength2(
&self,
currentposition: u32,
namelength: *mut u32,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn GetLocaleName2(
&self,
currentposition: u32,
localename: PWSTR,
namesize: u32,
textrange: *mut DWRITE_TEXT_RANGE
) -> Result<()>
pub unsafe fn Draw<'a>(
&self,
clientdrawingcontext: *mut c_void,
renderer: impl IntoParam<'a, IDWriteTextRenderer>,
originx: f32,
originy: f32
) -> Result<()>
pub unsafe fn GetLineMetrics(
&self,
linemetrics: *mut DWRITE_LINE_METRICS,
maxlinecount: u32,
actuallinecount: *mut u32
) -> Result<()>
pub unsafe fn GetClusterMetrics(
&self,
clustermetrics: *mut DWRITE_CLUSTER_METRICS,
maxclustercount: u32,
actualclustercount: *mut u32
) -> Result<()>
pub unsafe fn HitTestPoint(
&self,
pointx: f32,
pointy: f32,
istrailinghit: *mut BOOL,
isinside: *mut BOOL,
hittestmetrics: *mut DWRITE_HIT_TEST_METRICS
) -> Result<()>
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for IDWriteTextLayout
impl !Send for IDWriteTextLayout
impl !Sync for IDWriteTextLayout
impl Unpin for IDWriteTextLayout
impl UnwindSafe for IDWriteTextLayout
Blanket Implementations
type DefaultType = Option<T>
Converts from Self::DefaultType
to Result<T>
.
Returns a pointer for setting the object’s value via an ABI call.
Mutably borrows from an owned value. Read more