Version 4.2.0.1, tag libreoffice-4.2.0.1
[LibreOffice.git] / vcl / inc / ios / iosinst.hxx
blob5d4ad0c9fc77c5d3aca8d86be7e2f64bd34f2fd3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_IOS_IOSINST_HXX
21 #define INCLUDED_VCL_INC_IOS_IOSINST_HXX
23 #include <pthread.h>
25 #include <premac.h>
26 #include <CoreGraphics/CoreGraphics.h>
27 #include <postmac.h>
29 #include <tools/link.hxx>
31 #include "headless/svpinst.hxx"
32 #include "headless/svpframe.hxx"
34 class IosSalFrame;
35 class IosSalInstance : public SvpSalInstance
37 public:
38 IosSalInstance( SalYieldMutex *pMutex );
39 virtual ~IosSalInstance();
40 static IosSalInstance *getInstance();
42 virtual SalSystem* CreateSalSystem();
44 void GetWorkArea( Rectangle& rRect );
45 SalFrame* CreateFrame( SalFrame* pParent, sal_uLong nStyle );
46 SalFrame* CreateChildFrame( SystemParentData* pParent, sal_uLong nStyle );
48 // virtual bool AnyInput( sal_uInt16 nType );
50 SalFrame *getFocusFrame() const;
52 void damaged( IosSalFrame *frame,
53 const basegfx::B2IBox& rDamageRect);
55 // Functions scheduled to be run as "user events" in the LO thread
56 typedef struct {
57 bool done;
58 CGContextRef context;
59 CGRect rect;
60 } RenderWindowsArg;
61 DECL_LINK( RenderWindows, RenderWindowsArg* );
63 DECL_LINK( DisplayConfigurationChanged, void* );
65 typedef struct {
66 const void *documentHandle;
67 int x, y;
68 } SelectionStartMoveArg;
69 DECL_LINK( SelectionStartMove, SelectionStartMoveArg* );
71 typedef struct {
72 const void *documentHandle;
73 int x, y;
74 } SelectionEndMoveArg;
75 DECL_LINK( SelectionEndMove, SelectionEndMoveArg* );
77 pthread_mutex_t m_aRenderMutex;
78 pthread_cond_t m_aRenderCond;
81 #endif // INCLUDED_VCL_INC_IOS_IOSINST_HXX
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */