summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/window
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-09 16:31:21 +0200
committerNoel Grandin <noel@peralex.com>2016-05-10 08:40:10 +0200
commit9c7222c11c331ecd1562e963e78ab85be75b8e49 (patch)
tree24ec24a42a54cafdc4e4eb1da7f47fb2f0d71d8c /vcl/unx/generic/window
parent00bfc137d3a62a252f158c4a9100dd1379f410fd (diff)
convert WINDOWSTATE_MASK to scoped enum
Change-Id: Ic8259d81d8080c518aa07697e253a59cd6efaa4b
Diffstat (limited to 'vcl/unx/generic/window')
-rw-r--r--vcl/unx/generic/window/salframe.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index 7f4511df6ab0..9060664c9efd 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -1610,11 +1610,11 @@ void X11SalFrame::SetAlwaysOnTop( bool bOnTop )
}
#define FRAMESTATE_MASK_GEOMETRY \
- (WINDOWSTATE_MASK_X | WINDOWSTATE_MASK_Y | \
- WINDOWSTATE_MASK_WIDTH | WINDOWSTATE_MASK_HEIGHT)
+ (WindowStateMask::X | WindowStateMask::Y | \
+ WindowStateMask::Width | WindowStateMask::Height)
#define FRAMESTATE_MASK_MAXIMIZED_GEOMETRY \
- (WINDOWSTATE_MASK_MAXIMIZED_X | WINDOWSTATE_MASK_MAXIMIZED_Y | \
- WINDOWSTATE_MASK_MAXIMIZED_WIDTH | WINDOWSTATE_MASK_MAXIMIZED_HEIGHT)
+ (WindowStateMask::MaximizedX | WindowStateMask::MaximizedY | \
+ WindowStateMask::MaximizedWidth | WindowStateMask::MaximizedHeight)
void X11SalFrame::SetWindowState( const SalFrameState *pState )
{
@@ -1631,7 +1631,7 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
* in state change below maximize window
*/
if( ! IsChildWindow() &&
- (pState->mnMask & WINDOWSTATE_MASK_STATE) &&
+ (pState->mnMask & WindowStateMask::State) &&
(pState->mnState & WINDOWSTATE_STATE_MAXIMIZED) &&
(pState->mnMask & FRAMESTATE_MASK_GEOMETRY) == FRAMESTATE_MASK_GEOMETRY &&
(pState->mnMask & FRAMESTATE_MASK_MAXIMIZED_GEOMETRY) == FRAMESTATE_MASK_MAXIMIZED_GEOMETRY
@@ -1670,21 +1670,21 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
GetPosSize (aPosSize);
// change requested properties
- if (pState->mnMask & WINDOWSTATE_MASK_X)
+ if (pState->mnMask & WindowStateMask::X)
{
aPosSize.setX (pState->mnX);
}
- if (pState->mnMask & WINDOWSTATE_MASK_Y)
+ if (pState->mnMask & WindowStateMask::Y)
{
aPosSize.setY (pState->mnY);
}
- if (pState->mnMask & WINDOWSTATE_MASK_WIDTH)
+ if (pState->mnMask & WindowStateMask::Width)
{
long nWidth = pState->mnWidth > 0 ? pState->mnWidth - 1 : 0;
aPosSize.setWidth (nWidth);
bDoAdjust = true;
}
- if (pState->mnMask & WINDOWSTATE_MASK_HEIGHT)
+ if (pState->mnMask & WindowStateMask::Height)
{
int nHeight = pState->mnHeight > 0 ? pState->mnHeight - 1 : 0;
aPosSize.setHeight (nHeight);
@@ -1730,7 +1730,7 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
}
// request for status change
- if (pState->mnMask & WINDOWSTATE_MASK_STATE)
+ if (pState->mnMask & WindowStateMask::State)
{
if (pState->mnState & WINDOWSTATE_STATE_MAXIMIZED)
{
@@ -1792,7 +1792,7 @@ bool X11SalFrame::GetWindowState( SalFrameState* pState )
pState->mnWidth = aPosSize.GetWidth();
pState->mnHeight = aPosSize.GetHeight();
- pState->mnMask = FRAMESTATE_MASK_GEOMETRY | WINDOWSTATE_MASK_STATE;
+ pState->mnMask = FRAMESTATE_MASK_GEOMETRY | WindowStateMask::State;
if (! maRestorePosSize.IsEmpty() )
{