ランタイム
Rectangle.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace Mix{
7 
8  class RectangleF;
9 
13  {
14  public:
15  Int32 x;
16  Int32 y;
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 }
ポイントクラス
Definition: Point.h:12
Int32 width
Definition: Rectangle.h:17
浮動小数点型矩形クラス
Definition: RectangleF.h:13
int Int32
符号有り32ビット整数
Definition: Common.h:65
Int32 x
X軸上の位置
Definition: Rectangle.h:15
ミックス
Definition: AtomicValue.h:6
矩形クラス
Definition: Rectangle.h:12
Int32 height
高さ
Definition: Rectangle.h:18
Int32 y
Y軸上の位置
Definition: Rectangle.h:16
static const Mix::Rectangle & Zero(void)
初期値( 0, 0, 0, 0 )を取得します
Definition: Rectangle.h:87
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102
#define _MIX_DLL_API
DLLインポート定義
Definition: Common.h:38