NXWidgets  1.19
glyphs.hxx
Go to the documentation of this file.
1 /****************************************************************************
2  * NxWidgets/libnxwidgets/include/glyphs.hxx
3  *
4  * Copyright (C) 2012 Gregory Nutt. All rights reserved.
5  * Author: Gregory Nutt <gnutt@nuttx.org>
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * 1. Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in
15  * the documentation and/or other materials provided with the
16  * distribution.
17  * 3. Neither the name NuttX, NxWidgets, nor the names of its contributors
18  * me be used to endorse or promote products derived from this software
19  * without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
28  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  *
34  ****************************************************************************
35  *
36  * Portions of this package derive from Woopsi (http://woopsi.org/) and
37  * portions are original efforts. It is difficult to determine at this
38  * point what parts are original efforts and which parts derive from Woopsi.
39  * However, in any event, the work of Antony Dzeryn will be acknowledged
40  * in most NxWidget files. Thanks Antony!
41  *
42  * Copyright (c) 2007-2011, Antony Dzeryn
43  * All rights reserved.
44  *
45  * Redistribution and use in source and binary forms, with or without
46  * modification, are permitted provided that the following conditions are met:
47  *
48  * * Redistributions of source code must retain the above copyright
49  * notice, this list of conditions and the following disclaimer.
50  * * Redistributions in binary form must reproduce the above copyright
51  * notice, this list of conditions and the following disclaimer in the
52  * documentation and/or other materials provided with the distribution.
53  * * Neither the names "Woopsi", "Simian Zombie" nor the
54  * names of its contributors may be used to endorse or promote products
55  * derived from this software without specific prior written permission.
56  *
57  * THIS SOFTWARE IS PROVIDED BY Antony Dzeryn ``AS IS'' AND ANY
58  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
59  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
60  * DISCLAIMED. IN NO EVENT SHALL Antony Dzeryn BE LIABLE FOR ANY
61  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
62  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
63  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
64  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
65  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
66  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
67  *
68  ****************************************************************************/
69 
70 #ifndef __INCLUDE_GLYPHS_HXX
71 #define __INCLUDE_GLYPHS_HXX
72 
73 /****************************************************************************
74  * Included Files
75  ****************************************************************************/
76 
77 #include <nuttx/config.h>
78 
79 #include <stdint.h>
80 #include <stdbool.h>
81 
82 #include <nuttx/nx/nxglib.h>
83 
84 /****************************************************************************
85  * Pre-Processor Definitions
86  ****************************************************************************/
87 
88 /****************************************************************************
89  * Bitmap Glyph References
90  ****************************************************************************/
91 
92 #if defined(__cplusplus)
93 
94 namespace NXWidgets
95 {
96  struct SBitmap;
97 
98  // Global RLE Paletted Bitmaps
99 
100  extern const struct SRlePaletteBitmap g_nuttxBitmap160x160;
101  extern const struct SRlePaletteBitmap g_nuttxBitmap320x320;
102 
103  // Global Simple Bitmaps
104 
105  extern const struct SBitmap g_screenDepthUp;
106  extern const struct SBitmap g_screenDepthDown;
107  extern const struct SBitmap g_windowClose;
108  extern const struct SBitmap g_windowDepthUp;
109  extern const struct SBitmap g_windowDepthDown;
110  extern const struct SBitmap g_radioButtonOn;
111  extern const struct SBitmap g_radioButtonOff;
112  extern const struct SBitmap g_radioButtonMu;
113  extern const struct SBitmap g_checkBoxOff;
114  extern const struct SBitmap g_checkBoxOn;
115  extern const struct SBitmap g_checkBoxMu;
116  extern const struct SBitmap g_screenFlipUp;
117  extern const struct SBitmap g_screenFlipDown;
118  extern const struct SBitmap g_arrowUp;
119  extern const struct SBitmap g_arrowDown;
120  extern const struct SBitmap g_arrowLeft;
121  extern const struct SBitmap g_arrowRight;
122  extern const struct SBitmap g_cycle;
123  extern const struct SBitmap g_backspace;
124  extern const struct SBitmap g_return;
125  extern const struct SBitmap g_shift;
126  extern const struct SBitmap g_capslock;
127  extern const struct SBitmap g_control;
128 }
129 
130 #endif // __cplusplus
131 
132 #endif // __INCLUDE_GLYPHS_HXX
const struct SBitmap g_return
Definition: glyphs.hxx:124
const struct SBitmap g_windowDepthDown
Definition: glyphs.hxx:109
const struct SBitmap g_arrowUp
Definition: glyphs.hxx:118
const struct SBitmap g_screenFlipDown
Definition: glyphs.hxx:117
const struct SBitmap g_cycle
Definition: glyphs.hxx:122
const struct SBitmap g_screenDepthDown
Definition: glyphs.hxx:106
const struct SBitmap g_backspace
Definition: glyphs.hxx:123
const struct SBitmap g_radioButtonOff
Definition: glyphs.hxx:111
const struct SBitmap g_checkBoxOff
Definition: glyphs.hxx:113
const struct SBitmap g_control
Definition: glyphs.hxx:127
const struct SBitmap g_screenFlipUp
Definition: glyphs.hxx:116
const struct SBitmap g_checkBoxMu
Definition: glyphs.hxx:115
const struct SBitmap g_windowClose
Definition: glyphs.hxx:107
const struct SBitmap g_arrowLeft
Definition: glyphs.hxx:120
const struct SBitmap g_shift
Definition: glyphs.hxx:125
const struct SBitmap g_radioButtonMu
Definition: glyphs.hxx:112
const struct SRlePaletteBitmap g_nuttxBitmap320x320
Definition: glyphs.hxx:101
const struct SBitmap g_capslock
Definition: glyphs.hxx:126
const struct SBitmap g_windowDepthUp
Definition: glyphs.hxx:108
const struct SBitmap g_radioButtonOn
Definition: glyphs.hxx:110
const struct SBitmap g_arrowDown
Definition: glyphs.hxx:119
const struct SBitmap g_screenDepthUp
Definition: glyphs.hxx:105
const struct SBitmap g_checkBoxOn
Definition: glyphs.hxx:114
const struct SBitmap g_arrowRight
Definition: glyphs.hxx:121
const struct SRlePaletteBitmap g_nuttxBitmap160x160
Definition: glyphs.hxx:100