panoramix::elements::backend

Struct TextBoxData

Source
pub struct TextBoxData<CpEvent = NoEvent, CpState = ()> {
    pub text: String,
    pub flex: FlexParams,
    pub _markers: PhantomData<(CpEvent, CpState)>,
}

Fields§

§text: String§flex: FlexParams§_markers: PhantomData<(CpEvent, CpState)>

Trait Implementations§

Source§

impl<CpEvent, CpState> Clone for TextBoxData<CpEvent, CpState>

Source§

fn clone(&self) -> Self

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
Source§

impl<CpEvent, CpState> Debug for TextBoxData<CpEvent, CpState>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<CpEvent, CpState> Default for TextBoxData<CpEvent, CpState>

Source§

fn default() -> Self

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

impl<CpEvent: PartialEq, CpState: PartialEq> PartialEq for TextBoxData<CpEvent, CpState>

Source§

fn eq(&self, other: &TextBoxData<CpEvent, CpState>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<CpEvent, CpState> VirtualDom<CpEvent, CpState> for TextBoxData<CpEvent, CpState>

Source§

type Event = TextChanged

Source§

type AggregateChildrenState = ()

Source§

type TargetWidgetSeq = TextBoxWidget

Source§

fn init_tree(&self) -> TextBoxWidget

Source§

fn reconcile( &self, _other: &Self, widget: &mut TextBoxWidget, ctx: &mut ReconcileCtx<'_, '_, '_, '_, '_>, )

Source§

fn process_local_event( &self, _component_state: &mut CpState, _children_state: &mut Self::AggregateChildrenState, widget: &mut TextBoxWidget, cx: &mut GlobalEventCx<'_>, ) -> Option<TextChanged>

Source§

fn update_value(&mut self, other: Self)
where Self: Sized,

Source§

fn process_event( &self, component_state: &mut CpState, children_state: &mut Self::AggregateChildrenState, widget_seq: &mut Self::TargetWidgetSeq, cx: &mut GlobalEventCx<'_>, ) -> Option<CpEvent>

Source§

impl<CpEvent, CpState> StructuralPartialEq for TextBoxData<CpEvent, CpState>

Auto Trait Implementations§

§

impl<CpEvent, CpState> Freeze for TextBoxData<CpEvent, CpState>

§

impl<CpEvent, CpState> RefUnwindSafe for TextBoxData<CpEvent, CpState>
where CpEvent: RefUnwindSafe, CpState: RefUnwindSafe,

§

impl<CpEvent, CpState> Send for TextBoxData<CpEvent, CpState>
where CpEvent: Send, CpState: Send,

§

impl<CpEvent, CpState> Sync for TextBoxData<CpEvent, CpState>
where CpEvent: Sync, CpState: Sync,

§

impl<CpEvent, CpState> Unpin for TextBoxData<CpEvent, CpState>
where CpEvent: Unpin, CpState: Unpin,

§

impl<CpEvent, CpState> UnwindSafe for TextBoxData<CpEvent, CpState>
where CpEvent: UnwindSafe, CpState: UnwindSafe,

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> AnyEq for T
where T: Any + PartialEq,

Source§

fn equals(&self, other: &(dyn Any + 'static)) -> bool

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

impl<T> AnyState for T
where T: Clone + Default + Debug + PartialEq + 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_mut_any(&mut self) -> &mut (dyn Any + 'static)

Source§

fn dyn_clone(&self) -> Box<dyn AnyState>

Source§

fn dyn_eq(&self, other: &Box<dyn AnyState>) -> bool

Source§

fn print_type(&self)

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> RoundFrom<T> for T

Source§

fn round_from(x: T) -> T

Source§

impl<T, U> RoundInto<U> for T
where U: RoundFrom<T>,

Source§

fn round_into(self) -> U

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more