Struct tether::Options
[−]
[src]
pub struct Options<'a, H> { /* fields omitted */ }
Provides some configuration options for the window.
Methods
impl Options<'static, ()>
[src]
pub fn new() -> Self
[src]
Creates a new configuration with sensible defaults.
- The HTML is an empty string.
- The initial window size is 640x480.
- The minimum window size is the inital window size.
- The window is not initially in fullscreen mode.
impl<'a, H> Options<'a, H>
[src]
pub fn html<'aa>(self, html: &'aa str) -> Options<'aa, H>
[src]
Sets the initially displayed HTML.
pub fn size(self, width: usize, height: usize) -> Options<'a, H>
[src]
Sets the preferred size.
pub fn minimum_size(self, width: usize, height: usize) -> Options<'a, H>
[src]
Sets the preferred minimum size.
pub fn fullscreen(self, fullscreen: bool) -> Options<'a, H>
[src]
Sets whether the window should initially be in fullscreen mode.
pub fn handler<HH>(self, handler: HH) -> Options<'a, HH>
[src]
Sets the event handler.