/* * * Custom Widget demo * * File : DSkin.h * Purpose : Defines the Skin add-on * Author : JLV * Creation : 10/26/04 * Last Update : 10/26/04 * * (C) hexaZen 2004 * * This file is part of a demo application for Zinzala. It can be * used, distributed and modified without limitation. * * * $Id$ */ /* * $Log$ */ #ifndef _DSKIN #define _DSKIN #include using namespace zSDK::Cincinella; enum tSkinResource { eResBackground = 0, eResDimmed, eResNormal, eResPressed, eResAnimate1, eResAnimate2, eResAnimate3, eResForwardN, eResForwardD, eResPauseN, eResPauseD, eResPlayN, eResPlayD, eResBackwardN, eResBackwardD, eResStopN, eResStopD }; typedef struct tBitmapResource { tUint32 iWidth; tUint32 iHeight; tUint32 iIndex; tUint16 iColors; tUint32 iLength; tUint8* iBits; tUint32* iPalette; } tBitmapResource; class cDSkin : public cAddOn { public: cDSkin(const tChar *aPath); const tBitmapResource &GetResourceL(tSkinResource aResource); private: const tBitmapResource *(*iFunction)(tUint16 aResourceID); }; #endif