1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     GuiTypes.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_GUITYPES_H_
17 #define NN_COMMON_SCENE_GUITYPES_H_
18 
19 #include <nn/types.h>
20 
21 namespace scene
22 {
23     /* Please see man pages for details
24 
25     */
26     static const u32 CONTROL_ID_UNUSED = 0xFFFFFFFF;
27 
28     /* Please see man pages for details
29 
30     */
31     enum ControlType
32     {
33         CONTROL_TYPE_LABEL,  //
34         CONTROL_TYPE_BUTTON, //
35 
36         CONTROL_TYPE_MAX
37     };
38 
39     /* Please see man pages for details
40 
41     */
42     enum ControlState
43     {
44         CONTROL_STATE_DEFAULT,   //
45         CONTROL_STATE_DISABLED,  //
46         CONTROL_STATE_SELECTING, //
47         CONTROL_STATE_HIDE,      //
48 
49         CONTROL_STATE_MAX
50     };
51 
52     /* Please see man pages for details
53 
54     */
55     enum ControlEvent
56     {
57         CONTROL_EVENT_PENDOWN,      //
58         CONTROL_EVENT_PENUP,        //
59         CONTROL_EVENT_SLIDE,        //
60         CONTROL_EVENT_TOUCH,        //
61         CONTROL_EVENT_CHANGE_STATE, //
62 
63         CONTROL_EVENT_MAX
64     };
65 
66     /* Please see man pages for details
67 
68     */
69     enum TextAlign
70     {
71         TEXT_ALIGN_LEFT,   //
72         TEXT_ALIGN_RIGHT,  //
73         TEXT_ALIGN_CENTER, //
74 
75         TEXT_ALIGN_MAX
76     };
77 
78     //
79     const f32 DEFAULT_FONT_SCALE = 0.6f;
80 }
81 
82 #endif // NN_COMMON_SCENE_GUITYPES_H_
83