Lines Matching refs:pEvent

2501 bool GtkSalFrame::Dispatch( const XEvent* pEvent )  in Dispatch()  argument
2505 if( pEvent->type == PropertyNotify ) in Dispatch()
2509 if( pEvent->xproperty.atom == nDesktopAtom && in Dispatch()
2510 pEvent->xproperty.state == PropertyNewValue ) in Dispatch()
2515 else if( pEvent->type == ConfigureNotify ) in Dispatch()
2517 if( m_pForeignParent && pEvent->xconfigure.window == m_aForeignParentWindow ) in Dispatch()
2520 … gtk_window_resize( GTK_WINDOW(m_pWindow), pEvent->xconfigure.width, pEvent->xconfigure.height ); in Dispatch()
2522 pEvent->xconfigure.width ) || in Dispatch()
2524 pEvent->xconfigure.height ) ) in Dispatch()
2526 maGeometry.nWidth = pEvent->xconfigure.width; in Dispatch()
2527 maGeometry.nHeight = pEvent->xconfigure.height; in Dispatch()
2532 else if( m_pForeignTopLevel && pEvent->xconfigure.window == m_aForeignTopLevelWindow ) in Dispatch()
2552 else if( pEvent->type == ClientMessage && in Dispatch()
2553pEvent->xclient.message_type == getDisplay()->getWMAdaptor()->getAtom( vcl_sal::WMAdaptor::XEMBED … in Dispatch()
2554 pEvent->xclient.window == GDK_WINDOW_XWINDOW(m_pWindow->window) && in Dispatch()
2560 if( pEvent->xclient.data.l[1] == 1 || // XEMBED_WINDOW_ACTIVATE in Dispatch()
2561 pEvent->xclient.data.l[1] == 2 // XEMBED_WINDOW_DEACTIVATE in Dispatch()
2568 aEvent.in = (pEvent->xclient.data.l[1] == 1); in Dispatch()
2617 gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer frame ) in signalButton() argument
2622 switch( pEvent->type ) in signalButton()
2633 switch( pEvent->button ) in signalButton()
2640 aEvent.mnTime = pEvent->time; in signalButton()
2641 aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX; in signalButton()
2642 aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY; in signalButton()
2643 aEvent.mnCode = GetMouseModCode( pEvent->state ); in signalButton()
2646 if( pEvent->type == GDK_BUTTON_PRESS && in signalButton()
2666 pEvent->type == GDK_BUTTON_PRESS && in signalButton()
2667 pEvent->button == 1 ) in signalButton()
2669 pThis->askForXEmbedFocus( pEvent->time ); in signalButton()
2695 int frame_x = (int)(pEvent->x_root - pEvent->x); in signalButton()
2696 int frame_y = (int)(pEvent->y_root - pEvent->y); in signalButton()
2709 gboolean GtkSalFrame::signalScroll( GtkWidget*, GdkEvent* pEvent, gpointer frame ) in signalScroll() argument
2712 GdkEventScroll* pSEvent = (GdkEventScroll*)pEvent; in signalScroll()
2745 gboolean GtkSalFrame::signalMotion( GtkWidget*, GdkEventMotion* pEvent, gpointer frame ) in signalMotion() argument
2750 aEvent.mnTime = pEvent->time; in signalMotion()
2751 aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX; in signalMotion()
2752 aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY; in signalMotion()
2753 aEvent.mnCode = GetMouseModCode( pEvent->state ); in signalMotion()
2769 int frame_x = (int)(pEvent->x_root - pEvent->x); in signalMotion()
2770 int frame_y = (int)(pEvent->y_root - pEvent->y); in signalMotion()
2790 gboolean GtkSalFrame::signalCrossing( GtkWidget*, GdkEventCrossing* pEvent, gpointer frame ) in signalCrossing() argument
2794 aEvent.mnTime = pEvent->time; in signalCrossing()
2795 aEvent.mnX = (long)pEvent->x_root - pThis->maGeometry.nX; in signalCrossing()
2796 aEvent.mnY = (long)pEvent->y_root - pThis->maGeometry.nY; in signalCrossing()
2797 aEvent.mnCode = GetMouseModCode( pEvent->state ); in signalCrossing()
2801 …pThis->CallCallback( (pEvent->type == GDK_ENTER_NOTIFY) ? SALEVENT_MOUSEMOVE : SALEVENT_MOUSELEAVE… in signalCrossing()
2807 gboolean GtkSalFrame::signalExpose( GtkWidget*, GdkEventExpose* pEvent, gpointer frame ) in signalExpose() argument
2811 …struct SalPaintEvent aEvent( pEvent->area.x, pEvent->area.y, pEvent->area.width, pEvent->area.heig… in signalExpose()
2819 gboolean GtkSalFrame::signalFocus( GtkWidget*, GdkEventFocus* pEvent, gpointer frame ) in signalFocus() argument
2828 if( !pEvent->in ) in signalFocus()
2836 pThis->m_pIMHandler->focusChanged( pEvent->in ); in signalFocus()
2839 if( pEvent->in ) in signalFocus()
2850 pThis->CallCallback( pEvent->in ? SALEVENT_GETFOCUS : SALEVENT_LOSEFOCUS, NULL ); in signalFocus()
2937 gboolean GtkSalFrame::signalConfigure( GtkWidget*, GdkEventConfigure* pEvent, gpointer frame ) in signalConfigure() argument
2942 int x = pEvent->x, y = pEvent->y; in signalConfigure()
2988 …if( pEvent->width != (int)pThis->maGeometry.nWidth || pEvent->height != (int)pThis->maGeometry.nHe… in signalConfigure()
2991 pThis->maGeometry.nWidth = pEvent->width; in signalConfigure()
2992 pThis->maGeometry.nHeight = pEvent->height; in signalConfigure()
3002 pThis->maGeometry.nBottomDecoration = aRect.y + aRect.height - y - pEvent->height; in signalConfigure()
3004 pThis->maGeometry.nRightDecoration = aRect.x + aRect.width - x - pEvent->width; in signalConfigure()
3026 gboolean GtkSalFrame::signalKey( GtkWidget*, GdkEventKey* pEvent, gpointer frame ) in signalKey() argument
3034 if( pThis->m_pIMHandler->handleKeyEvent( pEvent ) ) in signalKey()
3043 if( pEvent->keyval == GDK_Shift_L || pEvent->keyval == GDK_Shift_R || in signalKey()
3044 pEvent->keyval == GDK_Control_L || pEvent->keyval == GDK_Control_R || in signalKey()
3045 pEvent->keyval == GDK_Alt_L || pEvent->keyval == GDK_Alt_R || in signalKey()
3046 pEvent->keyval == GDK_Meta_L || pEvent->keyval == GDK_Meta_R || in signalKey()
3047 pEvent->keyval == GDK_Super_L || pEvent->keyval == GDK_Super_R ) in signalKey()
3051 sal_uInt16 nModCode = GetKeyModCode( pEvent->state ); in signalKey()
3054 if( pEvent->type == GDK_KEY_PRESS && !pThis->m_nKeyModifiers ) in signalKey()
3057 else if( pEvent->type == GDK_KEY_RELEASE && in signalKey()
3070 switch( pEvent->keyval ) in signalKey()
3109 if( pEvent->type == GDK_KEY_RELEASE ) in signalKey()
3121 aModEvt.mnTime = pEvent->time; in signalKey()
3128 if( ( pEvent->keyval == GDK_Alt_L || pEvent->keyval == GDK_Alt_R ) && in signalKey()
3131 if( pEvent->type == GDK_KEY_PRESS ) in signalKey()
3140 aKeyEvt.mnTime = pEvent->time; in signalKey()
3158 pThis->doKeyCallback( pEvent->state, in signalKey()
3159 pEvent->keyval, in signalKey()
3160 pEvent->hardware_keycode, in signalKey()
3161 pEvent->group, in signalKey()
3162 pEvent->time, in signalKey()
3163 sal_Unicode(gdk_keyval_to_unicode( pEvent->keyval )), in signalKey()
3164 (pEvent->type == GDK_KEY_PRESS), in signalKey()
3229 gboolean GtkSalFrame::signalState( GtkWidget*, GdkEvent* pEvent, gpointer frame ) in signalState() argument
3232 …if( (pThis->m_nState & GDK_WINDOW_STATE_ICONIFIED) != (pEvent->window_state.new_window_state & GDK… in signalState()
3235 if( (pEvent->window_state.new_window_state & GDK_WINDOW_STATE_MAXIMIZED) && in signalState()
3242 pThis->m_nState = pEvent->window_state.new_window_state; in signalState()
3245 if( (pEvent->window_state.changed_mask & GDK_WINDOW_STATE_FULLSCREEN) ) in signalState()
3249 … (pEvent->window_state.new_window_state & GDK_WINDOW_STATE_FULLSCREEN) ? "enters" : "leaves"); in signalState()
3256 gboolean GtkSalFrame::signalVisibility( GtkWidget*, GdkEventVisibility* pEvent, gpointer frame ) in signalVisibility() argument
3259 pThis->m_nVisibility = pEvent->state; in signalVisibility()
3424 bool GtkSalFrame::IMHandler::handleKeyEvent( GdkEventKey* pEvent ) in handleKeyEvent() argument
3428 if( pEvent->type == GDK_KEY_PRESS ) in handleKeyEvent()
3435 m_aPrevKeyPresses.push_back( PreviousKeyPress(pEvent) ); in handleKeyEvent()
3454 gboolean bResult = gtk_im_context_filter_keypress( m_pIMContext, pEvent ); in handleKeyEvent()
3482 if (pEvent->type == GDK_KEY_RELEASE) in handleKeyEvent()
3485 gboolean bResult = gtk_im_context_filter_keypress( m_pIMContext, pEvent ); in handleKeyEvent()
3499 if (*iter == pEvent) in handleKeyEvent()