前のページ次のページ上に戻るホーム BREW C++ ライブラリ & GUI フレームワーク & XML ミドルウェア : SophiaFramework UNIVERSE 5.0
SFXPixel
ピクセル座標を取り扱うクラスです。
#include <SFXPixel.h.hpp>
class SFXPixel;
SFMTYPEDEFCLASS(SFXPixel)

解説

SFXPixel はピクセル座標を取り扱うクラスです。

SophiaFramework UNIVERSE には、グリッド座標系とピクセル座標系の 2 つの座標系があります。 ピクセル座標は、画面上のドットを構成します。

両者の違いを図で表すと、次のようになります。

囲碁や将棋に例えると、「描画する平面」は盤面、「グリッド」は囲碁の碁石を置く場所、「ピクセル」は将棋の駒を置く場所です。

参照

SFXGrid

メンバ

コンストラクタ/デストラクタ
SFXPixel( Void )
SFXPixel( SFXPixelConstRef param )
SFXPixel( SInt16 x , SInt16 y )
SFXPixel クラスのコンストラクタです。
パブリック関数
SFXPixelRef Add( SFXPixelConstRef param )
Add( SInt16 x , SInt16 y )
座標を加算します。
SFXPixelRef AddX( SInt16 param )
X 座標を加算します。
SFXPixelRef AddY( SInt16 param )
Y 座標を加算します。
SFXPixelRef Div( SInt16 x , SInt16 y )
Div( SInt16 param )
座標を除算します。
SFXPixelRef DivX( SInt16 param )
X 座標を除算します。
SFXPixelRef DivY( SInt16 param )
Y 座標を除算します。
Bool Equals( SFXPixelConstRef param )
Equals( SInt16 x , SInt16 y )
指定したピクセルと等しいか判定します。
SInt16 GetBottom( Void )
下辺の Y 座標を取得します。
SInt16 GetLeft( Void )
左辺の X 座標を取得します。
SFXGrid GetLeftBottom( Void )
左下端の座標を取得します。
SFXGrid GetLeftTop( Void )
左上端の座標を取得します。
SInt16 GetRight( Void )
右辺の X 座標を取得します。
SFXGrid GetRightBottom( Void )
右下端の座標を取得します。
SFXGrid GetRightTop( Void )
右上端の座標を取得します。
SInt16 GetTop( Void )
上辺の Y 座標を取得します。
SInt16 GetX( Void )
X 座標を取得します。
SInt16 GetY( Void )
Y 座標を取得します。
Bool IsInsideOf( SFXRectangleConstRef param )
指定した矩形領域の中に、座標が含まれるか判定します。
SFXPixelRef Mod( SInt16 x , SInt16 y )
Mod( SInt16 param )
座標を剰余します。
SFXPixelRef ModX( SInt16 param )
X 座標を剰余します。
SFXPixelRef ModY( SInt16 param )
Y 座標を剰余します。
SFXPixelRef Mul( SInt16 x , SInt16 y )
Mul( SInt16 param )
座標を乗算します。
SFXPixelRef MulX( SInt16 param )
X 座標を乗算します。
SFXPixelRef MulY( SInt16 param )
Y 座標を乗算します。
SFXPixelRef Neg( Void )
座標の符号を反転します。
SFXPixelRef NegX( Void )
X 座標の符号を反転します。
SFXPixelRef NegY( Void )
Y 座標の符号を反転します。
SFXPixelRef Offset( SFXGridConstRef param )
Offset( SInt16 x , SInt16 y )
座標を加算し、ピクセルを移動します。
SFXPixelRef Set( SFXPixelConstRef param )
Set( SInt16 x , SInt16 y )
ピクセルを設定します。
SFXPixelRef SetBottom( SInt16 param )
下辺の Y 座標を設定します。
SFXPixelRef SetLeft( SInt16 param )
左辺の X 座標を設定します。
SFXPixelRef SetLeftBottom( SFXGridConstRef param )
SetLeftBottom( SInt16 x , SInt16 y )
左下端の座標を設定します。
SFXPixelRef SetLeftTop( SFXGridConstRef param )
SetLeftTop( SInt16 x , SInt16 y )
左上端を設定します。
SFXPixelRef SetRight( SInt16 param )
右辺の X 座標を設定します。
SFXPixelRef SetRightBottom( SFXGridConstRef param )
SetRightBottom( SInt16 x , SInt16 y )
右下端の座標を設定します。
SFXPixelRef SetRightTop( SFXGridConstRef param )
SetRightTop( SInt16 x , SInt16 y )
右上端の座標を設定します。
SFXPixelRef SetTop( SInt16 param )
上辺の Y 座標を設定します。
SFXPixelRef SetX( SInt16 param )
X 座標を設定します。
SFXPixelRef SetY( SInt16 param )
Y 座標を設定します。
SFXPixelRef Sub( SFXPixelConstRef param )
Sub( SInt16 x , SInt16 y )
座標を減算します。
SFXPixelRef SubX( SInt16 param )
X 座標を減算します。
SFXPixelRef SubY( SInt16 param )
Y 座標を減算します。
SFXPixelRef Unoffset( SFXGridConstRef param )
Unoffset( SInt16 x , SInt16 y )
座標を減算し、ピクセルを移動します。
static
SFXPixelConstRef
ZeroInstance( Void )
0 を表すインスタンスを取得します。
SFXPixelRef operator%=( SInt16 param )
座標を剰余します。
SFXPixelRef operator*=( SInt16 param )
ピクセルを乗算します。
SFXPixelRef operator+=( SFXPixelConstRef param )
operator+=( SFXGridConstRef param )
座標を加算し、ピクセルを移動します。
SFXPixelRef operator-=( SFXPixelConstRef param )
operator-=( SFXGridConstRef param )
ピクセルを減算し、移動します。
SFXPixelRef operator/=( SInt16 param )
座標を除算します。
SFXPixelRef operator=( SFXPixelConstRef param )
ピクセルを代入します。
SFXPixel::AtomRec * atomic_cast( SFXPixel * param )
SFXPixel を SFXPixel::AtomRec に変換します。
SFXPixel::AtomRec const * atomic_cast( SFXPixel const * param )
SFXPixel を SFXPixel::AtomRec に変換します。
SFXPixel operator/( SFXPixelConstRef left , SInt16 right )
座標を除算します。
Bool operator==( SFXPixelConstRef left , SFXPixelConstRef right )
== の関係を判定します。
SFXPixel operator-( Void )
operator-( SFXPixelConstRef left , SFXGridConstRef right )
operator-( SFXPixelConstRef left , SFXPixelConstRef right )
ピクセルを減算します。
SFXPixel operator%( SFXPixelConstRef left , SInt16 right )
座標を剰余します。
SFXPixel operator*( SFXPixelConstRef left , SInt16 right )
座標を乗算します。
Bool operator!=( SFXPixelConstRef left , SFXPixelConstRef right )
!= の関係を判定します。
SFXPixel operator+( Void )
operator+( SFXPixelConstRef left , SFXGridConstRef right )
operator+( SFXPixelConstRef left , SFXPixelConstRef right )
座標を加算し、ピクセルを移動します。
AtomRec
ピクセルを表す構造体です。
グローバル関数
SFXPixel::AtomRec * atomic_cast( SFXPixel * param )
SFXPixel を SFXPixel::AtomRec に変換します。
SFXPixel::AtomRec const * atomic_cast( SFXPixel const * param )
SFXPixel を SFXPixel::AtomRec に変換します。
SFXPixel operator/( SFXPixelConstRef left , SInt16 right )
座標を除算します。
Bool operator==( SFXPixelConstRef left , SFXPixelConstRef right )
== の関係を判定します。
SFXPixel operator-( Void )
operator-( SFXPixelConstRef left , SFXGridConstRef right )
operator-( SFXPixelConstRef left , SFXPixelConstRef right )
ピクセルを減算します。
SFXPixel operator%( SFXPixelConstRef left , SInt16 right )
座標を剰余します。
SFXPixel operator*( SFXPixelConstRef left , SInt16 right )
座標を乗算します。
Bool operator!=( SFXPixelConstRef left , SFXPixelConstRef right )
!= の関係を判定します。
SFXPixel operator+( Void )
operator+( SFXPixelConstRef left , SFXGridConstRef right )
operator+( SFXPixelConstRef left , SFXPixelConstRef right )
座標を加算し、ピクセルを移動します。

SFXPixel::SFXPixel
SFXPixel クラスのコンストラクタです。
[ public, explicit ]
SFXPixel(Void);
[ public ]
SFXPixel(
    SFXPixelConstRef param   // 元になるピクセル
);
[ public, explicit ]
SFXPixel(
    SInt16 x   //  X 座標
    SInt16 y   //  Y 座標
);

SFXPixel::Add
座標を加算します。
[ public ]
SFXPixelRef Add(
    SFXPixelConstRef param   // 座標に加える値
);
[ public ]
SFXPixelRef Add(
    SInt16 x   //  X 座標に加える値
    SInt16 y   //  Y 座標に加える値
);

参照

SFXPixel::AddX | SFXPixel::AddY | SFXPixel::Sub | SFXPixel::Mul | SFXPixel::Div | SFXPixel::Mod | SFXPixel::Neg


SFXPixel::AddX
X 座標を加算します。
[ public ]
SFXPixelRef AddX(
    SInt16 param   //  X 座標に加える値
);

参照

SFXPixel::Add | SFXPixel::AddY | SFXPixel::SubX | SFXPixel::MulX | SFXPixel::DivX | SFXPixel::ModX | SFXPixel::NegX


SFXPixel::AddY
Y 座標を加算します。
[ public ]
SFXPixelRef AddY(
    SInt16 param   //  Y 座標に加える値
);

参照

SFXPixel::Add | SFXPixel::AddX | SFXPixel::SubY | SFXPixel::MulY | SFXPixel::DivY | SFXPixel::ModY | SFXPixel::NegY


SFXPixel::Div
座標を除算します。
[ public ]
SFXPixelRef Div(
    SInt16 x   //  X 座標を除算する値
    SInt16 y   //  Y 座標を除算する値
);
[ public ]
SFXPixelRef Div(
    SInt16 param   // 座標を除算する値
);

解説

x、y、または param の値が 0 の場合の動作は未定義です。

参照

SFXPixel::Add | SFXPixel::Sub | SFXPixel::Mul | SFXPixel::DivX | SFXPixel::DivY | SFXPixel::Mod | SFXPixel::Neg | operator/ | SFXPixel::operator/=


SFXPixel::DivX
X 座標を除算します。
[ public ]
SFXPixelRef DivX(
    SInt16 param   //  X 座標を除算する値
);

解説

param の値が 0 の場合の動作は未定義です。

参照

SFXPixel::AddX | SFXPixel::SubX | SFXPixel::MulX | SFXPixel::Div | SFXPixel::DivY | SFXPixel::ModX | SFXPixel::NegX


SFXPixel::DivY
Y 座標を除算します。
[ public ]
SFXPixelRef DivY(
    SInt16 param   //  Y 座標を除算する値
);

解説

param の値が 0 の場合の動作は未定義です。

参照

SFXPixel::AddY | SFXPixel::SubY | SFXPixel::MulY | SFXPixel::Div | SFXPixel::DivX | SFXPixel::ModY | SFXPixel::NegY


SFXPixel::Equals
指定したピクセルと等しいか判定します。
[ public, const ]
Bool Equals(
    SFXPixelConstRef param   // 比較対象のピクセル
);
[ public, const ]
Bool Equals(
    SInt16 x   // 比較対象の X 座標
    SInt16 y   // 比較対象の Y 座標
);

戻り値

  • 等しいとき: true
  • 異なるとき : false

参照

operator== | operator!=


SFXPixel::GetBottom
下辺の Y 座標を取得します。
[ public, const ]
SInt16 GetBottom(Void);

参照

SFXPixel::GetTop | SFXPixel::GetLeft | SFXPixel::GetRight | SFXPixel::GetLeftTop | SFXPixel::GetRightTop | SFXPixel::GetLeftBottom | SFXPixel::GetRightBottom | SFXPixel::SetBottom


SFXPixel::GetLeft
左辺の X 座標を取得します。
[ public, const ]
SInt16 GetLeft(Void);

参照

SFXPixel::GetTop | SFXPixel::GetBottom | SFXPixel::GetRight | SFXPixel::GetLeftTop | SFXPixel::GetRightTop | SFXPixel::GetLeftBottom | SFXPixel::GetRightBottom | SFXPixel::SetLeft


SFXPixel::GetLeftBottom
左下端の座標を取得します。
[ public, const ]
SFXGrid GetLeftBottom(Void);

参照

SFXPixel::GetBottom | SFXPixel::GetLeft | SFXPixel::SetLeftBottom


SFXPixel::GetLeftTop
左上端の座標を取得します。
[ public, const ]
SFXGrid GetLeftTop(Void);

参照

SFXPixel::GetTop | SFXPixel::GetLeft | SFXPixel::SetLeftTop


SFXPixel::GetRight
右辺の X 座標を取得します。
[ public, const ]
SInt16 GetRight(Void);

参照

SFXPixel::GetTop | SFXPixel::GetBottom | SFXPixel::GetLeft | SFXPixel::GetLeftTop | SFXPixel::GetRightTop | SFXPixel::GetLeftBottom | SFXPixel::GetRightBottom | SFXPixel::SetRight


SFXPixel::GetRightBottom
右下端の座標を取得します。
[ public, const ]
SFXGrid GetRightBottom(Void);

参照

SFXPixel::GetBottom | SFXPixel::GetRight | SFXPixel::SetRightBottom


SFXPixel::GetRightTop
右上端の座標を取得します。
[ public, const ]
SFXGrid GetRightTop(Void);

参照

SFXPixel::GetTop | SFXPixel::GetLeft | SFXPixel::GetRight | SFXPixel::SetRightTop


SFXPixel::GetTop
上辺の Y 座標を取得します。
[ public, const ]
SInt16 GetTop(Void);

参照

SFXPixel::GetBottom | SFXPixel::GetLeft | SFXPixel::GetRight | SFXPixel::GetLeftTop | SFXPixel::GetRightTop | SFXPixel::GetLeftBottom | SFXPixel::GetRightBottom | SFXPixel::SetTop


SFXPixel::GetX
X 座標を取得します。
[ public, const ]
SInt16 GetX(Void);

参照

SFXPixel::GetY | SFXPixel::SetX


SFXPixel::GetY
Y 座標を取得します。
[ public, const ]
SInt16 GetY(Void);

参照

SFXPixel::GetX | SFXPixel::SetY


SFXPixel::IsInsideOf
指定した矩形領域の中に、座標が含まれるか判定します。
[ public, const ]
Bool IsInsideOf(
    SFXRectangleConstRef param   // 基準となる矩形領域
);

戻り値

  • 含まれるとき : true
  • 含まれないとき : false

解説

矩形領域は辺の上も含まれます。


SFXPixel::Mod
座標を剰余します。
[ public ]
SFXPixelRef Mod(
    SInt16 x   //  X 座標を除算する値
    SInt16 y   //  Y 座標を除算する値
);
[ public ]
SFXPixelRef Mod(
    SInt16 param   // 座標を除算する値
);

解説

x、y、または param の値が 0 の場合の動作は未定義です。

参照

SFXPixel::Add | SFXPixel::Sub | SFXPixel::Mul | SFXPixel::Div | SFXPixel::ModX | SFXPixel::ModY | SFXPixel::Neg | operator% | SFXPixel::operator%=


SFXPixel::ModX
X 座標を剰余します。
[ public ]
SFXPixelRef ModX(
    SInt16 param   //  X 座標を除算する値
);

解説

param の値が 0 の場合の動作は未定義です。

参照

SFXPixel::AddX | SFXPixel::SubX | SFXPixel::MulX | SFXPixel::DivX | SFXPixel::Mod | SFXPixel::ModY | SFXPixel::NegX


SFXPixel::ModY
Y 座標を剰余します。
[ public ]
SFXPixelRef ModY(
    SInt16 param   //  Y 座標を除算する値
);

解説

param の値が 0 の場合の動作は未定義です。

参照

SFXPixel::AddY | SFXPixel::SubY | SFXPixel::MulY | SFXPixel::DivY | SFXPixel::Mod | SFXPixel::ModX | SFXPixel::NegY


SFXPixel::Mul
座標を乗算します。
[ public ]
SFXPixelRef Mul(
    SInt16 x   //  X 座標に乗算する値
    SInt16 y   //  Y 座標に乗算する値
);
[ public ]
SFXPixelRef Mul(
    SInt16 param   // 座標に乗算する値
);

参照

SFXPixel::Add | SFXPixel::Sub | SFXPixel::MulX | SFXPixel::MulY | SFXPixel::Div | SFXPixel::Mod | SFXPixel::Neg | operator* | SFXPixel::operator*=


SFXPixel::MulX
X 座標を乗算します。
[ public ]
SFXPixelRef MulX(
    SInt16 param   //  X 座標に乗算する値
);

参照

SFXPixel::AddX | SFXPixel::SubX | SFXPixel::Mul | SFXPixel::MulY | SFXPixel::DivX | SFXPixel::ModX | SFXPixel::NegX


SFXPixel::MulY
Y 座標を乗算します。
[ public ]
SFXPixelRef MulY(
    SInt16 param   //  Y 座標に乗算する値
);

参照

SFXPixel::AddY | SFXPixel::SubY | SFXPixel::Mul | SFXPixel::MulX | SFXPixel::DivY | SFXPixel::ModY | SFXPixel::NegY


SFXPixel::Neg
座標の符号を反転します。
[ public ]
SFXPixelRef Neg(Void);

参照

SFXPixel::Add | SFXPixel::Sub | SFXPixel::Mul | SFXPixel::Div | SFXPixel::Mod | SFXPixel::NegX | SFXPixel::NegY


SFXPixel::NegX
X 座標の符号を反転します。
[ public ]
SFXPixelRef NegX(Void);

参照

SFXPixel::AddX | SFXPixel::SubX | SFXPixel::MulX | SFXPixel::DivX | SFXPixel::ModX | SFXPixel::Neg | SFXPixel::NegY


SFXPixel::NegY
Y 座標の符号を反転します。
[ public ]
SFXPixelRef NegY(Void);

参照

SFXPixel::AddY | SFXPixel::SubY | SFXPixel::MulY | SFXPixel::DivY | SFXPixel::ModY | SFXPixel::Neg | SFXPixel::NegX


SFXPixel::Offset
座標を加算し、ピクセルを移動します。
[ public ]
SFXPixelRef Offset(
    SFXGridConstRef param   // 座標に加える値
);
[ public ]
SFXPixelRef Offset(
    SInt16 x   //  X 座標に加える値
    SInt16 y   //  Y 座標に加える値
);

参照

SFXPixel::Unoffset | operator- | operator+


SFXPixel::Set
ピクセルを設定します。
[ public ]
SFXPixelRef Set(
    SFXPixelConstRef param   // コピー元のピクセル
);
[ public ]
SFXPixelRef Set(
    SInt16 x   //  X 座標
    SInt16 y   //  Y 座標
);

参照

SFXPixel::operator=


SFXPixel::SetBottom
下辺の Y 座標を設定します。
[ public ]
SFXPixelRef SetBottom(
    SInt16 param   // 設定する値
);

参照

SFXPixel::GetBottom | SFXPixel::SetTop | SFXPixel::SetLeft | SFXPixel::SetRight | SFXPixel::SetLeftTop | SFXPixel::SetRightTop | SFXPixel::SetLeftBottom | SFXPixel::SetRightBottom


SFXPixel::SetLeft
左辺の X 座標を設定します。
[ public ]
SFXPixelRef SetLeft(
    SInt16 param   // 設定する値
);

参照

SFXPixel::GetLeft | SFXPixel::SetTop | SFXPixel::SetBottom | SFXPixel::SetRight | SFXPixel::SetLeftTop | SFXPixel::SetRightTop | SFXPixel::SetLeftBottom | SFXPixel::SetRightBottom


SFXPixel::SetLeftBottom
左下端の座標を設定します。
[ public ]
SFXPixelRef SetLeftBottom(
    SFXGridConstRef param   // 左下端の座標
);
[ public ]
SFXPixelRef SetLeftBottom(
    SInt16 x   // 左下端の X 座標
    SInt16 y   // 左下端の Y 座標
);

参照

SFXPixel::GetLeftBottom | SFXPixel::SetBottom | SFXPixel::SetLeft


SFXPixel::SetLeftTop
左上端を設定します。
[ public ]
SFXPixelRef SetLeftTop(
    SFXGridConstRef param   // 左上端の座標
);
[ public ]
SFXPixelRef SetLeftTop(
    SInt16 x   // 左上端の X 座標
    SInt16 y   // 左上端の Y 座標
);

参照

SFXPixel::GetLeftTop | SFXPixel::SetTop | SFXPixel::SetLeft


SFXPixel::SetRight
右辺の X 座標を設定します。
[ public ]
SFXPixelRef SetRight(
    SInt16 param   // 設定する値
);

参照

SFXPixel::GetRight | SFXPixel::SetTop | SFXPixel::SetBottom | SFXPixel::SetLeft | SFXPixel::SetLeftTop | SFXPixel::SetRightTop | SFXPixel::SetLeftBottom | SFXPixel::SetRightBottom


SFXPixel::SetRightBottom
右下端の座標を設定します。
[ public ]
SFXPixelRef SetRightBottom(
    SFXGridConstRef param   // 右下端の座標
);
[ public ]
SFXPixelRef SetRightBottom(
    SInt16 x   // 右下端の X 座標
    SInt16 y   // 右下端の Y 座標
);

参照

SFXPixel::GetRightBottom | SFXPixel::SetBottom | SFXPixel::SetRight


SFXPixel::SetRightTop
右上端の座標を設定します。
[ public ]
SFXPixelRef SetRightTop(
    SFXGridConstRef param   // 右上端の座標
);
[ public ]
SFXPixelRef SetRightTop(
    SInt16 x   // 右上端の X 座標
    SInt16 y   // 右上端の Y 座標
);

参照

SFXPixel::GetRightTop | SFXPixel::SetTop | SFXPixel::SetLeft | SFXPixel::SetRight


SFXPixel::SetTop
上辺の Y 座標を設定します。
[ public ]
SFXPixelRef SetTop(
    SInt16 param   // 設定する値
);

参照

SFXPixel::GetTop | SFXPixel::SetBottom | SFXPixel::SetLeft | SFXPixel::SetRight | SFXPixel::SetLeftTop | SFXPixel::SetRightTop | SFXPixel::SetLeftBottom | SFXPixel::SetRightBottom


SFXPixel::SetX
X 座標を設定します。
[ public ]
SFXPixelRef SetX(
    SInt16 param   // 設定する値
);

参照

SFXPixel::GetX | SFXPixel::Set | SFXPixel::SetY


SFXPixel::SetY
Y 座標を設定します。
[ public ]
SFXPixelRef SetY(
    SInt16 param   // 設定する値
);

参照

SFXPixel::GetY | SFXPixel::Set | SFXPixel::SetX


SFXPixel::Sub
座標を減算します。
[ public ]
SFXPixelRef Sub(
    SFXPixelConstRef param   // 座標から減算する値
);
[ public ]
SFXPixelRef Sub(
    SInt16 x   //  X 座標から減算する値
    SInt16 y   //  Y 座標から減算する値
);

参照

SFXPixel::Add | SFXPixel::SubX | SFXPixel::SubY | SFXPixel::Mul | SFXPixel::Div | SFXPixel::Mod | SFXPixel::Neg


SFXPixel::SubX
X 座標を減算します。
[ public ]
SFXPixelRef SubX(
    SInt16 param   //  X 座標から減算する値
);

参照

SFXPixel::AddX | SFXPixel::Sub | SFXPixel::SubY | SFXPixel::MulX | SFXPixel::DivX | SFXPixel::ModX | SFXPixel::NegX


SFXPixel::SubY
Y 座標を減算します。
[ public ]
SFXPixelRef SubY(
    SInt16 param   //  Y 座標から減算する値
);

参照

SFXPixel::AddY | SFXPixel::Sub | SFXPixel::SubX | SFXPixel::MulY | SFXPixel::DivY | SFXPixel::ModY | SFXPixel::NegY


SFXPixel::Unoffset
座標を減算し、ピクセルを移動します。
[ public ]
SFXPixelRef Unoffset(
    SFXGridConstRef param   // 座標から減算する値
);
[ public ]
SFXPixelRef Unoffset(
    SInt16 x   //  X 座標から減算する値
    SInt16 y   //  Y 座標から減算する値
);

参照

SFXPixel::Offset | operator- | operator+


SFXPixel::ZeroInstance
0 を表すインスタンスを取得します。
[ public, static ]
SFXPixelConstRef ZeroInstance(Void);

解説

ピクセルを表す変数の値が 0 であるインスタンスを返します。

[Note] 0 を表すインスタンスとは

0 を表すインスタンスとは、対応する AtomRec 構造体のすべてのメンバ変数が 0 または null に設定されたインスタンスのことです。

使用例

SFXPixel pixel(10, 20);

pixel = SFXPixel::ZeroInstance();  // pixel を初期化する
TRACE("x = %d, y = %d", pixel.GetX(), pixel.GetY());  // x = 0, y = 0

参照

SFXPixel::AtomRec


atomic_cast
SFXPixel を SFXPixel::AtomRec に変換します。
[ public, friend ]
SFXPixel::AtomRec * atomic_cast(
    SFXPixel * param   // キャストするピクセル座標
);
[ public, friend ]
SFXPixel::AtomRec const * atomic_cast(
    SFXPixel const * param   // キャストするピクセル座標
);

参照

SFXPixel::AtomRec


SFXPixel::operator=
ピクセルを代入します。
[ public ]
SFXPixelRef operator=(
    SFXPixelConstRef param   // コピー元のピクセル
);

参照

SFXPixel::Set


SFXPixel::operator/=
座標を除算します。
[ public ]
SFXPixelRef operator/=(
    SInt16 param   // 座標を除算する値
);

解説

param の値が 0 の場合の動作は未定義です。

参照

SFXPixel::Div | operator/ | SFXPixel::operator*= | SFXPixel::operator%=


operator/
座標を除算します。
[ public, friend ]
SFXPixel operator/(
    SFXPixelConstRef left   // 除算するピクセル
    SInt16 right            // 座標を除算する値
);

解説

right の値が 0 の場合の動作は未定義です。

参照

SFXPixel::Div | SFXPixel::operator/= | operator* | operator%


operator==
== の関係を判定します。
[ public, friend ]
Bool operator==(
    SFXPixelConstRef left    // 比較するピクセル
    SFXPixelConstRef right   // 比較するピクセル
);

戻り値

  • 等しいとき : true
  • 異なるとき : false

参照

SFXPixel::Equals | operator!=


SFXPixel::operator-=
ピクセルを減算し、移動します。
[ public ]
SFXPixelRef operator-=(
    SFXPixelConstRef param   // ピクセルから減算する値
);
[ public ]
SFXPixelRef operator-=(
    SFXGridConstRef param   // ピクセルから減算する値
);

参照

SFXPixel::Unoffset | operator- | SFXPixel::operator+=


operator-
ピクセルを減算します。
[ public, const ]
SFXPixel operator-(Void);
[ public, friend ]
SFXPixel operator-(
    SFXPixelConstRef left    // 移動対象のピクセル
    SFXPixelConstRef right   // 座標から減算する値
);
[ public, friend ]
SFXPixel operator-(
    SFXPixelConstRef left   // 移動対象のピクセル
    SFXGridConstRef right   // 座標から減算する値
);

参照

SFXPixel::Unoffset | SFXPixel::operator-= | operator+


SFXPixel::operator%=
座標を剰余します。
[ public ]
SFXPixelRef operator%=(
    SInt16 param   // 座標を除算する値
);

解説

param の値が 0 の場合の動作は未定義です。

参照

SFXPixel::Mod | SFXPixel::operator/= | SFXPixel::operator*= | operator%


operator%
座標を剰余します。
[ public, friend ]
SFXPixel operator%(
    SFXPixelConstRef left   // 除算するピクセル
    SInt16 right            // 座標を除算する値
);

解説

right の値が 0 の場合の動作は未定義です。

参照

SFXPixel::Mod | operator/ | operator* | SFXPixel::operator%=


SFXPixel::operator*=
ピクセルを乗算します。
[ public ]
SFXPixelRef operator*=(
    SInt16 param   // ピクセルに乗算する値
);

参照

SFXPixel::Mul | SFXPixel::operator/= | operator* | SFXPixel::operator%=


operator*
座標を乗算します。
[ public, friend ]
SFXPixel operator*(
    SFXPixelConstRef left   // 乗算するピクセル
    SInt16 right            // 座標に乗算する値
);

参照

SFXPixel::Mul | operator/ | SFXPixel::operator*= | operator%


operator!=
!= の関係を判定します。
[ public, friend ]
Bool operator!=(
    SFXPixelConstRef left    // 比較するピクセル
    SFXPixelConstRef right   // 比較するピクセル
);

戻り値

  • 異なるとき : true
  • 等しいとき : false

参照

SFXPixel::Equals | operator==


SFXPixel::operator+=
座標を加算し、ピクセルを移動します。
[ public ]
SFXPixelRef operator+=(
    SFXPixelConstRef param   // 座標に加算する値
);
[ public ]
SFXPixelRef operator+=(
    SFXGridConstRef param   // 座標に加算する値
);

参照

SFXPixel::Offset | SFXPixel::operator-= | operator+


operator+
座標を加算し、ピクセルを移動します。
[ public, const ]
SFXPixel operator+(Void);
[ public, friend ]
SFXPixel operator+(
    SFXPixelConstRef left    // 移動対象のピクセル
    SFXPixelConstRef right   // 座標に加算する値
);
[ public, friend ]
SFXPixel operator+(
    SFXPixelConstRef left   // 移動対象のピクセル
    SFXGridConstRef right   // 座標に加算する値
);

参照

SFXPixel::Offset | operator- | SFXPixel::operator+=


SFXPixel::AtomRec
ピクセルを表す構造体です。
struct AtomRec {
  SInt16  x;  //  X 座標
  SInt16  y;  //  Y 座標
};