Struct kiss_ui::dialog::Dialog
[−]
[src]
pub struct Dialog(_);
A top-level dialog that can create a new native window when shown, and can contain a single widget (which can be a container for many widgets).
Methods
impl Dialog
fn new<W>(contents: W) -> Dialog where W: Widget
Create a new dialog with a single child.
To create a dialog containing multiple widgets, use a struct from the container
module.
Note
This does not make the dialog appear on screen. .show()
must be called after the
dialog has been configured.
Panics
If called outside a valid KISS-UI context.
fn empty() -> Dialog
fn set_title<T: Into<String>>(self, title: T) -> Self
Set the title of this dialog, which will appear in the title bar of the native window.
fn set_size_pixels(self, width: u32, height: u32) -> Self
Set the size of this dialog in pixels.
fn get_child(self, name: &str) -> Option<BaseWidget>
Get a child of this dialog named by name
.
Returns None
if the child was not found.