Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CMiniButton.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-chdr
File size: 710 byte(s)


1 #ifndef CMINIBUTTON_H_INCLUDED
2 #define CMINIBUTTON_H_INCLUDED
3
4 #include "CInterface.h"
5
6 /*
7 * 正方形ミニボタン
8 */
9 class CMiniButton: public CInterface{
10 private:
11 int m_State; // 状態
12 int m_Repeat; // 長押カウンタ
13 bool m_Mode; // モード (0: ボタン, 1: リピータ)
14 bool m_Pushed; // 押下フラグ
15 float m_TexU, m_TexV; // テクスチャ座標
16 public:
17 void Init(int, int, int, int, CInterface *, float, float, bool);
18 void SetUV(float u, float v){ m_TexU = u; m_TexV = v; }
19 int GetRepeat(){ return m_Repeat; }
20 bool IsRepeat(){ return m_Repeat>REPEAT_FRAME; }
21 bool IsPushed(){ return m_Pushed; }
22 void SetPush(bool p){ m_Pushed = p; }
23 bool ScanInput();
24 void Render();
25 };
26
27 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26