diff --git a/doc/html/rect.html b/doc/html/rect.html new file mode 100644 index 0000000..3264340 --- /dev/null +++ b/doc/html/rect.html @@ -0,0 +1,391 @@ + + + + + + + +
+

Rect 矩形类

+

成员

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
类型名称描述
intx矩形左上角的x坐标
inty矩形左上角的y坐标
intw矩形宽度
inth矩形高度
+

方法

+

Rect()

+
+

默认构造.长宽为0且坐标为(0,0)

+

Rect(int X,int Y,int W,int H)

+
+

指定参数的构造

+

SDL_Rect Rect::toSDLRect()

+
+

将当前矩形转换为SDL_Rect表示

+ +
+ + \ No newline at end of file diff --git a/doc/markdown/index.md b/doc/markdown/index.md index bbf37e7..9181bfc 100644 --- a/doc/markdown/index.md +++ b/doc/markdown/index.md @@ -3,7 +3,7 @@ ## 应用到项目中 ## MiniEngine核心部分 ### 类列表 -Rect +[Rect](rect.md) Point ColorMode RGBA diff --git a/doc/markdown/rect.md b/doc/markdown/rect.md new file mode 100644 index 0000000..c85bb2f --- /dev/null +++ b/doc/markdown/rect.md @@ -0,0 +1,20 @@ +# Rect 矩形类 +## 成员 +| 类型 | 名称 | 描述 | +| --- | --- | --- | +| int | x | 矩形左上角的x坐标 | +| int | y | 矩形左上角的y坐标 | +| int | w | 矩形宽度 | +| int | h | 矩形高度 | +## 方法 +Rect() +> +默认构造.长宽为0且坐标为(0,0) + +Rect(int X,int Y,int W,int H) +> +指定参数的构造 + +SDL_Rect Rect::toSDLRect() +> +将当前矩形转换为SDL_Rect表示