1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/* -*- mode: C++; tab-width: 4 -*- */
/* ===================================================================== *\
Copyright (c) 1999-2001 Palm, Inc. or its subsidiaries.
All rights reserved.
This file is part of the Palm OS Emulator.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
\* ===================================================================== */
#ifndef _SKINS_H_
#define _SKINS_H_
#include "EmDevice.h" // EmDevice
#include "EmRect.h" // EmRect
#include "EmStructs.h" // RGBType
class EmStream;
enum SkinElementType
{
kElement_First,
kElement_PowerButton = kElement_First,
kElement_UpButton,
kElement_DownButton,
kElement_App1Button,
kElement_App2Button,
kElement_App3Button,
kElement_App4Button,
kElement_CradleButton,
kElement_Antenna,
kElement_ContrastButton,
// Symbol-specific
kElement_TriggerLeft,
kElement_TriggerCenter,
kElement_TriggerRight,
kElement_UpButtonLeft,
kElement_UpButtonRight,
kElement_DownButtonLeft,
kElement_DownButtonRight,
kElement_Touchscreen,
kElement_LCD,
kElement_LED,
kElement_NumElements,
kElement_Frame = -1,
kElement_None = -2
};
DEFINE_SCALAR_MODIFIERS (SkinElementType)
typedef string SkinName;
typedef vector<SkinName> SkinNameList;
SkinName SkinGetSkinName (const EmDevice&);
SkinName SkinGetDefaultSkinName (const EmDevice&);
void SkinGetSkinNames (const EmDevice&, SkinNameList&);
void SkinSetSkin (void);
void SkinSetSkin (const EmDevice&, ScaleType scale, const SkinName&);
void SkinSetSkinName (const EmDevice&, const SkinName&);
EmFileRef SkinGetSkinfoFile (void);
EmFileRef SkinGetSkinFile (void);
EmFileRef SkinGetSkinFile (ScaleType scale);
EmStream* SkinGetSkinStream (void);
EmStream* SkinGetSkinStream (ScaleType scale);
Bool SkinValidSkin (const EmDevice&, const SkinName&);
RGBType SkinGetBackgroundColor (void);
RGBType SkinGetHighlightColor (void);
SkinElementType SkinTestPoint (const EmPoint& windowPt);
EmPoint SkinWindowToTouchscreen (const EmPoint& windowPt);
EmPoint SkinTouchscreenToWindow (const EmPoint& lcdPt);
Bool SkinGetElementInfo (int index, SkinElementType&, EmRect&);
EmPoint SkinScaleDown (const EmPoint&);
EmRect SkinScaleDown (const EmRect&);
EmPoint SkinScaleUp (const EmPoint&);
EmRect SkinScaleUp (const EmRect&);
#endif // _SKINS_H_
|