GetRectSize

矩形の幅と高さを求める

val = GetRectSize(Rect, Width, Height)

const RECT *Rect
int *Width
int *Height

(プラグイン / モジュール : DxLibW)

解説

矩形(RECT構造体)の幅と高さを求めます。
width = right - left, height = bottom - top を計算します。

引数:
Rect: サイズを求める矩形
Width: 幅を格納する変数のポインタ
Height: 高さを格納する変数のポインタ

戻り値: 0:成功  -1:エラー

戻り値: int

情報

プラグイン / モジュールDxLibW
バージョン3.24f
作成日2026/04/12
著作者DxLib: Takumi Yamada / HSP binding: IronHSP Project
URLhttps://dxlib.xsrv.jp/
備考hspdxlib.as をインクルードして使用
タイプDxLib ゲームライブラリ
グループDxLib その他
対応環境
  • Windows 版 HSP
hs ファイルhsphelp\hspdxlib.hs