pub struct Window {
pub width: u32,
pub height: u32,
pub title: String,
pub border_color: [f32; 4],
pub border_title_color: [f32; 4],
pub background_color: [f32; 4],
// some fields omitted
}
Represents a window that clears everything in it's way and is able to limit the cursor within it's bounds with set_limits
.
Windows API and usage is still subject to change in future updates.
For example a 2x2 window creates a 2x2 area and surrounds it with borders.
use glerminal::menu_systems::Window;
Window::new(2, 2);
Sets the title of the window
The border color for the window
The border title color for the window
The background (inside the frame) color of the window.
Creates a new window with the given width and height
Sets the initial position of the window.
Sets the initial width of the window
Sets the initial height of the window
Sets the initial title of the window
Sets the initial border color for the window
Sets the initial border title color for the window
Set the background (inside the frame) color of the window.
Sets the position of the window.
Set limits for the TextBuffer so that nothing can be written outside the window.
🔬 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