Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CCursor.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (show annotations) (download) (as text)
Tue Aug 28 14:58:05 2012 UTC (11 years, 8 months ago) by okadu
File MIME type: text/x-chdr
File size: 746 byte(s)
[okadu] Version 2.14
ニュートラル画面分割
ダイヤ停車位置の数値設定
レイアウト読み込みバグ一部修正

1 #ifndef CCURSOR_H_INCLUDED
2 #define CCURSOR_H_INCLUDED
3
4 /*
5 * カーソルクラス
6 */
7 class CCursor{
8 private:
9 int m_State; // 状態
10 int m_Resizing; // リサイズ中
11 float m_Alpha; // アルファ値
12 POINT m_Pos; // 座標
13 POINT m_Delta; // 中心からの差分
14 public:
15 void Init();
16 void Clip();
17 void Center();
18 void Render();
19 void ScanInput(bool forcelock = false);
20 void FixCursor();
21 void SetResize(int r){ if(m_Resizing<-1) m_Resizing = r; }
22 POINT GetPos(){ return m_Pos; }
23 POINT GetDelta(){ return m_Delta; }
24 bool CheckDrag();
25 VEC3 GetVEC3(){ return VEC3((float)m_Pos.x, (float)m_Pos.y, 0.0f); }
26 void Lock();
27 void Release();
28 bool IsLock(){ return !!m_State; }
29 };
30
31 // 外部グローバル
32 extern CCursor g_Cursor;
33
34 #endif

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