Enum vizia_core::vg::textlayout::PlaceholderAlignment
#[repr(i32)]pub enum PlaceholderAlignment {
Baseline = 0,
AboveBaseline = 1,
BelowBaseline = 2,
Top = 3,
Bottom = 4,
Middle = 5,
}
Expand description
Where to vertically align the placeholder relative to the surrounding text.
Variants§
Baseline = 0
Match the baseline of the placeholder with the baseline.
AboveBaseline = 1
Align the bottom edge of the placeholder with the baseline such that the placeholder sits on top of the baseline.
BelowBaseline = 2
Align the top edge of the placeholder with the baseline specified in such that the placeholder hangs below the baseline.
Top = 3
Align the top edge of the placeholder with the top edge of the font. When the placeholder is very tall, the extra space will hang from the top and extend through the bottom of the line.
Bottom = 4
Align the bottom edge of the placeholder with the top edge of the font. When the placeholder is very tall, the extra space will rise from the bottom and extend through the top of the line.
Middle = 5
Align the middle of the placeholder with the middle of the text. When the placeholder is very tall, the extra space will grow equally from the top and bottom of the line.
Trait Implementations§
§impl Clone for PlaceholderAlignment
impl Clone for PlaceholderAlignment
§fn clone(&self) -> PlaceholderAlignment
fn clone(&self) -> PlaceholderAlignment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for PlaceholderAlignment
impl Debug for PlaceholderAlignment
§impl Default for PlaceholderAlignment
impl Default for PlaceholderAlignment
§fn default() -> PlaceholderAlignment
fn default() -> PlaceholderAlignment
§impl Hash for PlaceholderAlignment
impl Hash for PlaceholderAlignment
§impl PartialEq for PlaceholderAlignment
impl PartialEq for PlaceholderAlignment
impl Copy for PlaceholderAlignment
impl Eq for PlaceholderAlignment
impl StructuralPartialEq for PlaceholderAlignment
Auto Trait Implementations§
impl Freeze for PlaceholderAlignment
impl RefUnwindSafe for PlaceholderAlignment
impl Send for PlaceholderAlignment
impl Sync for PlaceholderAlignment
impl Unpin for PlaceholderAlignment
impl UnwindSafe for PlaceholderAlignment
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.