Struct qt_gui::QHideEvent
source · #[repr(C)]pub struct QHideEvent { /* private fields */ }
Expand description
The QHideEvent class provides an event which is sent after a widget is hidden.
C++ class: QHideEvent
.
The QHideEvent class provides an event which is sent after a widget is hidden.
This event is sent just before QWidget::hide() returns, and also when a top-level window has been hidden (iconified) by the user.
If spontaneous() is true, the event originated outside the application. In this case, the user hid the window using the window manager controls, either by iconifying the window or by switching to another virtual desktop where the window is not visible. The window will become hidden but not withdrawn. If the window was iconified, QWidget::isMinimized() returns true
.
Implementations§
source§impl QHideEvent
impl QHideEvent
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QHideEvent>>
) -> Ref<QHideEvent>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QHideEvent>> ) -> Ref<QHideEvent>
The QHideEvent class provides an event which is sent after a widget is hidden.
Calls C++ function: QHideEvent& QHideEvent::operator=(const QHideEvent& other)
.
The QHideEvent class provides an event which is sent after a widget is hidden.
This event is sent just before QWidget::hide() returns, and also when a top-level window has been hidden (iconified) by the user.
If spontaneous() is true, the event originated outside the application. In this case, the user hid the window using the window manager controls, either by iconifying the window or by switching to another virtual desktop where the window is not visible. The window will become hidden but not withdrawn. If the window was iconified, QWidget::isMinimized() returns true
.
sourcepub unsafe fn new() -> CppBox<QHideEvent>
pub unsafe fn new() -> CppBox<QHideEvent>
Constructs a QHideEvent.
Calls C++ function: [constructor] void QHideEvent::QHideEvent()
.
Constructs a QHideEvent.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QHideEvent>>
) -> CppBox<QHideEvent>
pub unsafe fn new_copy( other: impl CastInto<Ref<QHideEvent>> ) -> CppBox<QHideEvent>
The QHideEvent class provides an event which is sent after a widget is hidden.
Calls C++ function: [constructor] void QHideEvent::QHideEvent(const QHideEvent& other)
.
The QHideEvent class provides an event which is sent after a widget is hidden.
This event is sent just before QWidget::hide() returns, and also when a top-level window has been hidden (iconified) by the user.
If spontaneous() is true, the event originated outside the application. In this case, the user hid the window using the window manager controls, either by iconifying the window or by switching to another virtual desktop where the window is not visible. The window will become hidden but not withdrawn. If the window was iconified, QWidget::isMinimized() returns true
.
Methods from Deref<Target = QEvent>§
sourcepub unsafe fn accept(&self)
pub unsafe fn accept(&self)
Sets the accept flag of the event object, the equivalent of calling setAccepted(true).
Calls C++ function: void QEvent::accept()
.
Sets the accept flag of the event object, the equivalent of calling setAccepted(true).
Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget.
See also ignore().
sourcepub unsafe fn copy_from(&self, other: impl CastInto<Ref<QEvent>>) -> Ref<QEvent>
pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QEvent>>) -> Ref<QEvent>
Calls C++ function: QEvent& QEvent::operator=(const QEvent& other)
.
sourcepub unsafe fn ignore(&self)
pub unsafe fn ignore(&self)
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).
Calls C++ function: void QEvent::ignore()
.
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).
Clearing the accept parameter indicates that the event receiver does not want the event. Unwanted events might be propagated to the parent widget.
See also accept().
sourcepub unsafe fn is_accepted(&self) -> bool
pub unsafe fn is_accepted(&self) -> bool
the accept flag of the event object
Calls C++ function: bool QEvent::isAccepted() const
.
the accept flag of the event object
Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget. By default, isAccepted() is set to true, but don't rely on this as subclasses may choose to clear it in their constructor.
For convenience, the accept flag can also be set with accept(), and cleared with ignore().
Access functions:
bool | isAccepted() const |
void | setAccepted(bool accepted) |
sourcepub unsafe fn set_accepted(&self, accepted: bool)
pub unsafe fn set_accepted(&self, accepted: bool)
the accept flag of the event object
Calls C++ function: void QEvent::setAccepted(bool accepted)
.
the accept flag of the event object
Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget. By default, isAccepted() is set to true, but don't rely on this as subclasses may choose to clear it in their constructor.
For convenience, the accept flag can also be set with accept(), and cleared with ignore().
Access functions:
bool | isAccepted() const |
void | setAccepted(bool accepted) |
sourcepub unsafe fn spontaneous(&self) -> bool
pub unsafe fn spontaneous(&self) -> bool
Returns true
if the event originated outside the application (a system event); otherwise returns false
.
Calls C++ function: bool QEvent::spontaneous() const
.
Returns true
if the event originated outside the application (a system event); otherwise returns false
.
The return value of this function is not defined for paint events.
Trait Implementations§
source§impl CppDeletable for QHideEvent
impl CppDeletable for QHideEvent
source§impl Deref for QHideEvent
impl Deref for QHideEvent
source§impl DynamicCast<QHideEvent> for QEvent
impl DynamicCast<QHideEvent> for QEvent
source§unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QHideEvent>
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QHideEvent>
Calls C++ function: QHideEvent* dynamic_cast<QHideEvent*>(QEvent* ptr)
.
source§impl StaticDowncast<QHideEvent> for QEvent
impl StaticDowncast<QHideEvent> for QEvent
source§unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QHideEvent>
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QHideEvent>
Calls C++ function: QHideEvent* static_cast<QHideEvent*>(QEvent* ptr)
.
source§impl StaticUpcast<QEvent> for QHideEvent
impl StaticUpcast<QEvent> for QHideEvent
source§unsafe fn static_upcast(ptr: Ptr<QHideEvent>) -> Ptr<QEvent>
unsafe fn static_upcast(ptr: Ptr<QHideEvent>) -> Ptr<QEvent>
Calls C++ function: QEvent* static_cast<QEvent*>(QHideEvent* ptr)
.