NetSurf
Data Structures | Macros | Functions
redrawslots.h File Reference
#include <mt_gem.h>
#include "netsurf/types.h"
Include dependency graph for redrawslots.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ MAX_REDRW_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.

Function Documentation

◆ redraw_slot_schedule()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ redraw_slots_free()

void redraw_slots_free ( struct s_redrw_slots slots)

Definition at line 33 of file redrawslots.c.

Referenced by window_unref_gui_window().

Here is the caller graph for this function:

◆ redraw_slots_init()

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().

Here is the caller graph for this function:

◆ redraw_slots_remove_area()

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.