Struct charming::element::label::Label

source ·
pub struct Label { /* private fields */ }

Implementations§

source§

impl Label

source

pub fn new() -> Self

source

pub fn show(self, show: bool) -> Self

source

pub fn position<P: Into<LabelPosition>>(self, position: P) -> Self

source

pub fn distance<F: Into<f64>>(self, distance: F) -> Self

source

pub fn rotate<S: Into<String>>(self, rotate: S) -> Self

source

pub fn offset<F: Into<f64>>(self, offset: (F, F)) -> Self

source

pub fn formatter<F: Into<Formatter>>(self, formatter: F) -> Self

source

pub fn color<C: Into<Color>>(self, color: C) -> Self

source

pub fn font_size<F: Into<f64>>(self, font_size: F) -> Self

source

pub fn font_weight<S: Into<String>>(self, font_weight: S) -> Self

source

pub fn padding<F: Into<f64>>(self, padding: (F, F, F, F)) -> Self

source

pub fn align<A: Into<LabelAlign>>(self, align: A) -> Self

source

pub fn vertical_align<V: Into<LabelVerticalAlign>>( self, vertical_align: V ) -> Self

source

pub fn silent(self, silent: bool) -> Self

source

pub fn background_color<C: Into<Color>>(self, background_color: C) -> Self

source

pub fn border_color<C: Into<Color>>(self, border_color: C) -> Self

source

pub fn border_width<F: Into<f64>>(self, border_width: F) -> Self

source

pub fn shadow_blur<F: Into<f64>>(self, shadow_blur: F) -> Self

source

pub fn shadow_offset_x<F: Into<f64>>(self, shadow_offset_x: F) -> Self

source

pub fn shadow_offset_y<F: Into<f64>>(self, shadow_offset_y: F) -> Self

Trait Implementations§

source§

impl Serialize for Label

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Label

§

impl Send for Label

§

impl Sync for Label

§

impl Unpin for Label

§

impl UnwindSafe for Label

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Serializable for T
where T: Serialize,

source§

fn to_v8<'a>( &mut self, scope: &mut HandleScope<'a> ) -> Result<Local<'a, Value>, Error>

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.