ランタイム: Mix/Rectangle.h Source File

ランタイム

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

Rectangle.h
Go to the documentation of this file.
1 #pragma once
2
5
6 namespace Mix{
7
8 class RectangleF;
9
12 class _MIX_DLL_API Rectangle
13 {
14 public:
15 Int32 x;
16 Int32 y;
17 Int32 width;
18 Int32 height;
19
20 public:
22 Rectangle( void );
28 Rectangle( Int32 rx, Int32 ry, Int32 rw, Int32 rh );
31 Rectangle( const Mix::Rectangle& rect );
34 Rectangle( const Mix::RectangleF& rect );
35
39 Boolean operator == ( const Rectangle& rect ) const;
43 Boolean operator != ( const Rectangle& rect ) const;
44
48 Mix::Rectangle& operator = ( const Mix::Rectangle& rect );
52 Mix::Rectangle& operator = ( const Mix::RectangleF& rect );
53
59 void Set( Int32 rx, Int32 ry, Int32 rw, Int32 rh );
60
64 Boolean Contains( const Mix::Point& p ) const;
69 Boolean Contains( const Mix::Rectangle& rect, Mix::Rectangle* pOverlapRect = NULL ) const;
70
73 Int32 GetRight( void ) const;
76 void SetRight( Int32 right );
79 Int32 GetBottom( void ) const;
82 void SetBottom( Int32 bottom );
83
84 public:
87 static const Mix::Rectangle& Zero( void )
88 {
89 static const Mix::Rectangle zero( 0, 0, 0, 0 );
90
91 return zero;
92 }
93 };
94
95 }
Mix::Point
ポイントクラス
Definition: Point.h:12
Mix::Rectangle::width
Int32 width
幅
Definition: Rectangle.h:17
Mix::RectangleF
浮動小数点型矩形クラス
Definition: RectangleF.h:13
Int32
int Int32
符号有り32ビット整数
Definition: Common.h:65
Mix::Rectangle::x
Int32 x
X軸上の位置
Definition: Rectangle.h:15
Mix
ミックス
Definition: AtomicValue.h:6
Mix::Rectangle
矩形クラス
Definition: Rectangle.h:12
Mix::Rectangle::height
Int32 height
高さ
Definition: Rectangle.h:18
Mix::Rectangle::y
Int32 y
Y軸上の位置
Definition: Rectangle.h:16
Mix::Rectangle::Zero
static const Mix::Rectangle & Zero(void)
初期値( 0, 0, 0, 0 )を取得します
Definition: Rectangle.h:87
Boolean
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102
_MIX_DLL_API
#define _MIX_DLL_API
DLLインポート定義
Definition: Common.h:38