mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
New function colspan_is_in_box()
This commit is contained in:
parent
216495188a
commit
e2685ae7b2
@ -28,6 +28,13 @@ col_is_in_box(struct box *box, int x)
|
||||
return (x >= box->x && x < box->x + box->width);
|
||||
}
|
||||
|
||||
/* Mainly intended for use with double-width characters. */
|
||||
static inline int
|
||||
colspan_is_in_box(struct box *box, int x, int span)
|
||||
{
|
||||
return (x >= box->x && x + span <= box->x + box->width);
|
||||
}
|
||||
|
||||
|
||||
static inline void
|
||||
set_box(struct box *box, int x, int y, int width, int height)
|
||||
|
Loading…
Reference in New Issue
Block a user