[−][src]Trait kas::Window
A window is a drawable interactive region provided by windowing system.
Required methods
fn title(&self) -> &str
Get the window title
fn resize(
&mut self,
size_handle: &mut dyn SizeHandle,
size: Size
) -> (Option<Size>, Option<Size>)
&mut self,
size_handle: &mut dyn SizeHandle,
size: Size
) -> (Option<Size>, Option<Size>)
Adjust the size of the window, repositioning widgets.
fn callbacks(&self) -> Vec<(usize, Callback)>
Get a list of available callbacks.
This returns a sequence of (index, condition)
values. The toolkit
should call trigger_callback(index, mgr)
whenever the condition is met.
fn final_callback(
&self
) -> Option<&'static dyn Fn(Box<dyn Window>, &mut Manager)>
&self
) -> Option<&'static dyn Fn(Box<dyn Window>, &mut Manager)>
Get the callback used on window closure.
fn trigger_callback(&mut self, index: usize, mgr: &mut Manager)
Trigger a callback (see iter_callbacks
).
Implementors
impl Window for MessageBox
[src]
fn title(&self) -> &str
[src]
fn resize(
&mut self,
size_handle: &mut dyn SizeHandle,
size: Size
) -> (Option<Size>, Option<Size>)
[src]
&mut self,
size_handle: &mut dyn SizeHandle,
size: Size
) -> (Option<Size>, Option<Size>)
fn callbacks(&self) -> Vec<(usize, Callback)>
[src]
fn final_callback(
&self
) -> Option<&'static dyn Fn(Box<dyn Window>, &mut Manager)>
[src]
&self
) -> Option<&'static dyn Fn(Box<dyn Window>, &mut Manager)>
fn trigger_callback(&mut self, _index: usize, _: &mut Manager)
[src]
impl<W: Widget + Handler<Msg = VoidMsg> + 'static> Window for Window<W>
[src]
fn title(&self) -> &str
[src]
fn resize(
&mut self,
size_handle: &mut dyn SizeHandle,
size: Size
) -> (Option<Size>, Option<Size>)
[src]
&mut self,
size_handle: &mut dyn SizeHandle,
size: Size
) -> (Option<Size>, Option<Size>)
fn callbacks(&self) -> Vec<(usize, Callback)>
[src]
fn final_callback(
&self
) -> Option<&'static dyn Fn(Box<dyn Window>, &mut Manager)>
[src]
&self
) -> Option<&'static dyn Fn(Box<dyn Window>, &mut Manager)>
fn trigger_callback(&mut self, index: usize, mgr: &mut Manager)
[src]
Trigger a callback (see iter_callbacks
).