From e5df1aafb6d1346207343ccb858fa373e6b86301 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 23 Nov 2021 23:13:26 -0500 Subject: Palm OS Emulator v3.5 Check in the Palm OS Emulator, version 3.5 (2001). These files come from the tarball present in the Debian archives [1]. The SHA-256 digest of the tarball, c5e0d23424e88525bfba0ecdf0a432a8d93c885d04740df06a9eeee44e5f25e4, matches the digest preserved in the FreeBSD ports tree [2], giving further confidence that these files are as distributed by upstream. [1] http://archive.debian.org/debian/pool/contrib/p/pose/ [2] https://svnweb.freebsd.org/ports/head/palm/pose/distinfo?revision=271305&view=markup&pathrev=282162 --- SrcShared/Skins.h | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 SrcShared/Skins.h (limited to 'SrcShared/Skins.h') diff --git a/SrcShared/Skins.h b/SrcShared/Skins.h new file mode 100644 index 0000000..1c8e2e7 --- /dev/null +++ b/SrcShared/Skins.h @@ -0,0 +1,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 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_ -- cgit v1.2.3