~paulliu/ubuntu/quantal/freerdp/fixext

« back to all changes in this revision

Viewing changes to include/freerdp/types_ui.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-01-31 10:02:14 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20120131100214-zvig71djj2sqgq22
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
   Copyright (c) 2009-2010 Jay Sorg
3
 
 
4
 
   Permission is hereby granted, free of charge, to any person obtaining a
5
 
   copy of this software and associated documentation files (the "Software"),
6
 
   to deal in the Software without restriction, including without limitation
7
 
   the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
 
   and/or sell copies of the Software, and to permit persons to whom the
9
 
   Software is furnished to do so, subject to the following conditions:
10
 
 
11
 
   The above copyright notice and this permission notice shall be included
12
 
   in all copies or substantial portions of the Software.
13
 
 
14
 
   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15
 
   OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
 
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
 
   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
 
   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
 
   FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20
 
   DEALINGS IN THE SOFTWARE.
21
 
 
22
 
   these are the types needed for the ui interface
23
 
   self contained file, requires no other includes
24
 
 
25
 
*/
26
 
 
27
 
#ifndef __TYPES_UI_H
28
 
#define __TYPES_UI_H
29
 
 
30
 
typedef unsigned char uint8;
31
 
typedef signed char sint8;
32
 
typedef unsigned short uint16;
33
 
typedef signed short sint16;
34
 
typedef unsigned int uint32;
35
 
typedef signed int sint32;
36
 
#ifdef _WIN32
37
 
typedef unsigned __int64 uint64;
38
 
typedef signed __int64 sint64;
39
 
#else
40
 
typedef unsigned long long uint64;
41
 
typedef signed long long sint64;
42
 
#endif
43
 
 
44
 
typedef int RD_BOOL;
45
 
typedef void *RD_HBITMAP;
46
 
typedef void *RD_HGLYPH;
47
 
typedef void *RD_HPALETTE;
48
 
typedef void *RD_HCURSOR;
49
 
 
50
 
typedef struct _RD_POINT
51
 
{
52
 
        sint16 x, y;
53
 
}
54
 
RD_POINT;
55
 
 
56
 
typedef struct _RD_COLORENTRY
57
 
{
58
 
        uint8 red;
59
 
        uint8 green;
60
 
        uint8 blue;
61
 
}
62
 
RD_COLORENTRY;
63
 
 
64
 
typedef struct _RD_PALETTE
65
 
{
66
 
        uint16 ncolors;
67
 
        RD_COLORENTRY *colors;
68
 
}
69
 
RD_PALETTE;
70
 
 
71
 
typedef struct _RD_PEN
72
 
{
73
 
        uint8 style;
74
 
        uint8 width;
75
 
        uint32 color;
76
 
}
77
 
RD_PEN;
78
 
 
79
 
/* this is whats in the brush cache */
80
 
typedef struct _RD_BRUSHDATA
81
 
{
82
 
        uint32 color_code;
83
 
        uint32 data_size;
84
 
        uint8 *data;
85
 
}
86
 
RD_BRUSHDATA;
87
 
 
88
 
typedef struct _RD_BRUSH
89
 
{
90
 
        uint8 xorigin;
91
 
        uint8 yorigin;
92
 
        uint8 style;
93
 
        uint8 pattern[8];
94
 
        RD_BRUSHDATA *bd;
95
 
}
96
 
RD_BRUSH;
97
 
 
98
 
typedef struct _RD_PLUGIN_DATA
99
 
{
100
 
        uint16 size;
101
 
        void * data[4];
102
 
}
103
 
RD_PLUGIN_DATA;
104
 
 
105
 
/* defined in include/freerdp/freerdp.h */
106
 
struct rdp_inst;
107
 
typedef struct rdp_inst rdpInst;
108
 
 
109
 
/* defined in include/freerdp/rdpset.h */
110
 
struct rdp_set;
111
 
typedef struct rdp_set rdpSet;
112
 
 
113
 
#endif