pub type ParagraphStyle = RefHandle<skia_textlayout_ParagraphStyle>;

Aliased Type§

struct ParagraphStyle(/* private fields */);

Implementations

§

impl RefHandle<skia_textlayout_ParagraphStyle>

pub fn new() -> RefHandle<skia_textlayout_ParagraphStyle>

pub fn strut_style(&self) -> &Handle<skia_textlayout_StrutStyle>

pub fn set_strut_style( &mut self, strut_style: Handle<skia_textlayout_StrutStyle> ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn text_style(&self) -> &Handle<skia_textlayout_TextStyle>

pub fn set_text_style( &mut self, text_style: &Handle<skia_textlayout_TextStyle> ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn text_direction(&self) -> skia_textlayout_TextDirection

pub fn set_text_direction( &mut self, direction: skia_textlayout_TextDirection ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn text_align(&self) -> skia_textlayout_TextAlign

pub fn set_text_align( &mut self, align: skia_textlayout_TextAlign ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn max_lines(&self) -> Option<usize>

pub fn set_max_lines( &mut self, lines: impl Into<Option<usize>> ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn ellipsis(&self) -> &str

pub fn set_ellipsis( &mut self, ellipsis: impl AsRef<str> ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn height(&self) -> f32

pub fn set_height( &mut self, height: f32 ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn text_height_behavior(&self) -> skia_textlayout_TextHeightBehavior

pub fn set_text_height_behavior( &mut self, v: skia_textlayout_TextHeightBehavior ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn unlimited_lines(&self) -> bool

pub fn ellipsized(&self) -> bool

pub fn effective_align(&self) -> skia_textlayout_TextAlign

pub fn hinting_is_on(&self) -> bool

pub fn turn_hinting_off( &mut self ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn replace_tab_characters(&self) -> bool

pub fn set_replace_tab_characters( &mut self, value: bool ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

pub fn apply_rounding_hack(&self) -> bool

pub fn set_apply_rounding_hack( &mut self, value: bool ) -> &mut RefHandle<skia_textlayout_ParagraphStyle>

Trait Implementations

§

impl<N> PointerWrapper<N> for RefHandle<N>
where N: NativeDrop,

§

fn wrap(ptr: *mut N) -> Option<RefHandle<N>>

Wraps a native pointer into a wrapper type. Returns None if the pointer is null.
§

fn unwrap(self) -> *mut N

Unwraps the wrapper type into the native pointer.
§

fn inner(&self) -> &N

Access the wrapped pointer.
§

fn inner_mut(&mut self) -> &mut N

Access the wrapped pointer.
§

impl Sync for RefHandle<skia_textlayout_ParagraphStyle>

§

impl Debug for RefHandle<skia_textlayout_ParagraphStyle>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for RefHandle<skia_textlayout_ParagraphStyle>

§

fn default() -> RefHandle<skia_textlayout_ParagraphStyle>

Returns the “default value” for a type. Read more
§

impl<T> RunIterator for RefHandle<T>
where T: NativeDrop + NativeBase<SkShaper_RunIterator>,

§

fn consume(&mut self)

§

fn end_of_current_run(&self) -> usize

§

fn at_end(&self) -> bool

§

impl<N> Drop for RefHandle<N>
where N: NativeDrop,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl Send for RefHandle<skia_textlayout_ParagraphStyle>

§

impl Clone for RefHandle<skia_textlayout_ParagraphStyle>

§

fn clone(&self) -> RefHandle<skia_textlayout_ParagraphStyle>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<N> PartialEq for RefHandle<N>
where N: NativeDrop + NativePartialEq,

§

fn eq(&self, rhs: &RefHandle<N>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.