|
SIV3D_NODISCARD_CXX20 | Rect ()=default |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (value_type _size) noexcept |
| 長方形を作成します。 More...
|
|
SIV3D_CONCEPT_INTEGRAL constexpr SIV3D_NODISCARD_CXX20 | Rect (Int _r) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (value_type _w, value_type _h) noexcept |
| 長方形を作成します。 More...
|
|
template<class W , class H , std::enable_if_t< std::conjunction_v< std::is_integral< W >, std::is_integral< H >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Rect (W _w, H _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (size_type _size) noexcept |
| 長方形を作成します。 More...
|
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (value_type _x, value_type _y, value_type _size) noexcept |
| 長方形を作成します。 More...
|
|
template<class X , class Y , class S , std::enable_if_t< std::conjunction_v< std::is_integral< X >, std::is_integral< Y >, std::is_integral< S >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Rect (X _x, Y _y, S _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (value_type _x, value_type _y, value_type _w, value_type _h) noexcept |
| 長方形を作成します。 More...
|
|
template<class X , class Y , class W , class H , std::enable_if_t< std::conjunction_v< std::is_integral< X >, std::is_integral< Y >, std::is_integral< W >, std::is_integral< H >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Rect (X _x, Y _y, W _w, H _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (value_type _x, value_type _y, size_type _size) noexcept |
| 長方形を作成します。 More...
|
|
template<class X , class Y , std::enable_if_t< std::conjunction_v< std::is_integral< X >, std::is_integral< Y >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Rect (X _x, Y _y, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (position_type _pos, value_type _size) noexcept |
| 長方形を作成します。 More...
|
|
SIV3D_CONCEPT_INTEGRAL constexpr SIV3D_NODISCARD_CXX20 | Rect (position_type _pos, Int _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (position_type _pos, value_type _w, value_type _h) noexcept |
| 長方形を作成します。 More...
|
|
template<class W , class H , std::enable_if_t< std::conjunction_v< std::is_integral< W >, std::is_integral< H >>> * = nullptr> |
constexpr SIV3D_NODISCARD_CXX20 | Rect (position_type _pos, W _w, H _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (position_type _pos, size_type _size) noexcept |
| 長方形を作成します。 More...
|
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::center_< position_type > _center, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::center_< position_type > _center, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::center_< position_type > _center, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topLeft_< position_type > topLeft, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topLeft_< position_type > topLeft, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topLeft_< position_type > topLeft, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topCenter_< position_type > topCenter, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topCenter_< position_type > topCenter, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topCenter_< position_type > topCenter, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topRight_< position_type > topRight, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topRight_< position_type > topRight, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::topRight_< position_type > topRight, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::rightCenter_< position_type > rightCenter, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::rightCenter_< position_type > rightCenter, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::rightCenter_< position_type > rightCenter, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomRight_< position_type > bottomRight, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomRight_< position_type > bottomRight, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomRight_< position_type > bottomRight, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomCenter_< position_type > bottomCenter, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomCenter_< position_type > bottomCenter, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomCenter_< position_type > bottomCenter, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomLeft_< position_type > bottomLeft, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomLeft_< position_type > bottomLeft, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::bottomLeft_< position_type > bottomLeft, size_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::leftCenter_< position_type > leftCenter, value_type _size) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::leftCenter_< position_type > leftCenter, value_type _w, value_type _h) noexcept |
|
constexpr SIV3D_NODISCARD_CXX20 | Rect (Arg::leftCenter_< position_type > leftCenter, size_type _size) noexcept |
|
constexpr Rect & | setPos (value_type _x, value_type _y) noexcept |
|
constexpr Rect & | setPos (position_type _pos) noexcept |
|
constexpr Rect & | setPos (Arg::center_< position_type > _center) noexcept |
|
constexpr Rect & | setPos (Arg::topLeft_< position_type > topLeft) noexcept |
|
constexpr Rect & | setPos (Arg::topCenter_< position_type > topCenter) noexcept |
|
constexpr Rect & | setPos (Arg::topRight_< position_type > topRight) noexcept |
|
constexpr Rect & | setPos (Arg::rightCenter_< position_type > rightCenter) noexcept |
|
constexpr Rect & | setPos (Arg::bottomRight_< position_type > bottomRight) noexcept |
|
constexpr Rect & | setPos (Arg::bottomCenter_< position_type > bottomCenter) noexcept |
|
constexpr Rect & | setPos (Arg::bottomLeft_< position_type > bottomLeft) noexcept |
|
constexpr Rect & | setPos (Arg::leftCenter_< position_type > leftCenter) noexcept |
|
constexpr Rect & | setCenter (value_type _x, value_type _y) noexcept |
|
constexpr Rect & | setCenter (position_type _pos) noexcept |
|
constexpr Rect & | setSize (value_type _size) noexcept |
|
constexpr Rect & | setSize (value_type _w, value_type _h) noexcept |
|
constexpr Rect & | setSize (size_type _size) noexcept |
|
constexpr Rect & | set (value_type _x, value_type _y, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (value_type _x, value_type _y, value_type _size) noexcept |
|
constexpr Rect & | set (value_type _x, value_type _y, size_type _size) noexcept |
|
constexpr Rect & | set (position_type _pos, value_type _size) noexcept |
|
constexpr Rect & | set (position_type _pos, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (position_type _pos, size_type _size) noexcept |
|
constexpr Rect & | set (const Rect &r) noexcept |
|
constexpr Rect & | set (Arg::center_< position_type > _center, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::center_< position_type > _center, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::center_< position_type > _center, size_type _size) noexcept |
|
constexpr Rect & | set (Arg::topLeft_< position_type > topLeft, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::topLeft_< position_type > topLeft, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::topLeft_< position_type > topLeft, size_type _size) noexcept |
|
constexpr Rect & | set (Arg::topCenter_< position_type > topCenter, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::topCenter_< position_type > topCenter, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::topCenter_< position_type > topCenter, size_type _size) noexcept |
|
constexpr Rect & | set (Arg::topRight_< position_type > topRight, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::topRight_< position_type > topRight, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::topRight_< position_type > topRight, size_type _size) noexcept |
|
constexpr Rect & | set (Arg::rightCenter_< position_type > rightCenter, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::rightCenter_< position_type > rightCenter, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::rightCenter_< position_type > rightCenter, size_type _size) noexcept |
|
constexpr Rect & | set (Arg::bottomRight_< position_type > bottomRight, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::bottomRight_< position_type > bottomRight, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::bottomRight_< position_type > bottomRight, size_type _size) noexcept |
|
constexpr Rect & | set (Arg::bottomCenter_< position_type > bottomCenter, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::bottomCenter_< position_type > bottomCenter, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::bottomCenter_< position_type > bottomCenter, size_type _size) noexcept |
|
constexpr Rect & | set (Arg::bottomLeft_< position_type > bottomLeft, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::bottomLeft_< position_type > bottomLeft, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::bottomLeft_< position_type > bottomLeft, size_type _size) noexcept |
|
constexpr Rect & | set (Arg::leftCenter_< position_type > leftCenter, value_type _size) noexcept |
|
constexpr Rect & | set (Arg::leftCenter_< position_type > leftCenter, value_type _w, value_type _h) noexcept |
|
constexpr Rect & | set (Arg::leftCenter_< position_type > leftCenter, size_type _size) noexcept |
|
constexpr Rect | movedBy (value_type _x, value_type _y) const noexcept |
| 座標を移動した新しい長方形を返します。 More...
|
|
constexpr Rect | movedBy (size_type v) const noexcept |
| 座標を移動した新しい長方形を返します。 More...
|
|
constexpr Rect & | moveBy (value_type _x, value_type _y) noexcept |
| 長方形を移動させます。 More...
|
|
constexpr Rect & | moveBy (size_type v) noexcept |
| 長方形を移動させます。 More...
|
|
constexpr Rect | stretched (value_type xy) const noexcept |
|
constexpr Rect | stretched (value_type _x, value_type _y) const noexcept |
|
constexpr Rect | stretched (size_type xy) const noexcept |
|
constexpr Rect | stretched (value_type top, value_type right, value_type bottom, value_type left) const noexcept |
|
constexpr RectF | scaled (double s) const noexcept |
|
constexpr RectF | scaled (double sx, double sy) const noexcept |
|
constexpr RectF | scaled (Vec2 s) const noexcept |
|
constexpr RectF | scaledAt (Vec2 _pos, double s) const noexcept |
|
constexpr RectF | scaledAt (Vec2 _pos, double sx, double sy) const noexcept |
|
constexpr RectF | scaledAt (Vec2 _pos, Vec2 s) const noexcept |
|
constexpr | operator bool () const noexcept |
| 長方形が空でないかを返します。 More...
|
|
constexpr bool | isEmpty () const noexcept |
| 長方形が空であるかを返します。 More...
|
|
constexpr bool | hasArea () const noexcept |
| 長方形が大きさを持っているかを返します。 More...
|
|
constexpr value_type | leftX () const noexcept |
| 長方形の左辺の X 座標を返します。 More...
|
|
constexpr value_type | rightX () const noexcept |
| 長方形の右辺の X 座標を返します。 More...
|
|
constexpr value_type | topY () const noexcept |
| 長方形の上辺の Y 座標を返します。 More...
|
|
constexpr value_type | bottomY () const noexcept |
| 長方形の下辺の Y 座標を返します。 More...
|
|
constexpr double | centerX () const noexcept |
| 長方形の中心の X 座標を返します。 More...
|
|
constexpr double | centerY () const noexcept |
| 長方形の中心の Y 座標を返します。 More...
|
|
constexpr size_type | tl () const noexcept |
| 長方形の左上の座標を返します。 More...
|
|
constexpr size_type | tr () const noexcept |
| 長方形の右上の座標を返します。 More...
|
|
constexpr size_type | br () const noexcept |
| 長方形の右下の座標を返します。 More...
|
|
constexpr size_type | bl () const noexcept |
| 長方形の左下の座標を返します。 More...
|
|
constexpr Vec2 | topCenter () const noexcept |
| 長方形の上辺の中心座標を返します。 More...
|
|
constexpr Vec2 | rightCenter () const noexcept |
| 長方形の右辺の中心座標を返します。 More...
|
|
constexpr Vec2 | bottomCenter () const noexcept |
| 長方形の下辺の中心座標を返します。 More...
|
|
constexpr Vec2 | leftCenter () const noexcept |
| 長方形の左辺の中心座標を返します。 More...
|
|
constexpr Vec2 | center () const noexcept |
| 長方形の中心座標を返します。 More...
|
|
constexpr Vec2 | getRelativePoint (double relativeX, double relativeY) const noexcept |
| 長方形の左上を (0 ,0), 右下を (1, 1) としたときの (relativeX, relativeY) の座標を返します。 More...
|
|
constexpr Line | top () const noexcept |
| 長方形の上辺を Line として返します。 More...
|
|
constexpr Line | right () const noexcept |
| 長方形の右辺を Line として返します。 More...
|
|
constexpr Line | bottom () const noexcept |
| 長方形の下辺を Line として返します。 More...
|
|
constexpr Line | left () const noexcept |
| 長方形の左辺を Line として返します。 More...
|
|
constexpr position_type | point (size_t index) const |
|
constexpr Line | side (size_t index) const |
|
constexpr Triangle | triangle (size_t index) const |
|
constexpr value_type | area () const noexcept |
| 長方形の面積を返します。 More...
|
|
constexpr value_type | perimeter () const noexcept |
| 長方形の周の長さを返します。 More...
|
|
template<class Type = double> |
constexpr Type | horizontalAspectRatio () const noexcept |
|
Quad | rotated (double angle) const noexcept |
|
Quad | rotatedAt (double _x, double _y, double angle) const noexcept |
|
Quad | rotatedAt (Vec2 _pos, double angle) const noexcept |
|
constexpr Quad | shearedX (double vx) const noexcept |
|
constexpr Quad | shearedY (double vy) const noexcept |
|
constexpr RoundRect | rounded (double r) const noexcept |
|
Polygon | rounded (double tl, double tr, double br, double bl) const noexcept |
|
constexpr Quad | asQuad () const noexcept |
| 長方形を Quad として返します。 More...
|
|
LineString | outline (CloseRing closeRing=CloseRing::No) const |
| 長方形の輪郭を LineString として返します。 More...
|
|
LineString | outline (double distanceFromOrigin, double length) const |
| 長方形の輪郭の一部を LineString として返します。 More...
|
|
Polygon | asPolygon () const |
| 長方形を Polygon として返します。 More...
|
|
constexpr RectF | lerp (const Rect &other, double f) const noexcept |
|
constexpr RectF | lerp (const RectF &other, double f) const noexcept |
|
constexpr Rect | getOverlap (const Rect &other) const noexcept |
| 別の長方形と重なる領域を返します。重ならない場合は空の長方形を返します。 More...
|
|
constexpr RectF | getOverlap (const RectF &other) const noexcept |
| 別の長方形と重なる領域を返します。重ならない場合は空の長方形を返します。 More...
|
|
size_t | hash () const noexcept |
|
template<class Shape2DType > |
constexpr bool | intersects (const Shape2DType &other) const |
|
template<class Shape2DType > |
Optional< Array< Vec2 > > | intersectsAt (const Shape2DType &other) const |
|
template<class Shape2DType > |
bool | contains (const Shape2DType &other) const |
|
bool | leftClicked () const noexcept |
| 長方形が現在のフレームで左クリックされ始めたかを返します。 More...
|
|
bool | leftPressed () const noexcept |
| 長方形が左クリックされているかを返します。 More...
|
|
bool | leftReleased () const noexcept |
| 現在のフレームで長方形への左クリックが離されたかを返します。 More...
|
|
bool | rightClicked () const noexcept |
| 長方形が現在のフレームで右クリックされ始めたかを返します。 More...
|
|
bool | rightPressed () const noexcept |
| 長方形が右クリックされているかを返します。 More...
|
|
bool | rightReleased () const noexcept |
| 現在のフレームで長方形への右クリックが離されたかを返します。 More...
|
|
bool | mouseOver () const noexcept |
| 長方形上にマウスカーソルがあるかを返します。 More...
|
|
const Rect & | paint (Image &dst, const Color &color) const |
|
const Rect & | overwrite (Image &dst, const Color &color) const |
|
const Rect & | paintFrame (Image &dst, int32 innerThickness, int32 outerThickness, const Color &color) const |
|
const Rect & | overwriteFrame (Image &dst, int32 innerThickness, int32 outerThickness, const Color &color) const |
|
const Rect & | draw (const ColorF &color=Palette::White) const |
| 長方形を描画します。 More...
|
|
const Rect & | draw (const ColorF(&colors)[4]) const |
| 長方形を描画します。 More...
|
|
const Rect & | draw (Arg::top_< ColorF > topColor, Arg::bottom_< ColorF > bottomColor) const |
| 長方形を描画します。 More...
|
|
const Rect & | draw (Arg::left_< ColorF > leftColor, Arg::right_< ColorF > rightColor) const |
| 長方形を描画します。 More...
|
|
const Rect & | drawFrame (double thickness=1.0, const ColorF &color=Palette::White) const |
| 長方形の枠を描画します。 More...
|
|
const Rect & | drawFrame (double thickness, const ColorF &innerColor, const ColorF &outerColor) const |
| 長方形の枠を描画します。 More...
|
|
const Rect & | drawFrame (double innerThickness, double outerThickness, const ColorF &color=Palette::White) const |
| 長方形の枠を描画します。 More...
|
|
const Rect & | drawFrame (double innerThickness, double outerThickness, const ColorF &innerColor, const ColorF &outerColor) const |
| 長方形の枠を描画します。 More...
|
|
const Rect & | drawShadow (const Vec2 &offset, double blurRadius, double spread=0.0, const ColorF &color=ColorF{ 0.0, 0.5 }) const |
| 長方形の影を描画します。 More...
|
|
TexturedQuad | operator() (const Texture &texture) const |
|
TexturedQuad | operator() (const TextureRegion &textureRegion) const |
|