pub struct TextParamsDelegate {
pub content: <String as Delegated>::Delegate,
pub font_family: <String as Delegated>::Delegate,
pub font_size: <f64 as Delegated>::Delegate,
pub font_weight: <i64 as Delegated>::Delegate,
pub font_style: <TextFontStyle as Delegated>::Delegate,
pub max_width: <f64 as Delegated>::Delegate,
pub position: <(f64, f64) as Delegated>::Delegate,
pub color: <Paint as Delegated>::Delegate,
pub alignment_horizontal: <TextAlignmentHorizontal as Delegated>::Delegate,
pub alignment_vertical: <TextAlignmentVertical as Delegated>::Delegate,
}Fields§
§content: <String as Delegated>::Delegate§font_family: <String as Delegated>::Delegate§font_size: <f64 as Delegated>::Delegate§font_weight: <i64 as Delegated>::Delegate§font_style: <TextFontStyle as Delegated>::Delegate§max_width: <f64 as Delegated>::Delegate§position: <(f64, f64) as Delegated>::Delegate§color: <Paint as Delegated>::Delegate§alignment_horizontal: <TextAlignmentHorizontal as Delegated>::Delegate§alignment_vertical: <TextAlignmentVertical as Delegated>::DelegateTrait Implementations§
Source§impl Clone for TextParamsDelegate
impl Clone for TextParamsDelegate
Source§impl Debug for TextParamsDelegate
impl Debug for TextParamsDelegate
Source§impl Default for TextParamsDelegate
impl Default for TextParamsDelegate
Source§impl DelegateEvaluable for TextParamsDelegate
impl DelegateEvaluable for TextParamsDelegate
type Evaluated = TextParams
fn eval( &self, ctx: &DelegateEvalContext<'_>, ) -> Result<Self::Evaluated, LumenError>
Source§impl NodeParams for TextParamsDelegate
impl NodeParams for TextParamsDelegate
type Evaluated = TextParams
fn property_defs() -> Vec<PropertyDef>
fn is_property(id: &str) -> bool
fn default_properties(&self) -> Vec<(&'static str, PropertyValue)>
fn get_property(&self, id: &str) -> Option<PropertyExpression>
fn eval( &self, ctx: &NodeParamEvalContext<'_>, ) -> Result<Self::Evaluated, LumenError>
Auto Trait Implementations§
impl Freeze for TextParamsDelegate
impl RefUnwindSafe for TextParamsDelegate
impl Send for TextParamsDelegate
impl Sync for TextParamsDelegate
impl Unpin for TextParamsDelegate
impl UnsafeUnpin for TextParamsDelegate
impl UnwindSafe for TextParamsDelegate
Blanket Implementations§
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
Mutably borrows from an owned value. Read more