[−][src]Struct qt_gui::QResizeEvent
The QResizeEvent class contains event parameters for resize events.
C++ class: QResizeEvent
.
The QResizeEvent class contains event parameters for resize events.
Resize events are sent to widgets that have been resized.
The event handler QWidget::resizeEvent() receives resize events.
Methods
impl QResizeEvent
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QResizeEvent>>
) -> MutRef<QResizeEvent>
[src]
&mut self,
other: impl CastInto<Ref<QResizeEvent>>
) -> MutRef<QResizeEvent>
The QResizeEvent class contains event parameters for resize events.
Calls C++ function: QResizeEvent& QResizeEvent::operator=(const QResizeEvent& other)
.
The QResizeEvent class contains event parameters for resize events.
Resize events are sent to widgets that have been resized.
The event handler QWidget::resizeEvent() receives resize events.
pub unsafe fn new(
size: impl CastInto<Ref<QSize>>,
old_size: impl CastInto<Ref<QSize>>
) -> CppBox<QResizeEvent>
[src]
size: impl CastInto<Ref<QSize>>,
old_size: impl CastInto<Ref<QSize>>
) -> CppBox<QResizeEvent>
Constructs a resize event with the new and old widget sizes, size and oldSize respectively.
Calls C++ function: [constructor] void QResizeEvent::QResizeEvent(const QSize& size, const QSize& oldSize)
.
Constructs a resize event with the new and old widget sizes, size and oldSize respectively.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QResizeEvent>>
) -> CppBox<QResizeEvent>
[src]
other: impl CastInto<Ref<QResizeEvent>>
) -> CppBox<QResizeEvent>
The QResizeEvent class contains event parameters for resize events.
Calls C++ function: [constructor] void QResizeEvent::QResizeEvent(const QResizeEvent& other)
.
The QResizeEvent class contains event parameters for resize events.
Resize events are sent to widgets that have been resized.
The event handler QWidget::resizeEvent() receives resize events.
pub unsafe fn old_size(&self) -> Ref<QSize>
[src]
Returns the old size of the widget.
Calls C++ function: const QSize& QResizeEvent::oldSize() const
.
Returns the old size of the widget.
pub unsafe fn size(&self) -> Ref<QSize>
[src]
Returns the new size of the widget. This is the same as QWidget::size().
Calls C++ function: const QSize& QResizeEvent::size() const
.
Returns the new size of the widget. This is the same as QWidget::size().
Trait Implementations
impl CppDeletable for QResizeEvent
[src]
unsafe fn delete(&mut self)
[src]
Calls C++ function: virtual [destructor] void QResizeEvent::~QResizeEvent()
.
impl Deref for QResizeEvent
[src]
type Target = QEvent
The resulting type after dereferencing.
fn deref(&self) -> &QEvent
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QResizeEvent* ptr)
.
impl DerefMut for QResizeEvent
[src]
fn deref_mut(&mut self) -> &mut QEvent
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QResizeEvent* ptr)
.
impl DynamicCast<QResizeEvent> for QEvent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QResizeEvent>
[src]
Calls C++ function: QResizeEvent* dynamic_cast<QResizeEvent*>(QEvent* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QEvent>) -> MutPtr<QResizeEvent>
[src]
Calls C++ function: QResizeEvent* dynamic_cast<QResizeEvent*>(QEvent* ptr)
.
impl Size for QResizeEvent
[src]
unsafe fn size(&self) -> usize
[src]
Returns the new size of the widget. This is the same as QWidget::size().
Calls C++ function: const QSize& QResizeEvent::size() const
.
Returns the new size of the widget. This is the same as QWidget::size().
impl StaticDowncast<QResizeEvent> for QEvent
[src]
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QResizeEvent>
[src]
Calls C++ function: QResizeEvent* static_cast<QResizeEvent*>(QEvent* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QEvent>) -> MutPtr<QResizeEvent>
[src]
Calls C++ function: QResizeEvent* static_cast<QResizeEvent*>(QEvent* ptr)
.
impl StaticUpcast<QEvent> for QResizeEvent
[src]
unsafe fn static_upcast(ptr: Ptr<QResizeEvent>) -> Ptr<QEvent>
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QResizeEvent* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QResizeEvent>) -> MutPtr<QEvent>
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QResizeEvent* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QResizeEvent
impl Send for QResizeEvent
impl Sync for QResizeEvent
impl Unpin for QResizeEvent
impl UnwindSafe for QResizeEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
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>,