Struct winsafe::gui::WindowMessageOnly
source · pub struct WindowMessageOnly(/* private fields */);
Available on crate feature
gui
only.Expand description
A message-only window, which can handle events.
Implementations§
source§impl WindowMessageOnly
impl WindowMessageOnly
sourcepub fn new(parent: Option<&WindowMessageOnly>) -> Self
pub fn new(parent: Option<&WindowMessageOnly>) -> Self
Instantiates a new WindowMessageOnly
object, to be created internally
with
HWND::CreateWindowEx
.
Trait Implementations§
source§impl Clone for WindowMessageOnly
impl Clone for WindowMessageOnly
source§fn clone(&self) -> WindowMessageOnly
fn clone(&self) -> WindowMessageOnly
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl GuiParent for WindowMessageOnly
impl GuiParent for WindowMessageOnly
source§fn on(&self) -> &WindowEvents
fn on(&self) -> &WindowEvents
Exposes methods to handle the basic window messages, plus timer and
native control notifications. Read more
source§fn spawn_new_thread<F>(&self, func: F)
fn spawn_new_thread<F>(&self, func: F)
This method calls
std::thread::spawn
, but it allows the returning of
an error value. This error value will be forwarded to the original UI
thread, allowing it to be caught at
WindowMain::run_main
. Read moresource§impl GuiWindow for WindowMessageOnly
impl GuiWindow for WindowMessageOnly
impl Send for WindowMessageOnly
Auto Trait Implementations§
impl Freeze for WindowMessageOnly
impl !RefUnwindSafe for WindowMessageOnly
impl !Sync for WindowMessageOnly
impl Unpin for WindowMessageOnly
impl !UnwindSafe for WindowMessageOnly
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more