LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
GtkSalDisplay Class Reference

#include <gtkdata.hxx>

Inheritance diagram for GtkSalDisplay:
[legend]
Collaboration diagram for GtkSalDisplay:
[legend]

Public Member Functions

 GtkSalDisplay (GdkDisplay *pDisplay)
 
virtual ~GtkSalDisplay () override
 
GdkDisplay * GetGdkDisplay () const
 
bool IsX11Display () const
 
GtkSalSystemgetSystem () const
 
GtkWidget * findGtkWidgetForNativeHandle (sal_uIntPtr hWindow) const
 
virtual void deregisterFrame (SalFrame *pFrame) override
 
GdkCursor * getCursor (PointerStyle ePointerStyle)
 
virtual int CaptureMouse (SalFrame *pFrame) override
 
SalX11Screen GetDefaultXScreen ()
 
Size GetScreenSize (int nDisplayScreen)
 
int GetXScreenCount ()
 
virtual ScreenDatainitScreen (SalX11Screen nXScreen) const override
 
GdkFilterReturn filterGdkEvent (GdkXEvent *sys_event)
 
void startupNotificationCompleted ()
 
void screenSizeChanged (GdkScreen const *)
 
void monitorsChanged (GdkScreen const *)
 
virtual void TriggerUserEventProcessing () override
 
virtual void TriggerAllUserEventsProcessed () override
 
virtual bool Dispatch (XEvent *pEvent) override
 
- Public Member Functions inherited from SalDisplay
 SalDisplay (Display *pDisp)
 
virtual ~SalDisplay () override
 
void Init ()
 
void PrintInfo () const
 
void DbgPrintDisplayEvent (const char *pComment, XEvent *pEvent) const
 
void Beep () const
 
void ModifierMapping ()
 
void SimulateKeyPress (sal_uInt16 nKeyCode)
 
KeyIndicatorState GetIndicatorState () const
 
OUString GetKeyNameFromKeySym (KeySym keysym) const
 
OUString GetKeyName (sal_uInt16 nKeyCode) const
 
sal_uInt16 GetKeyCode (KeySym keysym, char *pcPrintable) const
 
KeySym GetKeySym (XKeyEvent *pEvent, char *pPrintable, int *pLen, KeySym *pUnmodifiedKeySym, Status *pStatus, XIC=nullptr) const
 
Cursor GetPointer (PointerStyle ePointerStyle)
 
const ScreenDatagetDataForScreen (SalX11Screen nXScreen) const
 
::Window GetDrawable (SalX11Screen nXScreen) const
 
DisplayGetDisplay () const
 
const SalX11ScreenGetDefaultXScreen () const
 
const SizeGetScreenSize (SalX11Screen nXScreen) const
 
srv_vendor_t GetServerVendor () const
 
bool IsDisplay () const
 
GC GetCopyGC (SalX11Screen nXScreen) const
 
Pixmap GetInvert50 (SalX11Screen nXScreen) const
 
const SalColormapGetColormap (SalX11Screen nXScreen) const
 
const SalVisualGetVisual (SalX11Screen nXScreen) const
 
RenderEntryMapGetRenderEntries (SalX11Screen nXScreen) const
 
const PairGetResolution () const
 
sal_uLong GetMaxRequestSize () const
 
Time GetLastUserEventTime () const
 
Time GetX11ServerTime () const
 
bool XIfEventWithTimeout (XEvent *, XPointer, X_if_predicate) const
 
SalXLibGetXLib () const
 
SalI18N_InputMethodGetInputMethod () const
 
SalI18N_KeyboardExtensionGetKbdExtension () const
 
void SetKbdExtension (SalI18N_KeyboardExtension *pKbdExtension)
 
::vcl_sal::WMAdaptorgetWMAdaptor () const
 
bool IsXinerama () const
 
const std::vector< tools::Rectangle > & GetXineramaScreens () const
 
::Window GetRootWindow (SalX11Screen nXScreen) const
 
unsigned int GetXScreenCount () const
 
const SalFrameSetgetFrames () const
 
bool IsNumLockFromXS () const
 
std::list< SalObject * > & getSalObjects ()
 
- Public Member Functions inherited from SalGenericDisplay
 SalGenericDisplay ()
 
virtual ~SalGenericDisplay () override
 
void registerFrame (SalFrame *pFrame)
 
void emitDisplayChanged ()
 
void SendInternalEvent (SalFrame *pFrame, void *pData, SalEvent nEvent=SalEvent::UserEvent)
 
void CancelInternalEvent (SalFrame *pFrame, void *pData, SalEvent nEvent)
 
bool DispatchInternalEvent (bool bHandleAllCurrentEvent=false)
 
bool MouseCaptured (const SalFrame *pFrameData) const
 
SalFrameGetCaptureFrame () const
 
- Public Member Functions inherited from SalUserEventList
 SalUserEventList ()
 
virtual ~SalUserEventList ()
 
const SalFrameSetgetFrames () const
 
SalFrameanyFrame () const
 
void insertFrame (SalFrame *pFrame)
 
void eraseFrame (SalFrame *pFrame)
 
bool isFrameAlive (const SalFrame *pFrame) const
 
void PostEvent (SalFrame *pFrame, void *pData, SalEvent nEvent)
 
void RemoveEvent (SalFrame *pFrame, void *pData, SalEvent nEvent)
 
bool HasUserEvents () const
 
bool DispatchUserEvents (bool bHandleAllCurrentEvents)
 

Private Member Functions

GdkCursor * getFromXBM (const unsigned char *pBitmap, const unsigned char *pMask, int nWidth, int nHeight, int nXHot, int nYHot)
 
GdkCursor * getFromSvg (OUString const &name, int nXHot, int nYHot)
 

Private Attributes

GtkSalSystemm_pSys
 
GdkDisplay *const m_pGdkDisplay
 
o3tl::enumarray< PointerStyle, GdkCursor * > m_aCursors
 
bool m_bStartupCompleted
 
bool m_bX11Display
 

Additional Inherited Members

- Public Types inherited from SalDisplay
typedef std::unordered_map< int, RenderEntryRenderEntryMap
 
- Static Public Member Functions inherited from SalDisplay
static bool BestOpenGLVisual (Display *pDisplay, int nScreen, XVisualInfo &rVI)
 
static bool BestVisual (Display *pDisp, int nScreen, XVisualInfo &rVI)
 
- Protected Member Functions inherited from SalDisplay
void InitXinerama ()
 
void InitRandR (::Window aRoot) const
 
void DeInitRandR ()
 
void processRandREvent (XEvent *)
 
void doDestruct ()
 
void addXineramaScreenUnique (int i, long i_nX, long i_nY, long i_nWidth, long i_nHeight)
 
Time GetEventTimeImpl (bool bAlwaysReget=false) const
 
- Protected Member Functions inherited from SalGenericDisplay
virtual void ProcessEvent (SalUserEvent aEvent) override
 
- Protected Attributes inherited from SalDisplay
SalXLibpXLib_
 
SalI18N_KeyboardExtensionmpKbdExtension
 
DisplaypDisp_
 
SalX11Screen m_nXDefaultScreen
 
std::vector< ScreenDatam_aScreens
 
ScreenData const m_aInvalidScreenData
 
Pair aResolution_
 
sal_uLong nMaxRequestSize_
 
srv_vendor_t meServerVendor
 
o3tl::enumarray< PointerStyle, CursoraPointerCache_
 
bool bNumLockFromXS_
 
int nNumLockIndex_
 
KeySym nShiftKeySym_
 
KeySym nCtrlKeySym_
 
KeySym nMod1KeySym_
 
std::unique_ptr< vcl_sal::WMAdaptorm_pWMAdaptor
 
bool m_bXinerama
 
std::vector< tools::Rectanglem_aXineramaScreens
 
std::vector< intm_aXineramaScreenIndexMap
 
std::list< SalObject * > m_aSalObjects
 
bool m_bUseRandRWrapper
 
Time m_nLastUserEventTime
 
- Protected Attributes inherited from SalGenericDisplay
SalFramem_pCapture
 
- Protected Attributes inherited from SalUserEventList
osl::Mutex m_aUserEventsMutex
 
std::list< SalUserEventm_aUserEvents
 
std::list< SalUserEventm_aProcessingUserEvents
 
bool m_bAllUserEventProcessedSignaled
 
SalFrameSet m_aFrames
 
oslThreadIdentifier m_aProcessingThread
 

Detailed Description

Definition at line 138 of file gtkdata.hxx.

Constructor & Destructor Documentation

GtkSalDisplay::GtkSalDisplay ( GdkDisplay *  pDisplay)
virtual GtkSalDisplay::~GtkSalDisplay ( )
overridevirtual

Member Function Documentation

virtual int GtkSalDisplay::CaptureMouse ( SalFrame pFrame)
overridevirtual

Reimplemented from SalDisplay.

virtual void GtkSalDisplay::deregisterFrame ( SalFrame pFrame)
overridevirtual

Reimplemented from SalGenericDisplay.

virtual bool GtkSalDisplay::Dispatch ( XEvent *  pEvent)
overridevirtual

Implements SalDisplay.

GdkFilterReturn GtkSalDisplay::filterGdkEvent ( GdkXEvent *  sys_event)
GtkWidget* GtkSalDisplay::findGtkWidgetForNativeHandle ( sal_uIntPtr  hWindow) const
GdkCursor* GtkSalDisplay::getCursor ( PointerStyle  ePointerStyle)
SalX11Screen GtkSalDisplay::GetDefaultXScreen ( )
inline

Definition at line 170 of file gtkdata.hxx.

References GtkSalSystem::GetDisplayDefaultXScreen().

GdkCursor* GtkSalDisplay::getFromSvg ( OUString const &  name,
int  nXHot,
int  nYHot 
)
private
GdkCursor* GtkSalDisplay::getFromXBM ( const unsigned char *  pBitmap,
const unsigned char *  pMask,
int  nWidth,
int  nHeight,
int  nXHot,
int  nYHot 
)
private
GdkDisplay* GtkSalDisplay::GetGdkDisplay ( ) const
inline

Definition at line 155 of file gtkdata.hxx.

References m_pGdkDisplay.

Referenced by GtkSalData::GetGdkDisplay().

Size GtkSalDisplay::GetScreenSize ( int  nDisplayScreen)
GtkSalSystem* GtkSalDisplay::getSystem ( ) const
inline

Definition at line 158 of file gtkdata.hxx.

References m_pSys.

int GtkSalDisplay::GetXScreenCount ( )
inline

Definition at line 172 of file gtkdata.hxx.

References GtkSalSystem::GetDisplayXScreenCount().

virtual ScreenData* GtkSalDisplay::initScreen ( SalX11Screen  nXScreen) const
overridevirtual

Reimplemented from SalDisplay.

bool GtkSalDisplay::IsX11Display ( ) const
inline

Definition at line 156 of file gtkdata.hxx.

References m_bX11Display.

void GtkSalDisplay::monitorsChanged ( GdkScreen const *  )
void GtkSalDisplay::screenSizeChanged ( GdkScreen const *  )
void GtkSalDisplay::startupNotificationCompleted ( )
inline

Definition at line 180 of file gtkdata.hxx.

virtual void GtkSalDisplay::TriggerAllUserEventsProcessed ( )
overridevirtual

Reimplemented from SalUserEventList.

virtual void GtkSalDisplay::TriggerUserEventProcessing ( )
overridevirtual

Implements SalUserEventList.

Member Data Documentation

o3tl::enumarray<PointerStyle, GdkCursor*> GtkSalDisplay::m_aCursors
private

Definition at line 143 of file gtkdata.hxx.

bool GtkSalDisplay::m_bStartupCompleted
private

Definition at line 144 of file gtkdata.hxx.

bool GtkSalDisplay::m_bX11Display
private

Definition at line 145 of file gtkdata.hxx.

Referenced by IsX11Display().

GdkDisplay* const GtkSalDisplay::m_pGdkDisplay
private

Definition at line 142 of file gtkdata.hxx.

Referenced by GetGdkDisplay().

GtkSalSystem* GtkSalDisplay::m_pSys
private

Definition at line 141 of file gtkdata.hxx.

Referenced by getSystem().


The documentation for this class was generated from the following file: