[−][src]Struct dxplr::dwrite::Factory
Trait Implementations
impl Clone for Factory
[src]
impl Debug for Factory
[src]
impl IFactory for Factory
[src]
pub fn create_custom_font_collection(
&self,
loader: &impl IFontCollectionLoader,
key: &[u8]
) -> Result<FontCollection, HResult>
[src]
&self,
loader: &impl IFontCollectionLoader,
key: &[u8]
) -> Result<FontCollection, HResult>
pub fn create_custom_font_file_reference(
&self,
key: &[u8],
loader: &impl IFontFileLoader
) -> Result<FontFile, HResult>
[src]
&self,
key: &[u8],
loader: &impl IFontFileLoader
) -> Result<FontFile, HResult>
pub fn create_custom_rendering_params(
&self,
gamma: f32,
enchanced_contrast: f32,
clear_type_level: f32,
pixel_geometry: PixelGeometry,
rendering_mode: RenderingMode
) -> Result<RenderingParams, HResult>
[src]
&self,
gamma: f32,
enchanced_contrast: f32,
clear_type_level: f32,
pixel_geometry: PixelGeometry,
rendering_mode: RenderingMode
) -> Result<RenderingParams, HResult>
pub fn create_ellipsis_trimming_sign(
&self,
format: &impl ITextFormat
) -> Result<InlineObject, HResult>
[src]
&self,
format: &impl ITextFormat
) -> Result<InlineObject, HResult>
pub fn create_font_face(
&self,
font_face_type: FontFaceType,
font_files: &[&impl IFontFile],
face_index: u32,
flags: Option<FontSimulations>
) -> Result<FontFace, HResult>
[src]
&self,
font_face_type: FontFaceType,
font_files: &[&impl IFontFile],
face_index: u32,
flags: Option<FontSimulations>
) -> Result<FontFace, HResult>
pub fn create_font_file_reference(
&self,
path: impl AsRef<Path>,
file_time: Option<&FileTime>
) -> Result<FontFile, HResult>
[src]
&self,
path: impl AsRef<Path>,
file_time: Option<&FileTime>
) -> Result<FontFile, HResult>
pub fn create_gdi_compatible_text_layout(
&self,
string: impl AsRef<str>,
format: &impl ITextFormat,
width: f32,
height: f32,
pixels_per_dip: f32,
transform: Option<&Matrix>,
use_gdi_natural: bool
) -> Result<TextLayout, HResult>
[src]
&self,
string: impl AsRef<str>,
format: &impl ITextFormat,
width: f32,
height: f32,
pixels_per_dip: f32,
transform: Option<&Matrix>,
use_gdi_natural: bool
) -> Result<TextLayout, HResult>
pub fn create_glyph_run_analysis(
&self,
glyph_run: &GlyphRun<'_, '_, '_>,
pixels_per_dip: f32,
transform: Option<&Matrix>,
rendering_mode: RenderingMode,
measuring_mode: MeasuringMode,
baseline_origin_x: f32,
baseline_origin_y: f32
) -> Result<GlyphRunAnalysis, HResult>
[src]
&self,
glyph_run: &GlyphRun<'_, '_, '_>,
pixels_per_dip: f32,
transform: Option<&Matrix>,
rendering_mode: RenderingMode,
measuring_mode: MeasuringMode,
baseline_origin_x: f32,
baseline_origin_y: f32
) -> Result<GlyphRunAnalysis, HResult>
pub fn create_monitor_rendering_params(
&self,
monitor: *mut c_void
) -> Result<RenderingParams, HResult>
[src]
&self,
monitor: *mut c_void
) -> Result<RenderingParams, HResult>
pub fn create_number_substitution(
&self,
substitution_method: NumberSubstitutionMethod,
locale_name: impl AsRef<str>,
ignore_user_override: bool
) -> Result<NumberSubstitution, HResult>
[src]
&self,
substitution_method: NumberSubstitutionMethod,
locale_name: impl AsRef<str>,
ignore_user_override: bool
) -> Result<NumberSubstitution, HResult>
pub fn create_rendering_params(&self) -> Result<RenderingParams, HResult>
[src]
pub fn create_text_format(
&self,
family_name: impl AsRef<str>,
collection: Option<&FontCollection>,
weight: FontWeight,
style: FontStyle,
stretch: FontStretch,
size: f32,
locale_name: impl AsRef<str>
) -> Result<TextFormat, HResult>
[src]
&self,
family_name: impl AsRef<str>,
collection: Option<&FontCollection>,
weight: FontWeight,
style: FontStyle,
stretch: FontStretch,
size: f32,
locale_name: impl AsRef<str>
) -> Result<TextFormat, HResult>
pub fn create_text_layout(
&self,
string: impl AsRef<str>,
text_format: &impl ITextFormat,
max_width: f32,
max_height: f32
) -> Result<TextLayout, HResult>
[src]
&self,
string: impl AsRef<str>,
text_format: &impl ITextFormat,
max_width: f32,
max_height: f32
) -> Result<TextLayout, HResult>
pub fn create_typography(&self) -> Result<Typography, HResult>
[src]
pub fn get_gdi_interop(&self) -> Result<GdiInterop, HResult>
[src]
pub fn get_system_font_collection(
&self,
check_for_updates: bool
) -> Result<FontCollection, HResult>
[src]
&self,
check_for_updates: bool
) -> Result<FontCollection, HResult>
pub fn register_font_collection_loader(
&self,
loader: &impl IFontCollectionLoader
) -> Result<(), HResult>
[src]
&self,
loader: &impl IFontCollectionLoader
) -> Result<(), HResult>
pub fn register_font_file_loader(
&self,
loader: &impl IFontFileLoader
) -> Result<(), HResult>
[src]
&self,
loader: &impl IFontFileLoader
) -> Result<(), HResult>
pub fn unregister_font_collection_loader(
&self,
loader: &impl IFontCollectionLoader
) -> Result<(), HResult>
[src]
&self,
loader: &impl IFontCollectionLoader
) -> Result<(), HResult>
pub fn unregister_font_file_loader(
&self,
loader: &impl IFontFileLoader
) -> Result<(), HResult>
[src]
&self,
loader: &impl IFontFileLoader
) -> Result<(), HResult>
impl Interface for Factory
[src]
type APIType = IDWriteFactory
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]
impl Send for Factory
[src]
impl Sync for Factory
[src]
Auto Trait Implementations
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>,