Represents a dialog-window, meaning a window of text that can be scrolled up and down.
For example
use glerminal::menu_systems::Dialog;
Dialog::new(12, None, 3)
.with_text("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis faucibus.");
Background-color when the dialog is unfocused
Background-color when the dialog is unfocused
Background-color when the dialog is focused
Background-color when the dialog is focused
The buttons that make the dialog scroll up when focused
The buttons that make the dialog scroll down when focused
Creates a new dialog input with the given width and optionally given min and max heights.
Sets the initial position
Set whether the checkbox is initially focused or not
Set the initial colors when it is unfocused
Set the initial colors when it is focused
Set the colors when it is unfocused
Set the colors when it is focused
Sets the initial width of the dialog window
Sets the initial minimum height of the dialog window
Sets the initial maximum height of the dialog window
pub fn with_text<T: Into<String>>(self, text: T) -> Dialog | [src] |
Sets the initial text of the dialog window
Set the initial buttons that scroll the dialog up.
Set the initial buttons that scroll the dialog down.
Sets the width of the dialog window
Sets the minimum height of the dialog window
Sets the maximum height of the dialog window
pub fn set_text<T: Into<String>>(&mut self, text: T) | [src] |
Sets the text of the dialog window
Attempt to scroll the dialog up. Returns true if successful, false if not.
Attempt to scroll the dialog down. Returns true if successful, false if not.
Get the current scroll idx of this dialog
Sets the current scroll idx of this dialog, assuming scroll
is within boundaries.
Get the InterfaceItemBase
Get the InterfaceItemBase
as mutable
Get the width this InterfaceItem can take up Read more
Get the height this InterfaceItem can take up Read more
Handle events for this InterfaceItem. Read more
Update this InterfaceItem; delta is given in seconds. (see Terminal.delta_time())
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Make a box of the cloned InterfaceItem
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static