|
NetSurf
|
Go to the source code of this file.
Data Structures | |
| struct | s_redrw_slots |
| This struct holds scheduled redraw requests. More... | |
Macros | |
| #define | MAX_REDRW_SLOTS 32 |
| This is the number of redraw requests that the slotlist can store. More... | |
Functions | |
| void | redraw_slots_init (struct s_redrw_slots *slots, short size) |
| void | redraw_slot_schedule (struct s_redrw_slots *slots, short x0, short y0, short x1, short y1, bool force) |
| void | redraw_slot_schedule_grect (struct s_redrw_slots *slots, GRECT *area, bool force) |
| void | redraw_slots_remove_area (struct s_redrw_slots *slots, int i) |
| void | redraw_slots_free (struct s_redrw_slots *slots) |
| #define MAX_REDRW_SLOTS 32 |
This is the number of redraw requests that the slotlist can store.
If a redraw is scheduled and all slots are used, the rectangle will be merged to one of the existing slots.
Definition at line 32 of file redrawslots.h.
| void redraw_slot_schedule | ( | struct s_redrw_slots * | slots, |
| short | x0, | ||
| short | y0, | ||
| short | x1, | ||
| short | y1, | ||
| bool | force | ||
| ) |
Definition at line 67 of file redrawslots.c.
References s_redrw_slots::areas, s_redrw_slots::areas_used, MIN, rect_intersect(), s_redrw_slots::size, rect::x0, rect::x1, rect::y0, and rect::y1.
Referenced by redraw_slot_schedule_grect().
| void redraw_slot_schedule_grect | ( | struct s_redrw_slots * | slots, |
| GRECT * | area, | ||
| bool | force | ||
| ) |
Definition at line 57 of file redrawslots.c.
References redraw_slot_schedule().
Referenced by window_schedule_redraw_grect().
| void redraw_slots_free | ( | struct s_redrw_slots * | slots | ) |
Definition at line 33 of file redrawslots.c.
Referenced by window_unref_gui_window().
| void redraw_slots_init | ( | struct s_redrw_slots * | slots, |
| short | size | ||
| ) |
Definition at line 26 of file redrawslots.c.
References s_redrw_slots::areas_used, MAX_REDRW_SLOTS, MIN, and s_redrw_slots::size.
Referenced by window_create().
| void redraw_slots_remove_area | ( | struct s_redrw_slots * | slots, |
| int | i | ||
| ) |
Definition at line 118 of file redrawslots.c.
References s_redrw_slots::areas, and s_redrw_slots::areas_used.