NetSurf
Functions
redrawslots.c File Reference
#include <stdbool.h>
#include "utils/utils.h"
#include "atari/redrawslots.h"
#include "atari/gemtk/gemtk.h"
Include dependency graph for redrawslots.c:

Go to the source code of this file.

Functions

void redraw_slots_init (struct s_redrw_slots *slots, short size)
 
void redraw_slots_free (struct s_redrw_slots *slots)
 
static bool rect_intersect (struct rect *box1, struct rect *box2)
 
void redraw_slot_schedule_grect (struct s_redrw_slots *slots, GRECT *area, bool force)
 
void redraw_slot_schedule (struct s_redrw_slots *slots, short x0, short y0, short x1, short y1, bool force)
 
void redraw_slots_remove_area (struct s_redrw_slots *slots, int i)
 

Function Documentation

◆ rect_intersect()

static bool rect_intersect ( struct rect box1,
struct rect box2 
)
inlinestatic

Definition at line 39 of file redrawslots.c.

References rect::x0, rect::x1, rect::y0, and rect::y1.

Referenced by redraw_slot_schedule().

Here is the caller graph for this function:

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