pub fn post_event<E: EventTrait<'a>, O: ObjectTrait<'a>>(
        receiver: &O,
        event: &E,
        priority: i32,
    ) {
        let (obj_receiver_1, _funcs) = receiver.get_object_obj_funcs();
        let (obj_event_2, _funcs) = event.get_event_obj_funcs();

        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_core_application)(::std::ptr::null()).all_funcs)
                    .core_application_funcs,
            )
        };
        unsafe {
            ((*funcs).post_event)(obj_data, obj_receiver_1, obj_event_2, priority);
        }
    }
///
/// Adds the event *event,* with the object *receiver* as the
/// receiver of the event, to an event queue and returns immediately.
///
/// The event must be allocated on the heap since the post event queue
/// will take ownership of the event and delete it once it has been
/// posted. It is *not safe* to access the event after
/// it has been posted.
///
/// When control returns to the main event loop, all events that are
/// stored in the queue will be sent using the notify() function.
///
/// Events are sorted in descending *priority* order, i.e. events
/// with a high *priority* are queued before events with a lower *priority.* The *priority* can be any integer value, i.e. between
/// INT_MAX and INT_MIN, inclusive; see Qt::EventPriority for more
/// details. Events with equal *priority* will be processed in the
/// order posted.
///
/// **See also:** [`send_event()`]
/// [`notify()`]
/// [`send_posted_events()`]
/// [`t::event_priority()`]
Adds the event *event,* with the object *receiver* as the
receiver of the event, to an event queue and returns immediately.

The event must be allocated on the heap since the post event queue
will take ownership of the event and delete it once it has been
posted. It is *not safe* to access the event after
it has been posted.

When control returns to the main event loop, all events that are
stored in the queue will be sent using the notify() function.

Events are sorted in descending *priority* order, i.e.


Adds the event * event * with the object * receiver * as the receiver of the event to an event queue and returns immediately . The event must be allocated on the heap since the post event queue will take ownership of the event and delete it once it has been posted . It is * not safe * to access the event after it has been posted . When control returns to the main event loop all events that are stored in the queue will be sent using the notify () function . Events are sorted in descending * priority * order i . e .
pub fn post_event<E: EventTrait<'a>, O: ObjectTrait<'a>>(
        receiver: &O,
        event: &E,
        priority: i32,
    ) {
        let (obj_receiver_1, _funcs) = receiver.get_object_obj_funcs();
        let (obj_event_2, _funcs) = event.get_event_obj_funcs();
        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_core_application)(::std::ptr::null()).all_funcs)
                    .core_application_funcs,
            )
        };
        unsafe {
            ((*funcs).post_event)(obj_data, obj_receiver_1, obj_event_2, priority);
        }
    }
pub fn post_event < E : EventTrait < ' a > , O : ObjectTrait < ' a > > ( receiver : & O , event : & E , priority : i32 , ) { let ( obj_receiver_1 , _funcs ) = receiver . get_object_obj_funcs ( ) ; let ( obj_event_2 , _funcs ) = event . get_event_obj_funcs ( ) ; let ( obj_data , funcs ) = unsafe { ( :: std :: ptr :: null ( ) , ( * ( ( * rute_ffi_get ( ) ) . get_core_application ) ( :: std :: ptr :: null ( ) ) . all_funcs ) . core_application_funcs , ) } ; unsafe { ( ( * funcs ) . post_event ) ( obj_data , obj_receiver_1 , obj_event_2 , priority ) ; } }
Adds the event *event,* with the object *receiver* as the
receiver of the event, to an event queue and returns immediately.
Adds the event * event * with the object * receiver * as the receiver of the event to an event queue and returns immediately .
receiver
&O
event
&E
priority
i32
receiver
&O
event
&E
priority
i32