Struct widgetry::widgets::text_box::TextBox [−][src]
pub struct TextBox { line: String, label: String, cursor_x: usize, has_focus: bool, hovering: bool, autofocus: bool, padding: EdgeInsets, top_left: ScreenPt, dims: ScreenDims, }
Fields
line: String
label: String
cursor_x: usize
has_focus: bool
hovering: bool
autofocus: bool
padding: EdgeInsets
top_left: ScreenPt
dims: ScreenDims
Implementations
impl TextBox
[src]
impl TextBox
[src]pub fn default_widget<I: Into<String>>(
ctx: &EventCtx<'_>,
label: I,
prefilled: String
) -> Widget
[src]
ctx: &EventCtx<'_>,
label: I,
prefilled: String
) -> Widget
pub fn widget<I: Into<String>>(
ctx: &EventCtx<'_>,
label: I,
prefilled: String,
autofocus: bool,
max_chars: usize
) -> Widget
[src]
ctx: &EventCtx<'_>,
label: I,
prefilled: String,
autofocus: bool,
max_chars: usize
) -> Widget
pub(crate) fn new(
ctx: &EventCtx<'_>,
label: String,
max_chars: usize,
prefilled: String,
autofocus: bool
) -> TextBox
[src]
ctx: &EventCtx<'_>,
label: String,
max_chars: usize,
prefilled: String,
autofocus: bool
) -> TextBox
fn calculate_text(&self, style: &Style) -> Text
[src]
pub fn get_line(&self) -> String
[src]
Trait Implementations
impl WidgetImpl for TextBox
[src]
impl WidgetImpl for TextBox
[src]