pub struct EvtHandlerIsOwned<const OWNED: bool>(/* private fields */);
Expand description
A class that can handle events from the windowing system.
EvtHandler
represents a C++wxEvtHandler
class instance which your code has ownership,EvtHandlerIsOwned
<false>
represents one which don’t own.- Use
EvtHandler
’snew()
to create an instance of this class. - See C++
wxEvtHandler
class’s documentation for more details.
Implementations§
Source§impl<const OWNED: bool> EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> EvtHandlerIsOwned<OWNED>
Trait Implementations§
Source§impl<const OWNED: bool> Clone for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> Clone for EvtHandlerIsOwned<OWNED>
Source§impl<const OWNED: bool> DynamicCast for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> DynamicCast for EvtHandlerIsOwned<OWNED>
fn class_info() -> ClassInfoIsOwned<false>
fn as_unowned<T: DynamicCast>(&self) -> Option<T::Unowned>
Source§impl<const OWNED: bool> EvtHandlerMethods for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> EvtHandlerMethods for EvtHandlerIsOwned<OWNED>
Source§fn queue_event<E: EventMethods>(&self, event: Option<&E>)
fn queue_event<E: EventMethods>(&self, event: Option<&E>)
Queue event for a later processing. Read more
Source§fn add_pending_event<E: EventMethods>(&self, event: &E)
fn add_pending_event<E: EventMethods>(&self, event: &E)
Post an event to be processed later. Read more
Source§fn process_event<E: EventMethods>(&self, event: &E) -> bool
fn process_event<E: EventMethods>(&self, event: &E) -> bool
Processes an event, searching event tables and calling zero or more suitable event handler function(s). Read more
Source§fn process_event_locally<E: EventMethods>(&self, event: &E) -> bool
fn process_event_locally<E: EventMethods>(&self, event: &E) -> bool
Try to process the event in this handler and all those chained to it. Read more
Source§fn safely_process_event<E: EventMethods>(&self, event: &E) -> bool
fn safely_process_event<E: EventMethods>(&self, event: &E) -> bool
Processes an event by calling ProcessEvent() and handles any exceptions that occur in the process. Read more
Source§fn process_pending_events(&self)
fn process_pending_events(&self)
Processes the pending events previously queued using QueueEvent() or AddPendingEvent(); you must call this function only if you are sure there are pending events for this handler, otherwise a wxCHECK will fail. Read more
Source§fn delete_pending_events(&self)
fn delete_pending_events(&self)
Deletes all events queued on this event handler using QueueEvent() or AddPendingEvent(). Read more
Source§fn get_client_object(&self) -> Option<ClientDataIsOwned<false>>
fn get_client_object(&self) -> Option<ClientDataIsOwned<false>>
Returns a pointer to the user-supplied client data object. Read more
Source§fn set_client_object<C: ClientDataMethods>(&self, data: Option<&C>)
fn set_client_object<C: ClientDataMethods>(&self, data: Option<&C>)
Set the client data object. Read more
Source§fn get_evt_handler_enabled(&self) -> bool
fn get_evt_handler_enabled(&self) -> bool
Returns true if the event handler is enabled, false otherwise. Read more
Source§fn get_next_handler(&self) -> WeakRef<EvtHandler>
fn get_next_handler(&self) -> WeakRef<EvtHandler>
Returns the pointer to the next handler in the chain. Read more
Source§fn get_previous_handler(&self) -> WeakRef<EvtHandler>
fn get_previous_handler(&self) -> WeakRef<EvtHandler>
Returns the pointer to the previous handler in the chain. Read more
Source§fn set_evt_handler_enabled(&self, enabled: bool)
fn set_evt_handler_enabled(&self, enabled: bool)
Enables or disables the event handler. Read more
Source§fn set_next_handler<E: EvtHandlerMethods>(&self, handler: Option<&E>)
fn set_next_handler<E: EvtHandlerMethods>(&self, handler: Option<&E>)
Sets the pointer to the next handler. Read more
Source§fn set_previous_handler<E: EvtHandlerMethods>(&self, handler: Option<&E>)
fn set_previous_handler<E: EvtHandlerMethods>(&self, handler: Option<&E>)
Sets the pointer to the previous handler. Read more
Source§fn unlink(&self)
fn unlink(&self)
Unlinks this event handler from the chain it’s part of (if any); then links the “previous” event handler to the “next” one (so that the chain won’t be interrupted). Read more
Source§fn is_unlinked(&self) -> bool
fn is_unlinked(&self) -> bool
Returns true if the next and the previous handler pointers of this event handler instance are NULL. Read more
Source§impl<const OWNED: bool> From<EvtHandlerIsOwned<OWNED>> for ObjectIsOwned<OWNED>
impl<const OWNED: bool> From<EvtHandlerIsOwned<OWNED>> for ObjectIsOwned<OWNED>
Source§fn from(o: EvtHandlerIsOwned<OWNED>) -> Self
fn from(o: EvtHandlerIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> From<TimerIsOwned<OWNED>> for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> From<TimerIsOwned<OWNED>> for EvtHandlerIsOwned<OWNED>
Source§fn from(o: TimerIsOwned<OWNED>) -> Self
fn from(o: TimerIsOwned<OWNED>) -> Self
Converts to this type from the input type.
Source§impl<const OWNED: bool> ObjectMethods for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> ObjectMethods for EvtHandlerIsOwned<OWNED>
Source§fn get_class_info(&self) -> Option<ClassInfoIsOwned<false>>
fn get_class_info(&self) -> Option<ClassInfoIsOwned<false>>
This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). Read more
Source§fn get_ref_data(&self) -> Option<ObjectRefDataIsOwned<false>>
fn get_ref_data(&self) -> Option<ObjectRefDataIsOwned<false>>
Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. Read more
Source§fn is_kind_of<C: ClassInfoMethods>(&self, info: Option<&C>) -> bool
fn is_kind_of<C: ClassInfoMethods>(&self, info: Option<&C>) -> bool
Determines whether this class is a subclass of (or the same class as) the given class. Read more
Source§fn is_same_as<O: ObjectMethods>(&self, obj: &O) -> bool
fn is_same_as<O: ObjectMethods>(&self, obj: &O) -> bool
Returns true if this object has the same data pointer as obj. Read more
Source§fn ref_<O: ObjectMethods>(&self, clone: &O)
fn ref_<O: ObjectMethods>(&self, clone: &O)
Makes this object refer to the data in clone. Read more
Source§fn set_ref_data<O: ObjectRefDataMethods>(&self, data: Option<&O>)
fn set_ref_data<O: ObjectRefDataMethods>(&self, data: Option<&O>)
Sets the wxObject::m_refData pointer. Read more
Source§fn un_ref(&self)
fn un_ref(&self)
Decrements the reference count in the associated data, and if it is zero, deletes the data. Read more
This is the same of AllocExclusive() but this method is public. Read more
Source§impl<const OWNED: bool> WxRustMethods for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> WxRustMethods for EvtHandlerIsOwned<OWNED>
type Unowned = EvtHandlerIsOwned<false>
unsafe fn as_ptr(&self) -> *mut c_void
unsafe fn from_ptr(ptr: *mut c_void) -> Self
unsafe fn from_unowned_ptr(ptr: *mut c_void) -> Self::Unowned
unsafe fn with_ptr<F: Fn(&Self)>(ptr: *mut c_void, closure: F)
unsafe fn option_from(ptr: *mut c_void) -> Option<Self::Unowned>where
Self: Sized,
Auto Trait Implementations§
impl<const OWNED: bool> Freeze for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> RefUnwindSafe for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> !Send for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> !Sync for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> Unpin for EvtHandlerIsOwned<OWNED>
impl<const OWNED: bool> UnwindSafe for EvtHandlerIsOwned<OWNED>
Blanket Implementations§
Source§impl<T> Bindable for Twhere
T: EvtHandlerMethods,
impl<T> Bindable for Twhere
T: EvtHandlerMethods,
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