pub struct VectorEdit<T> {
pub x: T,
pub y: T,
pub z: T,
pub w: T,
pub num_of_dims: u8,
/* private fields */
}Fields§
§x: T§y: T§z: T§w: T§num_of_dims: u8Implementations§
Source§impl<T> VectorEdit<T>
impl<T> VectorEdit<T>
pub fn new() -> VectorEdit<T>
pub fn with_x(self, val: T) -> VectorEdit<T>
pub fn with_y(self, val: T) -> VectorEdit<T>
pub fn with_z(self, val: T) -> VectorEdit<T>
pub fn with_w(self, val: T) -> VectorEdit<T>
pub fn on_change<F>(self, message: F) -> VectorEdit<T>
Trait Implementations§
Source§impl<T> Widget for VectorEdit<T>
impl<T> Widget for VectorEdit<T>
type Ret = Entity
type Data = ()
fn on_build( &mut self, state: &mut State, entity: Entity, ) -> <VectorEdit<T> as Widget>::Ret
fn on_event(&mut self, state: &mut State, entity: Entity, event: &mut Event)
fn widget_name(&self) -> String
Source§fn build<F>(
self,
state: &mut State,
parent: impl AsEntity,
builder: F,
) -> Self::Ret
fn build<F>( self, state: &mut State, parent: impl AsEntity, builder: F, ) -> Self::Ret
Adds the widget into state and returns the associated type Ret - an entity id or a tuple of entity ids
fn bind<L, F>(self, lens: L, converter: F) -> Wrapper<L, Self>
fn bind2<L>(self, lens: L) -> LensWrap<L, Self>where
L: Lens,
fn on_update(&mut self, state: &mut State, entity: Entity, data: &Self::Data)
fn on_style( &mut self, state: &mut State, entity: Entity, property: (String, PropType), )
fn on_draw( &mut self, state: &mut State, entity: Entity, canvas: &mut Canvas<OpenGl>, )
Auto Trait Implementations§
impl<T> Freeze for VectorEdit<T>where
T: Freeze,
impl<T> !RefUnwindSafe for VectorEdit<T>
impl<T> !Send for VectorEdit<T>
impl<T> !Sync for VectorEdit<T>
impl<T> Unpin for VectorEdit<T>where
T: Unpin,
impl<T> !UnwindSafe for VectorEdit<T>
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