GadgetSeed
0.9.6
|
グラフィックス [詳解]
関数 | |
void | and_rect (struct st_rect *a, struct st_rect *s1, struct st_rect *s2) |
2つの矩形のアンドを求める [詳解] | |
short | empty_rect (struct st_rect *rect) |
矩形が0か調べる [詳解] | |
void | correct_rect (struct st_rect *rect) |
矩形を修正する [詳解] | |
int | is_point_in_rect (short x, short y, struct st_rect *rect) |
座標が矩形の内部か調べる [詳解] | |
int | is_point_in_box (short x, short y, struct st_box *box) |
座標が四角の内部か調べる [詳解] | |
void | box2rect (struct st_rect *rect, struct st_box *box) |
box -> rect 変換 [詳解] | |
void | resize_image (void *dst_image, short dwidth, short dheight, void *src_image, short swidth, short sheight) |
イメージデータのサイズを変更する [詳解] | |
2つの矩形のアンドを求める
[out] | a | 2つの矩形のアンド矩形 |
[in] | s1 | 矩形1 |
[in] | s2 | 矩形2 |
graphics_op.c の 24 行目に定義があります。
参照先 st_rect::bottom, st_rect::left, st_rect::right, st_rect::top.
参照元 draw_bitdata(), draw_enlarged_bitdata(), draw_fill_rect(), draw_image(), draw_rect(), draw_round_fill_rect().
box -> rect 変換
[out] | rect | 矩形 |
[in] | box | 四角 |
graphics_op.c の 162 行目に定義があります。
参照先 st_rect::bottom, st_surface::height, st_rect::left, st_box::pos, st_rect::right, st_box::sur, st_rect::top, st_surface::width, st_position::x, st_position::y.
参照元 draw_box(), draw_fill_box(), draw_round_box(), draw_round_fill_box(), set_clip_box().
void correct_rect | ( | struct st_rect * | rect | ) |
矩形を修正する
[in,out] | rect | 矩形 |
graphics_op.c の 88 行目に定義があります。
参照先 st_rect::bottom, st_rect::left, st_rect::right, st_rect::top.
short empty_rect | ( | struct st_rect * | rect | ) |
矩形が0か調べる
rect | 矩形 |
graphics_op.c の 70 行目に定義があります。
参照先 st_rect::bottom, st_rect::left, st_rect::right, st_rect::top.
int is_point_in_box | ( | short | x, |
short | y, | ||
struct st_box * | box | ||
) |
座標が四角の内部か調べる
[in] | x | 座標X |
[in] | y | 座標Y |
[in] | box | 四角 |
graphics_op.c の 144 行目に定義があります。
参照先 st_rect::bottom, st_surface::height, is_point_in_rect(), st_rect::left, st_box::pos, st_rect::right, st_box::sur, st_rect::top, st_surface::width, st_position::x, st_position::y.
int is_point_in_rect | ( | short | x, |
short | y, | ||
struct st_rect * | rect | ||
) |
座標が矩形の内部か調べる
[in] | x | 座標X |
[in] | y | 座標Y |
[in] | rect | 矩形 |
graphics_op.c の 114 行目に定義があります。
参照先 st_rect::bottom, st_rect::right.
参照元 is_point_in_box().
void resize_image | ( | void * | dst_image, |
short | dwidth, | ||
short | dheight, | ||
void * | src_image, | ||
short | swidth, | ||
short | sheight | ||
) |
イメージデータのサイズを変更する
[out] | dst_image | リサイズ後イメージデータ |
[in] | dwidth | リサイズ後イメージデータ幅 |
[in] | dwidth | リサイズ後イメージデータ高さ |
[in] | srctimage | リサイズ前イメージデータ |
[in] | dwidth | リサイズ前イメージデータ幅 |
[in] | dwidth | リサイズ前イメージデータ高さ |
graphics_op.c の 180 行目に定義があります。