1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_VCL_INC_UNX_SALOBJ_H
21 #define INCLUDED_VCL_INC_UNX_SALOBJ_H
26 #include <vcl/sysdata.hxx>
27 #include <vclpluginapi.h>
38 void BeginSetClipRegion( sal_uInt32 nRects
);
39 void UnionClipRegion( long nX
, long nY
, long nWidth
, long nHeight
);
41 XRectangle
*EndSetClipRegion() {
42 return ClipRectangleList
.get(); }
43 void ResetClipRegion() {
44 numClipRectangles
= 0; }
45 int GetRectangleCount() const {
46 return numClipRectangles
; }
50 std::unique_ptr
<XRectangle
[]>
52 int numClipRectangles
;
53 int maxClipRectangles
;
56 class VCLPLUG_GEN_PUBLIC X11SalObject
: public SalObject
59 SystemEnvData maSystemChildData
;
65 SalClipRegion maClipRegion
;
68 static VCL_DLLPUBLIC
bool Dispatch( XEvent
* pEvent
);
69 static VCL_DLLPUBLIC X11SalObject
* CreateObject( SalFrame
* pParent
, SystemWindowData
* pWindowData
, bool bShow
);
72 virtual ~X11SalObject() override
;
74 // override all pure virtual methods
75 virtual void ResetClipRegion() override
;
76 virtual void BeginSetClipRegion( sal_uInt32 nRects
) override
;
77 virtual void UnionClipRegion( long nX
, long nY
, long nWidth
, long nHeight
) override
;
78 virtual void EndSetClipRegion() override
;
80 virtual void SetPosSize( long nX
, long nY
, long nWidth
, long nHeight
) override
;
81 virtual void Show( bool bVisible
) override
;
82 virtual void GrabFocus() override
;
84 virtual void SetLeaveEnterBackgrounds(const css::uno::Sequence
<css::uno::Any
>& rLeaveArgs
, const css::uno::Sequence
<css::uno::Any
>& rEnterArgs
) override
;
86 virtual const SystemEnvData
* GetSystemData() const override
;
89 #endif // INCLUDED_VCL_INC_UNX_SALOBJ_H
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */