[−][src]Struct rendy::wsi::winit::WindowBuilder
Object that allows you to build windows.
Fields
window: WindowAttributes
The attributes to use to create the window.
Methods
impl WindowBuilder
[src]
pub fn new() -> WindowBuilder
[src]
Initializes a new WindowBuilder
with default values.
pub fn with_dimensions(self, size: LogicalSize) -> WindowBuilder
[src]
Requests the window to be of specific dimensions.
pub fn with_min_dimensions(self, min_size: LogicalSize) -> WindowBuilder
[src]
Sets a minimum dimension size for the window
pub fn with_max_dimensions(self, max_size: LogicalSize) -> WindowBuilder
[src]
Sets a maximum dimension size for the window
pub fn with_resizable(self, resizable: bool) -> WindowBuilder
[src]
Sets whether the window is resizable or not
Note that making the window unresizable doesn't exempt you from handling Resized
, as that event can still be
triggered by DPI scaling, entering fullscreen mode, etc.
Platform-specific
This only has an effect on desktop platforms.
Due to a bug in XFCE, this has no effect on Xfwm.
pub fn with_title<T>(self, title: T) -> WindowBuilder where
T: Into<String>,
[src]
T: Into<String>,
Requests a specific title for the window.
pub fn with_fullscreen(self, monitor: Option<MonitorId>) -> WindowBuilder
[src]
Sets the window fullscreen state. None means a normal window, Some(MonitorId) means a fullscreen window on that specific monitor
pub fn with_maximized(self, maximized: bool) -> WindowBuilder
[src]
Requests maximized mode.
pub fn with_visibility(self, visible: bool) -> WindowBuilder
[src]
Sets whether the window will be initially hidden or visible.
pub fn with_transparency(self, transparent: bool) -> WindowBuilder
[src]
Sets whether the background of the window should be transparent.
pub fn with_decorations(self, decorations: bool) -> WindowBuilder
[src]
Sets whether the window should have a border, a title bar, etc.
pub fn with_always_on_top(self, always_on_top: bool) -> WindowBuilder
[src]
Sets whether or not the window will always be on top of other windows.
pub fn with_window_icon(self, window_icon: Option<Icon>) -> WindowBuilder
[src]
Sets the window icon. On Windows and X11, this is typically the small icon in the top-left corner of the titlebar.
Platform-specific
This only has an effect on Windows and X11.
On Windows, this sets ICON_SMALL
. The base size for a window icon is 16x16, but it's
recommended to account for screen scaling and pick a multiple of that, i.e. 32x32.
X11 has no universal guidelines for icon sizes, so you're at the whims of the WM. That said, it's usually in the same ballpark as on Windows.
pub fn with_multitouch(self) -> WindowBuilder
[src]
Enables multitouch.
pub fn build(self, events_loop: &EventsLoop) -> Result<Window, CreationError>
[src]
Builds the window.
Error should be very rare and only occur in case of permission denied, incompatible system, out of memory, etc.
Trait Implementations
impl Clone for WindowBuilder
[src]
fn clone(&self) -> WindowBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl WindowBuilderExt for WindowBuilder
[src]
fn with_x11_visual<T>(self, visual_infos: *const T) -> WindowBuilder
[src]
fn with_x11_screen(self, screen_id: i32) -> WindowBuilder
[src]
fn with_class(self, instance: String, class: String) -> WindowBuilder
[src]
fn with_override_redirect(self, override_redirect: bool) -> WindowBuilder
[src]
fn with_x11_window_type(self, x11_window_type: WindowType) -> WindowBuilder
[src]
fn with_resize_increments(self, increments: LogicalSize) -> WindowBuilder
[src]
fn with_base_size(self, base_size: LogicalSize) -> WindowBuilder
[src]
fn with_gtk_theme_variant(self, variant: String) -> WindowBuilder
[src]
fn with_app_id(self, app_id: String) -> WindowBuilder
[src]
impl Debug for WindowBuilder
[src]
Auto Trait Implementations
impl Unpin for WindowBuilder
impl !Sync for WindowBuilder
impl !Send for WindowBuilder
impl !UnwindSafe for WindowBuilder
impl !RefUnwindSafe for WindowBuilder
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Supports<T> for T
[src]
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Erased for T
[src]
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more