Loads bitmaps into QSPI memory for GC500_2_5inch to use.

Dependencies:   DMBasicGUI DMSupport

Committer:
jmitc91516
Date:
Mon Jul 31 15:44:39 2017 +0000
Revision:
0:a5c253316af6
Background and scroll arrow bitmaps added to QSPI memory.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jmitc91516 0:a5c253316af6 1 /* ************************************************************************ */
jmitc91516 0:a5c253316af6 2 /* */
jmitc91516 0:a5c253316af6 3 /* (C)2004-2015 IBIS Solutions ApS */
jmitc91516 0:a5c253316af6 4 /* sales@easyGUI.com */
jmitc91516 0:a5c253316af6 5 /* www.easyGUI.com */
jmitc91516 0:a5c253316af6 6 /* */
jmitc91516 0:a5c253316af6 7 /* v6.0.9.005 */
jmitc91516 0:a5c253316af6 8 /* */
jmitc91516 0:a5c253316af6 9 /* ************************************************************************ */
jmitc91516 0:a5c253316af6 10
jmitc91516 0:a5c253316af6 11
jmitc91516 0:a5c253316af6 12 // =============================================================================
jmitc91516 0:a5c253316af6 13 #ifndef __GUILIB_H
jmitc91516 0:a5c253316af6 14 #define __GUILIB_H
jmitc91516 0:a5c253316af6 15 #include "GuiConst.h"
jmitc91516 0:a5c253316af6 16 #include "GuiVar.h"
jmitc91516 0:a5c253316af6 17 #include "GuiDisplay.h"
jmitc91516 0:a5c253316af6 18
jmitc91516 0:a5c253316af6 19
jmitc91516 0:a5c253316af6 20 #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */
jmitc91516 0:a5c253316af6 21 extern "C" {
jmitc91516 0:a5c253316af6 22 #endif
jmitc91516 0:a5c253316af6 23
jmitc91516 0:a5c253316af6 24 // =============================================================================
jmitc91516 0:a5c253316af6 25 #ifdef GuiConst_CODEVISION_COMPILER
jmitc91516 0:a5c253316af6 26 // Remove warnings about unused functions
jmitc91516 0:a5c253316af6 27 #pragma used+
jmitc91516 0:a5c253316af6 28 #endif
jmitc91516 0:a5c253316af6 29
jmitc91516 0:a5c253316af6 30
jmitc91516 0:a5c253316af6 31 // =============================================================================
jmitc91516 0:a5c253316af6 32 #ifdef GuiConst_COLOR_DEPTH_5
jmitc91516 0:a5c253316af6 33 #define GuiLib_COLOR_UNIT_8
jmitc91516 0:a5c253316af6 34 #define GuiLib_LAYERS_SUPPORTED
jmitc91516 0:a5c253316af6 35 #endif
jmitc91516 0:a5c253316af6 36 #ifdef GuiConst_COLOR_DEPTH_8
jmitc91516 0:a5c253316af6 37 #define GuiLib_COLOR_UNIT_8
jmitc91516 0:a5c253316af6 38 #define GuiLib_LAYERS_SUPPORTED
jmitc91516 0:a5c253316af6 39 #endif
jmitc91516 0:a5c253316af6 40 #ifdef GuiConst_COLOR_DEPTH_12
jmitc91516 0:a5c253316af6 41 #define GuiLib_COLOR_UNIT_16
jmitc91516 0:a5c253316af6 42 #define GuiLib_LAYERS_SUPPORTED
jmitc91516 0:a5c253316af6 43 #endif
jmitc91516 0:a5c253316af6 44 #ifdef GuiConst_COLOR_DEPTH_15
jmitc91516 0:a5c253316af6 45 #define GuiLib_COLOR_UNIT_16
jmitc91516 0:a5c253316af6 46 #define GuiLib_LAYERS_SUPPORTED
jmitc91516 0:a5c253316af6 47 #endif
jmitc91516 0:a5c253316af6 48 #ifdef GuiConst_COLOR_DEPTH_16
jmitc91516 0:a5c253316af6 49 #define GuiLib_COLOR_UNIT_16
jmitc91516 0:a5c253316af6 50 #define GuiLib_LAYERS_SUPPORTED
jmitc91516 0:a5c253316af6 51 #endif
jmitc91516 0:a5c253316af6 52 #ifdef GuiConst_COLOR_DEPTH_18
jmitc91516 0:a5c253316af6 53 #define GuiLib_COLOR_UNIT_24
jmitc91516 0:a5c253316af6 54 #define GuiLib_LAYERS_SUPPORTED
jmitc91516 0:a5c253316af6 55 #endif
jmitc91516 0:a5c253316af6 56 #ifdef GuiConst_COLOR_DEPTH_24
jmitc91516 0:a5c253316af6 57 #define GuiLib_COLOR_UNIT_24
jmitc91516 0:a5c253316af6 58 #define GuiLib_LAYERS_SUPPORTED
jmitc91516 0:a5c253316af6 59 #endif
jmitc91516 0:a5c253316af6 60 #ifdef GuiConst_COLOR_DEPTH_32
jmitc91516 0:a5c253316af6 61 #define GuiLib_COLOR_UNIT_32
jmitc91516 0:a5c253316af6 62 #define GuiLib_LAYERS_SUPPORTED
jmitc91516 0:a5c253316af6 63 #endif
jmitc91516 0:a5c253316af6 64
jmitc91516 0:a5c253316af6 65
jmitc91516 0:a5c253316af6 66 // =============================================================================
jmitc91516 0:a5c253316af6 67 #ifdef GuiConst_AVR_COMPILER_FLASH_RAM
jmitc91516 0:a5c253316af6 68 #define PrefixRom __flash
jmitc91516 0:a5c253316af6 69 #define PrefixGeneric __generic
jmitc91516 0:a5c253316af6 70 #define PrefixReentrant
jmitc91516 0:a5c253316af6 71 #define PrefixLocate
jmitc91516 0:a5c253316af6 72 #else
jmitc91516 0:a5c253316af6 73 #ifdef GuiConst_PICC_COMPILER_ROM
jmitc91516 0:a5c253316af6 74 #define PrefixRom rom
jmitc91516 0:a5c253316af6 75 #define PrefixGeneric
jmitc91516 0:a5c253316af6 76 #define PrefixReentrant
jmitc91516 0:a5c253316af6 77 #define PrefixLocate
jmitc91516 0:a5c253316af6 78 #else
jmitc91516 0:a5c253316af6 79 #ifdef GuiConst_KEIL_COMPILER_REENTRANT
jmitc91516 0:a5c253316af6 80 #define PrefixRom
jmitc91516 0:a5c253316af6 81 #define PrefixGeneric
jmitc91516 0:a5c253316af6 82 #define PrefixReentrant reentrant
jmitc91516 0:a5c253316af6 83 #define PrefixLocate
jmitc91516 0:a5c253316af6 84 #else
jmitc91516 0:a5c253316af6 85 #ifdef GuiConst_ICC_COMPILER
jmitc91516 0:a5c253316af6 86 #define PrefixRom const
jmitc91516 0:a5c253316af6 87 #define PrefixGeneric
jmitc91516 0:a5c253316af6 88 #define PrefixReentrant
jmitc91516 0:a5c253316af6 89 #define PrefixLocate
jmitc91516 0:a5c253316af6 90 #else
jmitc91516 0:a5c253316af6 91 #ifdef GuiConst_CODEVISION_COMPILER
jmitc91516 0:a5c253316af6 92 #define PrefixRom flash
jmitc91516 0:a5c253316af6 93 #define PrefixGeneric
jmitc91516 0:a5c253316af6 94 #define PrefixReentrant
jmitc91516 0:a5c253316af6 95 #define PrefixLocate
jmitc91516 0:a5c253316af6 96 #else
jmitc91516 0:a5c253316af6 97 #ifdef GuiConst_RENESAS_COMPILER_FAR
jmitc91516 0:a5c253316af6 98 #define PrefixRom _far
jmitc91516 0:a5c253316af6 99 #define PrefixGeneric _far
jmitc91516 0:a5c253316af6 100 #define PrefixReentrant
jmitc91516 0:a5c253316af6 101 #define PrefixLocate _far
jmitc91516 0:a5c253316af6 102 #else
jmitc91516 0:a5c253316af6 103 #define PrefixRom
jmitc91516 0:a5c253316af6 104 #define PrefixGeneric
jmitc91516 0:a5c253316af6 105 #define PrefixReentrant
jmitc91516 0:a5c253316af6 106 #define PrefixLocate
jmitc91516 0:a5c253316af6 107 #endif
jmitc91516 0:a5c253316af6 108 #endif
jmitc91516 0:a5c253316af6 109 #endif
jmitc91516 0:a5c253316af6 110 #endif
jmitc91516 0:a5c253316af6 111 #endif
jmitc91516 0:a5c253316af6 112 #endif
jmitc91516 0:a5c253316af6 113
jmitc91516 0:a5c253316af6 114
jmitc91516 0:a5c253316af6 115 // =============================================================================
jmitc91516 0:a5c253316af6 116 #ifdef GuiConst_COLOR_DEPTH_1
jmitc91516 0:a5c253316af6 117 #define GuiLib_COLOR_BYTESIZE_1
jmitc91516 0:a5c253316af6 118 #endif
jmitc91516 0:a5c253316af6 119 #ifdef GuiConst_COLOR_DEPTH_2
jmitc91516 0:a5c253316af6 120 #define GuiLib_COLOR_BYTESIZE_1
jmitc91516 0:a5c253316af6 121 #endif
jmitc91516 0:a5c253316af6 122 #ifdef GuiConst_COLOR_DEPTH_4
jmitc91516 0:a5c253316af6 123 #define GuiLib_COLOR_BYTESIZE_1
jmitc91516 0:a5c253316af6 124 #endif
jmitc91516 0:a5c253316af6 125 #ifdef GuiConst_COLOR_DEPTH_5
jmitc91516 0:a5c253316af6 126 #define GuiLib_COLOR_BYTESIZE_1
jmitc91516 0:a5c253316af6 127 #endif
jmitc91516 0:a5c253316af6 128 #ifdef GuiConst_COLOR_DEPTH_8
jmitc91516 0:a5c253316af6 129 #define GuiLib_COLOR_BYTESIZE_1
jmitc91516 0:a5c253316af6 130 #endif
jmitc91516 0:a5c253316af6 131 #ifdef GuiConst_COLOR_DEPTH_12
jmitc91516 0:a5c253316af6 132 #define GuiLib_COLOR_BYTESIZE_2
jmitc91516 0:a5c253316af6 133 #endif
jmitc91516 0:a5c253316af6 134 #ifdef GuiConst_COLOR_DEPTH_15
jmitc91516 0:a5c253316af6 135 #define GuiLib_COLOR_BYTESIZE_2
jmitc91516 0:a5c253316af6 136 #endif
jmitc91516 0:a5c253316af6 137 #ifdef GuiConst_COLOR_DEPTH_16
jmitc91516 0:a5c253316af6 138 #define GuiLib_COLOR_BYTESIZE_2
jmitc91516 0:a5c253316af6 139 #endif
jmitc91516 0:a5c253316af6 140 #ifdef GuiConst_COLOR_DEPTH_18
jmitc91516 0:a5c253316af6 141 #define GuiLib_COLOR_BYTESIZE_3
jmitc91516 0:a5c253316af6 142 #endif
jmitc91516 0:a5c253316af6 143 #ifdef GuiConst_COLOR_DEPTH_24
jmitc91516 0:a5c253316af6 144 #define GuiLib_COLOR_BYTESIZE_3
jmitc91516 0:a5c253316af6 145 #endif
jmitc91516 0:a5c253316af6 146 #ifdef GuiConst_COLOR_DEPTH_32
jmitc91516 0:a5c253316af6 147 #define GuiLib_COLOR_BYTESIZE_3
jmitc91516 0:a5c253316af6 148 #endif
jmitc91516 0:a5c253316af6 149
jmitc91516 0:a5c253316af6 150 #define GuiLib_NO_CURSOR -1
jmitc91516 0:a5c253316af6 151
jmitc91516 0:a5c253316af6 152 #define GuiLib_NO_RESET_AUTO_REDRAW 0
jmitc91516 0:a5c253316af6 153 #define GuiLib_RESET_AUTO_REDRAW 1
jmitc91516 0:a5c253316af6 154
jmitc91516 0:a5c253316af6 155 #define GuiLib_ALIGN_NOCHANGE 0
jmitc91516 0:a5c253316af6 156 #define GuiLib_ALIGN_LEFT 1
jmitc91516 0:a5c253316af6 157 #define GuiLib_ALIGN_CENTER 2
jmitc91516 0:a5c253316af6 158 #define GuiLib_ALIGN_RIGHT 3
jmitc91516 0:a5c253316af6 159
jmitc91516 0:a5c253316af6 160 #define GuiLib_PS_NOCHANGE 0
jmitc91516 0:a5c253316af6 161 #define GuiLib_PS_OFF 1
jmitc91516 0:a5c253316af6 162 #define GuiLib_PS_ON 2
jmitc91516 0:a5c253316af6 163 #define GuiLib_PS_NUM 3
jmitc91516 0:a5c253316af6 164
jmitc91516 0:a5c253316af6 165 #define GuiLib_TRANSPARENT_OFF 0
jmitc91516 0:a5c253316af6 166 #define GuiLib_TRANSPARENT_ON 1
jmitc91516 0:a5c253316af6 167
jmitc91516 0:a5c253316af6 168 #define GuiLib_UNDERLINE_OFF 0
jmitc91516 0:a5c253316af6 169 #define GuiLib_UNDERLINE_ON 1
jmitc91516 0:a5c253316af6 170
jmitc91516 0:a5c253316af6 171 #define GuiLib_BBP_NONE 0
jmitc91516 0:a5c253316af6 172 #define GuiLib_BBP_LEFT 1
jmitc91516 0:a5c253316af6 173 #define GuiLib_BBP_RIGHT 2
jmitc91516 0:a5c253316af6 174 #define GuiLib_BBP_TOP 4
jmitc91516 0:a5c253316af6 175 #define GuiLib_BBP_BOTTOM 8
jmitc91516 0:a5c253316af6 176
jmitc91516 0:a5c253316af6 177 #define GuiLib_VAR_BOOL 0
jmitc91516 0:a5c253316af6 178 #define GuiLib_VAR_UNSIGNED_CHAR 1
jmitc91516 0:a5c253316af6 179 #define GuiLib_VAR_SIGNED_CHAR 2
jmitc91516 0:a5c253316af6 180 #define GuiLib_VAR_UNSIGNED_INT 3
jmitc91516 0:a5c253316af6 181 #define GuiLib_VAR_SIGNED_INT 4
jmitc91516 0:a5c253316af6 182 #define GuiLib_VAR_UNSIGNED_LONG 5
jmitc91516 0:a5c253316af6 183 #define GuiLib_VAR_SIGNED_LONG 6
jmitc91516 0:a5c253316af6 184 #define GuiLib_VAR_FLOAT 7
jmitc91516 0:a5c253316af6 185 #define GuiLib_VAR_DOUBLE 8
jmitc91516 0:a5c253316af6 186 #define GuiLib_VAR_STRING 9
jmitc91516 0:a5c253316af6 187 #define GuiLib_VAR_COLOR 10
jmitc91516 0:a5c253316af6 188 #define GuiLib_VAR_NONE 255
jmitc91516 0:a5c253316af6 189
jmitc91516 0:a5c253316af6 190 #define GuiLib_FORMAT_DEC 0
jmitc91516 0:a5c253316af6 191 #define GuiLib_FORMAT_EXP 1
jmitc91516 0:a5c253316af6 192 #define GuiLib_FORMAT_HEX_POSTFIX_H 2
jmitc91516 0:a5c253316af6 193 #define GuiLib_FORMAT_TIME_MMSS 3
jmitc91516 0:a5c253316af6 194 #define GuiLib_FORMAT_TIME_HHMM_24 4
jmitc91516 0:a5c253316af6 195 #define GuiLib_FORMAT_TIME_HHMMSS_24 5
jmitc91516 0:a5c253316af6 196 #define GuiLib_FORMAT_TIME_HHMM_12_ampm 6
jmitc91516 0:a5c253316af6 197 #define GuiLib_FORMAT_TIME_HHMMSS_12_ampm 7
jmitc91516 0:a5c253316af6 198 #define GuiLib_FORMAT_TIME_HHMM_12_AMPM 8
jmitc91516 0:a5c253316af6 199 #define GuiLib_FORMAT_TIME_HHMMSS_12_AMPM 9
jmitc91516 0:a5c253316af6 200 #define GuiLib_FORMAT_HEX_PREFIX_0X 10
jmitc91516 0:a5c253316af6 201 #define GuiLib_FORMAT_HEX_CLEAN 11
jmitc91516 0:a5c253316af6 202
jmitc91516 0:a5c253316af6 203 #define GuiLib_FORMAT_ALIGNMENT_LEFT 0
jmitc91516 0:a5c253316af6 204 #define GuiLib_FORMAT_ALIGNMENT_CENTER 1
jmitc91516 0:a5c253316af6 205 #define GuiLib_FORMAT_ALIGNMENT_RIGHT 2
jmitc91516 0:a5c253316af6 206
jmitc91516 0:a5c253316af6 207 #define GuiLib_DECIMAL_PERIOD 0
jmitc91516 0:a5c253316af6 208 #define GuiLib_DECIMAL_COMMA 1
jmitc91516 0:a5c253316af6 209
jmitc91516 0:a5c253316af6 210 #define GuiLib_LANGUAGE_TEXTDIR_LEFTTORIGHT 0
jmitc91516 0:a5c253316af6 211 #define GuiLib_LANGUAGE_TEXTDIR_RIGHTTOLEFT 1
jmitc91516 0:a5c253316af6 212
jmitc91516 0:a5c253316af6 213 #define GuiLib_TEXTBOX_SCROLL_ILLEGAL_NDX 0
jmitc91516 0:a5c253316af6 214 #define GuiLib_TEXTBOX_SCROLL_INSIDE_BLOCK 1
jmitc91516 0:a5c253316af6 215 #define GuiLib_TEXTBOX_SCROLL_AT_HOME 2
jmitc91516 0:a5c253316af6 216 #define GuiLib_TEXTBOX_SCROLL_AT_END 3
jmitc91516 0:a5c253316af6 217 #define GuiLib_TEXTBOX_SCROLL_ABOVE_HOME 4
jmitc91516 0:a5c253316af6 218 #define GuiLib_TEXTBOX_SCROLL_BELOW_END 5
jmitc91516 0:a5c253316af6 219
jmitc91516 0:a5c253316af6 220 #define GuiLib_BUTTON_STATE_UP 0
jmitc91516 0:a5c253316af6 221 #define GuiLib_BUTTON_STATE_DOWN 1
jmitc91516 0:a5c253316af6 222 #define GuiLib_BUTTON_STATE_DISABLED 2
jmitc91516 0:a5c253316af6 223
jmitc91516 0:a5c253316af6 224 #define GuiLib_CHECKBOX_OFF 0
jmitc91516 0:a5c253316af6 225 #define GuiLib_CHECKBOX_ON 1
jmitc91516 0:a5c253316af6 226
jmitc91516 0:a5c253316af6 227 #define GuiLib_RADIOBUTTON_OFF -1
jmitc91516 0:a5c253316af6 228
jmitc91516 0:a5c253316af6 229
jmitc91516 0:a5c253316af6 230 #define GuiLib_NO_COLOR 0x10000000
jmitc91516 0:a5c253316af6 231
jmitc91516 0:a5c253316af6 232
jmitc91516 0:a5c253316af6 233 // =============================================================================
jmitc91516 0:a5c253316af6 234 typedef struct
jmitc91516 0:a5c253316af6 235 {
jmitc91516 0:a5c253316af6 236 GuiConst_INT16S ByteBegin;
jmitc91516 0:a5c253316af6 237 GuiConst_INT16S ByteEnd;
jmitc91516 0:a5c253316af6 238 }
jmitc91516 0:a5c253316af6 239 GuiLib_DisplayLineRec;
jmitc91516 0:a5c253316af6 240
jmitc91516 0:a5c253316af6 241 #ifdef GuiConst_CODEVISION_COMPILER
jmitc91516 0:a5c253316af6 242 typedef flash struct
jmitc91516 0:a5c253316af6 243 #else
jmitc91516 0:a5c253316af6 244 typedef struct
jmitc91516 0:a5c253316af6 245 #endif
jmitc91516 0:a5c253316af6 246 {
jmitc91516 0:a5c253316af6 247 #ifdef GuiConst_CHARMODE_ANSI
jmitc91516 0:a5c253316af6 248 GuiConst_INT8U FirstChar;
jmitc91516 0:a5c253316af6 249 GuiConst_INT8U LastChar;
jmitc91516 0:a5c253316af6 250 GuiConst_INT16U FirstCharNdx;
jmitc91516 0:a5c253316af6 251 GuiConst_INT16U IllegalCharNdx;
jmitc91516 0:a5c253316af6 252 #else
jmitc91516 0:a5c253316af6 253 GuiConst_INT16U CharCount;
jmitc91516 0:a5c253316af6 254 GuiConst_INT32U FirstCharNdx;
jmitc91516 0:a5c253316af6 255 #endif
jmitc91516 0:a5c253316af6 256 GuiConst_INT8U XSize, YSize;
jmitc91516 0:a5c253316af6 257 #ifdef GuiConst_ADV_FONTS_ON
jmitc91516 0:a5c253316af6 258 GuiConst_INT8U ColorDepth;
jmitc91516 0:a5c253316af6 259 #endif
jmitc91516 0:a5c253316af6 260 GuiConst_INT8U TopLine, MidLine, BaseLine;
jmitc91516 0:a5c253316af6 261 GuiConst_INT8U Cursor1, Cursor2;
jmitc91516 0:a5c253316af6 262 GuiConst_INT8U Underline1, Underline2;
jmitc91516 0:a5c253316af6 263 GuiConst_INT8U BoxWidth;
jmitc91516 0:a5c253316af6 264 GuiConst_INT8U PsNumWidth;
jmitc91516 0:a5c253316af6 265 GuiConst_INT8U PsSpace;
jmitc91516 0:a5c253316af6 266 GuiConst_INT8U LineSize;
jmitc91516 0:a5c253316af6 267 }
jmitc91516 0:a5c253316af6 268 GuiLib_FontRec;
jmitc91516 0:a5c253316af6 269
jmitc91516 0:a5c253316af6 270 #ifdef GuiConst_ICC_COMPILER
jmitc91516 0:a5c253316af6 271 typedef GuiLib_FontRec PrefixRom *GuiLib_FontRecPtr;
jmitc91516 0:a5c253316af6 272 typedef const GuiLib_FontRec * GuiLib_FontRecConstPtr;
jmitc91516 0:a5c253316af6 273 #else
jmitc91516 0:a5c253316af6 274 #ifdef GuiConst_CODEVISION_COMPILER
jmitc91516 0:a5c253316af6 275 typedef flash GuiLib_FontRec *GuiLib_FontRecPtr;
jmitc91516 0:a5c253316af6 276 typedef flash GuiLib_FontRec *GuiLib_FontRecConstPtr;
jmitc91516 0:a5c253316af6 277 #else
jmitc91516 0:a5c253316af6 278 typedef GuiLib_FontRec PrefixRom *GuiLib_FontRecPtr;
jmitc91516 0:a5c253316af6 279 typedef const GuiLib_FontRec PrefixRom *GuiLib_FontRecConstPtr;
jmitc91516 0:a5c253316af6 280 #endif
jmitc91516 0:a5c253316af6 281 #endif
jmitc91516 0:a5c253316af6 282
jmitc91516 0:a5c253316af6 283 #ifdef GuiConst_ITEM_GRAPH_INUSE
jmitc91516 0:a5c253316af6 284 typedef struct
jmitc91516 0:a5c253316af6 285 {
jmitc91516 0:a5c253316af6 286 GuiConst_INT32S X;
jmitc91516 0:a5c253316af6 287 GuiConst_INT32S Y;
jmitc91516 0:a5c253316af6 288 } GuiLib_GraphDataPoint;
jmitc91516 0:a5c253316af6 289 #endif
jmitc91516 0:a5c253316af6 290
jmitc91516 0:a5c253316af6 291 // =============================================================================
jmitc91516 0:a5c253316af6 292 #ifdef GuiConst_DISPLAY_BUFFER_EASYGUI
jmitc91516 0:a5c253316af6 293 #ifdef GuiConst_COLOR_DEPTH_1
jmitc91516 0:a5c253316af6 294 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 295 GuiLib_DisplayBuf[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 296 #endif
jmitc91516 0:a5c253316af6 297 #ifdef GuiConst_COLOR_DEPTH_2
jmitc91516 0:a5c253316af6 298 #ifdef GuiConst_COLOR_PLANES_2
jmitc91516 0:a5c253316af6 299 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 300 GuiLib_DisplayBuf[2][GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 301 #else
jmitc91516 0:a5c253316af6 302 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 303 GuiLib_DisplayBuf[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 304 #endif
jmitc91516 0:a5c253316af6 305 #endif
jmitc91516 0:a5c253316af6 306 #ifdef GuiConst_COLOR_DEPTH_4
jmitc91516 0:a5c253316af6 307 #ifdef GuiConst_COLOR_PLANES_4
jmitc91516 0:a5c253316af6 308 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 309 GuiLib_DisplayBuf[4][GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 310 #else
jmitc91516 0:a5c253316af6 311 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 312 GuiLib_DisplayBuf[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 313 #endif
jmitc91516 0:a5c253316af6 314 #endif
jmitc91516 0:a5c253316af6 315 #ifdef GuiConst_COLOR_DEPTH_5
jmitc91516 0:a5c253316af6 316 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 317 GuiLib_DisplayBuf[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 318 #endif
jmitc91516 0:a5c253316af6 319 #ifdef GuiConst_COLOR_DEPTH_8
jmitc91516 0:a5c253316af6 320 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 321 GuiLib_DisplayBuf[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 322 #endif
jmitc91516 0:a5c253316af6 323 #ifdef GuiConst_COLOR_DEPTH_12
jmitc91516 0:a5c253316af6 324 typedef union
jmitc91516 0:a5c253316af6 325 {
jmitc91516 0:a5c253316af6 326 GuiConst_INT8U Bytes[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 327 GuiConst_INT16U Words[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE / 2];
jmitc91516 0:a5c253316af6 328 } DisplayBufUnion;
jmitc91516 0:a5c253316af6 329 extern DisplayBufUnion GuiLib_DisplayBuf;
jmitc91516 0:a5c253316af6 330 #endif
jmitc91516 0:a5c253316af6 331 #ifdef GuiConst_COLOR_DEPTH_15
jmitc91516 0:a5c253316af6 332 typedef union
jmitc91516 0:a5c253316af6 333 {
jmitc91516 0:a5c253316af6 334 GuiConst_INT8U Bytes[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 335 GuiConst_INT16U Words[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE / 2];
jmitc91516 0:a5c253316af6 336 } DisplayBufUnion;
jmitc91516 0:a5c253316af6 337 extern DisplayBufUnion GuiLib_DisplayBuf;
jmitc91516 0:a5c253316af6 338 #endif
jmitc91516 0:a5c253316af6 339 #ifdef GuiConst_COLOR_DEPTH_16
jmitc91516 0:a5c253316af6 340 typedef union
jmitc91516 0:a5c253316af6 341 {
jmitc91516 0:a5c253316af6 342 GuiConst_INT8U Bytes[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 343 GuiConst_INT16U Words[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE / 2];
jmitc91516 0:a5c253316af6 344 } DisplayBufUnion;
jmitc91516 0:a5c253316af6 345 extern DisplayBufUnion GuiLib_DisplayBuf;
jmitc91516 0:a5c253316af6 346 #endif
jmitc91516 0:a5c253316af6 347 #ifdef GuiConst_COLOR_DEPTH_18
jmitc91516 0:a5c253316af6 348 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 349 GuiLib_DisplayBuf[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 350 #endif
jmitc91516 0:a5c253316af6 351 #ifdef GuiConst_COLOR_DEPTH_24
jmitc91516 0:a5c253316af6 352 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 353 GuiLib_DisplayBuf[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 354 #endif
jmitc91516 0:a5c253316af6 355 #ifdef GuiConst_COLOR_DEPTH_32
jmitc91516 0:a5c253316af6 356 extern GuiConst_INT8U
jmitc91516 0:a5c253316af6 357 GuiLib_DisplayBuf[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
jmitc91516 0:a5c253316af6 358 #endif
jmitc91516 0:a5c253316af6 359 #endif
jmitc91516 0:a5c253316af6 360
jmitc91516 0:a5c253316af6 361 extern GuiLib_DisplayLineRec GuiLib_DisplayRepaint[GuiConst_BYTE_LINES];
jmitc91516 0:a5c253316af6 362 #ifdef GuiConst_VNC_REMOTE_SUPPORT_ON
jmitc91516 0:a5c253316af6 363 extern GuiLib_DisplayLineRec GuiLib_VncRepaint[GuiConst_BYTE_LINES];
jmitc91516 0:a5c253316af6 364 #endif // GuiConst_VNC_REMOTE_SUPPORT_ON
jmitc91516 0:a5c253316af6 365 #ifdef GuiConst_CURSOR_SUPPORT_ON
jmitc91516 0:a5c253316af6 366 extern GuiConst_INT16S GuiLib_ActiveCursorFieldNo;
jmitc91516 0:a5c253316af6 367 #endif
jmitc91516 0:a5c253316af6 368 extern GuiConst_INT16S GuiLib_LanguageIndex;
jmitc91516 0:a5c253316af6 369 extern GuiConst_INT16S GuiLib_CurStructureNdx;
jmitc91516 0:a5c253316af6 370 #ifdef GuiConst_ALLOW_UPSIDEDOWN_AT_RUNTIME
jmitc91516 0:a5c253316af6 371 extern GuiConst_INT8U GuiLib_DisplayUpsideDown;
jmitc91516 0:a5c253316af6 372 #endif
jmitc91516 0:a5c253316af6 373
jmitc91516 0:a5c253316af6 374 #ifdef GuiConst_REMOTE_DATA
jmitc91516 0:a5c253316af6 375 extern void (*GuiLib_RemoteDataReadBlock) (
jmitc91516 0:a5c253316af6 376 GuiConst_INT32U SourceOffset,
jmitc91516 0:a5c253316af6 377 GuiConst_INT32U SourceSize,
jmitc91516 0:a5c253316af6 378 GuiConst_INT8U * TargetAddr);
jmitc91516 0:a5c253316af6 379 #ifdef GuiConst_REMOTE_TEXT_DATA
jmitc91516 0:a5c253316af6 380 extern void (*GuiLib_RemoteTextReadBlock) (
jmitc91516 0:a5c253316af6 381 GuiConst_INT32U SourceOffset,
jmitc91516 0:a5c253316af6 382 GuiConst_INT32U SourceSize,
jmitc91516 0:a5c253316af6 383 void * TargetAddr);
jmitc91516 0:a5c253316af6 384 #endif
jmitc91516 0:a5c253316af6 385 #endif
jmitc91516 0:a5c253316af6 386
jmitc91516 0:a5c253316af6 387
jmitc91516 0:a5c253316af6 388 // =============================================================================
jmitc91516 0:a5c253316af6 389 #include "GuiFont.h"
jmitc91516 0:a5c253316af6 390 #include "GuiStruct.h"
jmitc91516 0:a5c253316af6 391 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 392
jmitc91516 0:a5c253316af6 393
jmitc91516 0:a5c253316af6 394 // =============================================================================
jmitc91516 0:a5c253316af6 395 // GuiLib_DegToRad
jmitc91516 0:a5c253316af6 396 // ===============
jmitc91516 0:a5c253316af6 397 //
jmitc91516 0:a5c253316af6 398 // Converts angle from degrees to radians.
jmitc91516 0:a5c253316af6 399 //
jmitc91516 0:a5c253316af6 400 // Input:
jmitc91516 0:a5c253316af6 401 // ------
jmitc91516 0:a5c253316af6 402 // Angle in degrees * 10 (1° = 10)
jmitc91516 0:a5c253316af6 403 //
jmitc91516 0:a5c253316af6 404 // Output:
jmitc91516 0:a5c253316af6 405 // -------
jmitc91516 0:a5c253316af6 406 // Angle in radians * 4096 (1 rad = 4096)
jmitc91516 0:a5c253316af6 407 //
jmitc91516 0:a5c253316af6 408 extern GuiConst_INT32S GuiLib_DegToRad(
jmitc91516 0:a5c253316af6 409 GuiConst_INT32S Angle);
jmitc91516 0:a5c253316af6 410 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 411
jmitc91516 0:a5c253316af6 412
jmitc91516 0:a5c253316af6 413 // =============================================================================
jmitc91516 0:a5c253316af6 414 // GuiLib_RadToDeg
jmitc91516 0:a5c253316af6 415 // ===============
jmitc91516 0:a5c253316af6 416 //
jmitc91516 0:a5c253316af6 417 // Converts angle from radians to degrees.
jmitc91516 0:a5c253316af6 418 //
jmitc91516 0:a5c253316af6 419 // Input:
jmitc91516 0:a5c253316af6 420 // ------
jmitc91516 0:a5c253316af6 421 // Angle in radians * 4096 (1 rad = 4096)
jmitc91516 0:a5c253316af6 422 //
jmitc91516 0:a5c253316af6 423 // Output:
jmitc91516 0:a5c253316af6 424 // -------
jmitc91516 0:a5c253316af6 425 // Angle in degrees * 10 (1° = 10)
jmitc91516 0:a5c253316af6 426 //
jmitc91516 0:a5c253316af6 427 extern GuiConst_INT32S GuiLib_RadToDeg(
jmitc91516 0:a5c253316af6 428 GuiConst_INT32S Angle);
jmitc91516 0:a5c253316af6 429 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 430
jmitc91516 0:a5c253316af6 431
jmitc91516 0:a5c253316af6 432 // =============================================================================
jmitc91516 0:a5c253316af6 433 // GuiLib_SinRad
jmitc91516 0:a5c253316af6 434 // =============
jmitc91516 0:a5c253316af6 435 //
jmitc91516 0:a5c253316af6 436 // Calculates Sin(angle), where angle is in radians (factored).
jmitc91516 0:a5c253316af6 437 //
jmitc91516 0:a5c253316af6 438 // Input:
jmitc91516 0:a5c253316af6 439 // ------
jmitc91516 0:a5c253316af6 440 // Angle in radians * 4096 (1 rad = 4096)
jmitc91516 0:a5c253316af6 441 //
jmitc91516 0:a5c253316af6 442 // Output:
jmitc91516 0:a5c253316af6 443 // -------
jmitc91516 0:a5c253316af6 444 // Sine of angle in 1/4096 units
jmitc91516 0:a5c253316af6 445 //
jmitc91516 0:a5c253316af6 446 extern GuiConst_INT32S GuiLib_SinRad(
jmitc91516 0:a5c253316af6 447 GuiConst_INT32S Angle);
jmitc91516 0:a5c253316af6 448 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 449
jmitc91516 0:a5c253316af6 450
jmitc91516 0:a5c253316af6 451 // =============================================================================
jmitc91516 0:a5c253316af6 452 // GuiLib_SinDeg
jmitc91516 0:a5c253316af6 453 // =============
jmitc91516 0:a5c253316af6 454 //
jmitc91516 0:a5c253316af6 455 // Calculates Sin(angle), where angle is in degrees (factored).
jmitc91516 0:a5c253316af6 456 //
jmitc91516 0:a5c253316af6 457 // Input:
jmitc91516 0:a5c253316af6 458 // ------
jmitc91516 0:a5c253316af6 459 // Angle in degrees * 10 (1° = 10)
jmitc91516 0:a5c253316af6 460 //
jmitc91516 0:a5c253316af6 461 // Output:
jmitc91516 0:a5c253316af6 462 // -------
jmitc91516 0:a5c253316af6 463 // Sine of angle in 1/4096 units
jmitc91516 0:a5c253316af6 464 //
jmitc91516 0:a5c253316af6 465 extern GuiConst_INT32S GuiLib_SinDeg(
jmitc91516 0:a5c253316af6 466 GuiConst_INT32S Angle);
jmitc91516 0:a5c253316af6 467 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 468
jmitc91516 0:a5c253316af6 469
jmitc91516 0:a5c253316af6 470 // =============================================================================
jmitc91516 0:a5c253316af6 471 // GuiLib_CosRad
jmitc91516 0:a5c253316af6 472 // =============
jmitc91516 0:a5c253316af6 473 //
jmitc91516 0:a5c253316af6 474 // Calculates Cos(angle), where angle is in radians (factored).
jmitc91516 0:a5c253316af6 475 //
jmitc91516 0:a5c253316af6 476 // Input:
jmitc91516 0:a5c253316af6 477 // ------
jmitc91516 0:a5c253316af6 478 // Angle in radians * 4096 (1 rad = 4096)
jmitc91516 0:a5c253316af6 479 //
jmitc91516 0:a5c253316af6 480 // Output:
jmitc91516 0:a5c253316af6 481 // -------
jmitc91516 0:a5c253316af6 482 // Cosine of angle in 1/4096 units
jmitc91516 0:a5c253316af6 483 //
jmitc91516 0:a5c253316af6 484 extern GuiConst_INT32S GuiLib_CosRad(
jmitc91516 0:a5c253316af6 485 GuiConst_INT32S Angle);
jmitc91516 0:a5c253316af6 486 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 487
jmitc91516 0:a5c253316af6 488
jmitc91516 0:a5c253316af6 489 // =============================================================================
jmitc91516 0:a5c253316af6 490 // GuiLib_CosDeg
jmitc91516 0:a5c253316af6 491 // =============
jmitc91516 0:a5c253316af6 492 //
jmitc91516 0:a5c253316af6 493 // Calculates Cos(angle), where angle is in degrees (factored).
jmitc91516 0:a5c253316af6 494 //
jmitc91516 0:a5c253316af6 495 // Input:
jmitc91516 0:a5c253316af6 496 // ------
jmitc91516 0:a5c253316af6 497 // Angle in degrees * 10 (1° = 10)
jmitc91516 0:a5c253316af6 498 //
jmitc91516 0:a5c253316af6 499 // Output:
jmitc91516 0:a5c253316af6 500 // -------
jmitc91516 0:a5c253316af6 501 // Cosine of angle in 1/4096 units
jmitc91516 0:a5c253316af6 502 //
jmitc91516 0:a5c253316af6 503 extern GuiConst_INT32S GuiLib_CosDeg(
jmitc91516 0:a5c253316af6 504 GuiConst_INT32S Angle);
jmitc91516 0:a5c253316af6 505 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 506
jmitc91516 0:a5c253316af6 507
jmitc91516 0:a5c253316af6 508 // =============================================================================
jmitc91516 0:a5c253316af6 509 // GuiLib_Sqrt
jmitc91516 0:a5c253316af6 510 // ===========
jmitc91516 0:a5c253316af6 511 //
jmitc91516 0:a5c253316af6 512 // Returns Square root of argument.
jmitc91516 0:a5c253316af6 513 //
jmitc91516 0:a5c253316af6 514 // Input:
jmitc91516 0:a5c253316af6 515 // ------
jmitc91516 0:a5c253316af6 516 // Argument
jmitc91516 0:a5c253316af6 517 //
jmitc91516 0:a5c253316af6 518 // Output:
jmitc91516 0:a5c253316af6 519 // -------
jmitc91516 0:a5c253316af6 520 // Square root of argument
jmitc91516 0:a5c253316af6 521 //
jmitc91516 0:a5c253316af6 522 extern GuiConst_INT32U GuiLib_Sqrt(
jmitc91516 0:a5c253316af6 523 GuiConst_INT32U X);
jmitc91516 0:a5c253316af6 524 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 525
jmitc91516 0:a5c253316af6 526
jmitc91516 0:a5c253316af6 527 // =============================================================================
jmitc91516 0:a5c253316af6 528 // GuiLib_GetRedRgbColor
jmitc91516 0:a5c253316af6 529 // =====================
jmitc91516 0:a5c253316af6 530 //
jmitc91516 0:a5c253316af6 531 // Extracts red component from RGB color.
jmitc91516 0:a5c253316af6 532 //
jmitc91516 0:a5c253316af6 533 // Input:
jmitc91516 0:a5c253316af6 534 // ------
jmitc91516 0:a5c253316af6 535 // 24 bit RGB color
jmitc91516 0:a5c253316af6 536 //
jmitc91516 0:a5c253316af6 537 // Output:
jmitc91516 0:a5c253316af6 538 // -------
jmitc91516 0:a5c253316af6 539 // 8 bit red color component
jmitc91516 0:a5c253316af6 540 //
jmitc91516 0:a5c253316af6 541 extern GuiConst_INT8U GuiLib_GetRedRgbColor(
jmitc91516 0:a5c253316af6 542 GuiConst_INT32U RgbColor);
jmitc91516 0:a5c253316af6 543 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 544
jmitc91516 0:a5c253316af6 545
jmitc91516 0:a5c253316af6 546 // =============================================================================
jmitc91516 0:a5c253316af6 547 // GuiLib_SetRedRgbColor
jmitc91516 0:a5c253316af6 548 // =====================
jmitc91516 0:a5c253316af6 549 //
jmitc91516 0:a5c253316af6 550 // Sets red component from RGB color.
jmitc91516 0:a5c253316af6 551 //
jmitc91516 0:a5c253316af6 552 // Input:
jmitc91516 0:a5c253316af6 553 // ------
jmitc91516 0:a5c253316af6 554 // 24 bit RGB color
jmitc91516 0:a5c253316af6 555 // 8 bit red color component
jmitc91516 0:a5c253316af6 556 //
jmitc91516 0:a5c253316af6 557 // Output:
jmitc91516 0:a5c253316af6 558 // -------
jmitc91516 0:a5c253316af6 559 // 24 bit RGB color
jmitc91516 0:a5c253316af6 560 //
jmitc91516 0:a5c253316af6 561 extern GuiConst_INT32U GuiLib_SetRedRgbColor(
jmitc91516 0:a5c253316af6 562 GuiConst_INT32U RgbColor,
jmitc91516 0:a5c253316af6 563 GuiConst_INT8U RedColor);
jmitc91516 0:a5c253316af6 564 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 565
jmitc91516 0:a5c253316af6 566
jmitc91516 0:a5c253316af6 567 // =============================================================================
jmitc91516 0:a5c253316af6 568 // GuiLib_GetGreenRgbColor
jmitc91516 0:a5c253316af6 569 // =======================
jmitc91516 0:a5c253316af6 570 //
jmitc91516 0:a5c253316af6 571 // Extracts green component from RGB color.
jmitc91516 0:a5c253316af6 572 //
jmitc91516 0:a5c253316af6 573 // Input:
jmitc91516 0:a5c253316af6 574 // ------
jmitc91516 0:a5c253316af6 575 // 24 bit RGB color
jmitc91516 0:a5c253316af6 576 //
jmitc91516 0:a5c253316af6 577 // Output:
jmitc91516 0:a5c253316af6 578 // -------
jmitc91516 0:a5c253316af6 579 // 8 bit green color component
jmitc91516 0:a5c253316af6 580 //
jmitc91516 0:a5c253316af6 581 extern GuiConst_INT8U GuiLib_GetGreenRgbColor(
jmitc91516 0:a5c253316af6 582 GuiConst_INT32U RgbColor);
jmitc91516 0:a5c253316af6 583 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 584
jmitc91516 0:a5c253316af6 585
jmitc91516 0:a5c253316af6 586 // =============================================================================
jmitc91516 0:a5c253316af6 587 // GuiLib_SetGreenRgbColor
jmitc91516 0:a5c253316af6 588 // =======================
jmitc91516 0:a5c253316af6 589 //
jmitc91516 0:a5c253316af6 590 // Sets green component from RGB color.
jmitc91516 0:a5c253316af6 591 //
jmitc91516 0:a5c253316af6 592 // Input:
jmitc91516 0:a5c253316af6 593 // ------
jmitc91516 0:a5c253316af6 594 // 24 bit RGB color
jmitc91516 0:a5c253316af6 595 // 8 bit green color component
jmitc91516 0:a5c253316af6 596 //
jmitc91516 0:a5c253316af6 597 // Output:
jmitc91516 0:a5c253316af6 598 // -------
jmitc91516 0:a5c253316af6 599 // 24 bit RGB color
jmitc91516 0:a5c253316af6 600 //
jmitc91516 0:a5c253316af6 601 extern GuiConst_INT32U GuiLib_SetGreenRgbColor(
jmitc91516 0:a5c253316af6 602 GuiConst_INT32U RgbColor,
jmitc91516 0:a5c253316af6 603 GuiConst_INT8U GreenColor);
jmitc91516 0:a5c253316af6 604 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 605
jmitc91516 0:a5c253316af6 606
jmitc91516 0:a5c253316af6 607 // =============================================================================
jmitc91516 0:a5c253316af6 608 // GuiLib_GetBlueRgbColor
jmitc91516 0:a5c253316af6 609 // ======================
jmitc91516 0:a5c253316af6 610 //
jmitc91516 0:a5c253316af6 611 // Extracts blue component from RGB color.
jmitc91516 0:a5c253316af6 612 //
jmitc91516 0:a5c253316af6 613 // Input:
jmitc91516 0:a5c253316af6 614 // ------
jmitc91516 0:a5c253316af6 615 // 24 bit RGB color
jmitc91516 0:a5c253316af6 616 //
jmitc91516 0:a5c253316af6 617 // Output:
jmitc91516 0:a5c253316af6 618 // -------
jmitc91516 0:a5c253316af6 619 // 8 bit blue color component
jmitc91516 0:a5c253316af6 620 //
jmitc91516 0:a5c253316af6 621 extern GuiConst_INT8U GuiLib_GetBlueRgbColor(
jmitc91516 0:a5c253316af6 622 GuiConst_INT32U RgbColor);
jmitc91516 0:a5c253316af6 623 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 624
jmitc91516 0:a5c253316af6 625
jmitc91516 0:a5c253316af6 626 // =============================================================================
jmitc91516 0:a5c253316af6 627 // GuiLib_SetBlueRgbColor
jmitc91516 0:a5c253316af6 628 // ======================
jmitc91516 0:a5c253316af6 629 //
jmitc91516 0:a5c253316af6 630 // Sets blue component from RGB color.
jmitc91516 0:a5c253316af6 631 //
jmitc91516 0:a5c253316af6 632 // Input:
jmitc91516 0:a5c253316af6 633 // ------
jmitc91516 0:a5c253316af6 634 // 24 bit RGB color
jmitc91516 0:a5c253316af6 635 // 8 bit blue color component
jmitc91516 0:a5c253316af6 636 //
jmitc91516 0:a5c253316af6 637 // Output:
jmitc91516 0:a5c253316af6 638 // -------
jmitc91516 0:a5c253316af6 639 // 24 bit RGB color
jmitc91516 0:a5c253316af6 640 //
jmitc91516 0:a5c253316af6 641 extern GuiConst_INT32U GuiLib_SetBlueRgbColor(
jmitc91516 0:a5c253316af6 642 GuiConst_INT32U RgbColor,
jmitc91516 0:a5c253316af6 643 GuiConst_INT8U BlueColor);
jmitc91516 0:a5c253316af6 644 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 645
jmitc91516 0:a5c253316af6 646
jmitc91516 0:a5c253316af6 647 // =============================================================================
jmitc91516 0:a5c253316af6 648 // GuiLib_RgbToPixelColor
jmitc91516 0:a5c253316af6 649 // ======================
jmitc91516 0:a5c253316af6 650 //
jmitc91516 0:a5c253316af6 651 // Translates from RGB color to proper pixel value for display controller
jmitc91516 0:a5c253316af6 652 // color setup.
jmitc91516 0:a5c253316af6 653 //
jmitc91516 0:a5c253316af6 654 // Input:
jmitc91516 0:a5c253316af6 655 // ------
jmitc91516 0:a5c253316af6 656 // RGB color value
jmitc91516 0:a5c253316af6 657 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 658 //
jmitc91516 0:a5c253316af6 659 // Output:
jmitc91516 0:a5c253316af6 660 // -------
jmitc91516 0:a5c253316af6 661 // Encoded pixel color value
jmitc91516 0:a5c253316af6 662 //
jmitc91516 0:a5c253316af6 663 extern GuiConst_INTCOLOR GuiLib_RgbToPixelColor(
jmitc91516 0:a5c253316af6 664 GuiConst_INT32U RgbColor);
jmitc91516 0:a5c253316af6 665 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 666
jmitc91516 0:a5c253316af6 667
jmitc91516 0:a5c253316af6 668 // =============================================================================
jmitc91516 0:a5c253316af6 669 // GuiLib_Rgb888ToPixelColor
jmitc91516 0:a5c253316af6 670 // =========================
jmitc91516 0:a5c253316af6 671 //
jmitc91516 0:a5c253316af6 672 // Translates from RGB color components to proper pixel value for display
jmitc91516 0:a5c253316af6 673 // controller color setup.
jmitc91516 0:a5c253316af6 674 //
jmitc91516 0:a5c253316af6 675 // Input:
jmitc91516 0:a5c253316af6 676 // ------
jmitc91516 0:a5c253316af6 677 // Red color value
jmitc91516 0:a5c253316af6 678 // Green color value
jmitc91516 0:a5c253316af6 679 // Blue color value
jmitc91516 0:a5c253316af6 680 //
jmitc91516 0:a5c253316af6 681 // Output:
jmitc91516 0:a5c253316af6 682 // -------
jmitc91516 0:a5c253316af6 683 // Encoded pixel color value
jmitc91516 0:a5c253316af6 684 //
jmitc91516 0:a5c253316af6 685 GuiConst_INTCOLOR GuiLib_Rgb888ToPixelColor(
jmitc91516 0:a5c253316af6 686 GuiConst_INT8U Red, GuiConst_INT8U Green, GuiConst_INT8U Blue);
jmitc91516 0:a5c253316af6 687 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 688
jmitc91516 0:a5c253316af6 689
jmitc91516 0:a5c253316af6 690 // =============================================================================
jmitc91516 0:a5c253316af6 691 // GuiLib_PixelToRgbColor
jmitc91516 0:a5c253316af6 692 // ======================
jmitc91516 0:a5c253316af6 693 //
jmitc91516 0:a5c253316af6 694 // Translates from pixel value for display controller color setup to RGB color.
jmitc91516 0:a5c253316af6 695 //
jmitc91516 0:a5c253316af6 696 // Input:
jmitc91516 0:a5c253316af6 697 // ------
jmitc91516 0:a5c253316af6 698 // Encoded pixel color value
jmitc91516 0:a5c253316af6 699 //
jmitc91516 0:a5c253316af6 700 // Output:
jmitc91516 0:a5c253316af6 701 // -------
jmitc91516 0:a5c253316af6 702 // RGB color value
jmitc91516 0:a5c253316af6 703 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 704 //
jmitc91516 0:a5c253316af6 705 extern GuiConst_INT32U GuiLib_PixelToRgbColor(
jmitc91516 0:a5c253316af6 706 GuiConst_INTCOLOR PixelColor);
jmitc91516 0:a5c253316af6 707 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 708
jmitc91516 0:a5c253316af6 709
jmitc91516 0:a5c253316af6 710 // =============================================================================
jmitc91516 0:a5c253316af6 711 // GuiLib_RgbColorToGrayScale
jmitc91516 0:a5c253316af6 712 // ==========================
jmitc91516 0:a5c253316af6 713 //
jmitc91516 0:a5c253316af6 714 // Translates from RGB color to 0~255 gray scale value.
jmitc91516 0:a5c253316af6 715 //
jmitc91516 0:a5c253316af6 716 // Input:
jmitc91516 0:a5c253316af6 717 // ------
jmitc91516 0:a5c253316af6 718 // RGB color value
jmitc91516 0:a5c253316af6 719 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 720 //
jmitc91516 0:a5c253316af6 721 // Output:
jmitc91516 0:a5c253316af6 722 // -------
jmitc91516 0:a5c253316af6 723 // Gray scale value, 0~255
jmitc91516 0:a5c253316af6 724 //
jmitc91516 0:a5c253316af6 725 extern GuiConst_INT8U GuiLib_RgbColorToGrayScale(
jmitc91516 0:a5c253316af6 726 GuiConst_INT32U RgbColor);
jmitc91516 0:a5c253316af6 727 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 728
jmitc91516 0:a5c253316af6 729
jmitc91516 0:a5c253316af6 730 // =============================================================================
jmitc91516 0:a5c253316af6 731 // GuiLib_Rgb888ColorToGrayScale
jmitc91516 0:a5c253316af6 732 // =============================
jmitc91516 0:a5c253316af6 733 //
jmitc91516 0:a5c253316af6 734 // Translates from RGB color components to a 0~255 grayscale value.
jmitc91516 0:a5c253316af6 735 //
jmitc91516 0:a5c253316af6 736 // Input:
jmitc91516 0:a5c253316af6 737 // ------
jmitc91516 0:a5c253316af6 738 // Red color value
jmitc91516 0:a5c253316af6 739 // Green color value
jmitc91516 0:a5c253316af6 740 // Blue color value
jmitc91516 0:a5c253316af6 741 //
jmitc91516 0:a5c253316af6 742 // Output:
jmitc91516 0:a5c253316af6 743 // -------
jmitc91516 0:a5c253316af6 744 // Gray scale value, 0~255
jmitc91516 0:a5c253316af6 745 //
jmitc91516 0:a5c253316af6 746 GuiConst_INT8U GuiLib_Rgb888ColorToGrayScale(
jmitc91516 0:a5c253316af6 747 GuiConst_INT8U Red, GuiConst_INT8U Green, GuiConst_INT8U Blue);
jmitc91516 0:a5c253316af6 748 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 749
jmitc91516 0:a5c253316af6 750
jmitc91516 0:a5c253316af6 751 // =============================================================================
jmitc91516 0:a5c253316af6 752 // GuiLib_GrayScaleToRgbColor
jmitc91516 0:a5c253316af6 753 // ==========================
jmitc91516 0:a5c253316af6 754 //
jmitc91516 0:a5c253316af6 755 // Translates from 0~255 gray scale value to RGB color.
jmitc91516 0:a5c253316af6 756 //
jmitc91516 0:a5c253316af6 757 // Input:
jmitc91516 0:a5c253316af6 758 // ------
jmitc91516 0:a5c253316af6 759 // Gray scale value, 0~255
jmitc91516 0:a5c253316af6 760 //
jmitc91516 0:a5c253316af6 761 // Output:
jmitc91516 0:a5c253316af6 762 // -------
jmitc91516 0:a5c253316af6 763 // RGB color value
jmitc91516 0:a5c253316af6 764 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 765 //
jmitc91516 0:a5c253316af6 766 extern GuiConst_INT32U GuiLib_GrayScaleToRgbColor(
jmitc91516 0:a5c253316af6 767 GuiConst_INT8U GrayValue);
jmitc91516 0:a5c253316af6 768 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 769
jmitc91516 0:a5c253316af6 770
jmitc91516 0:a5c253316af6 771 // =============================================================================
jmitc91516 0:a5c253316af6 772 // GuiLib_PixelColorToGrayScale
jmitc91516 0:a5c253316af6 773 // ============================
jmitc91516 0:a5c253316af6 774 //
jmitc91516 0:a5c253316af6 775 // Translates from pixel value for display controller color setup to 0~255 gray
jmitc91516 0:a5c253316af6 776 // scale value.
jmitc91516 0:a5c253316af6 777 //
jmitc91516 0:a5c253316af6 778 // Input:
jmitc91516 0:a5c253316af6 779 // ------
jmitc91516 0:a5c253316af6 780 // Encoded pixel color value
jmitc91516 0:a5c253316af6 781 //
jmitc91516 0:a5c253316af6 782 // Output:
jmitc91516 0:a5c253316af6 783 // -------
jmitc91516 0:a5c253316af6 784 // Gray scale value, 0~255
jmitc91516 0:a5c253316af6 785 //
jmitc91516 0:a5c253316af6 786 extern GuiConst_INT8U GuiLib_PixelColorToGrayScale(
jmitc91516 0:a5c253316af6 787 GuiConst_INTCOLOR PixelColor);
jmitc91516 0:a5c253316af6 788 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 789
jmitc91516 0:a5c253316af6 790
jmitc91516 0:a5c253316af6 791 // =============================================================================
jmitc91516 0:a5c253316af6 792 // GuiLib_GrayScaleToPixelColor
jmitc91516 0:a5c253316af6 793 // ============================
jmitc91516 0:a5c253316af6 794 //
jmitc91516 0:a5c253316af6 795 // Translates from gray scale value to display controller color setup.
jmitc91516 0:a5c253316af6 796 //
jmitc91516 0:a5c253316af6 797 // Input:
jmitc91516 0:a5c253316af6 798 // ------
jmitc91516 0:a5c253316af6 799 // Gray scale value, 0~255
jmitc91516 0:a5c253316af6 800 //
jmitc91516 0:a5c253316af6 801 // Output:
jmitc91516 0:a5c253316af6 802 // -------
jmitc91516 0:a5c253316af6 803 // Encoded pixel color value
jmitc91516 0:a5c253316af6 804 //
jmitc91516 0:a5c253316af6 805 extern GuiConst_INTCOLOR GuiLib_GrayScaleToPixelColor(
jmitc91516 0:a5c253316af6 806 GuiConst_INT8U GrayValue);
jmitc91516 0:a5c253316af6 807 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 808
jmitc91516 0:a5c253316af6 809
jmitc91516 0:a5c253316af6 810 // =============================================================================
jmitc91516 0:a5c253316af6 811 // GuiLib_BrightenRgbColor
jmitc91516 0:a5c253316af6 812 // =======================
jmitc91516 0:a5c253316af6 813 //
jmitc91516 0:a5c253316af6 814 // Brightens RGB color 0~1000‰, 1000‰ results in pure white.
jmitc91516 0:a5c253316af6 815 //
jmitc91516 0:a5c253316af6 816 // Input:
jmitc91516 0:a5c253316af6 817 // ------
jmitc91516 0:a5c253316af6 818 // RGB color value
jmitc91516 0:a5c253316af6 819 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 820 // Brighten value, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 821 //
jmitc91516 0:a5c253316af6 822 // Output:
jmitc91516 0:a5c253316af6 823 // -------
jmitc91516 0:a5c253316af6 824 // RGB color value
jmitc91516 0:a5c253316af6 825 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 826 //
jmitc91516 0:a5c253316af6 827 extern GuiConst_INT32U GuiLib_BrightenRgbColor(
jmitc91516 0:a5c253316af6 828 GuiConst_INT32U RgbColor,
jmitc91516 0:a5c253316af6 829 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 830 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 831
jmitc91516 0:a5c253316af6 832
jmitc91516 0:a5c253316af6 833 // =============================================================================
jmitc91516 0:a5c253316af6 834 // GuiLib_BrightenPixelColor
jmitc91516 0:a5c253316af6 835 // =========================
jmitc91516 0:a5c253316af6 836 //
jmitc91516 0:a5c253316af6 837 // Brightens color in display controller color setup 0~1000‰, 1000‰ results in
jmitc91516 0:a5c253316af6 838 // pure white.
jmitc91516 0:a5c253316af6 839 //
jmitc91516 0:a5c253316af6 840 // Input:
jmitc91516 0:a5c253316af6 841 // ------
jmitc91516 0:a5c253316af6 842 // Encoded pixel color value
jmitc91516 0:a5c253316af6 843 // Brighten value, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 844 //
jmitc91516 0:a5c253316af6 845 // Output:
jmitc91516 0:a5c253316af6 846 // -------
jmitc91516 0:a5c253316af6 847 // Encoded pixel color value
jmitc91516 0:a5c253316af6 848 //
jmitc91516 0:a5c253316af6 849 extern GuiConst_INTCOLOR GuiLib_BrightenPixelColor(
jmitc91516 0:a5c253316af6 850 GuiConst_INTCOLOR PixelColor,
jmitc91516 0:a5c253316af6 851 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 852 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 853
jmitc91516 0:a5c253316af6 854
jmitc91516 0:a5c253316af6 855 // =============================================================================
jmitc91516 0:a5c253316af6 856 // GuiLib_DarkenRgbColor
jmitc91516 0:a5c253316af6 857 // =====================
jmitc91516 0:a5c253316af6 858 //
jmitc91516 0:a5c253316af6 859 // Darkens RGB color 0~1000‰, 1000‰ results in pure black.
jmitc91516 0:a5c253316af6 860 //
jmitc91516 0:a5c253316af6 861 // Input:
jmitc91516 0:a5c253316af6 862 // ------
jmitc91516 0:a5c253316af6 863 // RGB color value
jmitc91516 0:a5c253316af6 864 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 865 // Darken value, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 866 //
jmitc91516 0:a5c253316af6 867 // Output:
jmitc91516 0:a5c253316af6 868 // -------
jmitc91516 0:a5c253316af6 869 // RGB color value
jmitc91516 0:a5c253316af6 870 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 871 //
jmitc91516 0:a5c253316af6 872 extern GuiConst_INT32U GuiLib_DarkenRgbColor(
jmitc91516 0:a5c253316af6 873 GuiConst_INT32U RgbColor,
jmitc91516 0:a5c253316af6 874 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 875 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 876
jmitc91516 0:a5c253316af6 877
jmitc91516 0:a5c253316af6 878 // =============================================================================
jmitc91516 0:a5c253316af6 879 // GuiLib_DarkenPixelColor
jmitc91516 0:a5c253316af6 880 // =======================
jmitc91516 0:a5c253316af6 881 //
jmitc91516 0:a5c253316af6 882 // Darkens color in display controller color setup 0~1000‰, 1000‰ results in
jmitc91516 0:a5c253316af6 883 // pure black.
jmitc91516 0:a5c253316af6 884 //
jmitc91516 0:a5c253316af6 885 // Input:
jmitc91516 0:a5c253316af6 886 // ------
jmitc91516 0:a5c253316af6 887 // Encoded pixel color value
jmitc91516 0:a5c253316af6 888 // Darken value, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 889 //
jmitc91516 0:a5c253316af6 890 // Output:
jmitc91516 0:a5c253316af6 891 // -------
jmitc91516 0:a5c253316af6 892 // Encoded pixel color value
jmitc91516 0:a5c253316af6 893 //
jmitc91516 0:a5c253316af6 894 extern GuiConst_INTCOLOR GuiLib_DarkenPixelColor(
jmitc91516 0:a5c253316af6 895 GuiConst_INTCOLOR PixelColor,
jmitc91516 0:a5c253316af6 896 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 897 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 898
jmitc91516 0:a5c253316af6 899
jmitc91516 0:a5c253316af6 900 // =============================================================================
jmitc91516 0:a5c253316af6 901 // GuiLib_MiddleRgbColor
jmitc91516 0:a5c253316af6 902 // =====================
jmitc91516 0:a5c253316af6 903 //
jmitc91516 0:a5c253316af6 904 // Gives middle color, between color 1 and color 2.
jmitc91516 0:a5c253316af6 905 // Ratio in 0~1000‰, 0‰ gives color 1, 1000‰ gives color 2.
jmitc91516 0:a5c253316af6 906 //
jmitc91516 0:a5c253316af6 907 // Input:
jmitc91516 0:a5c253316af6 908 // ------
jmitc91516 0:a5c253316af6 909 // RGB color 1 value
jmitc91516 0:a5c253316af6 910 // RGB color 2 value
jmitc91516 0:a5c253316af6 911 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 912 // Color ratio, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 913 //
jmitc91516 0:a5c253316af6 914 // Output:
jmitc91516 0:a5c253316af6 915 // -------
jmitc91516 0:a5c253316af6 916 // RGB color value
jmitc91516 0:a5c253316af6 917 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 918 //
jmitc91516 0:a5c253316af6 919 extern GuiConst_INT32U GuiLib_MiddleRgbColor(
jmitc91516 0:a5c253316af6 920 GuiConst_INT32U RgbColor1,
jmitc91516 0:a5c253316af6 921 GuiConst_INT32U RgbColor2,
jmitc91516 0:a5c253316af6 922 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 923 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 924
jmitc91516 0:a5c253316af6 925
jmitc91516 0:a5c253316af6 926 // =============================================================================
jmitc91516 0:a5c253316af6 927 // GuiLib_MiddlePixelColor
jmitc91516 0:a5c253316af6 928 // =======================
jmitc91516 0:a5c253316af6 929 //
jmitc91516 0:a5c253316af6 930 // Gives middle color in display controller color setup,
jmitc91516 0:a5c253316af6 931 // between color 1 and color 2.
jmitc91516 0:a5c253316af6 932 // Ratio in 0~1000‰, 0‰ gives color 1, 1000‰ gives color 2.
jmitc91516 0:a5c253316af6 933 //
jmitc91516 0:a5c253316af6 934 // Input:
jmitc91516 0:a5c253316af6 935 // ------
jmitc91516 0:a5c253316af6 936 // Encoded pixel color 1 value
jmitc91516 0:a5c253316af6 937 // Encoded pixel color 2 value
jmitc91516 0:a5c253316af6 938 // Color ratio, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 939 //
jmitc91516 0:a5c253316af6 940 // Output:
jmitc91516 0:a5c253316af6 941 // -------
jmitc91516 0:a5c253316af6 942 // Encoded pixel color value
jmitc91516 0:a5c253316af6 943 //
jmitc91516 0:a5c253316af6 944 extern GuiConst_INTCOLOR GuiLib_MiddlePixelColor(
jmitc91516 0:a5c253316af6 945 GuiConst_INTCOLOR PixelColor1,
jmitc91516 0:a5c253316af6 946 GuiConst_INTCOLOR PixelColor2,
jmitc91516 0:a5c253316af6 947 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 948 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 949
jmitc91516 0:a5c253316af6 950
jmitc91516 0:a5c253316af6 951 // =============================================================================
jmitc91516 0:a5c253316af6 952 // GuiLib_DesaturateRgbColor
jmitc91516 0:a5c253316af6 953 // =========================
jmitc91516 0:a5c253316af6 954 //
jmitc91516 0:a5c253316af6 955 // Removes saturation from color, turning it towards gray color.
jmitc91516 0:a5c253316af6 956 // Ratio in 0~1000‰, 0‰ gives color 1, 1000‰ gives gray.
jmitc91516 0:a5c253316af6 957 //
jmitc91516 0:a5c253316af6 958 // Input:
jmitc91516 0:a5c253316af6 959 // ------
jmitc91516 0:a5c253316af6 960 // RGB color value
jmitc91516 0:a5c253316af6 961 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 962 // Desaturation ratio, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 963 //
jmitc91516 0:a5c253316af6 964 // Output:
jmitc91516 0:a5c253316af6 965 // -------
jmitc91516 0:a5c253316af6 966 // RGB color value
jmitc91516 0:a5c253316af6 967 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 968 //
jmitc91516 0:a5c253316af6 969 extern GuiConst_INT32U GuiLib_DesaturateRgbColor(
jmitc91516 0:a5c253316af6 970 GuiConst_INT32U RgbColor,
jmitc91516 0:a5c253316af6 971 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 972 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 973
jmitc91516 0:a5c253316af6 974
jmitc91516 0:a5c253316af6 975 // =============================================================================
jmitc91516 0:a5c253316af6 976 // GuiLib_DesaturatePixelColor
jmitc91516 0:a5c253316af6 977 // ===========================
jmitc91516 0:a5c253316af6 978 //
jmitc91516 0:a5c253316af6 979 // Removes saturation from color, turning it towards gray color.
jmitc91516 0:a5c253316af6 980 // Ratio in 0~1000‰, 0‰ gives color 1, 1000‰ gives gray.
jmitc91516 0:a5c253316af6 981 //
jmitc91516 0:a5c253316af6 982 // Input:
jmitc91516 0:a5c253316af6 983 // ------
jmitc91516 0:a5c253316af6 984 // Encoded pixel color value
jmitc91516 0:a5c253316af6 985 // Color ratio, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 986 //
jmitc91516 0:a5c253316af6 987 // Output:
jmitc91516 0:a5c253316af6 988 // -------
jmitc91516 0:a5c253316af6 989 // Encoded pixel color value
jmitc91516 0:a5c253316af6 990 //
jmitc91516 0:a5c253316af6 991 extern GuiConst_INTCOLOR GuiLib_DesaturatePixelColor(
jmitc91516 0:a5c253316af6 992 GuiConst_INTCOLOR PixelColor,
jmitc91516 0:a5c253316af6 993 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 994 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 995
jmitc91516 0:a5c253316af6 996
jmitc91516 0:a5c253316af6 997 // =============================================================================
jmitc91516 0:a5c253316af6 998 // GuiLib_AccentuateRgbColor
jmitc91516 0:a5c253316af6 999 // =========================
jmitc91516 0:a5c253316af6 1000 //
jmitc91516 0:a5c253316af6 1001 // Accentuates RGB color. Colors with less than 50% mean gray are made darker,
jmitc91516 0:a5c253316af6 1002 // otherwise brighter. Amount in ‰, 0‰ gives no change, 1000‰ gives pure black
jmitc91516 0:a5c253316af6 1003 // or white.
jmitc91516 0:a5c253316af6 1004 //
jmitc91516 0:a5c253316af6 1005 // Input:
jmitc91516 0:a5c253316af6 1006 // ------
jmitc91516 0:a5c253316af6 1007 // RGB color value
jmitc91516 0:a5c253316af6 1008 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 1009 // Accentuate value, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 1010 //
jmitc91516 0:a5c253316af6 1011 // Output:
jmitc91516 0:a5c253316af6 1012 // -------
jmitc91516 0:a5c253316af6 1013 // RGB color value
jmitc91516 0:a5c253316af6 1014 // (32 bit, 24 bits used, low byte = Red, middle byte = Green, high byte = Blue)
jmitc91516 0:a5c253316af6 1015 //
jmitc91516 0:a5c253316af6 1016 extern GuiConst_INT32U GuiLib_AccentuateRgbColor(
jmitc91516 0:a5c253316af6 1017 GuiConst_INT32U RgbColor,
jmitc91516 0:a5c253316af6 1018 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 1019 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1020
jmitc91516 0:a5c253316af6 1021
jmitc91516 0:a5c253316af6 1022 // =============================================================================
jmitc91516 0:a5c253316af6 1023 // GuiLib_AccentuatePixelColor
jmitc91516 0:a5c253316af6 1024 // ===========================
jmitc91516 0:a5c253316af6 1025 //
jmitc91516 0:a5c253316af6 1026 // Accentuates color in display controller color setup. Colors with less than
jmitc91516 0:a5c253316af6 1027 // 50% mean gray are made darker, otherwise brighter. Amount in ‰, 0‰ gives no
jmitc91516 0:a5c253316af6 1028 // change, 1000‰ gives pure black or white.
jmitc91516 0:a5c253316af6 1029 //
jmitc91516 0:a5c253316af6 1030 // Input:
jmitc91516 0:a5c253316af6 1031 // ------
jmitc91516 0:a5c253316af6 1032 // Encoded pixel color value
jmitc91516 0:a5c253316af6 1033 // Accentuate value, 0 ~ 1000‰
jmitc91516 0:a5c253316af6 1034 //
jmitc91516 0:a5c253316af6 1035 // Output:
jmitc91516 0:a5c253316af6 1036 // -------
jmitc91516 0:a5c253316af6 1037 // Encoded pixel color value
jmitc91516 0:a5c253316af6 1038 //
jmitc91516 0:a5c253316af6 1039 extern GuiConst_INTCOLOR GuiLib_AccentuatePixelColor(
jmitc91516 0:a5c253316af6 1040 GuiConst_INTCOLOR PixelColor,
jmitc91516 0:a5c253316af6 1041 GuiConst_INT16U Amount);
jmitc91516 0:a5c253316af6 1042 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1043
jmitc91516 0:a5c253316af6 1044 // =============================================================================
jmitc91516 0:a5c253316af6 1045 // GuiLib_SetButtonDisabledColor
jmitc91516 0:a5c253316af6 1046 // =============================
jmitc91516 0:a5c253316af6 1047 //
jmitc91516 0:a5c253316af6 1048 // Override automatic generation of button disabled color with the specified
jmitc91516 0:a5c253316af6 1049 // pixel color value.
jmitc91516 0:a5c253316af6 1050 //
jmitc91516 0:a5c253316af6 1051 // Input:
jmitc91516 0:a5c253316af6 1052 // ------
jmitc91516 0:a5c253316af6 1053 // Encoded pixel color value
jmitc91516 0:a5c253316af6 1054 //
jmitc91516 0:a5c253316af6 1055 // Output:
jmitc91516 0:a5c253316af6 1056 // -------
jmitc91516 0:a5c253316af6 1057 // Encoded pixel color value
jmitc91516 0:a5c253316af6 1058 //
jmitc91516 0:a5c253316af6 1059 GuiConst_INTCOLOR GuiLib_SetButtonDisabledColor(GuiConst_INTCOLOR PixelColor);
jmitc91516 0:a5c253316af6 1060 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1061
jmitc91516 0:a5c253316af6 1062 #ifdef GuiConst_CLIPPING_SUPPORT_ON
jmitc91516 0:a5c253316af6 1063
jmitc91516 0:a5c253316af6 1064 // =============================================================================
jmitc91516 0:a5c253316af6 1065 // GuiLib_ResetClipping
jmitc91516 0:a5c253316af6 1066 // ====================
jmitc91516 0:a5c253316af6 1067 //
jmitc91516 0:a5c253316af6 1068 // Resets clipping.
jmitc91516 0:a5c253316af6 1069 // Drawing can be limited to a rectangular portion of the screen,
jmitc91516 0:a5c253316af6 1070 // this routine resets the clipping limits to the entire screen.
jmitc91516 0:a5c253316af6 1071 //
jmitc91516 0:a5c253316af6 1072 // Input:
jmitc91516 0:a5c253316af6 1073 // ------
jmitc91516 0:a5c253316af6 1074 // None
jmitc91516 0:a5c253316af6 1075 //
jmitc91516 0:a5c253316af6 1076 // Output:
jmitc91516 0:a5c253316af6 1077 // -------
jmitc91516 0:a5c253316af6 1078 // None
jmitc91516 0:a5c253316af6 1079 //
jmitc91516 0:a5c253316af6 1080 extern void GuiLib_ResetClipping(void);
jmitc91516 0:a5c253316af6 1081 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1082
jmitc91516 0:a5c253316af6 1083
jmitc91516 0:a5c253316af6 1084 // =============================================================================
jmitc91516 0:a5c253316af6 1085 // GuiLib_SetClipping
jmitc91516 0:a5c253316af6 1086 // ==================
jmitc91516 0:a5c253316af6 1087 //
jmitc91516 0:a5c253316af6 1088 // Sets clipping.
jmitc91516 0:a5c253316af6 1089 // Drawing can be limited to a rectangular portion of the screen,
jmitc91516 0:a5c253316af6 1090 // this routine sets the clipping limits expressed as two opposite
jmitc91516 0:a5c253316af6 1091 // corner coordinates.
jmitc91516 0:a5c253316af6 1092 //
jmitc91516 0:a5c253316af6 1093 // Input:
jmitc91516 0:a5c253316af6 1094 // ------
jmitc91516 0:a5c253316af6 1095 // Rectangle coordinates
jmitc91516 0:a5c253316af6 1096 //
jmitc91516 0:a5c253316af6 1097 // Output:
jmitc91516 0:a5c253316af6 1098 // -------
jmitc91516 0:a5c253316af6 1099 // None
jmitc91516 0:a5c253316af6 1100 //
jmitc91516 0:a5c253316af6 1101 extern void GuiLib_SetClipping(
jmitc91516 0:a5c253316af6 1102 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1103 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1104 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1105 GuiConst_INT16S Y2);
jmitc91516 0:a5c253316af6 1106 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1107
jmitc91516 0:a5c253316af6 1108 #endif
jmitc91516 0:a5c253316af6 1109
jmitc91516 0:a5c253316af6 1110
jmitc91516 0:a5c253316af6 1111 // =============================================================================
jmitc91516 0:a5c253316af6 1112 // GuiLib_ResetDisplayRepaint
jmitc91516 0:a5c253316af6 1113 // ==========================
jmitc91516 0:a5c253316af6 1114 //
jmitc91516 0:a5c253316af6 1115 // Resets all repainting scan line markers.
jmitc91516 0:a5c253316af6 1116 //
jmitc91516 0:a5c253316af6 1117 // Input:
jmitc91516 0:a5c253316af6 1118 // ------
jmitc91516 0:a5c253316af6 1119 // None
jmitc91516 0:a5c253316af6 1120 //
jmitc91516 0:a5c253316af6 1121 // Output:
jmitc91516 0:a5c253316af6 1122 // -------
jmitc91516 0:a5c253316af6 1123 // None
jmitc91516 0:a5c253316af6 1124 //
jmitc91516 0:a5c253316af6 1125 extern void GuiLib_ResetDisplayRepaint(void);
jmitc91516 0:a5c253316af6 1126 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1127
jmitc91516 0:a5c253316af6 1128
jmitc91516 0:a5c253316af6 1129 // =============================================================================
jmitc91516 0:a5c253316af6 1130 // GuiLib_MarkDisplayBoxRepaint
jmitc91516 0:a5c253316af6 1131 // ============================
jmitc91516 0:a5c253316af6 1132 //
jmitc91516 0:a5c253316af6 1133 // Sets the repainting scan line markers, indicating that all pixels inside the
jmitc91516 0:a5c253316af6 1134 // specified rectangle must be repainted.
jmitc91516 0:a5c253316af6 1135 //
jmitc91516 0:a5c253316af6 1136 // Input:
jmitc91516 0:a5c253316af6 1137 // ------
jmitc91516 0:a5c253316af6 1138 // Rectangle coordinates
jmitc91516 0:a5c253316af6 1139 //
jmitc91516 0:a5c253316af6 1140 // Output:
jmitc91516 0:a5c253316af6 1141 // -------
jmitc91516 0:a5c253316af6 1142 // None
jmitc91516 0:a5c253316af6 1143 //
jmitc91516 0:a5c253316af6 1144 extern void GuiLib_MarkDisplayBoxRepaint(
jmitc91516 0:a5c253316af6 1145 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1146 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1147 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1148 GuiConst_INT16S Y2);
jmitc91516 0:a5c253316af6 1149 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1150
jmitc91516 0:a5c253316af6 1151
jmitc91516 0:a5c253316af6 1152 // =============================================================================
jmitc91516 0:a5c253316af6 1153 // GuiLib_ClearDisplay
jmitc91516 0:a5c253316af6 1154 // ===================
jmitc91516 0:a5c253316af6 1155 //
jmitc91516 0:a5c253316af6 1156 // Clears the screen.
jmitc91516 0:a5c253316af6 1157 //
jmitc91516 0:a5c253316af6 1158 // Input:
jmitc91516 0:a5c253316af6 1159 // ------
jmitc91516 0:a5c253316af6 1160 // None
jmitc91516 0:a5c253316af6 1161 //
jmitc91516 0:a5c253316af6 1162 // Output:
jmitc91516 0:a5c253316af6 1163 // -------
jmitc91516 0:a5c253316af6 1164 // None
jmitc91516 0:a5c253316af6 1165 //
jmitc91516 0:a5c253316af6 1166 extern void GuiLib_ClearDisplay(void);
jmitc91516 0:a5c253316af6 1167 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1168
jmitc91516 0:a5c253316af6 1169
jmitc91516 0:a5c253316af6 1170 // =============================================================================
jmitc91516 0:a5c253316af6 1171 // GuiLib_Dot
jmitc91516 0:a5c253316af6 1172 // ==========
jmitc91516 0:a5c253316af6 1173 //
jmitc91516 0:a5c253316af6 1174 // Draws a single pixel.
jmitc91516 0:a5c253316af6 1175 //
jmitc91516 0:a5c253316af6 1176 // Input:
jmitc91516 0:a5c253316af6 1177 // ------
jmitc91516 0:a5c253316af6 1178 // Coordinates
jmitc91516 0:a5c253316af6 1179 // Color
jmitc91516 0:a5c253316af6 1180 //
jmitc91516 0:a5c253316af6 1181 // Output:
jmitc91516 0:a5c253316af6 1182 // -------
jmitc91516 0:a5c253316af6 1183 // None
jmitc91516 0:a5c253316af6 1184 //
jmitc91516 0:a5c253316af6 1185 extern void GuiLib_Dot(
jmitc91516 0:a5c253316af6 1186 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1187 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1188 GuiConst_INTCOLOR Color);
jmitc91516 0:a5c253316af6 1189 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1190
jmitc91516 0:a5c253316af6 1191
jmitc91516 0:a5c253316af6 1192 // =============================================================================
jmitc91516 0:a5c253316af6 1193 // GuiLib_GetDot
jmitc91516 0:a5c253316af6 1194 // =============
jmitc91516 0:a5c253316af6 1195 //
jmitc91516 0:a5c253316af6 1196 // Returns the color of a single pixel.
jmitc91516 0:a5c253316af6 1197 //
jmitc91516 0:a5c253316af6 1198 // Input:
jmitc91516 0:a5c253316af6 1199 // ------
jmitc91516 0:a5c253316af6 1200 // Coordinates
jmitc91516 0:a5c253316af6 1201 //
jmitc91516 0:a5c253316af6 1202 // Output:
jmitc91516 0:a5c253316af6 1203 // -------
jmitc91516 0:a5c253316af6 1204 // Color
jmitc91516 0:a5c253316af6 1205 //
jmitc91516 0:a5c253316af6 1206 extern GuiConst_INTCOLOR GuiLib_GetDot(
jmitc91516 0:a5c253316af6 1207 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1208 GuiConst_INT16S Y);
jmitc91516 0:a5c253316af6 1209 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1210
jmitc91516 0:a5c253316af6 1211
jmitc91516 0:a5c253316af6 1212 // =============================================================================
jmitc91516 0:a5c253316af6 1213 // GuiLib_Line
jmitc91516 0:a5c253316af6 1214 // ===========
jmitc91516 0:a5c253316af6 1215 //
jmitc91516 0:a5c253316af6 1216 // Draws a line.
jmitc91516 0:a5c253316af6 1217 //
jmitc91516 0:a5c253316af6 1218 // Input:
jmitc91516 0:a5c253316af6 1219 // ------
jmitc91516 0:a5c253316af6 1220 // Coordinates
jmitc91516 0:a5c253316af6 1221 // Color
jmitc91516 0:a5c253316af6 1222 //
jmitc91516 0:a5c253316af6 1223 // Output:
jmitc91516 0:a5c253316af6 1224 // -------
jmitc91516 0:a5c253316af6 1225 // None
jmitc91516 0:a5c253316af6 1226 //
jmitc91516 0:a5c253316af6 1227 extern void GuiLib_Line(
jmitc91516 0:a5c253316af6 1228 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1229 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1230 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1231 GuiConst_INT16S Y2,
jmitc91516 0:a5c253316af6 1232 GuiConst_INTCOLOR Color);
jmitc91516 0:a5c253316af6 1233 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1234
jmitc91516 0:a5c253316af6 1235
jmitc91516 0:a5c253316af6 1236 // =============================================================================
jmitc91516 0:a5c253316af6 1237 // GuiLib_LinePattern
jmitc91516 0:a5c253316af6 1238 // ==================
jmitc91516 0:a5c253316af6 1239 //
jmitc91516 0:a5c253316af6 1240 // Draws a patterned line.
jmitc91516 0:a5c253316af6 1241 //
jmitc91516 0:a5c253316af6 1242 // Input:
jmitc91516 0:a5c253316af6 1243 // ------
jmitc91516 0:a5c253316af6 1244 // Coordinates
jmitc91516 0:a5c253316af6 1245 // Line pattern (8 pixel pattern)
jmitc91516 0:a5c253316af6 1246 // Color
jmitc91516 0:a5c253316af6 1247 //
jmitc91516 0:a5c253316af6 1248 // Output:
jmitc91516 0:a5c253316af6 1249 // -------
jmitc91516 0:a5c253316af6 1250 // None
jmitc91516 0:a5c253316af6 1251 //
jmitc91516 0:a5c253316af6 1252 extern void GuiLib_LinePattern(
jmitc91516 0:a5c253316af6 1253 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1254 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1255 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1256 GuiConst_INT16S Y2,
jmitc91516 0:a5c253316af6 1257 GuiConst_INT8U LinePattern,
jmitc91516 0:a5c253316af6 1258 GuiConst_INTCOLOR Color);
jmitc91516 0:a5c253316af6 1259 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1260
jmitc91516 0:a5c253316af6 1261
jmitc91516 0:a5c253316af6 1262 // =============================================================================
jmitc91516 0:a5c253316af6 1263 // GuiLib_HLine
jmitc91516 0:a5c253316af6 1264 // ============
jmitc91516 0:a5c253316af6 1265 //
jmitc91516 0:a5c253316af6 1266 // Draws a horizontal line.
jmitc91516 0:a5c253316af6 1267 //
jmitc91516 0:a5c253316af6 1268 // Input:
jmitc91516 0:a5c253316af6 1269 // ------
jmitc91516 0:a5c253316af6 1270 // Coordinates
jmitc91516 0:a5c253316af6 1271 // Color
jmitc91516 0:a5c253316af6 1272 //
jmitc91516 0:a5c253316af6 1273 // Output:
jmitc91516 0:a5c253316af6 1274 // -------
jmitc91516 0:a5c253316af6 1275 // None
jmitc91516 0:a5c253316af6 1276 //
jmitc91516 0:a5c253316af6 1277 extern void GuiLib_HLine(
jmitc91516 0:a5c253316af6 1278 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1279 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1280 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1281 GuiConst_INTCOLOR Color);
jmitc91516 0:a5c253316af6 1282 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1283
jmitc91516 0:a5c253316af6 1284
jmitc91516 0:a5c253316af6 1285 // =============================================================================
jmitc91516 0:a5c253316af6 1286 // GuiLib_VLine
jmitc91516 0:a5c253316af6 1287 // ============
jmitc91516 0:a5c253316af6 1288 //
jmitc91516 0:a5c253316af6 1289 // Draws a vertical line.
jmitc91516 0:a5c253316af6 1290 //
jmitc91516 0:a5c253316af6 1291 // Input:
jmitc91516 0:a5c253316af6 1292 // ------
jmitc91516 0:a5c253316af6 1293 // Coordinates
jmitc91516 0:a5c253316af6 1294 // Color
jmitc91516 0:a5c253316af6 1295 //
jmitc91516 0:a5c253316af6 1296 // Output:
jmitc91516 0:a5c253316af6 1297 // -------
jmitc91516 0:a5c253316af6 1298 // None
jmitc91516 0:a5c253316af6 1299 //
jmitc91516 0:a5c253316af6 1300 extern void GuiLib_VLine(
jmitc91516 0:a5c253316af6 1301 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1302 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1303 GuiConst_INT16S Y2,
jmitc91516 0:a5c253316af6 1304 GuiConst_INTCOLOR Color);
jmitc91516 0:a5c253316af6 1305 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1306
jmitc91516 0:a5c253316af6 1307
jmitc91516 0:a5c253316af6 1308 // =============================================================================
jmitc91516 0:a5c253316af6 1309 // GuiLib_Box
jmitc91516 0:a5c253316af6 1310 // ==========
jmitc91516 0:a5c253316af6 1311 //
jmitc91516 0:a5c253316af6 1312 // Draws a single pixel wide rectangle.
jmitc91516 0:a5c253316af6 1313 //
jmitc91516 0:a5c253316af6 1314 // Input:
jmitc91516 0:a5c253316af6 1315 // ------
jmitc91516 0:a5c253316af6 1316 // Coordinates
jmitc91516 0:a5c253316af6 1317 // Color
jmitc91516 0:a5c253316af6 1318 //
jmitc91516 0:a5c253316af6 1319 // Output:
jmitc91516 0:a5c253316af6 1320 // -------
jmitc91516 0:a5c253316af6 1321 // None
jmitc91516 0:a5c253316af6 1322 //
jmitc91516 0:a5c253316af6 1323 extern void GuiLib_Box(
jmitc91516 0:a5c253316af6 1324 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1325 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1326 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1327 GuiConst_INT16S Y2,
jmitc91516 0:a5c253316af6 1328 GuiConst_INTCOLOR Color);
jmitc91516 0:a5c253316af6 1329 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1330
jmitc91516 0:a5c253316af6 1331
jmitc91516 0:a5c253316af6 1332 // =============================================================================
jmitc91516 0:a5c253316af6 1333 // GuiLib_FillBox
jmitc91516 0:a5c253316af6 1334 // ==============
jmitc91516 0:a5c253316af6 1335 //
jmitc91516 0:a5c253316af6 1336 // Draws a filled rectangle.
jmitc91516 0:a5c253316af6 1337 //
jmitc91516 0:a5c253316af6 1338 // Input:
jmitc91516 0:a5c253316af6 1339 // ------
jmitc91516 0:a5c253316af6 1340 // Coordinates
jmitc91516 0:a5c253316af6 1341 // Color
jmitc91516 0:a5c253316af6 1342 //
jmitc91516 0:a5c253316af6 1343 // Output:
jmitc91516 0:a5c253316af6 1344 // -------
jmitc91516 0:a5c253316af6 1345 // None
jmitc91516 0:a5c253316af6 1346 //
jmitc91516 0:a5c253316af6 1347 extern void GuiLib_FillBox(
jmitc91516 0:a5c253316af6 1348 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1349 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1350 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1351 GuiConst_INT16S Y2,
jmitc91516 0:a5c253316af6 1352 GuiConst_INTCOLOR Color);
jmitc91516 0:a5c253316af6 1353 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1354
jmitc91516 0:a5c253316af6 1355
jmitc91516 0:a5c253316af6 1356 // =============================================================================
jmitc91516 0:a5c253316af6 1357 // GuiLib_BorderBox
jmitc91516 0:a5c253316af6 1358 // ================
jmitc91516 0:a5c253316af6 1359 //
jmitc91516 0:a5c253316af6 1360 // Draws a filled rectangle with single pixel border.
jmitc91516 0:a5c253316af6 1361 //
jmitc91516 0:a5c253316af6 1362 // Input:
jmitc91516 0:a5c253316af6 1363 // ------
jmitc91516 0:a5c253316af6 1364 // Coordinates
jmitc91516 0:a5c253316af6 1365 // Border and fill colors
jmitc91516 0:a5c253316af6 1366 //
jmitc91516 0:a5c253316af6 1367 // Output:
jmitc91516 0:a5c253316af6 1368 // -------
jmitc91516 0:a5c253316af6 1369 // None
jmitc91516 0:a5c253316af6 1370 //
jmitc91516 0:a5c253316af6 1371 extern void GuiLib_BorderBox(
jmitc91516 0:a5c253316af6 1372 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1373 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1374 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1375 GuiConst_INT16S Y2,
jmitc91516 0:a5c253316af6 1376 GuiConst_INTCOLOR BorderColor,
jmitc91516 0:a5c253316af6 1377 GuiConst_INTCOLOR FillColor);
jmitc91516 0:a5c253316af6 1378 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1379
jmitc91516 0:a5c253316af6 1380
jmitc91516 0:a5c253316af6 1381 // =============================================================================
jmitc91516 0:a5c253316af6 1382 // GuiLib_InvertBox
jmitc91516 0:a5c253316af6 1383 // ================
jmitc91516 0:a5c253316af6 1384 //
jmitc91516 0:a5c253316af6 1385 // Inverts a block.
jmitc91516 0:a5c253316af6 1386 //
jmitc91516 0:a5c253316af6 1387 // Input:
jmitc91516 0:a5c253316af6 1388 // ------
jmitc91516 0:a5c253316af6 1389 // Coordinates
jmitc91516 0:a5c253316af6 1390 //
jmitc91516 0:a5c253316af6 1391 // Output:
jmitc91516 0:a5c253316af6 1392 // -------
jmitc91516 0:a5c253316af6 1393 // None
jmitc91516 0:a5c253316af6 1394 //
jmitc91516 0:a5c253316af6 1395 extern void GuiLib_InvertBox(
jmitc91516 0:a5c253316af6 1396 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 1397 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 1398 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 1399 GuiConst_INT16S Y2);
jmitc91516 0:a5c253316af6 1400 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1401
jmitc91516 0:a5c253316af6 1402
jmitc91516 0:a5c253316af6 1403 // =============================================================================
jmitc91516 0:a5c253316af6 1404 // GuiLib_Circle
jmitc91516 0:a5c253316af6 1405 // =============
jmitc91516 0:a5c253316af6 1406 //
jmitc91516 0:a5c253316af6 1407 // Draws a filled or framed circle with single pixel width border.
jmitc91516 0:a5c253316af6 1408 //
jmitc91516 0:a5c253316af6 1409 // Input:
jmitc91516 0:a5c253316af6 1410 // ------
jmitc91516 0:a5c253316af6 1411 // Center coordinate
jmitc91516 0:a5c253316af6 1412 // Radius
jmitc91516 0:a5c253316af6 1413 // Border color, GuiLib_NO_COLOR means same color as fill color
jmitc91516 0:a5c253316af6 1414 // Fill color, GuiLib_NO_COLOR means no filling
jmitc91516 0:a5c253316af6 1415 //
jmitc91516 0:a5c253316af6 1416 // Output:
jmitc91516 0:a5c253316af6 1417 // -------
jmitc91516 0:a5c253316af6 1418 // None
jmitc91516 0:a5c253316af6 1419 //
jmitc91516 0:a5c253316af6 1420 extern void GuiLib_Circle(
jmitc91516 0:a5c253316af6 1421 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1422 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1423 GuiConst_INT16U Radius,
jmitc91516 0:a5c253316af6 1424 GuiConst_INT32S BorderColor,
jmitc91516 0:a5c253316af6 1425 GuiConst_INT32S FillColor);
jmitc91516 0:a5c253316af6 1426 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1427
jmitc91516 0:a5c253316af6 1428
jmitc91516 0:a5c253316af6 1429 // =============================================================================
jmitc91516 0:a5c253316af6 1430 // GuiLib_Ellipse
jmitc91516 0:a5c253316af6 1431 // ==============
jmitc91516 0:a5c253316af6 1432 //
jmitc91516 0:a5c253316af6 1433 // Draws a filled or framed ellipse with single pixel width border.
jmitc91516 0:a5c253316af6 1434 //
jmitc91516 0:a5c253316af6 1435 // Input:
jmitc91516 0:a5c253316af6 1436 // ------
jmitc91516 0:a5c253316af6 1437 // Center coordinate
jmitc91516 0:a5c253316af6 1438 // Horizontal and vertical radii
jmitc91516 0:a5c253316af6 1439 // Border color, GuiLib_NO_COLOR means same color as fill color
jmitc91516 0:a5c253316af6 1440 // Fill color, GuiLib_NO_COLOR means no filling
jmitc91516 0:a5c253316af6 1441 //
jmitc91516 0:a5c253316af6 1442 // Output:
jmitc91516 0:a5c253316af6 1443 // -------
jmitc91516 0:a5c253316af6 1444 // None
jmitc91516 0:a5c253316af6 1445 //
jmitc91516 0:a5c253316af6 1446 extern void GuiLib_Ellipse(
jmitc91516 0:a5c253316af6 1447 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1448 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1449 GuiConst_INT16U Radius1,
jmitc91516 0:a5c253316af6 1450 GuiConst_INT16U Radius2,
jmitc91516 0:a5c253316af6 1451 GuiConst_INT32S BorderColor,
jmitc91516 0:a5c253316af6 1452 GuiConst_INT32S FillColor);
jmitc91516 0:a5c253316af6 1453 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1454
jmitc91516 0:a5c253316af6 1455
jmitc91516 0:a5c253316af6 1456 #ifdef GuiConst_BITMAP_SUPPORT_ON
jmitc91516 0:a5c253316af6 1457
jmitc91516 0:a5c253316af6 1458 // =============================================================================
jmitc91516 0:a5c253316af6 1459 // GuiLib_ShowBitmap
jmitc91516 0:a5c253316af6 1460 // =================
jmitc91516 0:a5c253316af6 1461 //
jmitc91516 0:a5c253316af6 1462 // Displays a stored bitmap.
jmitc91516 0:a5c253316af6 1463 //
jmitc91516 0:a5c253316af6 1464 // Input:
jmitc91516 0:a5c253316af6 1465 // ------
jmitc91516 0:a5c253316af6 1466 // Bitmap index in GuiStruct_BitmapPtrList
jmitc91516 0:a5c253316af6 1467 // Coordinates for upper left corner
jmitc91516 0:a5c253316af6 1468 // Transparent background color, -1 means no transparency
jmitc91516 0:a5c253316af6 1469 //
jmitc91516 0:a5c253316af6 1470 // Output:
jmitc91516 0:a5c253316af6 1471 // -------
jmitc91516 0:a5c253316af6 1472 // None
jmitc91516 0:a5c253316af6 1473 //
jmitc91516 0:a5c253316af6 1474 extern void GuiLib_ShowBitmap(
jmitc91516 0:a5c253316af6 1475 GuiConst_INT16U BitmapIndex,
jmitc91516 0:a5c253316af6 1476 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1477 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1478 GuiConst_INT32S TranspColor);
jmitc91516 0:a5c253316af6 1479 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1480
jmitc91516 0:a5c253316af6 1481
jmitc91516 0:a5c253316af6 1482 // =============================================================================
jmitc91516 0:a5c253316af6 1483 // GuiLib_ShowBitmapAt
jmitc91516 0:a5c253316af6 1484 // ===================
jmitc91516 0:a5c253316af6 1485 //
jmitc91516 0:a5c253316af6 1486 // Displays a bitmap at a specific address.
jmitc91516 0:a5c253316af6 1487 // The data in the memory area must conform to the format explained in the
jmitc91516 0:a5c253316af6 1488 // easyGUI user manual.
jmitc91516 0:a5c253316af6 1489 //
jmitc91516 0:a5c253316af6 1490 // Input:
jmitc91516 0:a5c253316af6 1491 // ------
jmitc91516 0:a5c253316af6 1492 // Pointer to memory area
jmitc91516 0:a5c253316af6 1493 // Coordinates for upper left corner
jmitc91516 0:a5c253316af6 1494 // Transparent background color, -1 means no transparency
jmitc91516 0:a5c253316af6 1495 //
jmitc91516 0:a5c253316af6 1496 // Output:
jmitc91516 0:a5c253316af6 1497 // -------
jmitc91516 0:a5c253316af6 1498 // None
jmitc91516 0:a5c253316af6 1499 //
jmitc91516 0:a5c253316af6 1500 extern void GuiLib_ShowBitmapAt(
jmitc91516 0:a5c253316af6 1501 GuiConst_INT8U * BitmapPtr,
jmitc91516 0:a5c253316af6 1502 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1503 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1504 GuiConst_INT32S TranspColor);
jmitc91516 0:a5c253316af6 1505 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1506
jmitc91516 0:a5c253316af6 1507
jmitc91516 0:a5c253316af6 1508 // ============================================================================
jmitc91516 0:a5c253316af6 1509 // GuiLib_ShowBitmapArea
jmitc91516 0:a5c253316af6 1510 // =====================
jmitc91516 0:a5c253316af6 1511 //
jmitc91516 0:a5c253316af6 1512 // Displays part of a stored bitmap.
jmitc91516 0:a5c253316af6 1513 //
jmitc91516 0:a5c253316af6 1514 // Input:
jmitc91516 0:a5c253316af6 1515 // ------
jmitc91516 0:a5c253316af6 1516 // Bitmap index in GuiStruct_BitmapPtrList
jmitc91516 0:a5c253316af6 1517 // Starting coordinates for upper left corner of bitmap
jmitc91516 0:a5c253316af6 1518 // Absolute coordinates for upper left and lower right corner of displayed area
jmitc91516 0:a5c253316af6 1519 // Transparent background color, -1 means no transparency
jmitc91516 0:a5c253316af6 1520 //
jmitc91516 0:a5c253316af6 1521 // Output:
jmitc91516 0:a5c253316af6 1522 // -------
jmitc91516 0:a5c253316af6 1523 // None
jmitc91516 0:a5c253316af6 1524 //
jmitc91516 0:a5c253316af6 1525 extern void GuiLib_ShowBitmapArea(
jmitc91516 0:a5c253316af6 1526 GuiConst_INT16U BitmapIndex,
jmitc91516 0:a5c253316af6 1527 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1528 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1529 GuiConst_INT16S AX1,
jmitc91516 0:a5c253316af6 1530 GuiConst_INT16S AY1,
jmitc91516 0:a5c253316af6 1531 GuiConst_INT16S AX2,
jmitc91516 0:a5c253316af6 1532 GuiConst_INT16S AY2,
jmitc91516 0:a5c253316af6 1533 GuiConst_INT32S TranspColor);
jmitc91516 0:a5c253316af6 1534 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1535
jmitc91516 0:a5c253316af6 1536
jmitc91516 0:a5c253316af6 1537 // ============================================================================
jmitc91516 0:a5c253316af6 1538 // GuiLib_ShowBitmapAreaAt
jmitc91516 0:a5c253316af6 1539 // =======================
jmitc91516 0:a5c253316af6 1540 //
jmitc91516 0:a5c253316af6 1541 // Displays part of a bitmap at a specific address.
jmitc91516 0:a5c253316af6 1542 // The data in the memory area must conform to the format explained in the
jmitc91516 0:a5c253316af6 1543 // easyGUI user manual.
jmitc91516 0:a5c253316af6 1544 //
jmitc91516 0:a5c253316af6 1545 // Input:
jmitc91516 0:a5c253316af6 1546 // ------
jmitc91516 0:a5c253316af6 1547 // Pointer to memory area
jmitc91516 0:a5c253316af6 1548 // Starting coordinates for upper left corner of bitmap
jmitc91516 0:a5c253316af6 1549 // Absolute coordinates for upper left and lower right corner of displayed area
jmitc91516 0:a5c253316af6 1550 // Transparent background color, -1 means no transparency
jmitc91516 0:a5c253316af6 1551 //
jmitc91516 0:a5c253316af6 1552 // Output:
jmitc91516 0:a5c253316af6 1553 // -------
jmitc91516 0:a5c253316af6 1554 // None
jmitc91516 0:a5c253316af6 1555 //
jmitc91516 0:a5c253316af6 1556 extern void GuiLib_ShowBitmapAreaAt(
jmitc91516 0:a5c253316af6 1557 GuiConst_INT8U * BitmapPtr,
jmitc91516 0:a5c253316af6 1558 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1559 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1560 GuiConst_INT16S AX1,
jmitc91516 0:a5c253316af6 1561 GuiConst_INT16S AY1,
jmitc91516 0:a5c253316af6 1562 GuiConst_INT16S AX2,
jmitc91516 0:a5c253316af6 1563 GuiConst_INT16S AY2,
jmitc91516 0:a5c253316af6 1564 GuiConst_INT32S TranspColor);
jmitc91516 0:a5c253316af6 1565 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1566
jmitc91516 0:a5c253316af6 1567 #endif
jmitc91516 0:a5c253316af6 1568
jmitc91516 0:a5c253316af6 1569
jmitc91516 0:a5c253316af6 1570 // =============================================================================
jmitc91516 0:a5c253316af6 1571 // GuiLib_DrawChar
jmitc91516 0:a5c253316af6 1572 // ===============
jmitc91516 0:a5c253316af6 1573 //
jmitc91516 0:a5c253316af6 1574 // Draws a single character on the display.
jmitc91516 0:a5c253316af6 1575 //
jmitc91516 0:a5c253316af6 1576 // Input:
jmitc91516 0:a5c253316af6 1577 // ------
jmitc91516 0:a5c253316af6 1578 // Coordinates
jmitc91516 0:a5c253316af6 1579 // Font index
jmitc91516 0:a5c253316af6 1580 // Character
jmitc91516 0:a5c253316af6 1581 // Color
jmitc91516 0:a5c253316af6 1582 //
jmitc91516 0:a5c253316af6 1583 // Output:
jmitc91516 0:a5c253316af6 1584 // -------
jmitc91516 0:a5c253316af6 1585 // None
jmitc91516 0:a5c253316af6 1586 //
jmitc91516 0:a5c253316af6 1587 extern void GuiLib_DrawChar(
jmitc91516 0:a5c253316af6 1588 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1589 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1590 GuiConst_INT16U FontNo,
jmitc91516 0:a5c253316af6 1591 GuiConst_TEXT Character,
jmitc91516 0:a5c253316af6 1592 GuiConst_INTCOLOR Color);
jmitc91516 0:a5c253316af6 1593 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1594
jmitc91516 0:a5c253316af6 1595
jmitc91516 0:a5c253316af6 1596 // =============================================================================
jmitc91516 0:a5c253316af6 1597 // GuiLib_DrawStr
jmitc91516 0:a5c253316af6 1598 // ==============
jmitc91516 0:a5c253316af6 1599 //
jmitc91516 0:a5c253316af6 1600 // Draws a text string on the display.
jmitc91516 0:a5c253316af6 1601 //
jmitc91516 0:a5c253316af6 1602 // Input:
jmitc91516 0:a5c253316af6 1603 // ------
jmitc91516 0:a5c253316af6 1604 // Coordinates
jmitc91516 0:a5c253316af6 1605 // Font index
jmitc91516 0:a5c253316af6 1606 // Text string
jmitc91516 0:a5c253316af6 1607 // Alignment
jmitc91516 0:a5c253316af6 1608 // Ps mode
jmitc91516 0:a5c253316af6 1609 // Transparent
jmitc91516 0:a5c253316af6 1610 // Underlining
jmitc91516 0:a5c253316af6 1611 // Back box size X (0 = none)
jmitc91516 0:a5c253316af6 1612 // Back box size Y1 (height above base line, 0 = default font box)
jmitc91516 0:a5c253316af6 1613 // Back box size Y2 (height below base line, 0 = default font box)
jmitc91516 0:a5c253316af6 1614 // Extra back box pixels
jmitc91516 0:a5c253316af6 1615 // Text color
jmitc91516 0:a5c253316af6 1616 // Background box color
jmitc91516 0:a5c253316af6 1617 //
jmitc91516 0:a5c253316af6 1618 // Output:
jmitc91516 0:a5c253316af6 1619 // -------
jmitc91516 0:a5c253316af6 1620 // None
jmitc91516 0:a5c253316af6 1621 //
jmitc91516 0:a5c253316af6 1622 extern void GuiLib_DrawStr(
jmitc91516 0:a5c253316af6 1623 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1624 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1625 GuiConst_INT16U FontNo,
jmitc91516 0:a5c253316af6 1626 GuiConst_TEXT PrefixLocate *String,
jmitc91516 0:a5c253316af6 1627 GuiConst_INT8U Alignment,
jmitc91516 0:a5c253316af6 1628 GuiConst_INT8U PsWriting,
jmitc91516 0:a5c253316af6 1629 GuiConst_INT8U Transparent,
jmitc91516 0:a5c253316af6 1630 GuiConst_INT8U Underlining,
jmitc91516 0:a5c253316af6 1631 GuiConst_INT16S BackBoxSizeX,
jmitc91516 0:a5c253316af6 1632 GuiConst_INT16S BackBoxSizeY1,
jmitc91516 0:a5c253316af6 1633 GuiConst_INT16S BackBoxSizeY2,
jmitc91516 0:a5c253316af6 1634 GuiConst_INT8U BackBorderPixels,
jmitc91516 0:a5c253316af6 1635 GuiConst_INTCOLOR ForeColor,
jmitc91516 0:a5c253316af6 1636 GuiConst_INTCOLOR BackColor);
jmitc91516 0:a5c253316af6 1637 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1638
jmitc91516 0:a5c253316af6 1639
jmitc91516 0:a5c253316af6 1640 // =============================================================================
jmitc91516 0:a5c253316af6 1641 // GuiLib_DrawVar
jmitc91516 0:a5c253316af6 1642 // ==============
jmitc91516 0:a5c253316af6 1643 //
jmitc91516 0:a5c253316af6 1644 // Draws a variable on the display.
jmitc91516 0:a5c253316af6 1645 //
jmitc91516 0:a5c253316af6 1646 // Input:
jmitc91516 0:a5c253316af6 1647 // ------
jmitc91516 0:a5c253316af6 1648 // Coordinates
jmitc91516 0:a5c253316af6 1649 // Font index
jmitc91516 0:a5c253316af6 1650 // Variable pointer reference
jmitc91516 0:a5c253316af6 1651 // Variable type - can be:
jmitc91516 0:a5c253316af6 1652 // GuiLib_VAR_BOOL
jmitc91516 0:a5c253316af6 1653 // GuiLib_VAR_UNSIGNED_CHAR
jmitc91516 0:a5c253316af6 1654 // GuiLib_VAR_SIGNED_CHAR
jmitc91516 0:a5c253316af6 1655 // GuiLib_VAR_UNSIGNED_INT
jmitc91516 0:a5c253316af6 1656 // GuiLib_VAR_SIGNED_INT
jmitc91516 0:a5c253316af6 1657 // GuiLib_VAR_UNSIGNED_LONG
jmitc91516 0:a5c253316af6 1658 // GuiLib_VAR_SIGNED_LONG
jmitc91516 0:a5c253316af6 1659 // GuiLib_VAR_FLOAT
jmitc91516 0:a5c253316af6 1660 // GuiLib_VAR_DOUBLE
jmitc91516 0:a5c253316af6 1661 // GuiLib_VAR_STRING
jmitc91516 0:a5c253316af6 1662 // Variable format - can be:
jmitc91516 0:a5c253316af6 1663 // GuiLib_FORMAT_DEC
jmitc91516 0:a5c253316af6 1664 // GuiLib_FORMAT_EXP
jmitc91516 0:a5c253316af6 1665 // GuiLib_FORMAT_HEX
jmitc91516 0:a5c253316af6 1666 // GuiLib_FORMAT_TIME_MMSS
jmitc91516 0:a5c253316af6 1667 // GuiLib_FORMAT_TIME_HHMM_24
jmitc91516 0:a5c253316af6 1668 // GuiLib_FORMAT_TIME_HHMMSS_24
jmitc91516 0:a5c253316af6 1669 // GuiLib_FORMAT_TIME_HHMM_12_ampm
jmitc91516 0:a5c253316af6 1670 // GuiLib_FORMAT_TIME_HHMMSS_12_ampm
jmitc91516 0:a5c253316af6 1671 // GuiLib_FORMAT_TIME_HHMM_12_AMPM
jmitc91516 0:a5c253316af6 1672 // GuiLib_FORMAT_TIME_HHMMSS_12_AMPM
jmitc91516 0:a5c253316af6 1673 // Variable format field width
jmitc91516 0:a5c253316af6 1674 // Variable format alignment - can be:
jmitc91516 0:a5c253316af6 1675 // GuiLib_FORMAT_ALIGNMENT_LEFT
jmitc91516 0:a5c253316af6 1676 // GuiLib_FORMAT_ALIGNMENT_CENTER
jmitc91516 0:a5c253316af6 1677 // GuiLib_FORMAT_ALIGNMENT_RIGHT
jmitc91516 0:a5c253316af6 1678 // Variable format decimals
jmitc91516 0:a5c253316af6 1679 // Variable format show sign (true or false)
jmitc91516 0:a5c253316af6 1680 // Variable format zero padding (true or false)
jmitc91516 0:a5c253316af6 1681 // Variable format trailing zeros (true or false)
jmitc91516 0:a5c253316af6 1682 // Variable format thousands separator (true or false)
jmitc91516 0:a5c253316af6 1683 // Alignment
jmitc91516 0:a5c253316af6 1684 // Ps mode
jmitc91516 0:a5c253316af6 1685 // Transparent
jmitc91516 0:a5c253316af6 1686 // Underlining
jmitc91516 0:a5c253316af6 1687 // Back box size X (0 = none)
jmitc91516 0:a5c253316af6 1688 // Back box size Y1 (height above base line, 0 = default font box)
jmitc91516 0:a5c253316af6 1689 // Back box size Y2 (height below base line, 0 = default font box)
jmitc91516 0:a5c253316af6 1690 // Extra back box pixels
jmitc91516 0:a5c253316af6 1691 // Text color
jmitc91516 0:a5c253316af6 1692 // Background box color
jmitc91516 0:a5c253316af6 1693 //
jmitc91516 0:a5c253316af6 1694 // Output:
jmitc91516 0:a5c253316af6 1695 // -------
jmitc91516 0:a5c253316af6 1696 // None
jmitc91516 0:a5c253316af6 1697 //
jmitc91516 0:a5c253316af6 1698 extern void GuiLib_DrawVar(
jmitc91516 0:a5c253316af6 1699 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 1700 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 1701 GuiConst_INT16U FontNo,
jmitc91516 0:a5c253316af6 1702 void PrefixLocate *VarPtr,
jmitc91516 0:a5c253316af6 1703 GuiConst_INT8U VarType,
jmitc91516 0:a5c253316af6 1704 GuiConst_INT8U FormatterFormat,
jmitc91516 0:a5c253316af6 1705 GuiConst_INT8U FormatterFieldWidth,
jmitc91516 0:a5c253316af6 1706 GuiConst_INT8U FormatterAlignment,
jmitc91516 0:a5c253316af6 1707 GuiConst_INT8U FormatterDecimals,
jmitc91516 0:a5c253316af6 1708 GuiConst_INT8U FormatterShowSign,
jmitc91516 0:a5c253316af6 1709 GuiConst_INT8U FormatterZeroPadding,
jmitc91516 0:a5c253316af6 1710 GuiConst_INT8U FormatterTrailingZeros,
jmitc91516 0:a5c253316af6 1711 GuiConst_INT8U FormatterThousandsSeparator,
jmitc91516 0:a5c253316af6 1712 GuiConst_INT8U Alignment,
jmitc91516 0:a5c253316af6 1713 GuiConst_INT8U PsWriting,
jmitc91516 0:a5c253316af6 1714 GuiConst_INT8U Transparent,
jmitc91516 0:a5c253316af6 1715 GuiConst_INT8U Underlining,
jmitc91516 0:a5c253316af6 1716 GuiConst_INT16S BackBoxSizeX,
jmitc91516 0:a5c253316af6 1717 GuiConst_INT16S BackBoxSizeY1,
jmitc91516 0:a5c253316af6 1718 GuiConst_INT16S BackBoxSizeY2,
jmitc91516 0:a5c253316af6 1719 GuiConst_INT8U BackBorderPixels,
jmitc91516 0:a5c253316af6 1720 GuiConst_INTCOLOR ForeColor,
jmitc91516 0:a5c253316af6 1721 GuiConst_INTCOLOR BackColor);
jmitc91516 0:a5c253316af6 1722 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1723
jmitc91516 0:a5c253316af6 1724
jmitc91516 0:a5c253316af6 1725 // =============================================================================
jmitc91516 0:a5c253316af6 1726 // GuiLib_Init
jmitc91516 0:a5c253316af6 1727 // ===========
jmitc91516 0:a5c253316af6 1728 //
jmitc91516 0:a5c253316af6 1729 // Initialises the easyGUI library module.
jmitc91516 0:a5c253316af6 1730 // MUST be called at application startup, before using the easyGUI library.
jmitc91516 0:a5c253316af6 1731 //
jmitc91516 0:a5c253316af6 1732 // Input:
jmitc91516 0:a5c253316af6 1733 // ------
jmitc91516 0:a5c253316af6 1734 // None
jmitc91516 0:a5c253316af6 1735 //
jmitc91516 0:a5c253316af6 1736 // Output:
jmitc91516 0:a5c253316af6 1737 // -------
jmitc91516 0:a5c253316af6 1738 // None
jmitc91516 0:a5c253316af6 1739 //
jmitc91516 0:a5c253316af6 1740 extern void GuiLib_Init(void);
jmitc91516 0:a5c253316af6 1741 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1742
jmitc91516 0:a5c253316af6 1743
jmitc91516 0:a5c253316af6 1744 // =============================================================================
jmitc91516 0:a5c253316af6 1745 // GuiLib_Clear
jmitc91516 0:a5c253316af6 1746 // ============
jmitc91516 0:a5c253316af6 1747 //
jmitc91516 0:a5c253316af6 1748 // Clears the screen, and resets the easyGUI system.
jmitc91516 0:a5c253316af6 1749 //
jmitc91516 0:a5c253316af6 1750 // Input:
jmitc91516 0:a5c253316af6 1751 // ------
jmitc91516 0:a5c253316af6 1752 // None
jmitc91516 0:a5c253316af6 1753 //
jmitc91516 0:a5c253316af6 1754 // Output:
jmitc91516 0:a5c253316af6 1755 // -------
jmitc91516 0:a5c253316af6 1756 // None
jmitc91516 0:a5c253316af6 1757 //
jmitc91516 0:a5c253316af6 1758 extern void GuiLib_Clear(void);
jmitc91516 0:a5c253316af6 1759 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1760
jmitc91516 0:a5c253316af6 1761
jmitc91516 0:a5c253316af6 1762 #ifdef GuiConst_CHARMODE_UNICODE
jmitc91516 0:a5c253316af6 1763
jmitc91516 0:a5c253316af6 1764 // =============================================================================
jmitc91516 0:a5c253316af6 1765 // GuiLib_UnicodeStrLen
jmitc91516 0:a5c253316af6 1766 // ====================
jmitc91516 0:a5c253316af6 1767 //
jmitc91516 0:a5c253316af6 1768 // Calculates length of Unicode string.
jmitc91516 0:a5c253316af6 1769 // This function is equivalent to the ANSI character mode strlen function.
jmitc91516 0:a5c253316af6 1770 //
jmitc91516 0:a5c253316af6 1771 // Input:
jmitc91516 0:a5c253316af6 1772 // ------
jmitc91516 0:a5c253316af6 1773 // Unicode string reference
jmitc91516 0:a5c253316af6 1774 //
jmitc91516 0:a5c253316af6 1775 // Output:
jmitc91516 0:a5c253316af6 1776 // -------
jmitc91516 0:a5c253316af6 1777 // Length in characters, excluding zero termination
jmitc91516 0:a5c253316af6 1778 //
jmitc91516 0:a5c253316af6 1779 extern GuiConst_INT16U GuiLib_UnicodeStrLen(
jmitc91516 0:a5c253316af6 1780 GuiConst_TEXT PrefixLocate *S);
jmitc91516 0:a5c253316af6 1781 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1782
jmitc91516 0:a5c253316af6 1783
jmitc91516 0:a5c253316af6 1784 // =============================================================================
jmitc91516 0:a5c253316af6 1785 // GuiLib_StrAnsiToUnicode
jmitc91516 0:a5c253316af6 1786 // =======================
jmitc91516 0:a5c253316af6 1787 //
jmitc91516 0:a5c253316af6 1788 // Converts ANSI string to Unicode string.
jmitc91516 0:a5c253316af6 1789 //
jmitc91516 0:a5c253316af6 1790 // Input:
jmitc91516 0:a5c253316af6 1791 // ------
jmitc91516 0:a5c253316af6 1792 // ANSI and Unicode string references
jmitc91516 0:a5c253316af6 1793 // Unicode string must have sufficient space
jmitc91516 0:a5c253316af6 1794 //
jmitc91516 0:a5c253316af6 1795 // Output:
jmitc91516 0:a5c253316af6 1796 // -------
jmitc91516 0:a5c253316af6 1797 // None
jmitc91516 0:a5c253316af6 1798 //
jmitc91516 0:a5c253316af6 1799 extern void GuiLib_StrAnsiToUnicode(
jmitc91516 0:a5c253316af6 1800 GuiConst_TEXT PrefixLocate *S2,
jmitc91516 0:a5c253316af6 1801 GuiConst_CHAR PrefixLocate *S1);
jmitc91516 0:a5c253316af6 1802 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1803
jmitc91516 0:a5c253316af6 1804
jmitc91516 0:a5c253316af6 1805 // =============================================================================
jmitc91516 0:a5c253316af6 1806 // GuiLib_UnicodeStrCmp
jmitc91516 0:a5c253316af6 1807 // ====================
jmitc91516 0:a5c253316af6 1808 //
jmitc91516 0:a5c253316af6 1809 // Compares two Unicode strings.
jmitc91516 0:a5c253316af6 1810 // This function is equivalent to the ANSI character mode strcmp function.
jmitc91516 0:a5c253316af6 1811 //
jmitc91516 0:a5c253316af6 1812 // Input:
jmitc91516 0:a5c253316af6 1813 // ------
jmitc91516 0:a5c253316af6 1814 // Unicode string references
jmitc91516 0:a5c253316af6 1815 //
jmitc91516 0:a5c253316af6 1816 // Output:
jmitc91516 0:a5c253316af6 1817 // -------
jmitc91516 0:a5c253316af6 1818 // <0: S1 is less than S2
jmitc91516 0:a5c253316af6 1819 // =0: S1 and S2 are equal
jmitc91516 0:a5c253316af6 1820 // >0: S1 is greater than S2
jmitc91516 0:a5c253316af6 1821 //
jmitc91516 0:a5c253316af6 1822 GuiConst_INT16S GuiLib_UnicodeStrCmp(
jmitc91516 0:a5c253316af6 1823 GuiConst_TEXT PrefixLocate *S1,
jmitc91516 0:a5c253316af6 1824 GuiConst_TEXT PrefixLocate *S2);
jmitc91516 0:a5c253316af6 1825 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1826
jmitc91516 0:a5c253316af6 1827
jmitc91516 0:a5c253316af6 1828 // =============================================================================
jmitc91516 0:a5c253316af6 1829 // GuiLib_UnicodeStrNCmp
jmitc91516 0:a5c253316af6 1830 // =====================
jmitc91516 0:a5c253316af6 1831 //
jmitc91516 0:a5c253316af6 1832 // Compares two Unicode strings, until the N'th character.
jmitc91516 0:a5c253316af6 1833 // This function is equivalent to the ANSI character mode strncmp function.
jmitc91516 0:a5c253316af6 1834 //
jmitc91516 0:a5c253316af6 1835 // Input:
jmitc91516 0:a5c253316af6 1836 // ------
jmitc91516 0:a5c253316af6 1837 // Unicode string references
jmitc91516 0:a5c253316af6 1838 // Character count to compare
jmitc91516 0:a5c253316af6 1839 //
jmitc91516 0:a5c253316af6 1840 // Output:
jmitc91516 0:a5c253316af6 1841 // -------
jmitc91516 0:a5c253316af6 1842 // <0: S1 is less than S2 inside the N characters
jmitc91516 0:a5c253316af6 1843 // =0: S1 and S2 are equal inside the N characters
jmitc91516 0:a5c253316af6 1844 // >0: S1 is greater than S2 inside the N characters
jmitc91516 0:a5c253316af6 1845 //
jmitc91516 0:a5c253316af6 1846 GuiConst_INT16S GuiLib_UnicodeStrNCmp(
jmitc91516 0:a5c253316af6 1847 GuiConst_TEXT PrefixLocate *S1,
jmitc91516 0:a5c253316af6 1848 GuiConst_TEXT PrefixLocate *S2,
jmitc91516 0:a5c253316af6 1849 GuiConst_INT16U StrLen);
jmitc91516 0:a5c253316af6 1850 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1851
jmitc91516 0:a5c253316af6 1852
jmitc91516 0:a5c253316af6 1853 // =============================================================================
jmitc91516 0:a5c253316af6 1854 // GuiLib_UnicodeStrCpy
jmitc91516 0:a5c253316af6 1855 // ====================
jmitc91516 0:a5c253316af6 1856 //
jmitc91516 0:a5c253316af6 1857 // Copy from one Unicode string to another.
jmitc91516 0:a5c253316af6 1858 // This function is equivalent to the ANSI character mode strcpy function
jmitc91516 0:a5c253316af6 1859 //
jmitc91516 0:a5c253316af6 1860 // Input:
jmitc91516 0:a5c253316af6 1861 // ------
jmitc91516 0:a5c253316af6 1862 // S1: Unicode source string reference
jmitc91516 0:a5c253316af6 1863 // S2: Unicode destination string reference
jmitc91516 0:a5c253316af6 1864 // Unicode destination string must have sufficient space
jmitc91516 0:a5c253316af6 1865 //
jmitc91516 0:a5c253316af6 1866 // Output:
jmitc91516 0:a5c253316af6 1867 // -------
jmitc91516 0:a5c253316af6 1868 // None
jmitc91516 0:a5c253316af6 1869 //
jmitc91516 0:a5c253316af6 1870 void GuiLib_UnicodeStrCpy(
jmitc91516 0:a5c253316af6 1871 GuiConst_TEXT PrefixLocate *S2,
jmitc91516 0:a5c253316af6 1872 GuiConst_TEXT PrefixLocate *S1);
jmitc91516 0:a5c253316af6 1873 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1874
jmitc91516 0:a5c253316af6 1875
jmitc91516 0:a5c253316af6 1876 // =============================================================================
jmitc91516 0:a5c253316af6 1877 // GuiLib_UnicodeStrNCpy
jmitc91516 0:a5c253316af6 1878 // =====================
jmitc91516 0:a5c253316af6 1879 //
jmitc91516 0:a5c253316af6 1880 // Copy from one Unicode string to another. No more than source StrLen bytes are
jmitc91516 0:a5c253316af6 1881 // copied.
jmitc91516 0:a5c253316af6 1882 // Bytes following a source null byte are not copied.
jmitc91516 0:a5c253316af6 1883 // If needed target is padded with null bytes until reaching StrLen.
jmitc91516 0:a5c253316af6 1884 // This function is equivalent to the ANSI character mode strncpy function.
jmitc91516 0:a5c253316af6 1885 //
jmitc91516 0:a5c253316af6 1886 // Input:
jmitc91516 0:a5c253316af6 1887 // ------
jmitc91516 0:a5c253316af6 1888 // S1: Unicode source string reference
jmitc91516 0:a5c253316af6 1889 // S2: Unicode destination string reference
jmitc91516 0:a5c253316af6 1890 // StrLen: Number of characters to copy
jmitc91516 0:a5c253316af6 1891 // Unicode destination string must have sufficient space
jmitc91516 0:a5c253316af6 1892 //
jmitc91516 0:a5c253316af6 1893 // Output:
jmitc91516 0:a5c253316af6 1894 // -------
jmitc91516 0:a5c253316af6 1895 // None
jmitc91516 0:a5c253316af6 1896 //
jmitc91516 0:a5c253316af6 1897 void GuiLib_UnicodeStrNCpy(
jmitc91516 0:a5c253316af6 1898 GuiConst_TEXT PrefixLocate *S2,
jmitc91516 0:a5c253316af6 1899 GuiConst_TEXT PrefixLocate *S1,
jmitc91516 0:a5c253316af6 1900 GuiConst_INT16U StrLen);
jmitc91516 0:a5c253316af6 1901 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1902
jmitc91516 0:a5c253316af6 1903 #endif
jmitc91516 0:a5c253316af6 1904
jmitc91516 0:a5c253316af6 1905
jmitc91516 0:a5c253316af6 1906 // =============================================================================
jmitc91516 0:a5c253316af6 1907 // GuiLib_ShowScreen
jmitc91516 0:a5c253316af6 1908 // =================
jmitc91516 0:a5c253316af6 1909 //
jmitc91516 0:a5c253316af6 1910 // Instructs structure drawing task to draw a complete structure.
jmitc91516 0:a5c253316af6 1911 //
jmitc91516 0:a5c253316af6 1912 // Input:
jmitc91516 0:a5c253316af6 1913 // ------
jmitc91516 0:a5c253316af6 1914 // Structure ID
jmitc91516 0:a5c253316af6 1915 // Active cursor field No. -
jmitc91516 0:a5c253316af6 1916 // use GuiLib_NO_CURSOR if there is no cursor to show
jmitc91516 0:a5c253316af6 1917 // Maintain or erase old AutoReadraw fields -
jmitc91516 0:a5c253316af6 1918 // use GuiLib_NO_RESET_AUTO_REDRAW or GuiLib_RESET_AUTO_REDRAW
jmitc91516 0:a5c253316af6 1919 //
jmitc91516 0:a5c253316af6 1920 // Output:
jmitc91516 0:a5c253316af6 1921 // -------
jmitc91516 0:a5c253316af6 1922 // None
jmitc91516 0:a5c253316af6 1923 //
jmitc91516 0:a5c253316af6 1924 extern void GuiLib_ShowScreen(
jmitc91516 0:a5c253316af6 1925 const GuiConst_INT16U StructureNdx,
jmitc91516 0:a5c253316af6 1926 GuiConst_INT16S CursorFieldToShow,
jmitc91516 0:a5c253316af6 1927 GuiConst_INT8U ResetAutoRedraw);
jmitc91516 0:a5c253316af6 1928 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1929
jmitc91516 0:a5c253316af6 1930
jmitc91516 0:a5c253316af6 1931 // =============================================================================
jmitc91516 0:a5c253316af6 1932 // GuiLib_GetTextLanguagePtr
jmitc91516 0:a5c253316af6 1933 // =========================
jmitc91516 0:a5c253316af6 1934 //
jmitc91516 0:a5c253316af6 1935 // Returns pointer to text in structure
jmitc91516 0:a5c253316af6 1936 // Language of selected text can be freely selected, no matter what language
jmitc91516 0:a5c253316af6 1937 // is active
jmitc91516 0:a5c253316af6 1938 //
jmitc91516 0:a5c253316af6 1939 // Input:
jmitc91516 0:a5c253316af6 1940 // ------
jmitc91516 0:a5c253316af6 1941 // Structure ID
jmitc91516 0:a5c253316af6 1942 // Text No. - index 0 is first text in structure, Item types other than Texts
jmitc91516 0:a5c253316af6 1943 // and Paragraph are ignored
jmitc91516 0:a5c253316af6 1944 //
jmitc91516 0:a5c253316af6 1945 // Output:
jmitc91516 0:a5c253316af6 1946 // -------
jmitc91516 0:a5c253316af6 1947 // Pointer to text based on structure, text No. and current language
jmitc91516 0:a5c253316af6 1948 // Returns Nil if no text was found
jmitc91516 0:a5c253316af6 1949 //
jmitc91516 0:a5c253316af6 1950 extern GuiConst_TEXT PrefixLocate *GuiLib_GetTextLanguagePtr(
jmitc91516 0:a5c253316af6 1951 const GuiConst_INT16U StructureNdx,
jmitc91516 0:a5c253316af6 1952 GuiConst_INT16U TextNo,
jmitc91516 0:a5c253316af6 1953 GuiConst_INT16S LanguageIndex);
jmitc91516 0:a5c253316af6 1954 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1955
jmitc91516 0:a5c253316af6 1956
jmitc91516 0:a5c253316af6 1957 // =============================================================================
jmitc91516 0:a5c253316af6 1958 // GuiLib_GetTextPtr
jmitc91516 0:a5c253316af6 1959 // =================
jmitc91516 0:a5c253316af6 1960 //
jmitc91516 0:a5c253316af6 1961 // Returns pointer to text in structure
jmitc91516 0:a5c253316af6 1962 //
jmitc91516 0:a5c253316af6 1963 // Input:
jmitc91516 0:a5c253316af6 1964 // ------
jmitc91516 0:a5c253316af6 1965 // Structure ID
jmitc91516 0:a5c253316af6 1966 // Text No. - index 0 is first text in the structure, item types other than
jmitc91516 0:a5c253316af6 1967 // Text and Paragraph are ignored
jmitc91516 0:a5c253316af6 1968 //
jmitc91516 0:a5c253316af6 1969 // Output:
jmitc91516 0:a5c253316af6 1970 // -------
jmitc91516 0:a5c253316af6 1971 // Pointer to text based on structure, text No. and current language
jmitc91516 0:a5c253316af6 1972 // Returns Nil if no text was found
jmitc91516 0:a5c253316af6 1973 //
jmitc91516 0:a5c253316af6 1974 extern GuiConst_TEXT PrefixLocate *GuiLib_GetTextPtr(
jmitc91516 0:a5c253316af6 1975 const GuiConst_INT16U StructureNdx,
jmitc91516 0:a5c253316af6 1976 GuiConst_INT16U TextNo);
jmitc91516 0:a5c253316af6 1977 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 1978
jmitc91516 0:a5c253316af6 1979
jmitc91516 0:a5c253316af6 1980 // =============================================================================
jmitc91516 0:a5c253316af6 1981 // GuiLib_GetTextWidth
jmitc91516 0:a5c253316af6 1982 // ===================
jmitc91516 0:a5c253316af6 1983 //
jmitc91516 0:a5c253316af6 1984 // Returns width of text in pixels
jmitc91516 0:a5c253316af6 1985 //
jmitc91516 0:a5c253316af6 1986 // Input:
jmitc91516 0:a5c253316af6 1987 // ------
jmitc91516 0:a5c253316af6 1988 // Pointer to text string
jmitc91516 0:a5c253316af6 1989 // Pointer to font
jmitc91516 0:a5c253316af6 1990 // PS writing mode - can be:
jmitc91516 0:a5c253316af6 1991 // GuiLib_PS_OFF No proportional writing
jmitc91516 0:a5c253316af6 1992 // GuiLib_PS_ON Normal proportional writing
jmitc91516 0:a5c253316af6 1993 // GuiLib_PS_NUM Numerical proportional writing
jmitc91516 0:a5c253316af6 1994 //
jmitc91516 0:a5c253316af6 1995 // Output:
jmitc91516 0:a5c253316af6 1996 // -------
jmitc91516 0:a5c253316af6 1997 // Width of text in pixels, returns zero if an error is encountered
jmitc91516 0:a5c253316af6 1998 //
jmitc91516 0:a5c253316af6 1999 extern GuiConst_INT16U GuiLib_GetTextWidth(
jmitc91516 0:a5c253316af6 2000 GuiConst_TEXT PrefixLocate *String,
jmitc91516 0:a5c253316af6 2001 GuiLib_FontRecConstPtr Font,
jmitc91516 0:a5c253316af6 2002 GuiConst_INT8U PsWriting);
jmitc91516 0:a5c253316af6 2003 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2004
jmitc91516 0:a5c253316af6 2005
jmitc91516 0:a5c253316af6 2006 // =============================================================================
jmitc91516 0:a5c253316af6 2007 // GuiLib_GetCharCode
jmitc91516 0:a5c253316af6 2008 // ==================
jmitc91516 0:a5c253316af6 2009 //
jmitc91516 0:a5c253316af6 2010 // Returns ANSI or Unicode code of specific character in string
jmitc91516 0:a5c253316af6 2011 //
jmitc91516 0:a5c253316af6 2012 // Input:
jmitc91516 0:a5c253316af6 2013 // ------
jmitc91516 0:a5c253316af6 2014 // Structure ID
jmitc91516 0:a5c253316af6 2015 // Text No. - index 0 is first text in the structure, item types other than
jmitc91516 0:a5c253316af6 2016 // Text and Paragraph are ignored
jmitc91516 0:a5c253316af6 2017 // Character position
jmitc91516 0:a5c253316af6 2018 // Omit control codes, Control codes are soft and hard line breaks
jmitc91516 0:a5c253316af6 2019 // 0 - count all charactes
jmitc91516 0:a5c253316af6 2020 // 1 - omit control codes during counting
jmitc91516 0:a5c253316af6 2021 //
jmitc91516 0:a5c253316af6 2022 // Output:
jmitc91516 0:a5c253316af6 2023 // -------
jmitc91516 0:a5c253316af6 2024 // ANSI or Unicode code of character, returns zero if an error is encountered
jmitc91516 0:a5c253316af6 2025 //
jmitc91516 0:a5c253316af6 2026 extern GuiConst_TEXT GuiLib_GetCharCode(
jmitc91516 0:a5c253316af6 2027 const GuiConst_INT16U StructureNdx,
jmitc91516 0:a5c253316af6 2028 GuiConst_INT16U TextNo,
jmitc91516 0:a5c253316af6 2029 GuiConst_INT16U CharNo,
jmitc91516 0:a5c253316af6 2030 GuiConst_INT16U OmitCtrlCode);
jmitc91516 0:a5c253316af6 2031 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2032
jmitc91516 0:a5c253316af6 2033
jmitc91516 0:a5c253316af6 2034 // =============================================================================
jmitc91516 0:a5c253316af6 2035 // GuiLib_GuiLib_ClearPositionCallbacks
jmitc91516 0:a5c253316af6 2036 // ====================================
jmitc91516 0:a5c253316af6 2037 //
jmitc91516 0:a5c253316af6 2038 // Resets all position callback function references - no callbacks will then
jmitc91516 0:a5c253316af6 2039 // happen, until GuiLib_SetPositionCallbackFunc has been called
jmitc91516 0:a5c253316af6 2040 //
jmitc91516 0:a5c253316af6 2041 // Input:
jmitc91516 0:a5c253316af6 2042 // ------
jmitc91516 0:a5c253316af6 2043 // None
jmitc91516 0:a5c253316af6 2044 //
jmitc91516 0:a5c253316af6 2045 // Output:
jmitc91516 0:a5c253316af6 2046 // -------
jmitc91516 0:a5c253316af6 2047 // None
jmitc91516 0:a5c253316af6 2048 //
jmitc91516 0:a5c253316af6 2049 extern void GuiLib_ClearPositionCallbacks(void);
jmitc91516 0:a5c253316af6 2050
jmitc91516 0:a5c253316af6 2051
jmitc91516 0:a5c253316af6 2052 // =============================================================================
jmitc91516 0:a5c253316af6 2053 // GuiLib_SetPositionCallbackFunc
jmitc91516 0:a5c253316af6 2054 // ==============================
jmitc91516 0:a5c253316af6 2055 //
jmitc91516 0:a5c253316af6 2056 // Defines a callback function for a specific position callback item
jmitc91516 0:a5c253316af6 2057 // The callback function will be called each time a structure containing a
jmitc91516 0:a5c253316af6 2058 // position callback item with the same index number. The callback will contain
jmitc91516 0:a5c253316af6 2059 // the index number and the current X,Y display coordinates.
jmitc91516 0:a5c253316af6 2060 //
jmitc91516 0:a5c253316af6 2061 // Input:
jmitc91516 0:a5c253316af6 2062 // ------
jmitc91516 0:a5c253316af6 2063 // Position callback index No.
jmitc91516 0:a5c253316af6 2064 // Position callback function - function style is F(IndexNo, X, Y)
jmitc91516 0:a5c253316af6 2065 //
jmitc91516 0:a5c253316af6 2066 // Output:
jmitc91516 0:a5c253316af6 2067 // -------
jmitc91516 0:a5c253316af6 2068 // None
jmitc91516 0:a5c253316af6 2069 //
jmitc91516 0:a5c253316af6 2070 extern void GuiLib_SetPositionCallbackFunc(
jmitc91516 0:a5c253316af6 2071 GuiConst_INT16U IndexNo,
jmitc91516 0:a5c253316af6 2072 void (*PosCallbackFunc) (GuiConst_INT16U IndexNo,
jmitc91516 0:a5c253316af6 2073 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 2074 GuiConst_INT16S Y));
jmitc91516 0:a5c253316af6 2075
jmitc91516 0:a5c253316af6 2076
jmitc91516 0:a5c253316af6 2077 #ifdef GuiConst_BLINK_SUPPORT_ON
jmitc91516 0:a5c253316af6 2078
jmitc91516 0:a5c253316af6 2079 // =============================================================================
jmitc91516 0:a5c253316af6 2080 // GuiLib_GetBlinkingCharCode
jmitc91516 0:a5c253316af6 2081 // ==========================
jmitc91516 0:a5c253316af6 2082 //
jmitc91516 0:a5c253316af6 2083 // Returns ANSI or Unicode code of character in string marked as blinking field
jmitc91516 0:a5c253316af6 2084 //
jmitc91516 0:a5c253316af6 2085 // Input:
jmitc91516 0:a5c253316af6 2086 // ------
jmitc91516 0:a5c253316af6 2087 // Blinking item No.
jmitc91516 0:a5c253316af6 2088 // Character position
jmitc91516 0:a5c253316af6 2089 // Omit control codes, Control codes are soft and hard line breaks
jmitc91516 0:a5c253316af6 2090 // 0 - count all charactes
jmitc91516 0:a5c253316af6 2091 // 1 - omit control codes during counting
jmitc91516 0:a5c253316af6 2092 //
jmitc91516 0:a5c253316af6 2093 // Output:
jmitc91516 0:a5c253316af6 2094 // -------
jmitc91516 0:a5c253316af6 2095 // ANSI or Unicode code of character, returns zero if an error is encountered
jmitc91516 0:a5c253316af6 2096 //
jmitc91516 0:a5c253316af6 2097 extern GuiConst_TEXT GuiLib_GetBlinkingCharCode(
jmitc91516 0:a5c253316af6 2098 GuiConst_INT16U BlinkFieldNo,
jmitc91516 0:a5c253316af6 2099 GuiConst_INT16U CharNo,
jmitc91516 0:a5c253316af6 2100 GuiConst_INT16U OmitCtrlCode);
jmitc91516 0:a5c253316af6 2101 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2102
jmitc91516 0:a5c253316af6 2103 #endif
jmitc91516 0:a5c253316af6 2104
jmitc91516 0:a5c253316af6 2105
jmitc91516 0:a5c253316af6 2106 // =============================================================================
jmitc91516 0:a5c253316af6 2107 // GuiLib_SetLanguage
jmitc91516 0:a5c253316af6 2108 // ==================
jmitc91516 0:a5c253316af6 2109 //
jmitc91516 0:a5c253316af6 2110 // Selects current language. Index zero is the reference language.
jmitc91516 0:a5c253316af6 2111 //
jmitc91516 0:a5c253316af6 2112 // Input:
jmitc91516 0:a5c253316af6 2113 // ------
jmitc91516 0:a5c253316af6 2114 // Language index
jmitc91516 0:a5c253316af6 2115 //
jmitc91516 0:a5c253316af6 2116 // Output:
jmitc91516 0:a5c253316af6 2117 // -------
jmitc91516 0:a5c253316af6 2118 // None
jmitc91516 0:a5c253316af6 2119 //
jmitc91516 0:a5c253316af6 2120 extern void GuiLib_SetLanguage(
jmitc91516 0:a5c253316af6 2121 GuiConst_INT16S NewLanguage);
jmitc91516 0:a5c253316af6 2122 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2123
jmitc91516 0:a5c253316af6 2124
jmitc91516 0:a5c253316af6 2125 #ifdef GuiConst_CURSOR_SUPPORT_ON
jmitc91516 0:a5c253316af6 2126
jmitc91516 0:a5c253316af6 2127 // =============================================================================
jmitc91516 0:a5c253316af6 2128 // GuiLib_Cursor_Hide
jmitc91516 0:a5c253316af6 2129 // ==================
jmitc91516 0:a5c253316af6 2130 //
jmitc91516 0:a5c253316af6 2131 // Hides cursor field.
jmitc91516 0:a5c253316af6 2132 //
jmitc91516 0:a5c253316af6 2133 // Input:
jmitc91516 0:a5c253316af6 2134 // ------
jmitc91516 0:a5c253316af6 2135 // None
jmitc91516 0:a5c253316af6 2136 //
jmitc91516 0:a5c253316af6 2137 // Output:
jmitc91516 0:a5c253316af6 2138 // -------
jmitc91516 0:a5c253316af6 2139 // None
jmitc91516 0:a5c253316af6 2140 //
jmitc91516 0:a5c253316af6 2141 extern void GuiLib_Cursor_Hide(void);
jmitc91516 0:a5c253316af6 2142 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2143
jmitc91516 0:a5c253316af6 2144
jmitc91516 0:a5c253316af6 2145 // =============================================================================
jmitc91516 0:a5c253316af6 2146 // GuiLib_IsCursorFieldInUse
jmitc91516 0:a5c253316af6 2147 // =========================
jmitc91516 0:a5c253316af6 2148 //
jmitc91516 0:a5c253316af6 2149 // Reports if a cursor field is active.
jmitc91516 0:a5c253316af6 2150 //
jmitc91516 0:a5c253316af6 2151 // Input:
jmitc91516 0:a5c253316af6 2152 // ------
jmitc91516 0:a5c253316af6 2153 // Query cursor field No.
jmitc91516 0:a5c253316af6 2154 //
jmitc91516 0:a5c253316af6 2155 // Output:
jmitc91516 0:a5c253316af6 2156 // -------
jmitc91516 0:a5c253316af6 2157 // 0 = Cursor field not active
jmitc91516 0:a5c253316af6 2158 // 1 = Cursor field active
jmitc91516 0:a5c253316af6 2159 //
jmitc91516 0:a5c253316af6 2160 extern GuiConst_INT8U GuiLib_IsCursorFieldInUse(
jmitc91516 0:a5c253316af6 2161 GuiConst_INT16S AskCursorFieldNo);
jmitc91516 0:a5c253316af6 2162 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2163
jmitc91516 0:a5c253316af6 2164
jmitc91516 0:a5c253316af6 2165 // =============================================================================
jmitc91516 0:a5c253316af6 2166 // GuiLib_Cursor_Select
jmitc91516 0:a5c253316af6 2167 // ====================
jmitc91516 0:a5c253316af6 2168 //
jmitc91516 0:a5c253316af6 2169 // Makes requested cursor field active, redrawing both current and new cursor
jmitc91516 0:a5c253316af6 2170 // field.
jmitc91516 0:a5c253316af6 2171 //
jmitc91516 0:a5c253316af6 2172 // Input:
jmitc91516 0:a5c253316af6 2173 // ------
jmitc91516 0:a5c253316af6 2174 // New cursor field No.
jmitc91516 0:a5c253316af6 2175 // -1 hides cursor.
jmitc91516 0:a5c253316af6 2176 //
jmitc91516 0:a5c253316af6 2177 // Output:
jmitc91516 0:a5c253316af6 2178 // -------
jmitc91516 0:a5c253316af6 2179 // 0 = No change, requested cursor field is invalid
jmitc91516 0:a5c253316af6 2180 // 1 = Cursor moved // extern GuiConst_INT8U GuiLib_Cursor_Select(
jmitc91516 0:a5c253316af6 2181 // GuiConst_INT16S NewCursorFieldNo);
jmitc91516 0:a5c253316af6 2182 //
jmitc91516 0:a5c253316af6 2183 extern GuiConst_INT8U GuiLib_Cursor_Select(
jmitc91516 0:a5c253316af6 2184 GuiConst_INT16S NewCursorFieldNo);
jmitc91516 0:a5c253316af6 2185 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2186
jmitc91516 0:a5c253316af6 2187
jmitc91516 0:a5c253316af6 2188 // =============================================================================
jmitc91516 0:a5c253316af6 2189 // GuiLib_Cursor_Down
jmitc91516 0:a5c253316af6 2190 // ==================
jmitc91516 0:a5c253316af6 2191 //
jmitc91516 0:a5c253316af6 2192 // Makes next cursor field active, redrawing both current and new cursor field.
jmitc91516 0:a5c253316af6 2193 //
jmitc91516 0:a5c253316af6 2194 // Input:
jmitc91516 0:a5c253316af6 2195 // ------
jmitc91516 0:a5c253316af6 2196 // None
jmitc91516 0:a5c253316af6 2197 //
jmitc91516 0:a5c253316af6 2198 // Output:
jmitc91516 0:a5c253316af6 2199 // -------
jmitc91516 0:a5c253316af6 2200 // 0 = Cursor at end of range
jmitc91516 0:a5c253316af6 2201 // 1 = Cursor moved
jmitc91516 0:a5c253316af6 2202 //
jmitc91516 0:a5c253316af6 2203 extern GuiConst_INT8U GuiLib_Cursor_Down(void);
jmitc91516 0:a5c253316af6 2204 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2205
jmitc91516 0:a5c253316af6 2206
jmitc91516 0:a5c253316af6 2207 // =============================================================================
jmitc91516 0:a5c253316af6 2208 // GuiLib_Cursor_Up
jmitc91516 0:a5c253316af6 2209 // ================
jmitc91516 0:a5c253316af6 2210 //
jmitc91516 0:a5c253316af6 2211 // Makes previous cursor field active, redrawing both current and new cursor
jmitc91516 0:a5c253316af6 2212 // field.
jmitc91516 0:a5c253316af6 2213 //
jmitc91516 0:a5c253316af6 2214 // Input:
jmitc91516 0:a5c253316af6 2215 // ------
jmitc91516 0:a5c253316af6 2216 // None
jmitc91516 0:a5c253316af6 2217 //
jmitc91516 0:a5c253316af6 2218 // Output:
jmitc91516 0:a5c253316af6 2219 // -------
jmitc91516 0:a5c253316af6 2220 // 0 = Cursor at end of range
jmitc91516 0:a5c253316af6 2221 // 1 = Cursor moved
jmitc91516 0:a5c253316af6 2222 //
jmitc91516 0:a5c253316af6 2223 extern GuiConst_INT8U GuiLib_Cursor_Up(void);
jmitc91516 0:a5c253316af6 2224 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2225
jmitc91516 0:a5c253316af6 2226
jmitc91516 0:a5c253316af6 2227 // =============================================================================
jmitc91516 0:a5c253316af6 2228 // GuiLib_Cursor_Home
jmitc91516 0:a5c253316af6 2229 // ==================
jmitc91516 0:a5c253316af6 2230 //
jmitc91516 0:a5c253316af6 2231 // Makes first cursor field active, redrawing both current and new cursor
jmitc91516 0:a5c253316af6 2232 // field.
jmitc91516 0:a5c253316af6 2233 //
jmitc91516 0:a5c253316af6 2234 // Input:
jmitc91516 0:a5c253316af6 2235 // ------
jmitc91516 0:a5c253316af6 2236 // None
jmitc91516 0:a5c253316af6 2237 //
jmitc91516 0:a5c253316af6 2238 // Output:
jmitc91516 0:a5c253316af6 2239 // -------
jmitc91516 0:a5c253316af6 2240 // 0 = No change, first cursor field already active
jmitc91516 0:a5c253316af6 2241 // 1 = Cursor moved
jmitc91516 0:a5c253316af6 2242 //
jmitc91516 0:a5c253316af6 2243 extern GuiConst_INT8U GuiLib_Cursor_Home(void);
jmitc91516 0:a5c253316af6 2244 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2245
jmitc91516 0:a5c253316af6 2246
jmitc91516 0:a5c253316af6 2247 // =============================================================================
jmitc91516 0:a5c253316af6 2248 // GuiLib_Cursor_End
jmitc91516 0:a5c253316af6 2249 // =================
jmitc91516 0:a5c253316af6 2250 //
jmitc91516 0:a5c253316af6 2251 // Makes last cursor field active, redrawing both current and new cursor
jmitc91516 0:a5c253316af6 2252 // field.
jmitc91516 0:a5c253316af6 2253 //
jmitc91516 0:a5c253316af6 2254 // Input:
jmitc91516 0:a5c253316af6 2255 // ------
jmitc91516 0:a5c253316af6 2256 // None
jmitc91516 0:a5c253316af6 2257 //
jmitc91516 0:a5c253316af6 2258 // Output:
jmitc91516 0:a5c253316af6 2259 // -------
jmitc91516 0:a5c253316af6 2260 // 0 = No change, last cursor field already active
jmitc91516 0:a5c253316af6 2261 // 1 = Cursor moved
jmitc91516 0:a5c253316af6 2262 //
jmitc91516 0:a5c253316af6 2263 extern GuiConst_INT8U GuiLib_Cursor_End(void);
jmitc91516 0:a5c253316af6 2264 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2265
jmitc91516 0:a5c253316af6 2266 #endif
jmitc91516 0:a5c253316af6 2267
jmitc91516 0:a5c253316af6 2268
jmitc91516 0:a5c253316af6 2269 #ifdef GuiConst_BLINK_SUPPORT_ON
jmitc91516 0:a5c253316af6 2270
jmitc91516 0:a5c253316af6 2271 // =============================================================================
jmitc91516 0:a5c253316af6 2272 // GuiLib_BlinkBoxStart
jmitc91516 0:a5c253316af6 2273 // ====================
jmitc91516 0:a5c253316af6 2274 //
jmitc91516 0:a5c253316af6 2275 // Sets parameters for blinking box function
jmitc91516 0:a5c253316af6 2276 //
jmitc91516 0:a5c253316af6 2277 // Input:
jmitc91516 0:a5c253316af6 2278 // ------
jmitc91516 0:a5c253316af6 2279 // X1, Y1, X2, Y2: Blinking rectangle
jmitc91516 0:a5c253316af6 2280 // Rate: Blinking rate, in multiples of refresh rate, valid range 0-255
jmitc91516 0:a5c253316af6 2281 // Rate = 255 disables blinking, but makes an initial inverting of the
jmitc91516 0:a5c253316af6 2282 // rectangle
jmitc91516 0:a5c253316af6 2283 //
jmitc91516 0:a5c253316af6 2284 // Output:
jmitc91516 0:a5c253316af6 2285 // -------
jmitc91516 0:a5c253316af6 2286 // None
jmitc91516 0:a5c253316af6 2287 //
jmitc91516 0:a5c253316af6 2288 extern void GuiLib_BlinkBoxStart(
jmitc91516 0:a5c253316af6 2289 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 2290 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 2291 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 2292 GuiConst_INT16S Y2,
jmitc91516 0:a5c253316af6 2293 GuiConst_INT16S Rate);
jmitc91516 0:a5c253316af6 2294 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2295
jmitc91516 0:a5c253316af6 2296
jmitc91516 0:a5c253316af6 2297 // =============================================================================
jmitc91516 0:a5c253316af6 2298 // GuiLib_BlinkBoxStop
jmitc91516 0:a5c253316af6 2299 // ===================
jmitc91516 0:a5c253316af6 2300 //
jmitc91516 0:a5c253316af6 2301 // Stops blinking box function
jmitc91516 0:a5c253316af6 2302 //
jmitc91516 0:a5c253316af6 2303 // Input:
jmitc91516 0:a5c253316af6 2304 // ------
jmitc91516 0:a5c253316af6 2305 // None
jmitc91516 0:a5c253316af6 2306 //
jmitc91516 0:a5c253316af6 2307 // Output:
jmitc91516 0:a5c253316af6 2308 // -------
jmitc91516 0:a5c253316af6 2309 // None
jmitc91516 0:a5c253316af6 2310 //
jmitc91516 0:a5c253316af6 2311 extern void GuiLib_BlinkBoxStop(void);
jmitc91516 0:a5c253316af6 2312 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2313
jmitc91516 0:a5c253316af6 2314
jmitc91516 0:a5c253316af6 2315 // =============================================================================
jmitc91516 0:a5c253316af6 2316 // GuiLib_BlinkBoxMarkedItem
jmitc91516 0:a5c253316af6 2317 // =========================
jmitc91516 0:a5c253316af6 2318 //
jmitc91516 0:a5c253316af6 2319 // Sets parameters for blinking box function based on marked blink text field
jmitc91516 0:a5c253316af6 2320 //
jmitc91516 0:a5c253316af6 2321 // Input:
jmitc91516 0:a5c253316af6 2322 // ------
jmitc91516 0:a5c253316af6 2323 // BlinkFieldNo: Index No. to marked blink text field in structure
jmitc91516 0:a5c253316af6 2324 // CharNo: Character number in text, first character is No. 1
jmitc91516 0:a5c253316af6 2325 // CharNo = 0 means entire text
jmitc91516 0:a5c253316af6 2326 // Rate: Blinking rate, in multiples of refresh rate, valid range 0-255
jmitc91516 0:a5c253316af6 2327 // Rate = 255 disables blinking, but makes an initial marking of the
jmitc91516 0:a5c253316af6 2328 // character/text
jmitc91516 0:a5c253316af6 2329 //
jmitc91516 0:a5c253316af6 2330 // Output:
jmitc91516 0:a5c253316af6 2331 // -------
jmitc91516 0:a5c253316af6 2332 // None
jmitc91516 0:a5c253316af6 2333 //
jmitc91516 0:a5c253316af6 2334 extern void GuiLib_BlinkBoxMarkedItem(
jmitc91516 0:a5c253316af6 2335 GuiConst_INT16U BlinkFieldNo,
jmitc91516 0:a5c253316af6 2336 GuiConst_INT16U CharNo,
jmitc91516 0:a5c253316af6 2337 GuiConst_INT16S Rate);
jmitc91516 0:a5c253316af6 2338 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2339
jmitc91516 0:a5c253316af6 2340 // =============================================================================
jmitc91516 0:a5c253316af6 2341 // GuiLib_BlinkBoxMarkedItemStop
jmitc91516 0:a5c253316af6 2342 // =============================
jmitc91516 0:a5c253316af6 2343 //
jmitc91516 0:a5c253316af6 2344 // Stops blinking box function based on marked blink text field
jmitc91516 0:a5c253316af6 2345 //
jmitc91516 0:a5c253316af6 2346 // Input:
jmitc91516 0:a5c253316af6 2347 // ------
jmitc91516 0:a5c253316af6 2348 // BlinkFieldNo: Index No. to marked blink text field in structure
jmitc91516 0:a5c253316af6 2349 //
jmitc91516 0:a5c253316af6 2350 // Output:
jmitc91516 0:a5c253316af6 2351 // -------
jmitc91516 0:a5c253316af6 2352 // None
jmitc91516 0:a5c253316af6 2353 //
jmitc91516 0:a5c253316af6 2354 extern void GuiLib_BlinkBoxMarkedItemStop(
jmitc91516 0:a5c253316af6 2355 GuiConst_INT16U BlinkFieldNo);
jmitc91516 0:a5c253316af6 2356 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2357
jmitc91516 0:a5c253316af6 2358
jmitc91516 0:a5c253316af6 2359 // =============================================================================
jmitc91516 0:a5c253316af6 2360 // GuiLib_BlinkBoxMarkedItemUpdate
jmitc91516 0:a5c253316af6 2361 // ===============================
jmitc91516 0:a5c253316af6 2362 //
jmitc91516 0:a5c253316af6 2363 // Update parameters for blinking box function based on marked blink text field
jmitc91516 0:a5c253316af6 2364 //
jmitc91516 0:a5c253316af6 2365 // Input:
jmitc91516 0:a5c253316af6 2366 // ------
jmitc91516 0:a5c253316af6 2367 // BlinkFieldNo: Index No. to marked blink text field in structure
jmitc91516 0:a5c253316af6 2368 //
jmitc91516 0:a5c253316af6 2369 // Output:
jmitc91516 0:a5c253316af6 2370 // -------
jmitc91516 0:a5c253316af6 2371 // None
jmitc91516 0:a5c253316af6 2372 //
jmitc91516 0:a5c253316af6 2373 extern void GuiLib_BlinkBoxMarkedItemUpdate(
jmitc91516 0:a5c253316af6 2374 GuiConst_INT16U BlinkFieldNo);
jmitc91516 0:a5c253316af6 2375
jmitc91516 0:a5c253316af6 2376 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2377
jmitc91516 0:a5c253316af6 2378 #endif
jmitc91516 0:a5c253316af6 2379
jmitc91516 0:a5c253316af6 2380
jmitc91516 0:a5c253316af6 2381 // =============================================================================
jmitc91516 0:a5c253316af6 2382 // GuiLib_InvertBoxStart
jmitc91516 0:a5c253316af6 2383 // =====================
jmitc91516 0:a5c253316af6 2384 //
jmitc91516 0:a5c253316af6 2385 // Sets parameters for inverted box function
jmitc91516 0:a5c253316af6 2386 //
jmitc91516 0:a5c253316af6 2387 // Input:
jmitc91516 0:a5c253316af6 2388 // ------
jmitc91516 0:a5c253316af6 2389 // X1, Y1, X2, Y2: Inverted box rectangle
jmitc91516 0:a5c253316af6 2390 //
jmitc91516 0:a5c253316af6 2391 // Output:
jmitc91516 0:a5c253316af6 2392 // -------
jmitc91516 0:a5c253316af6 2393 // None
jmitc91516 0:a5c253316af6 2394 //
jmitc91516 0:a5c253316af6 2395 extern void GuiLib_InvertBoxStart(
jmitc91516 0:a5c253316af6 2396 GuiConst_INT16S X1,
jmitc91516 0:a5c253316af6 2397 GuiConst_INT16S Y1,
jmitc91516 0:a5c253316af6 2398 GuiConst_INT16S X2,
jmitc91516 0:a5c253316af6 2399 GuiConst_INT16S Y2);
jmitc91516 0:a5c253316af6 2400 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2401
jmitc91516 0:a5c253316af6 2402
jmitc91516 0:a5c253316af6 2403 // =============================================================================
jmitc91516 0:a5c253316af6 2404 // GuiLib_InvertBoxStop
jmitc91516 0:a5c253316af6 2405 // ====================
jmitc91516 0:a5c253316af6 2406 //
jmitc91516 0:a5c253316af6 2407 // Stops inverted box function
jmitc91516 0:a5c253316af6 2408 //
jmitc91516 0:a5c253316af6 2409 // Input:
jmitc91516 0:a5c253316af6 2410 // ------
jmitc91516 0:a5c253316af6 2411 // None
jmitc91516 0:a5c253316af6 2412 //
jmitc91516 0:a5c253316af6 2413 // Output:
jmitc91516 0:a5c253316af6 2414 // -------
jmitc91516 0:a5c253316af6 2415 // None
jmitc91516 0:a5c253316af6 2416 //
jmitc91516 0:a5c253316af6 2417 extern void GuiLib_InvertBoxStop(void);
jmitc91516 0:a5c253316af6 2418 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2419
jmitc91516 0:a5c253316af6 2420
jmitc91516 0:a5c253316af6 2421 #ifdef GuiConst_ITEM_TOUCHAREA_INUSE
jmitc91516 0:a5c253316af6 2422
jmitc91516 0:a5c253316af6 2423 // =============================================================================
jmitc91516 0:a5c253316af6 2424 // GuiLib_TouchCheck
jmitc91516 0:a5c253316af6 2425 // =================
jmitc91516 0:a5c253316af6 2426 //
jmitc91516 0:a5c253316af6 2427 // Returns touch area No. corresponding to the supplied coordinates.
jmitc91516 0:a5c253316af6 2428 // If no touch area is found at coordinates -1 is returned.
jmitc91516 0:a5c253316af6 2429 // Touch coordinates are converted to display coordinates, if conversion
jmitc91516 0:a5c253316af6 2430 // parameters have been set with the GuiLib_TouchAdjustSet function.
jmitc91516 0:a5c253316af6 2431 //
jmitc91516 0:a5c253316af6 2432 // Input:
jmitc91516 0:a5c253316af6 2433 // ------
jmitc91516 0:a5c253316af6 2434 // X, Y: Touch position in touch interface coordinates
jmitc91516 0:a5c253316af6 2435 //
jmitc91516 0:a5c253316af6 2436 // Output:
jmitc91516 0:a5c253316af6 2437 // -------
jmitc91516 0:a5c253316af6 2438 // -1 = No touch area found
jmitc91516 0:a5c253316af6 2439 // >=0 = Touch area No.
jmitc91516 0:a5c253316af6 2440 //
jmitc91516 0:a5c253316af6 2441 //
jmitc91516 0:a5c253316af6 2442 extern GuiConst_INT32S GuiLib_TouchCheck(
jmitc91516 0:a5c253316af6 2443 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 2444 GuiConst_INT16S Y);
jmitc91516 0:a5c253316af6 2445 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2446
jmitc91516 0:a5c253316af6 2447
jmitc91516 0:a5c253316af6 2448 // =============================================================================
jmitc91516 0:a5c253316af6 2449 // GuiLib_TouchGet
jmitc91516 0:a5c253316af6 2450 // ===============
jmitc91516 0:a5c253316af6 2451 //
jmitc91516 0:a5c253316af6 2452 // Performs the same action as GuiLib_TouchCheck, and additionally returns
jmitc91516 0:a5c253316af6 2453 // touch coordinates in display coordinates:
jmitc91516 0:a5c253316af6 2454 // Returns touch area No. corresponding to the supplied coordinates.
jmitc91516 0:a5c253316af6 2455 // If no touch area is found at coordinates -1 is returned.
jmitc91516 0:a5c253316af6 2456 // Touch coordinates are converted to display coordinates, if conversion
jmitc91516 0:a5c253316af6 2457 // parameters have been set with the GuiLib_TouchAdjustSet function.
jmitc91516 0:a5c253316af6 2458 // OBS: If no conversion parameters have been set with the GuiLib_TouchAdjustSet
jmitc91516 0:a5c253316af6 2459 // function the calculated touch coordinates in display coordinates will be
jmitc91516 0:a5c253316af6 2460 // TouchX = X, and TouchY = Y.
jmitc91516 0:a5c253316af6 2461 //
jmitc91516 0:a5c253316af6 2462 // Input:
jmitc91516 0:a5c253316af6 2463 // ------
jmitc91516 0:a5c253316af6 2464 // X, Y: Touch position in touch interface coordinates
jmitc91516 0:a5c253316af6 2465 // TouchX, TouchY: Addresses of the variables where touch coordinates
jmitc91516 0:a5c253316af6 2466 // converted to display coordinates will be stored
jmitc91516 0:a5c253316af6 2467 //
jmitc91516 0:a5c253316af6 2468 // Output:
jmitc91516 0:a5c253316af6 2469 // -------
jmitc91516 0:a5c253316af6 2470 // -1 = No touch area found
jmitc91516 0:a5c253316af6 2471 // >=0 = Touch area No.
jmitc91516 0:a5c253316af6 2472 //
jmitc91516 0:a5c253316af6 2473 //
jmitc91516 0:a5c253316af6 2474 extern GuiConst_INT32S GuiLib_TouchGet(
jmitc91516 0:a5c253316af6 2475 GuiConst_INT16S X,
jmitc91516 0:a5c253316af6 2476 GuiConst_INT16S Y,
jmitc91516 0:a5c253316af6 2477 GuiConst_INT16S* TouchX,
jmitc91516 0:a5c253316af6 2478 GuiConst_INT16S* TouchY);
jmitc91516 0:a5c253316af6 2479 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2480
jmitc91516 0:a5c253316af6 2481
jmitc91516 0:a5c253316af6 2482 // =============================================================================
jmitc91516 0:a5c253316af6 2483 // GuiLib_TouchAdjustReset
jmitc91516 0:a5c253316af6 2484 // =======================
jmitc91516 0:a5c253316af6 2485 //
jmitc91516 0:a5c253316af6 2486 // Resets touch coordinate conversion.
jmitc91516 0:a5c253316af6 2487 //
jmitc91516 0:a5c253316af6 2488 // Input:
jmitc91516 0:a5c253316af6 2489 // ------
jmitc91516 0:a5c253316af6 2490 // None
jmitc91516 0:a5c253316af6 2491 //
jmitc91516 0:a5c253316af6 2492 // Output:
jmitc91516 0:a5c253316af6 2493 // -------
jmitc91516 0:a5c253316af6 2494 // None
jmitc91516 0:a5c253316af6 2495 //
jmitc91516 0:a5c253316af6 2496 extern void GuiLib_TouchAdjustReset(void);
jmitc91516 0:a5c253316af6 2497 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2498
jmitc91516 0:a5c253316af6 2499
jmitc91516 0:a5c253316af6 2500 // =============================================================================
jmitc91516 0:a5c253316af6 2501 // GuiLib_TouchAdjustSet
jmitc91516 0:a5c253316af6 2502 // =====================
jmitc91516 0:a5c253316af6 2503 //
jmitc91516 0:a5c253316af6 2504 // Sets one coordinate pair for touch coordinate conversion.
jmitc91516 0:a5c253316af6 2505 // Must be called two times, once for each of two diagonally opposed corners,
jmitc91516 0:a5c253316af6 2506 // or four times, once for each of the corners.
jmitc91516 0:a5c253316af6 2507 // The corner positions should be as close as possible to the physical display
jmitc91516 0:a5c253316af6 2508 // corners, as precision is lowered when going towards the display center.
jmitc91516 0:a5c253316af6 2509 //
jmitc91516 0:a5c253316af6 2510 // Input:
jmitc91516 0:a5c253316af6 2511 // ------
jmitc91516 0:a5c253316af6 2512 // XTrue, YTrue : Position represented in display coordinates
jmitc91516 0:a5c253316af6 2513 // XMeasured, YMeasured: Position represented in touch interface coordinates
jmitc91516 0:a5c253316af6 2514 //
jmitc91516 0:a5c253316af6 2515 // Output:
jmitc91516 0:a5c253316af6 2516 // -------
jmitc91516 0:a5c253316af6 2517 // None
jmitc91516 0:a5c253316af6 2518 //
jmitc91516 0:a5c253316af6 2519 extern void GuiLib_TouchAdjustSet(
jmitc91516 0:a5c253316af6 2520 GuiConst_INT16S XTrue,
jmitc91516 0:a5c253316af6 2521 GuiConst_INT16S YTrue,
jmitc91516 0:a5c253316af6 2522 GuiConst_INT16S XMeasured,
jmitc91516 0:a5c253316af6 2523 GuiConst_INT16S YMeasured);
jmitc91516 0:a5c253316af6 2524 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2525
jmitc91516 0:a5c253316af6 2526 #endif
jmitc91516 0:a5c253316af6 2527
jmitc91516 0:a5c253316af6 2528
jmitc91516 0:a5c253316af6 2529 // =============================================================================
jmitc91516 0:a5c253316af6 2530 // GuiLib_Refresh
jmitc91516 0:a5c253316af6 2531 // ==============
jmitc91516 0:a5c253316af6 2532 //
jmitc91516 0:a5c253316af6 2533 // Refreshes variables and updates display.
jmitc91516 0:a5c253316af6 2534 //
jmitc91516 0:a5c253316af6 2535 // Input:
jmitc91516 0:a5c253316af6 2536 // ------
jmitc91516 0:a5c253316af6 2537 // None
jmitc91516 0:a5c253316af6 2538 //
jmitc91516 0:a5c253316af6 2539 // Output:
jmitc91516 0:a5c253316af6 2540 // -------
jmitc91516 0:a5c253316af6 2541 // None
jmitc91516 0:a5c253316af6 2542 //
jmitc91516 0:a5c253316af6 2543 extern void GuiLib_Refresh(void);
jmitc91516 0:a5c253316af6 2544 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2545
jmitc91516 0:a5c253316af6 2546
jmitc91516 0:a5c253316af6 2547 // =============================================================================
jmitc91516 0:a5c253316af6 2548 // GuiLib_TestPattern
jmitc91516 0:a5c253316af6 2549 // ==================
jmitc91516 0:a5c253316af6 2550 //
jmitc91516 0:a5c253316af6 2551 // Makes test pattern for display control error diagnosis. See user manual for
jmitc91516 0:a5c253316af6 2552 // further info.
jmitc91516 0:a5c253316af6 2553 //
jmitc91516 0:a5c253316af6 2554 // Input:
jmitc91516 0:a5c253316af6 2555 // ------
jmitc91516 0:a5c253316af6 2556 // None
jmitc91516 0:a5c253316af6 2557 //
jmitc91516 0:a5c253316af6 2558 // Output:
jmitc91516 0:a5c253316af6 2559 // -------
jmitc91516 0:a5c253316af6 2560 // None
jmitc91516 0:a5c253316af6 2561 //
jmitc91516 0:a5c253316af6 2562 extern void GuiLib_TestPattern(void);
jmitc91516 0:a5c253316af6 2563 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2564
jmitc91516 0:a5c253316af6 2565
jmitc91516 0:a5c253316af6 2566 #ifdef GuiConst_ITEM_SCROLLBOX_INUSE
jmitc91516 0:a5c253316af6 2567
jmitc91516 0:a5c253316af6 2568 // =============================================================================
jmitc91516 0:a5c253316af6 2569 // GuiLib_ScrollBox_Init
jmitc91516 0:a5c253316af6 2570 // =====================
jmitc91516 0:a5c253316af6 2571 //
jmitc91516 0:a5c253316af6 2572 // Initializes a scroll box (new item type style).
jmitc91516 0:a5c253316af6 2573 //
jmitc91516 0:a5c253316af6 2574 // Input:
jmitc91516 0:a5c253316af6 2575 // ------
jmitc91516 0:a5c253316af6 2576 // Scroll box index
jmitc91516 0:a5c253316af6 2577 // DataFuncPtr: Address of scroll line call-back function of type
jmitc91516 0:a5c253316af6 2578 // "void F(GuiConst_INT16S LineIndex)"
jmitc91516 0:a5c253316af6 2579 // NoOfLines: Total No. of lines in scroll box
jmitc91516 0:a5c253316af6 2580 // ActiveLine: Active scroll line, -1 means no active scroll line
jmitc91516 0:a5c253316af6 2581 //
jmitc91516 0:a5c253316af6 2582 //
jmitc91516 0:a5c253316af6 2583 // Output:
jmitc91516 0:a5c253316af6 2584 // -------
jmitc91516 0:a5c253316af6 2585 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2586 // 1 = Ok
jmitc91516 0:a5c253316af6 2587 //
jmitc91516 0:a5c253316af6 2588 extern GuiConst_INT8U GuiLib_ScrollBox_Init(
jmitc91516 0:a5c253316af6 2589 GuiConst_INT8U ScrollBoxIndex,
jmitc91516 0:a5c253316af6 2590 void (*DataFuncPtr) (GuiConst_INT16S LineIndex),
jmitc91516 0:a5c253316af6 2591 GuiConst_INT16S NoOfLines,
jmitc91516 0:a5c253316af6 2592 GuiConst_INT16S ActiveLine);
jmitc91516 0:a5c253316af6 2593 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2594
jmitc91516 0:a5c253316af6 2595
jmitc91516 0:a5c253316af6 2596 // =============================================================================
jmitc91516 0:a5c253316af6 2597 // GuiLib_ScrollBox_Redraw
jmitc91516 0:a5c253316af6 2598 // =======================
jmitc91516 0:a5c253316af6 2599 //
jmitc91516 0:a5c253316af6 2600 // Redraws dynamic parts of scroll box (new item type style).
jmitc91516 0:a5c253316af6 2601 // For complete redraw use GuiLib_ScrollBox_Init.
jmitc91516 0:a5c253316af6 2602 //
jmitc91516 0:a5c253316af6 2603 // Input:
jmitc91516 0:a5c253316af6 2604 // ------
jmitc91516 0:a5c253316af6 2605 // Scroll box index
jmitc91516 0:a5c253316af6 2606 //
jmitc91516 0:a5c253316af6 2607 // Output:
jmitc91516 0:a5c253316af6 2608 // -------
jmitc91516 0:a5c253316af6 2609 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2610 // 1 = Ok
jmitc91516 0:a5c253316af6 2611 //
jmitc91516 0:a5c253316af6 2612 extern GuiConst_INT8U GuiLib_ScrollBox_Redraw(
jmitc91516 0:a5c253316af6 2613 GuiConst_INT8U ScrollBoxIndex);
jmitc91516 0:a5c253316af6 2614 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2615
jmitc91516 0:a5c253316af6 2616
jmitc91516 0:a5c253316af6 2617 // =============================================================================
jmitc91516 0:a5c253316af6 2618 // GuiLib_ScrollBox_RedrawLine
jmitc91516 0:a5c253316af6 2619 // ===========================
jmitc91516 0:a5c253316af6 2620 //
jmitc91516 0:a5c253316af6 2621 // Redraws single line of scroll box (new item type style).
jmitc91516 0:a5c253316af6 2622 // If line is not visible no action is performed.
jmitc91516 0:a5c253316af6 2623 //
jmitc91516 0:a5c253316af6 2624 // Input:
jmitc91516 0:a5c253316af6 2625 // ------
jmitc91516 0:a5c253316af6 2626 // Scroll box index
jmitc91516 0:a5c253316af6 2627 // Scroll line to redraw, index zero is first line in scroll box list
jmitc91516 0:a5c253316af6 2628 //
jmitc91516 0:a5c253316af6 2629 // Output:
jmitc91516 0:a5c253316af6 2630 // -------
jmitc91516 0:a5c253316af6 2631 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2632 // 1 = Ok
jmitc91516 0:a5c253316af6 2633 //
jmitc91516 0:a5c253316af6 2634 extern GuiConst_INT8U GuiLib_ScrollBox_RedrawLine(
jmitc91516 0:a5c253316af6 2635 GuiConst_INT8U ScrollBoxIndex,
jmitc91516 0:a5c253316af6 2636 GuiConst_INT16U ScrollLine);
jmitc91516 0:a5c253316af6 2637 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2638
jmitc91516 0:a5c253316af6 2639
jmitc91516 0:a5c253316af6 2640 // =============================================================================
jmitc91516 0:a5c253316af6 2641 // GuiLib_ScrollBox_Close
jmitc91516 0:a5c253316af6 2642 // ======================
jmitc91516 0:a5c253316af6 2643 //
jmitc91516 0:a5c253316af6 2644 // Closes a scroll box (new item type style).
jmitc91516 0:a5c253316af6 2645 //
jmitc91516 0:a5c253316af6 2646 // Input:
jmitc91516 0:a5c253316af6 2647 // ------
jmitc91516 0:a5c253316af6 2648 // Scroll box index
jmitc91516 0:a5c253316af6 2649 //
jmitc91516 0:a5c253316af6 2650 // Output:
jmitc91516 0:a5c253316af6 2651 // -------
jmitc91516 0:a5c253316af6 2652 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2653 // 1 = Ok
jmitc91516 0:a5c253316af6 2654 //
jmitc91516 0:a5c253316af6 2655 extern GuiConst_INT8U GuiLib_ScrollBox_Close(
jmitc91516 0:a5c253316af6 2656 GuiConst_INT8U ScrollBoxIndex);
jmitc91516 0:a5c253316af6 2657 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2658
jmitc91516 0:a5c253316af6 2659
jmitc91516 0:a5c253316af6 2660 // =============================================================================
jmitc91516 0:a5c253316af6 2661 // GuiLib_ScrollBox_Down
jmitc91516 0:a5c253316af6 2662 // =====================
jmitc91516 0:a5c253316af6 2663 //
jmitc91516 0:a5c253316af6 2664 // Makes next scroll line active, and scrolls list if needed (new item type
jmitc91516 0:a5c253316af6 2665 // style).
jmitc91516 0:a5c253316af6 2666 //
jmitc91516 0:a5c253316af6 2667 // Input:
jmitc91516 0:a5c253316af6 2668 // ------
jmitc91516 0:a5c253316af6 2669 // Scroll box index
jmitc91516 0:a5c253316af6 2670 //
jmitc91516 0:a5c253316af6 2671 // Output:
jmitc91516 0:a5c253316af6 2672 // -------
jmitc91516 0:a5c253316af6 2673 // 0 = No change, list already at bottom
jmitc91516 0:a5c253316af6 2674 // 1 = Active scroll line changed
jmitc91516 0:a5c253316af6 2675 //
jmitc91516 0:a5c253316af6 2676 extern GuiConst_INT8U GuiLib_ScrollBox_Down(
jmitc91516 0:a5c253316af6 2677 GuiConst_INT8U ScrollBoxIndex);
jmitc91516 0:a5c253316af6 2678 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2679
jmitc91516 0:a5c253316af6 2680
jmitc91516 0:a5c253316af6 2681 // =============================================================================
jmitc91516 0:a5c253316af6 2682 // GuiLib_ScrollBox_Up
jmitc91516 0:a5c253316af6 2683 // ===================
jmitc91516 0:a5c253316af6 2684 //
jmitc91516 0:a5c253316af6 2685 // Makes previous scroll line active, and scrolls list if needed (new item type
jmitc91516 0:a5c253316af6 2686 // style).
jmitc91516 0:a5c253316af6 2687 //
jmitc91516 0:a5c253316af6 2688 // Input:
jmitc91516 0:a5c253316af6 2689 // ------
jmitc91516 0:a5c253316af6 2690 // Scroll box index
jmitc91516 0:a5c253316af6 2691 //
jmitc91516 0:a5c253316af6 2692 // Output:
jmitc91516 0:a5c253316af6 2693 // -------
jmitc91516 0:a5c253316af6 2694 // 0 = No change, list already at top
jmitc91516 0:a5c253316af6 2695 // 1 = Active scroll line changed
jmitc91516 0:a5c253316af6 2696 //
jmitc91516 0:a5c253316af6 2697 extern GuiConst_INT8U GuiLib_ScrollBox_Up(
jmitc91516 0:a5c253316af6 2698 GuiConst_INT8U ScrollBoxIndex);
jmitc91516 0:a5c253316af6 2699 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2700
jmitc91516 0:a5c253316af6 2701
jmitc91516 0:a5c253316af6 2702 // =============================================================================
jmitc91516 0:a5c253316af6 2703 // GuiLib_ScrollBox_Home
jmitc91516 0:a5c253316af6 2704 // =====================
jmitc91516 0:a5c253316af6 2705 //
jmitc91516 0:a5c253316af6 2706 // Makes first scroll line active, and scrolls list if needed (new item type
jmitc91516 0:a5c253316af6 2707 // style).
jmitc91516 0:a5c253316af6 2708 //
jmitc91516 0:a5c253316af6 2709 // Input:
jmitc91516 0:a5c253316af6 2710 // ------
jmitc91516 0:a5c253316af6 2711 // Scroll box index
jmitc91516 0:a5c253316af6 2712 //
jmitc91516 0:a5c253316af6 2713 // Output:
jmitc91516 0:a5c253316af6 2714 // -------
jmitc91516 0:a5c253316af6 2715 // 0 = No change, list already at top
jmitc91516 0:a5c253316af6 2716 // 1 = Active scroll line changed
jmitc91516 0:a5c253316af6 2717 //
jmitc91516 0:a5c253316af6 2718 extern GuiConst_INT8U GuiLib_ScrollBox_Home(
jmitc91516 0:a5c253316af6 2719 GuiConst_INT8U ScrollBoxIndex);
jmitc91516 0:a5c253316af6 2720 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2721
jmitc91516 0:a5c253316af6 2722
jmitc91516 0:a5c253316af6 2723 // =============================================================================
jmitc91516 0:a5c253316af6 2724 // GuiLib_ScrollBox_End
jmitc91516 0:a5c253316af6 2725 // ====================
jmitc91516 0:a5c253316af6 2726 //
jmitc91516 0:a5c253316af6 2727 // Makes last scroll line active, and scrolls list if needed (new item type
jmitc91516 0:a5c253316af6 2728 // style).
jmitc91516 0:a5c253316af6 2729 //
jmitc91516 0:a5c253316af6 2730 // Input:
jmitc91516 0:a5c253316af6 2731 // ------
jmitc91516 0:a5c253316af6 2732 // Scroll box index
jmitc91516 0:a5c253316af6 2733 //
jmitc91516 0:a5c253316af6 2734 // Output:
jmitc91516 0:a5c253316af6 2735 // -------
jmitc91516 0:a5c253316af6 2736 // 0 = No change, list already at bottom
jmitc91516 0:a5c253316af6 2737 // 1 = Active scroll line changed
jmitc91516 0:a5c253316af6 2738 //
jmitc91516 0:a5c253316af6 2739 extern GuiConst_INT8U GuiLib_ScrollBox_End(
jmitc91516 0:a5c253316af6 2740 GuiConst_INT8U ScrollBoxIndex);
jmitc91516 0:a5c253316af6 2741 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2742
jmitc91516 0:a5c253316af6 2743
jmitc91516 0:a5c253316af6 2744 // =============================================================================
jmitc91516 0:a5c253316af6 2745 // GuiLib_ScrollBox_To_Line
jmitc91516 0:a5c253316af6 2746 // ========================
jmitc91516 0:a5c253316af6 2747 //
jmitc91516 0:a5c253316af6 2748 // Makes specified scroll line active, and scrolls list if needed (new item type
jmitc91516 0:a5c253316af6 2749 // style).
jmitc91516 0:a5c253316af6 2750 //
jmitc91516 0:a5c253316af6 2751 // Input:
jmitc91516 0:a5c253316af6 2752 // ------
jmitc91516 0:a5c253316af6 2753 // Scroll box index
jmitc91516 0:a5c253316af6 2754 // New scroll line, -1 means no active scroll line
jmitc91516 0:a5c253316af6 2755 //
jmitc91516 0:a5c253316af6 2756 // Output:
jmitc91516 0:a5c253316af6 2757 // -------
jmitc91516 0:a5c253316af6 2758 // 0 = No change, list already at specified line
jmitc91516 0:a5c253316af6 2759 // 1 = Active scroll line changed
jmitc91516 0:a5c253316af6 2760 //
jmitc91516 0:a5c253316af6 2761 extern GuiConst_INT8U GuiLib_ScrollBox_To_Line(
jmitc91516 0:a5c253316af6 2762 GuiConst_INT8U ScrollBoxIndex,
jmitc91516 0:a5c253316af6 2763 GuiConst_INT16S NewLine);
jmitc91516 0:a5c253316af6 2764 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2765
jmitc91516 0:a5c253316af6 2766
jmitc91516 0:a5c253316af6 2767 // =============================================================================
jmitc91516 0:a5c253316af6 2768 // GuiLib_ScrollBox_SetLineMarker
jmitc91516 0:a5c253316af6 2769 // ==============================
jmitc91516 0:a5c253316af6 2770 //
jmitc91516 0:a5c253316af6 2771 // Sets scroll marker position and line count.
jmitc91516 0:a5c253316af6 2772 // Scroll marker index 0 (active scroll line) can only cover 1 scroll line.
jmitc91516 0:a5c253316af6 2773 // Display only changes after subsequent GuiLib_ScrollBox_Redraw call.
jmitc91516 0:a5c253316af6 2774 //
jmitc91516 0:a5c253316af6 2775 // Input:
jmitc91516 0:a5c253316af6 2776 // ------
jmitc91516 0:a5c253316af6 2777 // Scroll box index
jmitc91516 0:a5c253316af6 2778 // Scroll marker index
jmitc91516 0:a5c253316af6 2779 // Marker start line, -1 means no marker
jmitc91516 0:a5c253316af6 2780 // Marker line count (clipped to a maximum of 1 for marker index 0)
jmitc91516 0:a5c253316af6 2781 //
jmitc91516 0:a5c253316af6 2782 // Output:
jmitc91516 0:a5c253316af6 2783 // -------
jmitc91516 0:a5c253316af6 2784 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2785 // 1 = Ok
jmitc91516 0:a5c253316af6 2786 //
jmitc91516 0:a5c253316af6 2787 extern GuiConst_INT8U GuiLib_ScrollBox_SetLineMarker(
jmitc91516 0:a5c253316af6 2788 GuiConst_INT8U ScrollBoxIndex,
jmitc91516 0:a5c253316af6 2789 GuiConst_INT16U ScrollLineMarkerIndex,
jmitc91516 0:a5c253316af6 2790 GuiConst_INT16S StartLine,
jmitc91516 0:a5c253316af6 2791 GuiConst_INT16U Size);
jmitc91516 0:a5c253316af6 2792 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2793
jmitc91516 0:a5c253316af6 2794
jmitc91516 0:a5c253316af6 2795 // =============================================================================
jmitc91516 0:a5c253316af6 2796 // GuiLib_ScrollBox_GetActiveLine
jmitc91516 0:a5c253316af6 2797 // ==============================
jmitc91516 0:a5c253316af6 2798 //
jmitc91516 0:a5c253316af6 2799 // Returns topmost scroll marker line of selected scroll box / marker.
jmitc91516 0:a5c253316af6 2800 //
jmitc91516 0:a5c253316af6 2801 // Input:
jmitc91516 0:a5c253316af6 2802 // ------
jmitc91516 0:a5c253316af6 2803 // Scroll box index
jmitc91516 0:a5c253316af6 2804 // Scroll marker index (0 = active scroll line, >0 = secondary line markers)
jmitc91516 0:a5c253316af6 2805 //
jmitc91516 0:a5c253316af6 2806 // Output:
jmitc91516 0:a5c253316af6 2807 // -------
jmitc91516 0:a5c253316af6 2808 // Index of topmost scroll marker line
jmitc91516 0:a5c253316af6 2809 // -1 = Error in parameters
jmitc91516 0:a5c253316af6 2810 //
jmitc91516 0:a5c253316af6 2811 extern GuiConst_INT16S GuiLib_ScrollBox_GetActiveLine(
jmitc91516 0:a5c253316af6 2812 GuiConst_INT8U ScrollBoxIndex,
jmitc91516 0:a5c253316af6 2813 GuiConst_INT16U ScrollLineMarkerIndex);
jmitc91516 0:a5c253316af6 2814 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2815
jmitc91516 0:a5c253316af6 2816
jmitc91516 0:a5c253316af6 2817 // =============================================================================
jmitc91516 0:a5c253316af6 2818 // GuiLib_ScrollBox_GetActiveLineCount
jmitc91516 0:a5c253316af6 2819 // ===================================
jmitc91516 0:a5c253316af6 2820 //
jmitc91516 0:a5c253316af6 2821 // Returns number of marked lines in selected scroll box / marker.
jmitc91516 0:a5c253316af6 2822 //
jmitc91516 0:a5c253316af6 2823 // Input:
jmitc91516 0:a5c253316af6 2824 // ------
jmitc91516 0:a5c253316af6 2825 // Scroll box index
jmitc91516 0:a5c253316af6 2826 // Scroll marker index (0 = active scroll line, >0 = secondary line markers)
jmitc91516 0:a5c253316af6 2827 //
jmitc91516 0:a5c253316af6 2828 // Output:
jmitc91516 0:a5c253316af6 2829 // -------
jmitc91516 0:a5c253316af6 2830 // Count of marked scroll lines
jmitc91516 0:a5c253316af6 2831 // -1 = Error in parameters
jmitc91516 0:a5c253316af6 2832 // Active scroll line (scroll marker index = 0) will always return 1
jmitc91516 0:a5c253316af6 2833 //
jmitc91516 0:a5c253316af6 2834 extern GuiConst_INT16S GuiLib_ScrollBox_GetActiveLineCount(
jmitc91516 0:a5c253316af6 2835 GuiConst_INT8U ScrollBoxIndex,
jmitc91516 0:a5c253316af6 2836 GuiConst_INT16U ScrollLineMarkerIndex);
jmitc91516 0:a5c253316af6 2837 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2838
jmitc91516 0:a5c253316af6 2839
jmitc91516 0:a5c253316af6 2840 // =============================================================================
jmitc91516 0:a5c253316af6 2841 // GuiLib_ScrollBox_SetIndicator
jmitc91516 0:a5c253316af6 2842 // =============================
jmitc91516 0:a5c253316af6 2843 //
jmitc91516 0:a5c253316af6 2844 // Sets scroll indicator position.
jmitc91516 0:a5c253316af6 2845 // Display only changes after subsequent GuiLib_ScrollBox_Redraw call.
jmitc91516 0:a5c253316af6 2846 //
jmitc91516 0:a5c253316af6 2847 // Input:
jmitc91516 0:a5c253316af6 2848 // ------
jmitc91516 0:a5c253316af6 2849 // Scroll box index
jmitc91516 0:a5c253316af6 2850 // Indicator line, -1 means no indicator
jmitc91516 0:a5c253316af6 2851 //
jmitc91516 0:a5c253316af6 2852 // Output:
jmitc91516 0:a5c253316af6 2853 // -------
jmitc91516 0:a5c253316af6 2854 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2855 // 1 = Ok
jmitc91516 0:a5c253316af6 2856 //
jmitc91516 0:a5c253316af6 2857 extern GuiConst_INT8U GuiLib_ScrollBox_SetIndicator(
jmitc91516 0:a5c253316af6 2858 GuiConst_INT8U ScrollBoxIndex,
jmitc91516 0:a5c253316af6 2859 GuiConst_INT16S StartLine);
jmitc91516 0:a5c253316af6 2860 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2861
jmitc91516 0:a5c253316af6 2862
jmitc91516 0:a5c253316af6 2863 // =============================================================================
jmitc91516 0:a5c253316af6 2864 // GuiLib_ScrollBox_SetTopLine
jmitc91516 0:a5c253316af6 2865 // ===========================
jmitc91516 0:a5c253316af6 2866 //
jmitc91516 0:a5c253316af6 2867 // Sets topmost visible scroll line of selected scroll box.
jmitc91516 0:a5c253316af6 2868 // Display only changes after subsequent GuiLib_ScrollBox_Redraw call.
jmitc91516 0:a5c253316af6 2869 // If simultaneously setting line marker position make sure top line setting is
jmitc91516 0:a5c253316af6 2870 // last action before GuiLib_ScrollBox_Redraw call.
jmitc91516 0:a5c253316af6 2871 //
jmitc91516 0:a5c253316af6 2872 // Input:
jmitc91516 0:a5c253316af6 2873 // ------
jmitc91516 0:a5c253316af6 2874 // Scroll box index
jmitc91516 0:a5c253316af6 2875 // Index of topmost visible scroll line
jmitc91516 0:a5c253316af6 2876 //
jmitc91516 0:a5c253316af6 2877 // Output:
jmitc91516 0:a5c253316af6 2878 // -------
jmitc91516 0:a5c253316af6 2879 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2880 // 1 = Ok
jmitc91516 0:a5c253316af6 2881 //
jmitc91516 0:a5c253316af6 2882 extern GuiConst_INT8U GuiLib_ScrollBox_SetTopLine(
jmitc91516 0:a5c253316af6 2883 GuiConst_INT8U ScrollBoxIndex,
jmitc91516 0:a5c253316af6 2884 GuiConst_INT16S TopLine);
jmitc91516 0:a5c253316af6 2885 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2886
jmitc91516 0:a5c253316af6 2887
jmitc91516 0:a5c253316af6 2888 // =============================================================================
jmitc91516 0:a5c253316af6 2889 // GuiLib_ScrollBox_GetTopLine
jmitc91516 0:a5c253316af6 2890 // ===========================
jmitc91516 0:a5c253316af6 2891 //
jmitc91516 0:a5c253316af6 2892 // Returns topmost visible scroll line of selected scroll box.
jmitc91516 0:a5c253316af6 2893 //
jmitc91516 0:a5c253316af6 2894 // Input:
jmitc91516 0:a5c253316af6 2895 // ------
jmitc91516 0:a5c253316af6 2896 // Scroll box index
jmitc91516 0:a5c253316af6 2897 //
jmitc91516 0:a5c253316af6 2898 // Output:
jmitc91516 0:a5c253316af6 2899 // -------
jmitc91516 0:a5c253316af6 2900 // Index of topmost visible scroll line
jmitc91516 0:a5c253316af6 2901 // -1 = Error in parameters
jmitc91516 0:a5c253316af6 2902 //
jmitc91516 0:a5c253316af6 2903 extern GuiConst_INT16S GuiLib_ScrollBox_GetTopLine(
jmitc91516 0:a5c253316af6 2904 GuiConst_INT8U ScrollBoxIndex);
jmitc91516 0:a5c253316af6 2905 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2906
jmitc91516 0:a5c253316af6 2907 #endif
jmitc91516 0:a5c253316af6 2908
jmitc91516 0:a5c253316af6 2909
jmitc91516 0:a5c253316af6 2910 #ifdef GuiConst_ITEM_GRAPH_INUSE
jmitc91516 0:a5c253316af6 2911
jmitc91516 0:a5c253316af6 2912 // =============================================================================
jmitc91516 0:a5c253316af6 2913 // GuiLib_Graph_Close
jmitc91516 0:a5c253316af6 2914 // ==================
jmitc91516 0:a5c253316af6 2915 //
jmitc91516 0:a5c253316af6 2916 // Closes a graph, so that no futher actions can be accomplished with it.
jmitc91516 0:a5c253316af6 2917 // Memory assigned to datasets must be freed independently.
jmitc91516 0:a5c253316af6 2918 //
jmitc91516 0:a5c253316af6 2919 // Input:
jmitc91516 0:a5c253316af6 2920 // ------
jmitc91516 0:a5c253316af6 2921 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 2922 //
jmitc91516 0:a5c253316af6 2923 // Output:
jmitc91516 0:a5c253316af6 2924 // -------
jmitc91516 0:a5c253316af6 2925 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2926 // 1 = Ok
jmitc91516 0:a5c253316af6 2927 //
jmitc91516 0:a5c253316af6 2928 GuiConst_INT8U GuiLib_Graph_Close(
jmitc91516 0:a5c253316af6 2929 GuiConst_INT8U GraphIndex);
jmitc91516 0:a5c253316af6 2930 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2931
jmitc91516 0:a5c253316af6 2932
jmitc91516 0:a5c253316af6 2933 // =============================================================================
jmitc91516 0:a5c253316af6 2934 // GuiLib_Graph_AddDataSet
jmitc91516 0:a5c253316af6 2935 // =======================
jmitc91516 0:a5c253316af6 2936 //
jmitc91516 0:a5c253316af6 2937 // Adds a data set to a graph. The data set must be created in the structure,
jmitc91516 0:a5c253316af6 2938 // but is not shown before this function is called.
jmitc91516 0:a5c253316af6 2939 // Memory must be assigned independently for the data set.
jmitc91516 0:a5c253316af6 2940 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 2941 //
jmitc91516 0:a5c253316af6 2942 // Input:
jmitc91516 0:a5c253316af6 2943 // ------
jmitc91516 0:a5c253316af6 2944 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 2945 // DataSetIndex: Index of data set in the graph (index is zero based).
jmitc91516 0:a5c253316af6 2946 // XAxisIndex: Index of X-axis to use.
jmitc91516 0:a5c253316af6 2947 // YAxisIndex: Index of Y-axis to use.
jmitc91516 0:a5c253316af6 2948 // DataPtr: Pointer to an array of data points, where each data point is a 32
jmitc91516 0:a5c253316af6 2949 // bit signed X,Y entity of type GuiLib_GraphDataPoint.
jmitc91516 0:a5c253316af6 2950 // DataSize: Maximum number of data points possible in the data set.
jmitc91516 0:a5c253316af6 2951 // DataCount: Number of active data points in the data set.
jmitc91516 0:a5c253316af6 2952 // DataFirst: Index of first active data point (index is zero based).
jmitc91516 0:a5c253316af6 2953 //
jmitc91516 0:a5c253316af6 2954 // Output:
jmitc91516 0:a5c253316af6 2955 // -------
jmitc91516 0:a5c253316af6 2956 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2957 // 1 = Ok
jmitc91516 0:a5c253316af6 2958 //
jmitc91516 0:a5c253316af6 2959 extern GuiConst_INT8U GuiLib_Graph_AddDataSet(
jmitc91516 0:a5c253316af6 2960 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 2961 GuiConst_INT8U DataSetIndex,
jmitc91516 0:a5c253316af6 2962 GuiConst_INT8U XAxisIndex,
jmitc91516 0:a5c253316af6 2963 GuiConst_INT8U YAxisIndex,
jmitc91516 0:a5c253316af6 2964 GuiLib_GraphDataPoint *DataPtr,
jmitc91516 0:a5c253316af6 2965 GuiConst_INT16U DataSize,
jmitc91516 0:a5c253316af6 2966 GuiConst_INT16U DataCount,
jmitc91516 0:a5c253316af6 2967 GuiConst_INT16U DataFirst);
jmitc91516 0:a5c253316af6 2968 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2969
jmitc91516 0:a5c253316af6 2970
jmitc91516 0:a5c253316af6 2971 // =============================================================================
jmitc91516 0:a5c253316af6 2972 // GuiLib_Graph_RemoveDataSet
jmitc91516 0:a5c253316af6 2973 // ==========================
jmitc91516 0:a5c253316af6 2974 //
jmitc91516 0:a5c253316af6 2975 // Removes a data set from a graph.
jmitc91516 0:a5c253316af6 2976 // Memory must be released independently for the data set.
jmitc91516 0:a5c253316af6 2977 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 2978 //
jmitc91516 0:a5c253316af6 2979 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2980 //
jmitc91516 0:a5c253316af6 2981 // Input:
jmitc91516 0:a5c253316af6 2982 // ------
jmitc91516 0:a5c253316af6 2983 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 2984 // DataSetIndex: Index of data set in the graph (index is zero based).
jmitc91516 0:a5c253316af6 2985 //
jmitc91516 0:a5c253316af6 2986 // Output:
jmitc91516 0:a5c253316af6 2987 // -------
jmitc91516 0:a5c253316af6 2988 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 2989 // 1 = Ok
jmitc91516 0:a5c253316af6 2990 //
jmitc91516 0:a5c253316af6 2991 extern GuiConst_INT8U GuiLib_Graph_RemoveDataSet(
jmitc91516 0:a5c253316af6 2992 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 2993 GuiConst_INT8U DataSetIndex);
jmitc91516 0:a5c253316af6 2994 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 2995
jmitc91516 0:a5c253316af6 2996
jmitc91516 0:a5c253316af6 2997 // =============================================================================
jmitc91516 0:a5c253316af6 2998 // GuiLib_Graph_AddDataPoint
jmitc91516 0:a5c253316af6 2999 // =========================
jmitc91516 0:a5c253316af6 3000 //
jmitc91516 0:a5c253316af6 3001 // Adds a data point to a data set. The data set must have sufficient space for
jmitc91516 0:a5c253316af6 3002 // the new data point.
jmitc91516 0:a5c253316af6 3003 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3004 //
jmitc91516 0:a5c253316af6 3005 // Input:
jmitc91516 0:a5c253316af6 3006 // ------
jmitc91516 0:a5c253316af6 3007 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3008 // DataSetIndex: Index of data set in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3009 // DataPointX, DataPointY: The data point.
jmitc91516 0:a5c253316af6 3010 //
jmitc91516 0:a5c253316af6 3011 // Output:
jmitc91516 0:a5c253316af6 3012 // -------
jmitc91516 0:a5c253316af6 3013 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3014 // 1 = Ok
jmitc91516 0:a5c253316af6 3015 //
jmitc91516 0:a5c253316af6 3016 extern GuiConst_INT8U GuiLib_Graph_AddDataPoint(
jmitc91516 0:a5c253316af6 3017 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3018 GuiConst_INT8U DataSetIndex,
jmitc91516 0:a5c253316af6 3019 GuiConst_INT32S DataPointX,
jmitc91516 0:a5c253316af6 3020 GuiConst_INT32S DataPointY);
jmitc91516 0:a5c253316af6 3021 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3022
jmitc91516 0:a5c253316af6 3023
jmitc91516 0:a5c253316af6 3024 // =============================================================================
jmitc91516 0:a5c253316af6 3025 // GuiLib_Graph_ShowDataSet
jmitc91516 0:a5c253316af6 3026 // ========================
jmitc91516 0:a5c253316af6 3027 //
jmitc91516 0:a5c253316af6 3028 // Marks a data set as visible.
jmitc91516 0:a5c253316af6 3029 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3030 //
jmitc91516 0:a5c253316af6 3031 // Input:
jmitc91516 0:a5c253316af6 3032 // ------
jmitc91516 0:a5c253316af6 3033 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3034 // DataSetIndex: Index of data set in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3035 //
jmitc91516 0:a5c253316af6 3036 // Output:
jmitc91516 0:a5c253316af6 3037 // -------
jmitc91516 0:a5c253316af6 3038 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3039 // 1 = Ok
jmitc91516 0:a5c253316af6 3040 //
jmitc91516 0:a5c253316af6 3041 extern GuiConst_INT8U GuiLib_Graph_ShowDataSet(
jmitc91516 0:a5c253316af6 3042 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3043 GuiConst_INT8U DataSetIndex);
jmitc91516 0:a5c253316af6 3044 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3045
jmitc91516 0:a5c253316af6 3046
jmitc91516 0:a5c253316af6 3047 // =============================================================================
jmitc91516 0:a5c253316af6 3048 // GuiLib_Graph_HideDataSet
jmitc91516 0:a5c253316af6 3049 // ========================
jmitc91516 0:a5c253316af6 3050 //
jmitc91516 0:a5c253316af6 3051 // Marks a data set as invisible.
jmitc91516 0:a5c253316af6 3052 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3053 //
jmitc91516 0:a5c253316af6 3054 // Input:
jmitc91516 0:a5c253316af6 3055 // ------
jmitc91516 0:a5c253316af6 3056 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3057 // DataSetIndex: Index of data set in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3058 //
jmitc91516 0:a5c253316af6 3059 // Output:
jmitc91516 0:a5c253316af6 3060 // -------
jmitc91516 0:a5c253316af6 3061 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3062 // 1 = Ok
jmitc91516 0:a5c253316af6 3063 //
jmitc91516 0:a5c253316af6 3064 extern GuiConst_INT8U GuiLib_Graph_HideDataSet(
jmitc91516 0:a5c253316af6 3065 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3066 GuiConst_INT8U DataSetIndex);
jmitc91516 0:a5c253316af6 3067 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3068
jmitc91516 0:a5c253316af6 3069
jmitc91516 0:a5c253316af6 3070 // =============================================================================
jmitc91516 0:a5c253316af6 3071 // GuiLib_Graph_ShowXAxis
jmitc91516 0:a5c253316af6 3072 // ======================
jmitc91516 0:a5c253316af6 3073 //
jmitc91516 0:a5c253316af6 3074 // Marks an X-axis as visible.
jmitc91516 0:a5c253316af6 3075 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3076 //
jmitc91516 0:a5c253316af6 3077 // Input:
jmitc91516 0:a5c253316af6 3078 // ------
jmitc91516 0:a5c253316af6 3079 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3080 // AxisIndex: Index of X axis in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3081 //
jmitc91516 0:a5c253316af6 3082 // Output:
jmitc91516 0:a5c253316af6 3083 // -------
jmitc91516 0:a5c253316af6 3084 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3085 // 1 = Ok
jmitc91516 0:a5c253316af6 3086 //
jmitc91516 0:a5c253316af6 3087 extern GuiConst_INT8U GuiLib_Graph_ShowXAxis(
jmitc91516 0:a5c253316af6 3088 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3089 GuiConst_INT8U AxisIndex);
jmitc91516 0:a5c253316af6 3090 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3091
jmitc91516 0:a5c253316af6 3092
jmitc91516 0:a5c253316af6 3093 // =============================================================================
jmitc91516 0:a5c253316af6 3094 // GuiLib_Graph_HideXAxis
jmitc91516 0:a5c253316af6 3095 // ======================
jmitc91516 0:a5c253316af6 3096 //
jmitc91516 0:a5c253316af6 3097 // Marks an X-axis as invisible.
jmitc91516 0:a5c253316af6 3098 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3099 //
jmitc91516 0:a5c253316af6 3100 // Input:
jmitc91516 0:a5c253316af6 3101 // ------
jmitc91516 0:a5c253316af6 3102 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3103 // AxisIndex: Index of X axis in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3104 //
jmitc91516 0:a5c253316af6 3105 // Output:
jmitc91516 0:a5c253316af6 3106 // -------
jmitc91516 0:a5c253316af6 3107 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3108 // 1 = Ok
jmitc91516 0:a5c253316af6 3109 //
jmitc91516 0:a5c253316af6 3110 extern GuiConst_INT8U GuiLib_Graph_HideXAxis(
jmitc91516 0:a5c253316af6 3111 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3112 GuiConst_INT8U AxisIndex);
jmitc91516 0:a5c253316af6 3113 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3114
jmitc91516 0:a5c253316af6 3115
jmitc91516 0:a5c253316af6 3116 // =============================================================================
jmitc91516 0:a5c253316af6 3117 // GuiLib_Graph_ShowYAxis
jmitc91516 0:a5c253316af6 3118 // ======================
jmitc91516 0:a5c253316af6 3119 //
jmitc91516 0:a5c253316af6 3120 // Marks an Y-axis as visible.
jmitc91516 0:a5c253316af6 3121 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3122 //
jmitc91516 0:a5c253316af6 3123 // Input:
jmitc91516 0:a5c253316af6 3124 // ------
jmitc91516 0:a5c253316af6 3125 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3126 // AxisIndex: Index of Y axis in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3127 //
jmitc91516 0:a5c253316af6 3128 // Output:
jmitc91516 0:a5c253316af6 3129 // -------
jmitc91516 0:a5c253316af6 3130 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3131 // 1 = Ok
jmitc91516 0:a5c253316af6 3132 //
jmitc91516 0:a5c253316af6 3133 extern GuiConst_INT8U GuiLib_Graph_ShowYAxis(
jmitc91516 0:a5c253316af6 3134 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3135 GuiConst_INT8U AxisIndex);
jmitc91516 0:a5c253316af6 3136 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3137
jmitc91516 0:a5c253316af6 3138
jmitc91516 0:a5c253316af6 3139 // =============================================================================
jmitc91516 0:a5c253316af6 3140 // GuiLib_Graph_HideYAxis
jmitc91516 0:a5c253316af6 3141 // ======================
jmitc91516 0:a5c253316af6 3142 //
jmitc91516 0:a5c253316af6 3143 // Marks an Y-axis as invisible.
jmitc91516 0:a5c253316af6 3144 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3145 //
jmitc91516 0:a5c253316af6 3146 // Input:
jmitc91516 0:a5c253316af6 3147 // ------
jmitc91516 0:a5c253316af6 3148 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3149 // AxisIndex: Index of Y axis in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3150 //
jmitc91516 0:a5c253316af6 3151 // Output:
jmitc91516 0:a5c253316af6 3152 // -------
jmitc91516 0:a5c253316af6 3153 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3154 // 1 = Ok
jmitc91516 0:a5c253316af6 3155 //
jmitc91516 0:a5c253316af6 3156 extern GuiConst_INT8U GuiLib_Graph_HideYAxis(
jmitc91516 0:a5c253316af6 3157 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3158 GuiConst_INT8U AxisIndex);
jmitc91516 0:a5c253316af6 3159 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3160
jmitc91516 0:a5c253316af6 3161
jmitc91516 0:a5c253316af6 3162 // =============================================================================
jmitc91516 0:a5c253316af6 3163 // GuiLib_Graph_SetXAxisRange
jmitc91516 0:a5c253316af6 3164 // ==========================
jmitc91516 0:a5c253316af6 3165 //
jmitc91516 0:a5c253316af6 3166 // Changes an X-axis range.
jmitc91516 0:a5c253316af6 3167 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3168 //
jmitc91516 0:a5c253316af6 3169 // Input:
jmitc91516 0:a5c253316af6 3170 // ------
jmitc91516 0:a5c253316af6 3171 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3172 // AxisIndex: Index of X axis in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3173 // MinValue, MaxValue: Limits of the X axis range.
jmitc91516 0:a5c253316af6 3174 //
jmitc91516 0:a5c253316af6 3175 // Output:
jmitc91516 0:a5c253316af6 3176 // -------
jmitc91516 0:a5c253316af6 3177 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3178 // 1 = Ok
jmitc91516 0:a5c253316af6 3179 //
jmitc91516 0:a5c253316af6 3180 extern GuiConst_INT8U GuiLib_Graph_SetXAxisRange(
jmitc91516 0:a5c253316af6 3181 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3182 GuiConst_INT8U AxisIndex,
jmitc91516 0:a5c253316af6 3183 GuiConst_INT32S MinValue,
jmitc91516 0:a5c253316af6 3184 GuiConst_INT32S MaxValue);
jmitc91516 0:a5c253316af6 3185 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3186
jmitc91516 0:a5c253316af6 3187
jmitc91516 0:a5c253316af6 3188 // =============================================================================
jmitc91516 0:a5c253316af6 3189 // GuiLib_Graph_SetYAxisRange
jmitc91516 0:a5c253316af6 3190 // ==========================
jmitc91516 0:a5c253316af6 3191 //
jmitc91516 0:a5c253316af6 3192 // Changes an Y-axis range.
jmitc91516 0:a5c253316af6 3193 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3194 //
jmitc91516 0:a5c253316af6 3195 // Input:
jmitc91516 0:a5c253316af6 3196 // ------
jmitc91516 0:a5c253316af6 3197 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3198 // AxisIndex: Index of Y axis in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3199 // MinValue, MaxValue: Limits of the Y axis range.
jmitc91516 0:a5c253316af6 3200 //
jmitc91516 0:a5c253316af6 3201 // Output:
jmitc91516 0:a5c253316af6 3202 // -------
jmitc91516 0:a5c253316af6 3203 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3204 // 1 = Ok
jmitc91516 0:a5c253316af6 3205 //
jmitc91516 0:a5c253316af6 3206 extern GuiConst_INT8U GuiLib_Graph_SetYAxisRange(
jmitc91516 0:a5c253316af6 3207 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3208 GuiConst_INT8U AxisIndex,
jmitc91516 0:a5c253316af6 3209 GuiConst_INT32S MinValue,
jmitc91516 0:a5c253316af6 3210 GuiConst_INT32S MaxValue);
jmitc91516 0:a5c253316af6 3211 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3212
jmitc91516 0:a5c253316af6 3213
jmitc91516 0:a5c253316af6 3214 // =============================================================================
jmitc91516 0:a5c253316af6 3215 // GuiLib_Graph_ResetXAxisOrigin
jmitc91516 0:a5c253316af6 3216 // =============================
jmitc91516 0:a5c253316af6 3217 //
jmitc91516 0:a5c253316af6 3218 // Resets the X-axis origin to the original origin.
jmitc91516 0:a5c253316af6 3219 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3220 //
jmitc91516 0:a5c253316af6 3221 // Input:
jmitc91516 0:a5c253316af6 3222 // ------
jmitc91516 0:a5c253316af6 3223 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3224 // AxisIndex: Index of X axis in the graph (index is zero based). Index -1 will
jmitc91516 0:a5c253316af6 3225 // reset all defined X axes.
jmitc91516 0:a5c253316af6 3226 //
jmitc91516 0:a5c253316af6 3227 // Output:
jmitc91516 0:a5c253316af6 3228 // -------
jmitc91516 0:a5c253316af6 3229 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3230 // 1 = Ok
jmitc91516 0:a5c253316af6 3231 //
jmitc91516 0:a5c253316af6 3232 extern GuiConst_INT8U GuiLib_Graph_ResetXAxisOrigin(
jmitc91516 0:a5c253316af6 3233 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3234 GuiConst_INT8S AxisIndex);
jmitc91516 0:a5c253316af6 3235 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3236
jmitc91516 0:a5c253316af6 3237
jmitc91516 0:a5c253316af6 3238 // =============================================================================
jmitc91516 0:a5c253316af6 3239 // GuiLib_Graph_OffsetXAxisOrigin
jmitc91516 0:a5c253316af6 3240 // ==============================
jmitc91516 0:a5c253316af6 3241 //
jmitc91516 0:a5c253316af6 3242 // Adjusts the X-axis origin. Useful for dynamic graphs with moving X-axis.
jmitc91516 0:a5c253316af6 3243 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3244 //
jmitc91516 0:a5c253316af6 3245 // Input:
jmitc91516 0:a5c253316af6 3246 // ------
jmitc91516 0:a5c253316af6 3247 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3248 // AxisIndex: Index of X axis in the graph (index is zero based). Index -1 will
jmitc91516 0:a5c253316af6 3249 // offset all defined X axes. This only makes sense if all X axes
jmitc91516 0:a5c253316af6 3250 // have identical scaling.
jmitc91516 0:a5c253316af6 3251 // Offset: Amount of movement of the X axis origin.
jmitc91516 0:a5c253316af6 3252 //
jmitc91516 0:a5c253316af6 3253 // Output:
jmitc91516 0:a5c253316af6 3254 // -------
jmitc91516 0:a5c253316af6 3255 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3256 // 1 = Ok
jmitc91516 0:a5c253316af6 3257 //
jmitc91516 0:a5c253316af6 3258 extern GuiConst_INT8U GuiLib_Graph_OffsetXAxisOrigin(
jmitc91516 0:a5c253316af6 3259 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3260 GuiConst_INT8S AxisIndex,
jmitc91516 0:a5c253316af6 3261 GuiConst_INT32S Offset);
jmitc91516 0:a5c253316af6 3262 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3263
jmitc91516 0:a5c253316af6 3264
jmitc91516 0:a5c253316af6 3265 // =============================================================================
jmitc91516 0:a5c253316af6 3266 // GuiLib_Graph_ResetYAxisOrigin
jmitc91516 0:a5c253316af6 3267 // =============================
jmitc91516 0:a5c253316af6 3268 //
jmitc91516 0:a5c253316af6 3269 // Resets the Y-axis origin to the original origin.
jmitc91516 0:a5c253316af6 3270 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3271 //
jmitc91516 0:a5c253316af6 3272 // Input:
jmitc91516 0:a5c253316af6 3273 // ------
jmitc91516 0:a5c253316af6 3274 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3275 // AxisIndex: Index of Y axis in the graph (index is zero based). Index -1 will
jmitc91516 0:a5c253316af6 3276 // reset all defined Y axes.
jmitc91516 0:a5c253316af6 3277 //
jmitc91516 0:a5c253316af6 3278 // Output:
jmitc91516 0:a5c253316af6 3279 // -------
jmitc91516 0:a5c253316af6 3280 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3281 // 1 = Ok
jmitc91516 0:a5c253316af6 3282 //
jmitc91516 0:a5c253316af6 3283 extern GuiConst_INT8U GuiLib_Graph_ResetYAxisOrigin(
jmitc91516 0:a5c253316af6 3284 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3285 GuiConst_INT8S AxisIndex);
jmitc91516 0:a5c253316af6 3286 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3287
jmitc91516 0:a5c253316af6 3288
jmitc91516 0:a5c253316af6 3289 // =============================================================================
jmitc91516 0:a5c253316af6 3290 // GuiLib_Graph_OffsetYAxisOrigin
jmitc91516 0:a5c253316af6 3291 // ==============================
jmitc91516 0:a5c253316af6 3292 //
jmitc91516 0:a5c253316af6 3293 // Adjusts the Y-axis origin. Useful for dynamic graphs with moving Y-axis.
jmitc91516 0:a5c253316af6 3294 // Nothing is drawn in this function.
jmitc91516 0:a5c253316af6 3295 //
jmitc91516 0:a5c253316af6 3296 // Input:
jmitc91516 0:a5c253316af6 3297 // ------
jmitc91516 0:a5c253316af6 3298 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3299 // AxisIndex: Index of Y axis in the graph (index is zero based). Index -1 will
jmitc91516 0:a5c253316af6 3300 // offset all defined Y axes. This only makes sense if all Y axes
jmitc91516 0:a5c253316af6 3301 // have identical scaling.
jmitc91516 0:a5c253316af6 3302 // Offset: Amount of movement of the Y axis origin.
jmitc91516 0:a5c253316af6 3303 //
jmitc91516 0:a5c253316af6 3304 // Output:
jmitc91516 0:a5c253316af6 3305 // -------
jmitc91516 0:a5c253316af6 3306 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3307 // 1 = Ok
jmitc91516 0:a5c253316af6 3308 //
jmitc91516 0:a5c253316af6 3309 extern GuiConst_INT8U GuiLib_Graph_OffsetYAxisOrigin(
jmitc91516 0:a5c253316af6 3310 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3311 GuiConst_INT8S AxisIndex,
jmitc91516 0:a5c253316af6 3312 GuiConst_INT32S Offset);
jmitc91516 0:a5c253316af6 3313 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3314
jmitc91516 0:a5c253316af6 3315
jmitc91516 0:a5c253316af6 3316 // =============================================================================
jmitc91516 0:a5c253316af6 3317 // GuiLib_Graph_Redraw
jmitc91516 0:a5c253316af6 3318 // ===================
jmitc91516 0:a5c253316af6 3319 //
jmitc91516 0:a5c253316af6 3320 // Redraws the complete graph, including background, axes, and data sets.
jmitc91516 0:a5c253316af6 3321 //
jmitc91516 0:a5c253316af6 3322 // Input:
jmitc91516 0:a5c253316af6 3323 // ------
jmitc91516 0:a5c253316af6 3324 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3325 //
jmitc91516 0:a5c253316af6 3326 // Output:
jmitc91516 0:a5c253316af6 3327 // -------
jmitc91516 0:a5c253316af6 3328 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3329 // 1 = Ok
jmitc91516 0:a5c253316af6 3330 //
jmitc91516 0:a5c253316af6 3331 extern GuiConst_INT8U GuiLib_Graph_Redraw(
jmitc91516 0:a5c253316af6 3332 GuiConst_INT8U GraphIndex);
jmitc91516 0:a5c253316af6 3333 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3334
jmitc91516 0:a5c253316af6 3335
jmitc91516 0:a5c253316af6 3336 // =============================================================================
jmitc91516 0:a5c253316af6 3337 // GuiLib_Graph_DrawAxes
jmitc91516 0:a5c253316af6 3338 // =====================
jmitc91516 0:a5c253316af6 3339 //
jmitc91516 0:a5c253316af6 3340 // Redraws the graph, including background and axes, but excluding data sets.
jmitc91516 0:a5c253316af6 3341 //
jmitc91516 0:a5c253316af6 3342 // Input:
jmitc91516 0:a5c253316af6 3343 // ------
jmitc91516 0:a5c253316af6 3344 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3345 //
jmitc91516 0:a5c253316af6 3346 // Output:
jmitc91516 0:a5c253316af6 3347 // -------
jmitc91516 0:a5c253316af6 3348 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3349 // 1 = Ok
jmitc91516 0:a5c253316af6 3350 //
jmitc91516 0:a5c253316af6 3351 extern GuiConst_INT8U GuiLib_Graph_DrawAxes(
jmitc91516 0:a5c253316af6 3352 GuiConst_INT8U GraphIndex);
jmitc91516 0:a5c253316af6 3353 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3354
jmitc91516 0:a5c253316af6 3355
jmitc91516 0:a5c253316af6 3356 // =============================================================================
jmitc91516 0:a5c253316af6 3357 // GuiLib_Graph_DrawDataSet
jmitc91516 0:a5c253316af6 3358 // ========================
jmitc91516 0:a5c253316af6 3359 //
jmitc91516 0:a5c253316af6 3360 // Redraws a data set.
jmitc91516 0:a5c253316af6 3361 //
jmitc91516 0:a5c253316af6 3362 // Input:
jmitc91516 0:a5c253316af6 3363 // ------
jmitc91516 0:a5c253316af6 3364 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3365 // DataSetIndex: Index of data set in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3366 //
jmitc91516 0:a5c253316af6 3367 // Output:
jmitc91516 0:a5c253316af6 3368 // -------
jmitc91516 0:a5c253316af6 3369 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3370 // 1 = Ok
jmitc91516 0:a5c253316af6 3371 //
jmitc91516 0:a5c253316af6 3372 extern GuiConst_INT8U GuiLib_Graph_DrawDataSet(
jmitc91516 0:a5c253316af6 3373 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3374 GuiConst_INT8U DataSetIndex);
jmitc91516 0:a5c253316af6 3375 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3376
jmitc91516 0:a5c253316af6 3377
jmitc91516 0:a5c253316af6 3378 // =============================================================================
jmitc91516 0:a5c253316af6 3379 // GuiLib_Graph_DrawDataPoint
jmitc91516 0:a5c253316af6 3380 // ==========================
jmitc91516 0:a5c253316af6 3381 //
jmitc91516 0:a5c253316af6 3382 // Draws a single data point in a data set.
jmitc91516 0:a5c253316af6 3383 //
jmitc91516 0:a5c253316af6 3384 // Input:
jmitc91516 0:a5c253316af6 3385 // ------
jmitc91516 0:a5c253316af6 3386 // GraphIndex: Index of graph (index is zero based).
jmitc91516 0:a5c253316af6 3387 // DataSetIndex: Index of data set in the graph (index is zero based).
jmitc91516 0:a5c253316af6 3388 // DataIndex: Index of point in the data set (index is zero based).
jmitc91516 0:a5c253316af6 3389 //
jmitc91516 0:a5c253316af6 3390 // Output:
jmitc91516 0:a5c253316af6 3391 // -------
jmitc91516 0:a5c253316af6 3392 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3393 // 1 = Ok
jmitc91516 0:a5c253316af6 3394 //
jmitc91516 0:a5c253316af6 3395 extern GuiConst_INT8U GuiLib_Graph_DrawDataPoint(
jmitc91516 0:a5c253316af6 3396 GuiConst_INT8U GraphIndex,
jmitc91516 0:a5c253316af6 3397 GuiConst_INT8U DataSetIndex,
jmitc91516 0:a5c253316af6 3398 GuiConst_INT16U DataIndex);
jmitc91516 0:a5c253316af6 3399 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3400
jmitc91516 0:a5c253316af6 3401 #endif
jmitc91516 0:a5c253316af6 3402
jmitc91516 0:a5c253316af6 3403
jmitc91516 0:a5c253316af6 3404 #ifdef GuiConst_ITEM_GRAPHICS_LAYER_FILTER_INUSE
jmitc91516 0:a5c253316af6 3405
jmitc91516 0:a5c253316af6 3406 // =============================================================================
jmitc91516 0:a5c253316af6 3407 // GuiLib_GraphicsFilter_Init
jmitc91516 0:a5c253316af6 3408 // ==========================
jmitc91516 0:a5c253316af6 3409 //
jmitc91516 0:a5c253316af6 3410 // Initializes a graphics filter call-back function.
jmitc91516 0:a5c253316af6 3411 //
jmitc91516 0:a5c253316af6 3412 // Input:
jmitc91516 0:a5c253316af6 3413 // ------
jmitc91516 0:a5c253316af6 3414 // GraphicsFilterIndex: Index of graphics filter (index is zero based).
jmitc91516 0:a5c253316af6 3415 // FilterFuncPtr: Pointer to user-defined call-back filter function.
jmitc91516 0:a5c253316af6 3416 //
jmitc91516 0:a5c253316af6 3417 // Output:
jmitc91516 0:a5c253316af6 3418 // -------
jmitc91516 0:a5c253316af6 3419 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3420 // 1 = Ok
jmitc91516 0:a5c253316af6 3421 //
jmitc91516 0:a5c253316af6 3422 //------------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3423 extern GuiConst_INT8U GuiLib_GraphicsFilter_Init(
jmitc91516 0:a5c253316af6 3424 GuiConst_INT8U GraphicsFilterIndex,
jmitc91516 0:a5c253316af6 3425 void (*FilterFuncPtr)
jmitc91516 0:a5c253316af6 3426 (GuiConst_INT8U *DestAddress,
jmitc91516 0:a5c253316af6 3427 GuiConst_INT16U DestLineSize,
jmitc91516 0:a5c253316af6 3428 GuiConst_INT8U *SourceAddress,
jmitc91516 0:a5c253316af6 3429 GuiConst_INT16U SourceLineSize,
jmitc91516 0:a5c253316af6 3430 GuiConst_INT16U Width,
jmitc91516 0:a5c253316af6 3431 GuiConst_INT16U Height,
jmitc91516 0:a5c253316af6 3432 GuiConst_INT32S FilterPars[10]));
jmitc91516 0:a5c253316af6 3433 #endif
jmitc91516 0:a5c253316af6 3434
jmitc91516 0:a5c253316af6 3435
jmitc91516 0:a5c253316af6 3436 // =============================================================================
jmitc91516 0:a5c253316af6 3437 // GuiLib_TextBox_Scroll_Up
jmitc91516 0:a5c253316af6 3438 // ========================
jmitc91516 0:a5c253316af6 3439 //
jmitc91516 0:a5c253316af6 3440 // Scrolls text box contents one text line up.
jmitc91516 0:a5c253316af6 3441 //
jmitc91516 0:a5c253316af6 3442 // Input:
jmitc91516 0:a5c253316af6 3443 // ------
jmitc91516 0:a5c253316af6 3444 // Text box index
jmitc91516 0:a5c253316af6 3445 //
jmitc91516 0:a5c253316af6 3446 // Output:
jmitc91516 0:a5c253316af6 3447 // -------
jmitc91516 0:a5c253316af6 3448 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3449 // 1 = Ok
jmitc91516 0:a5c253316af6 3450 //
jmitc91516 0:a5c253316af6 3451 extern GuiConst_INT8U GuiLib_TextBox_Scroll_Up(
jmitc91516 0:a5c253316af6 3452 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3453 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3454
jmitc91516 0:a5c253316af6 3455
jmitc91516 0:a5c253316af6 3456 // =============================================================================
jmitc91516 0:a5c253316af6 3457 // GuiLib_TextBox_Scroll_Down
jmitc91516 0:a5c253316af6 3458 // ==========================
jmitc91516 0:a5c253316af6 3459 //
jmitc91516 0:a5c253316af6 3460 // Scrolls text box contents one text line down.
jmitc91516 0:a5c253316af6 3461 //
jmitc91516 0:a5c253316af6 3462 // Input:
jmitc91516 0:a5c253316af6 3463 // ------
jmitc91516 0:a5c253316af6 3464 // Text box index
jmitc91516 0:a5c253316af6 3465 //
jmitc91516 0:a5c253316af6 3466 // Output:
jmitc91516 0:a5c253316af6 3467 // -------
jmitc91516 0:a5c253316af6 3468 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3469 // 1 = Ok
jmitc91516 0:a5c253316af6 3470 //
jmitc91516 0:a5c253316af6 3471 extern GuiConst_INT8U GuiLib_TextBox_Scroll_Down(
jmitc91516 0:a5c253316af6 3472 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3473 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3474
jmitc91516 0:a5c253316af6 3475
jmitc91516 0:a5c253316af6 3476 // =============================================================================
jmitc91516 0:a5c253316af6 3477 // GuiLib_TextBox_Scroll_Home
jmitc91516 0:a5c253316af6 3478 // ==========================
jmitc91516 0:a5c253316af6 3479 //
jmitc91516 0:a5c253316af6 3480 // Scrolls text box contents to the top.
jmitc91516 0:a5c253316af6 3481 //
jmitc91516 0:a5c253316af6 3482 // Input:
jmitc91516 0:a5c253316af6 3483 // ------
jmitc91516 0:a5c253316af6 3484 // Text box index
jmitc91516 0:a5c253316af6 3485 //
jmitc91516 0:a5c253316af6 3486 // Output:
jmitc91516 0:a5c253316af6 3487 // -------
jmitc91516 0:a5c253316af6 3488 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3489 // 1 = Ok
jmitc91516 0:a5c253316af6 3490 //
jmitc91516 0:a5c253316af6 3491 extern GuiConst_INT8U GuiLib_TextBox_Scroll_Home(
jmitc91516 0:a5c253316af6 3492 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3493 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3494
jmitc91516 0:a5c253316af6 3495
jmitc91516 0:a5c253316af6 3496 // =============================================================================
jmitc91516 0:a5c253316af6 3497 // GuiLib_TextBox_Scroll_End
jmitc91516 0:a5c253316af6 3498 // =========================
jmitc91516 0:a5c253316af6 3499 //
jmitc91516 0:a5c253316af6 3500 // Scrolls text box contents to the bottom.
jmitc91516 0:a5c253316af6 3501 //
jmitc91516 0:a5c253316af6 3502 // Input:
jmitc91516 0:a5c253316af6 3503 // ------
jmitc91516 0:a5c253316af6 3504 // Text box index
jmitc91516 0:a5c253316af6 3505 //
jmitc91516 0:a5c253316af6 3506 // Output:
jmitc91516 0:a5c253316af6 3507 // -------
jmitc91516 0:a5c253316af6 3508 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3509 // 1 = Ok
jmitc91516 0:a5c253316af6 3510 //
jmitc91516 0:a5c253316af6 3511 extern GuiConst_INT8U GuiLib_TextBox_Scroll_End(
jmitc91516 0:a5c253316af6 3512 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3513 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3514
jmitc91516 0:a5c253316af6 3515
jmitc91516 0:a5c253316af6 3516 // =============================================================================
jmitc91516 0:a5c253316af6 3517 // GuiLib_TextBox_Scroll_To_Line
jmitc91516 0:a5c253316af6 3518 // =============================
jmitc91516 0:a5c253316af6 3519 //
jmitc91516 0:a5c253316af6 3520 // Scrolls text box contents to a specific text line.
jmitc91516 0:a5c253316af6 3521 //
jmitc91516 0:a5c253316af6 3522 // Input:
jmitc91516 0:a5c253316af6 3523 // ------
jmitc91516 0:a5c253316af6 3524 // Text box index
jmitc91516 0:a5c253316af6 3525 // Text line
jmitc91516 0:a5c253316af6 3526 //
jmitc91516 0:a5c253316af6 3527 // Output:
jmitc91516 0:a5c253316af6 3528 // -------
jmitc91516 0:a5c253316af6 3529 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3530 // 1 = Ok
jmitc91516 0:a5c253316af6 3531 //
jmitc91516 0:a5c253316af6 3532 extern GuiConst_INT8U GuiLib_TextBox_Scroll_To_Line(
jmitc91516 0:a5c253316af6 3533 GuiConst_INT8U TextBoxIndex,
jmitc91516 0:a5c253316af6 3534 GuiConst_INT16S NewLine);
jmitc91516 0:a5c253316af6 3535 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3536
jmitc91516 0:a5c253316af6 3537
jmitc91516 0:a5c253316af6 3538 // =============================================================================
jmitc91516 0:a5c253316af6 3539 // GuiLib_TextBox_Scroll_Up_Pixel
jmitc91516 0:a5c253316af6 3540 // ==============================
jmitc91516 0:a5c253316af6 3541 //
jmitc91516 0:a5c253316af6 3542 // Scrolls text box contents one pixel position up.
jmitc91516 0:a5c253316af6 3543 //
jmitc91516 0:a5c253316af6 3544 // Input:
jmitc91516 0:a5c253316af6 3545 // ------
jmitc91516 0:a5c253316af6 3546 // Text box index
jmitc91516 0:a5c253316af6 3547 //
jmitc91516 0:a5c253316af6 3548 // Output:
jmitc91516 0:a5c253316af6 3549 // -------
jmitc91516 0:a5c253316af6 3550 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3551 // 1 = Ok
jmitc91516 0:a5c253316af6 3552 //
jmitc91516 0:a5c253316af6 3553 extern GuiConst_INT8U GuiLib_TextBox_Scroll_Up_Pixel(
jmitc91516 0:a5c253316af6 3554 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3555 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3556
jmitc91516 0:a5c253316af6 3557
jmitc91516 0:a5c253316af6 3558 // =============================================================================
jmitc91516 0:a5c253316af6 3559 // GuiLib_TextBox_Scroll_Down_Pixel
jmitc91516 0:a5c253316af6 3560 // ================================
jmitc91516 0:a5c253316af6 3561 //
jmitc91516 0:a5c253316af6 3562 // Scrolls text box contents one pixel position down.
jmitc91516 0:a5c253316af6 3563 //
jmitc91516 0:a5c253316af6 3564 // Input:
jmitc91516 0:a5c253316af6 3565 // ------
jmitc91516 0:a5c253316af6 3566 // Text box index
jmitc91516 0:a5c253316af6 3567 //
jmitc91516 0:a5c253316af6 3568 // Output:
jmitc91516 0:a5c253316af6 3569 // -------
jmitc91516 0:a5c253316af6 3570 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3571 // 1 = Ok
jmitc91516 0:a5c253316af6 3572 //
jmitc91516 0:a5c253316af6 3573 extern GuiConst_INT8U GuiLib_TextBox_Scroll_Down_Pixel(
jmitc91516 0:a5c253316af6 3574 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3575 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3576
jmitc91516 0:a5c253316af6 3577
jmitc91516 0:a5c253316af6 3578 // =============================================================================
jmitc91516 0:a5c253316af6 3579 // GuiLib_TextBox_Scroll_Home_Pixel
jmitc91516 0:a5c253316af6 3580 // ================================
jmitc91516 0:a5c253316af6 3581 //
jmitc91516 0:a5c253316af6 3582 // Scrolls text box contents to the top.
jmitc91516 0:a5c253316af6 3583 //
jmitc91516 0:a5c253316af6 3584 // Input:
jmitc91516 0:a5c253316af6 3585 // ------
jmitc91516 0:a5c253316af6 3586 // Text box index
jmitc91516 0:a5c253316af6 3587 //
jmitc91516 0:a5c253316af6 3588 // Output:
jmitc91516 0:a5c253316af6 3589 // -------
jmitc91516 0:a5c253316af6 3590 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3591 // 1 = Ok
jmitc91516 0:a5c253316af6 3592 //
jmitc91516 0:a5c253316af6 3593 extern GuiConst_INT8U GuiLib_TextBox_Scroll_Home_Pixel(
jmitc91516 0:a5c253316af6 3594 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3595 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3596
jmitc91516 0:a5c253316af6 3597
jmitc91516 0:a5c253316af6 3598 // =============================================================================
jmitc91516 0:a5c253316af6 3599 // GuiLib_TextBox_Scroll_End_Pixel
jmitc91516 0:a5c253316af6 3600 // ===============================
jmitc91516 0:a5c253316af6 3601 //
jmitc91516 0:a5c253316af6 3602 // Scrolls text box contents to the bottom.
jmitc91516 0:a5c253316af6 3603 //
jmitc91516 0:a5c253316af6 3604 // Input:
jmitc91516 0:a5c253316af6 3605 // ------
jmitc91516 0:a5c253316af6 3606 // Text box index
jmitc91516 0:a5c253316af6 3607 //
jmitc91516 0:a5c253316af6 3608 // Output:
jmitc91516 0:a5c253316af6 3609 // -------
jmitc91516 0:a5c253316af6 3610 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3611 // 1 = Ok
jmitc91516 0:a5c253316af6 3612 //
jmitc91516 0:a5c253316af6 3613 extern GuiConst_INT8U GuiLib_TextBox_Scroll_End_Pixel(
jmitc91516 0:a5c253316af6 3614 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3615 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3616
jmitc91516 0:a5c253316af6 3617
jmitc91516 0:a5c253316af6 3618 // =============================================================================
jmitc91516 0:a5c253316af6 3619 // GuiLib_TextBox_Scroll_To_PixelLine
jmitc91516 0:a5c253316af6 3620 // ==================================
jmitc91516 0:a5c253316af6 3621 //
jmitc91516 0:a5c253316af6 3622 // Scrolls text box contents to a specific pixel position.
jmitc91516 0:a5c253316af6 3623 //
jmitc91516 0:a5c253316af6 3624 // Input:
jmitc91516 0:a5c253316af6 3625 // ------
jmitc91516 0:a5c253316af6 3626 // Text box index
jmitc91516 0:a5c253316af6 3627 // Pixel line
jmitc91516 0:a5c253316af6 3628 //
jmitc91516 0:a5c253316af6 3629 // Output:
jmitc91516 0:a5c253316af6 3630 // -------
jmitc91516 0:a5c253316af6 3631 // 0 = Error in parameters
jmitc91516 0:a5c253316af6 3632 // 1 = Ok
jmitc91516 0:a5c253316af6 3633 //
jmitc91516 0:a5c253316af6 3634 extern GuiConst_INT8U GuiLib_TextBox_Scroll_To_PixelLine(
jmitc91516 0:a5c253316af6 3635 GuiConst_INT8U TextBoxIndex,
jmitc91516 0:a5c253316af6 3636 GuiConst_INT16S NewPixelLine);
jmitc91516 0:a5c253316af6 3637 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3638
jmitc91516 0:a5c253316af6 3639
jmitc91516 0:a5c253316af6 3640 // =============================================================================
jmitc91516 0:a5c253316af6 3641 // GuiLib_TextBox_Scroll_Get_Pos
jmitc91516 0:a5c253316af6 3642 // =============================
jmitc91516 0:a5c253316af6 3643 //
jmitc91516 0:a5c253316af6 3644 // Returns status of topmost visible text line of text box.
jmitc91516 0:a5c253316af6 3645 //
jmitc91516 0:a5c253316af6 3646 // Input:
jmitc91516 0:a5c253316af6 3647 // ------
jmitc91516 0:a5c253316af6 3648 // Text box index
jmitc91516 0:a5c253316af6 3649 //
jmitc91516 0:a5c253316af6 3650 // Output:
jmitc91516 0:a5c253316af6 3651 // -------
jmitc91516 0:a5c253316af6 3652 // GuiLib_TEXTBOX_SCROLL_ILLEGAL_NDX Illegal text box index
jmitc91516 0:a5c253316af6 3653 // GuiLib_TEXTBOX_SCROLL_INSIDE_BLOCK Text box scrolled mid way
jmitc91516 0:a5c253316af6 3654 // GuiLib_TEXTBOX_SCROLL_AT_HOME Text box scrolled to the top
jmitc91516 0:a5c253316af6 3655 // GuiLib_TEXTBOX_SCROLL_AT_END Text box scrolled to the bottom
jmitc91516 0:a5c253316af6 3656 // GuiLib_TEXTBOX_SCROLL_ABOVE_HOME Text box scrolled above the top
jmitc91516 0:a5c253316af6 3657 // GuiLib_TEXTBOX_SCROLL_BELOW_END Text box scrolled below the bottom
jmitc91516 0:a5c253316af6 3658 //
jmitc91516 0:a5c253316af6 3659 extern GuiConst_INT8U GuiLib_TextBox_Scroll_Get_Pos(
jmitc91516 0:a5c253316af6 3660 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3661 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3662
jmitc91516 0:a5c253316af6 3663
jmitc91516 0:a5c253316af6 3664 // =============================================================================
jmitc91516 0:a5c253316af6 3665 // GuiLib_TextBox_Scroll_Get_Pos_Pixel
jmitc91516 0:a5c253316af6 3666 // ===================================
jmitc91516 0:a5c253316af6 3667 //
jmitc91516 0:a5c253316af6 3668 // Returns status of topmost visible pixel position of text box.
jmitc91516 0:a5c253316af6 3669 //
jmitc91516 0:a5c253316af6 3670 // Input:
jmitc91516 0:a5c253316af6 3671 // ------
jmitc91516 0:a5c253316af6 3672 // Text box index
jmitc91516 0:a5c253316af6 3673 //
jmitc91516 0:a5c253316af6 3674 // Output:
jmitc91516 0:a5c253316af6 3675 // -------
jmitc91516 0:a5c253316af6 3676 // GuiLib_TEXTBOX_SCROLL_ILLEGAL_NDX Illegal text box index
jmitc91516 0:a5c253316af6 3677 // GuiLib_TEXTBOX_SCROLL_INSIDE_BLOCK Text box scrolled mid way
jmitc91516 0:a5c253316af6 3678 // GuiLib_TEXTBOX_SCROLL_AT_HOME Text box scrolled to the top
jmitc91516 0:a5c253316af6 3679 // GuiLib_TEXTBOX_SCROLL_AT_END Text box scrolled to the bottom
jmitc91516 0:a5c253316af6 3680 // GuiLib_TEXTBOX_SCROLL_ABOVE_HOME Text box scrolled above the top
jmitc91516 0:a5c253316af6 3681 // GuiLib_TEXTBOX_SCROLL_BELOW_END Text box scrolled below the bottom
jmitc91516 0:a5c253316af6 3682 //
jmitc91516 0:a5c253316af6 3683 extern GuiConst_INT8U GuiLib_TextBox_Scroll_Get_Pos_Pixel(
jmitc91516 0:a5c253316af6 3684 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3685 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3686
jmitc91516 0:a5c253316af6 3687
jmitc91516 0:a5c253316af6 3688 // =============================================================================
jmitc91516 0:a5c253316af6 3689 // GuiLib_TextBox_Scroll_FitsInside
jmitc91516 0:a5c253316af6 3690 // ================================
jmitc91516 0:a5c253316af6 3691 //
jmitc91516 0:a5c253316af6 3692 // Determines if a text fits completely inside a text box without scrolling.
jmitc91516 0:a5c253316af6 3693 //
jmitc91516 0:a5c253316af6 3694 // Input:
jmitc91516 0:a5c253316af6 3695 // ------
jmitc91516 0:a5c253316af6 3696 // Text box index
jmitc91516 0:a5c253316af6 3697 //
jmitc91516 0:a5c253316af6 3698 // Output:
jmitc91516 0:a5c253316af6 3699 // -------
jmitc91516 0:a5c253316af6 3700 // 0 = No
jmitc91516 0:a5c253316af6 3701 // 1 = Yes
jmitc91516 0:a5c253316af6 3702 //
jmitc91516 0:a5c253316af6 3703 extern GuiConst_INT8U GuiLib_TextBox_Scroll_FitsInside(
jmitc91516 0:a5c253316af6 3704 GuiConst_INT8U TextBoxIndex);
jmitc91516 0:a5c253316af6 3705 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3706
jmitc91516 0:a5c253316af6 3707
jmitc91516 0:a5c253316af6 3708 #ifdef GuiConst_REMOTE_DATA
jmitc91516 0:a5c253316af6 3709 // =============================================================================
jmitc91516 0:a5c253316af6 3710 // GuiLib_RemoteCheck
jmitc91516 0:a5c253316af6 3711 // ==================
jmitc91516 0:a5c253316af6 3712 //
jmitc91516 0:a5c253316af6 3713 // Checks if binary remote data file has correct ID.
jmitc91516 0:a5c253316af6 3714 //
jmitc91516 0:a5c253316af6 3715 // Input:
jmitc91516 0:a5c253316af6 3716 // ------
jmitc91516 0:a5c253316af6 3717 // None
jmitc91516 0:a5c253316af6 3718 //
jmitc91516 0:a5c253316af6 3719 // Output:
jmitc91516 0:a5c253316af6 3720 // -------
jmitc91516 0:a5c253316af6 3721 // 0 = Illegal ID
jmitc91516 0:a5c253316af6 3722 // 1 = ID accepted
jmitc91516 0:a5c253316af6 3723 //
jmitc91516 0:a5c253316af6 3724 extern GuiConst_INT8U GuiLib_RemoteCheck(void);
jmitc91516 0:a5c253316af6 3725 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3726 #endif
jmitc91516 0:a5c253316af6 3727
jmitc91516 0:a5c253316af6 3728
jmitc91516 0:a5c253316af6 3729
jmitc91516 0:a5c253316af6 3730 #ifdef GuiConst_CODEVISION_COMPILER
jmitc91516 0:a5c253316af6 3731 #pragma used-
jmitc91516 0:a5c253316af6 3732 #endif
jmitc91516 0:a5c253316af6 3733 // -----------------------------------------------------------------------------
jmitc91516 0:a5c253316af6 3734
jmitc91516 0:a5c253316af6 3735
jmitc91516 0:a5c253316af6 3736 #ifdef __cplusplus /* If this is a C++ compiler, end C linkage */
jmitc91516 0:a5c253316af6 3737 }
jmitc91516 0:a5c253316af6 3738
jmitc91516 0:a5c253316af6 3739 #endif
jmitc91516 0:a5c253316af6 3740
jmitc91516 0:a5c253316af6 3741 #endif
jmitc91516 0:a5c253316af6 3742