Forward a window event
int PtForwardWindowEvent( PhWindowEvent_t const *window_event );
This function forwards the provided window event to the window manager.
int give_a_window_focus( PtWidget_t *widget ) { PhWindowEvent_t WE; if( !widget || !PtWidgetIsClassMember( widget, PtWindow )) return -1; memset( &WE, 0, sizeof (WE)); WE.event_f = Ph_WM_FOCUS; WE.rid = PtWidgetRid( widget ); WE.event_state = Ph_WM_EVSTATE_FOCUS; return PtForwardWindowEvent( &WE ); }
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PhWindowEvent_t, PtForwardWindowTaskEvent()
PtWindowFocus(), PtWindowToBack(), PtWindowToFront() in the Photon Widget Reference
Window Management chapter of the Photon Programmer's Guide.