Blender V2.61 - r43446
Functions

BLI_rect.h File Reference

Go to the source code of this file.

Functions

int BLI_rcti_is_empty (struct rcti *rect)
int BLI_rctf_is_empty (struct rctf *rect)
void BLI_init_rctf (struct rctf *rect, float xmin, float xmax, float ymin, float ymax)
void BLI_init_rcti (struct rcti *rect, int xmin, int xmax, int ymin, int ymax)
void BLI_translate_rctf (struct rctf *rect, float x, float y)
void BLI_translate_rcti (struct rcti *rect, int x, int y)
void BLI_resize_rcti (struct rcti *rect, int x, int y)
void BLI_resize_rctf (struct rctf *rect, float x, float y)
int BLI_in_rcti (struct rcti *rect, int x, int y)
int BLI_in_rctf (struct rctf *rect, float x, float y)
int BLI_isect_rctf (struct rctf *src1, struct rctf *src2, struct rctf *dest)
int BLI_isect_rcti (struct rcti *src1, struct rcti *src2, struct rcti *dest)
void BLI_union_rctf (struct rctf *rcta, struct rctf *rctb)
void BLI_union_rcti (struct rcti *rcti1, struct rcti *rcti2)
void BLI_copy_rcti_rctf (struct rcti *tar, const struct rctf *src)
void print_rctf (const char *str, struct rctf *rect)
void print_rcti (const char *str, struct rcti *rect)

Detailed Description

Definition in file BLI_rect.h.


Function Documentation

void BLI_copy_rcti_rctf ( struct rcti tar,
const struct rctf src 
)

Referenced by draw_gpencil_view3d().

int BLI_in_rctf ( struct rctf rect,
float  x,
float  y 
)
int BLI_in_rcti ( struct rcti rect,
int  x,
int  y 
)
void BLI_init_rctf ( struct rctf rect,
float  xmin,
float  xmax,
float  ymin,
float  ymax 
)

Definition at line 97 of file rct.c.

References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.

Referenced by add_scene(), curvemapping_add(), draw_marker_areas(), and draw_marker_outline().

void BLI_init_rcti ( struct rcti rect,
int  xmin,
int  xmax,
int  ymin,
int  ymax 
)
int BLI_isect_rctf ( struct rctf src1,
struct rctf src2,
struct rctf dest 
)
int BLI_isect_rcti ( struct rcti src1,
struct rcti src2,
struct rcti dest 
)
int BLI_rctf_is_empty ( struct rctf rect)

Definition at line 53 of file rct.c.

References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.

Referenced by node_draw_basis().

int BLI_rcti_is_empty ( struct rcti rect)

Determine if a rect is empty. An empty rect is one with a zero (or negative) width or height.

Returns:
True if rect is empty.

Definition at line 47 of file rct.c.

References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.

Referenced by sculpt_get_redraw_rect().

void BLI_resize_rctf ( struct rctf rect,
float  x,
float  y 
)

Definition at line 163 of file rct.c.

References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.

Referenced by sequencer_view_zoom_ratio_exec().

void BLI_resize_rcti ( struct rcti rect,
int  x,
int  y 
)

Definition at line 153 of file rct.c.

References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.

void BLI_translate_rctf ( struct rctf rect,
float  x,
float  y 
)

Definition at line 144 of file rct.c.

References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.

void BLI_translate_rcti ( struct rcti rect,
int  x,
int  y 
)

Definition at line 137 of file rct.c.

References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.

Referenced by area_dupli_invoke(), and handler_boundbox_test().

void BLI_union_rctf ( struct rctf rcta,
struct rctf rctb 
)

Definition at line 79 of file rct.c.

References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.

Referenced by node_update_group(), and snode_home().

void BLI_union_rcti ( struct rcti rcti1,
struct rcti rcti2 
)

Definition at line 88 of file rct.c.

References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.

Referenced by sculpt_get_redraw_rect().

void print_rctf ( const char *  str,
struct rctf rect 
)

Definition at line 241 of file rct.c.

References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.

void print_rcti ( const char *  str,
struct rcti rect 
)

Definition at line 246 of file rct.c.

References rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.