bump product version to 4.1.6.2
[LibreOffice.git] / vcl / inc / ios / iosinst.hxx
blob2ff9e5784f14205a3891655b34f099dbce9b5a04
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 IOS_SALINST_H
21 #define IOS_SALINST_H
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 typedef struct {
56 bool done;
57 CGContextRef context;
58 CGRect rect;
59 } RenderWindowsArg;
60 DECL_LINK( RenderWindows, RenderWindowsArg* );
62 DECL_LINK( DisplayConfigurationChanged, void* );
64 pthread_mutex_t m_aRenderMutex;
65 pthread_cond_t m_aRenderCond;
68 #endif // IOS_SALINST_H
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */