Struct fluffl::gui::TextBoxBuilder
source · [−]pub struct TextBoxBuilder<'a, ProgramState> { /* private fields */ }
Implementations
sourceimpl<'a, ProgramState> TextBoxBuilder<'a, ProgramState>
impl<'a, ProgramState> TextBoxBuilder<'a, ProgramState>
pub fn new(manager: &'a mut GuiManager<ProgramState>) -> Self
pub fn with_bounds<T>(self, bounds: T) -> Selfwhere
Vec2<f32>: From<T>,
pub fn with_color<T>(self, color: T) -> Selfwhere
Vec4<f32>: From<T>,
pub fn with_edge_color<T>(self, color: T) -> Selfwhere
Vec4<f32>: From<T>,
pub fn with_roundness<T>(self, r: T) -> Selfwhere
Vec4<f32>: From<T>,
pub fn with_position<T>(self, pos: T) -> Selfwhere
Vec2<f32>: From<T>,
pub fn with_visibility(self, visibility: bool) -> Self
pub fn with_alignment(self, alignment: [TextAlignment; 2]) -> Self
pub fn with_font_size(self, size: f32) -> Self
Trait Implementations
sourceimpl<'a, ProgramState> HasComponentBuilder<ProgramState> for TextBoxBuilder<'a, ProgramState>
impl<'a, ProgramState> HasComponentBuilder<ProgramState> for TextBoxBuilder<'a, ProgramState>
type ComponentKind = TextBoxState
fn manager(&mut self) -> &mut GuiManager<ProgramState>
fn parent(&mut self) -> &mut Option<GuiComponentKey>
fn key(&mut self) -> &mut Option<GuiComponentKey>
fn state(&mut self) -> &mut Option<Self::ComponentKind>
fn build(self) -> GuiComponentKey
fn with_name<T: AsRef<str>>(self, name: T) -> Self
fn with_parent(self, parent: GuiComponentKey) -> Self
fn with_listener<Listener>(self, kind: GuiEventKind, listener: Listener) -> Selfwhere
Listener: FnMut(&mut Self::ComponentKind, EventKind, &mut MutationRequestQueue<ProgramState>) + 'static,
fn with_listener_advanced(
self,
kind: GuiEventKind,
cb: ListenerCallBack<ProgramState>
) -> Self
fn with_listener_block(self, cve: ComponentEventListener<ProgramState>) -> Self
fn with_drag(self, enable: bool) -> Self
sourcefn with_drag_highest(self, enable: bool) -> Self
fn with_drag_highest(self, enable: bool) -> Self
drags the highest ancestor that ISN’T the origin
Auto Trait Implementations
impl<'a, ProgramState> !RefUnwindSafe for TextBoxBuilder<'a, ProgramState>
impl<'a, ProgramState> !Send for TextBoxBuilder<'a, ProgramState>
impl<'a, ProgramState> !Sync for TextBoxBuilder<'a, ProgramState>
impl<'a, ProgramState> Unpin for TextBoxBuilder<'a, ProgramState>
impl<'a, ProgramState> !UnwindSafe for TextBoxBuilder<'a, ProgramState>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more