Struct druid_shell::WindowBuilder [−][src]
pub struct WindowBuilder(_);
Expand description
A builder type for creating new windows.
Implementations
Create a new WindowBuilder
.
Takes the Application
that this window is for.
Set the WinHandler
for this window.
This is the object that will receive callbacks from this window.
Set the window’s initial drawing area size in display points.
The actual window size in pixels will depend on the platform DPI settings.
This should be considered a request to the platform to set the size of the window. The
platform might choose a different size depending on its DPI or other platform-dependent
configuration. To know the actual size of the window you should handle the
WinHandler::size
method.
Set the window’s minimum drawing area size in display points.
The actual minimum window size in pixels will depend on the platform DPI settings.
This should be considered a request to the platform to set the minimum size of the window. The platform might increase the size a tiny bit due to DPI.
Set whether the window should have a titlebar and decorations.
Set whether the window background should be transparent
Sets the initial window position in display points, relative to the origin of the virtual screen.
Sets the initial WindowLevel
.
Set the window’s menu.
Sets the initial state of the window.
Attempt to construct the platform window.
If this fails, your application should exit.
Auto Trait Implementations
impl !RefUnwindSafe for WindowBuilder
impl !Send for WindowBuilder
impl !Sync for WindowBuilder
impl Unpin for WindowBuilder
impl !UnwindSafe for WindowBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn round_from(x: T) -> T
pub fn round_from(x: T) -> T
Performs the conversion.
pub fn round_into(self) -> U
pub fn round_into(self) -> U
Performs the conversion.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more