summaryrefslogtreecommitdiff
path: root/include/vcl/sysdata.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-06 09:17:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-06 12:05:28 +0200
commitac87cfdf263d2abd97b32857534d0f749b7c4479 (patch)
tree05fa0c8d1632d9ed1b2cf3669ddcfee0b395bf23 /include/vcl/sysdata.hxx
parent6a789e617ed07bfddc516c8fc0cf94cd6dfe7250 (diff)
Replace SystemEnvData pToolkit/pPlatformName strings with enums
(and streamline those data members' names) Change-Id: Ifdd596c7a54dd507045d412c30b463468c2f798b Reviewed-on: https://gerrit.libreoffice.org/80313 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/vcl/sysdata.hxx')
-rw-r--r--include/vcl/sysdata.hxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx
index e7a8f5d2df55..393116d98c70 100644
--- a/include/vcl/sysdata.hxx
+++ b/include/vcl/sysdata.hxx
@@ -61,6 +61,9 @@ struct SystemEnvData
#elif defined( IOS )
// Nothing
#elif defined( UNX )
+ enum class Toolkit { Gtk3, Qt5 };
+ enum class Platform { Wayland, Xcb };
+
void* pDisplay; // the relevant display connection
unsigned long aWindow; // the window of the object
void* pSalFrame; // contains a salframe, if object has one
@@ -70,8 +73,8 @@ struct SystemEnvData
// note: this is a "long" in Xlib *but* in the protocol it's only 32-bit
// however, the GTK3 vclplug wants to store pointers in here!
sal_IntPtr aShellWindow; // the window of the frame's shell
- const char* pToolkit; // the toolkit in use (gtk2 vs gtk3)
- const char* pPlatformName; // the windowing system in use (xcb vs wayland)
+ Toolkit toolkit; // the toolkit in use
+ Platform platform; // the windowing system in use
#endif
SystemEnvData()
@@ -90,8 +93,8 @@ struct SystemEnvData
, pVisual(nullptr)
, nScreen(0)
, aShellWindow(0)
- , pToolkit(nullptr)
- , pPlatformName(nullptr)
+ , toolkit(Toolkit())
+ , platform(Platform())
#endif
{
}