update credits
[LibreOffice.git] / include / osl / detail / ios-bootstrap.h
blobfa3d0c85b460f694875cd80f94e07fec471560bd
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/.
8 */
10 #ifndef IOS_BOOSTRAP_H
11 #define IOS_BOOSTRAP_H
13 #if defined(IOS)
15 #include <premac.h>
16 #include <CoreGraphics/CoreGraphics.h>
17 #include <postmac.h>
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
23 #include <osl/detail/component-mapping.h>
25 /* These functions are the interface between the upper GUI layers of a
26 * LibreOffice-based iOS app and the lower "core" layers, used in cases
27 * where the core parts need to call functions in the upper parts or
28 * vice versa.
30 * Thus there are two classes of functions here:
32 * 1) Those to be implemented in the upper layer and called by the
33 * lower layer
35 * 2) Those implmented in the lower layers to be called by the upper
36 * layer, in cases where we don't want to include a bunch of the
37 * "normal" LibreOffice C++ headers in an otherwise purely Objective-C
38 * CocoaTouch-based source file. Of course it depends on the case
39 * where that is wanted, and this all is work in progress.
42 /* 1) */
44 void lo_damaged(CGRect rect);
46 /* 2) */
48 void lo_runMain();
49 void lo_set_view_size(int width, int height);
50 void lo_render_windows(CGContextRef context, CGRect rect);
51 void lo_tap(int x, int y);
52 void lo_pan(int x, int y);
53 void lo_keyboard_input(int c);
55 #ifdef __cplusplus
57 #endif
59 #endif // IOS
60 #endif // IOS_BOOTSTRAP_H
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */