]> git.saurik.com Git - iphone-api.git/blame_incremental - GraphicsServices/GraphicsServices.h
I think mringwald needs this?
[iphone-api.git] / GraphicsServices / GraphicsServices.h
... / ...
CommitLineData
1/* iPhone Open SDK - Free Open Source Anti-Apple SDK
2 * Copyright (C) 2008-2009 Jay Freeman (saurik)
3*/
4
5/*
6 * Redistribution and use in source and binary
7 * forms, with or without modification, are permitted
8 * provided that the following conditions are met:
9 *
10 * 1. Redistributions of source code must retain the
11 * above copyright notice, this list of conditions
12 * and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the
14 * above copyright notice, this list of conditions
15 * and the following disclaimer in the documentation
16 * and/or other materials provided with the
17 * distribution.
18 * 3. The name of the author may not be used to endorse
19 * or promote products derived from this software
20 * without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS''
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
24 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
29 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
32 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
33 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
34 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
35 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36*/
37
38#ifndef GRAPHICSSERVICES_GRAPHICSSERVICS_H_
39#define GRAPHICSSERVICES_GRAPHICSSERVICS_H_
40
41#include <mach/port.h>
42#import <CoreFoundation/CoreFoundation.h>
43
44#include <GraphicsServices/GSEvent.h>
45#include <GraphicsServices/GSFont.h>
46#include <GraphicsServices/GSWindow.h>
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
52#define _PurpleSystemEventPortName "PurpleSystemEventPort"
53
54float GSDefaultStatusBarHeight(void);
55//GSColorRef GSColorForSystemColor(unsigned color);
56#if 1
57mach_port_name_t GSGetPurpleSystemEventPort(void);
58#else
59mach_port_name_t GSCopyPurpleSystemEventPort(void);
60#endif
61mach_port_name_t GSGetPurpleNamedPort(CFStringRef name);
62
63CFArrayRef GSSystemGetCapability(CFStringRef type);
64extern CFStringRef const kGSDisplayIdentifiersCapability;
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif//GRAPHICSSERVICES_GRAPHICSSERVICS_H_