LibreOffice Module vcl (master)  1
gtkobject.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_VCL_INC_UNX_GTK_GTKOBJECT_HXX
21 #define INCLUDED_VCL_INC_UNX_GTK_GTKOBJECT_HXX
22 
23 #include <tools/solar.h>
24 #include <vcl/sysdata.hxx>
25 #include <salobj.hxx>
26 #include <unx/gtk/gtkframe.hxx>
27 
28 class GtkSalObject : public SalObject
29 {
31  GtkWidget* m_pSocket;
33  cairo_region_t* m_pRegion;
34 
35  // signals
36  static gboolean signalButton( GtkWidget*, GdkEventButton*, gpointer );
37  static gboolean signalFocus( GtkWidget*, GdkEventFocus*, gpointer );
38  static void signalDestroy( GtkWidget*, gpointer );
39 public:
40  GtkSalObject( GtkSalFrame* pParent, bool bShow );
41  virtual ~GtkSalObject() override;
42 
43  // override all pure virtual methods
44  virtual void ResetClipRegion() override;
45  virtual void BeginSetClipRegion( sal_uInt32 nRects ) override;
46  virtual void UnionClipRegion( long nX, long nY, long nWidth, long nHeight ) override;
47  virtual void EndSetClipRegion() override;
48 
49  virtual void SetPosSize( long nX, long nY, long nWidth, long nHeight ) override;
50  virtual void Show( bool bVisible ) override;
51 
52  virtual void SetForwardKey( bool bEnable ) override;
53 
54  virtual const SystemEnvData* GetSystemData() const override;
55 };
56 
57 #endif // INCLUDED_VCL_INC_UNX_GTK_GTKOBJECT_HXX
58 
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void ResetClipRegion() override
SystemEnvData m_aSystemData
Definition: gtkobject.hxx:30
static void signalDestroy(GtkWidget *, gpointer)
virtual void SetForwardKey(bool bEnable) override
virtual ~GtkSalObject() override
static gboolean signalButton(GtkWidget *, GdkEventButton *, gpointer)
virtual void BeginSetClipRegion(sal_uInt32 nRects) override
virtual void SetPosSize(long nX, long nY, long nWidth, long nHeight) override
virtual void UnionClipRegion(long nX, long nY, long nWidth, long nHeight) override
GtkSalObject(GtkSalFrame *pParent, bool bShow)
static gboolean signalFocus(GtkWidget *, GdkEventFocus *, gpointer)
GtkWidget * m_pSocket
Definition: gtkobject.hxx:31
virtual void EndSetClipRegion() override
GtkSalFrame * m_pParent
Definition: gtkobject.hxx:32
virtual const SystemEnvData * GetSystemData() const override
virtual void Show(bool bVisible) override
cairo_region_t * m_pRegion
Definition: gtkobject.hxx:33