1 /*---------------------------------------------------------------------------* 2 Project: Horizon 3 File: GuiLabel.h 4 5 Copyright (C)2009-2012 Nintendo Co., Ltd. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Rev: 46365 $ 14 *---------------------------------------------------------------------------*/ 15 16 #ifndef NN_COMMON_SCENE_GUILABEL_H_ 17 #define NN_COMMON_SCENE_GUILABEL_H_ 18 19 #include "GuiControlBase.h" 20 21 namespace scene 22 { 23 /* Please see man pages for details 24 25 */ 26 class Label : public ControlBase 27 { 28 public: 29 /* Please see man pages for details 30 31 32 33 34 35 36 37 38 39 */ 40 Label(u32 id, s32 x, s32 y, u32 width, u32 height, const wchar_t* pText = NULL, void* pExtraData = NULL, f32 fontScale = DEFAULT_FONT_SCALE); 41 42 /* Please see man pages for details 43 44 */ 45 virtual ~Label(); 46 47 protected: 48 // Processing when pressed with the stylus 49 virtual void OnPenDown(); 50 // Processing when the stylus is lifted 51 virtual void OnPenUp(bool isIn); 52 // Processing when sliding with the stylus 53 virtual void OnPenSlide(bool isIn); 54 // Processing when tapped with the stylus 55 virtual void OnPenTouch(); 56 // Processing during rendering 57 virtual void OnDraw(); 58 }; 59 } 60 61 #endif // NN_COMMON_SCENE_GUILABEL_H_ 62