src/geo.c File Reference

Determine who should be re-drawed.

When part of graphic are chagned, not mater size, shape, or position, the components effected or overlaid should be re-drawed. This module figures out components that should be re-drawed. More...

#include <stdio.h>
#include <string.h>
#include "mb_types.h"

Go to the source code of this file.

Functions

static int is_scale_overlay (co_aix x1, co_aix w1, co_aix x2, co_aix w2)
static int _is_overlay (area_t *r1, area_t *r2)
int is_overlay (area_t *r1, area_t *r2)
void area_init (area_t *area, int n_pos, co_aix pos[][2])
void geo_init (geo_t *g)
void geo_from_positions (geo_t *g, int n_pos, co_aix pos[][2])
void geo_mark_overlay (geo_t *g, int n_others, geo_t **others, int *n_overlays, geo_t **overlays)


Detailed Description

Determine who should be re-drawed.

When part of graphic are chagned, not mater size, shape, or position, the components effected or overlaid should be re-drawed. This module figures out components that should be re-drawed.

Definition in file geo.c.


Function Documentation

static int _is_overlay ( area_t r1,
area_t r2 
) [static]

Definition at line 22 of file geo.c.

void area_init ( area_t area,
int  n_pos,
co_aix  pos[][2] 
)

Note:
{x=0, y=0, w=0, h=0} geometry value for a n_pos=0 request can prevent cursor flasing for Cairo XLib. (see changeset 21db69d46835)

Definition at line 34 of file geo.c.

void geo_from_positions ( geo_t g,
int  n_pos,
co_aix  pos[][2] 
)

Definition at line 79 of file geo.c.

void geo_init ( geo_t g  ) 

Definition at line 73 of file geo.c.

void geo_mark_overlay ( geo_t g,
int  n_others,
geo_t **  others,
int *  n_overlays,
geo_t **  overlays 
)

Definition at line 83 of file geo.c.

int is_overlay ( area_t r1,
area_t r2 
)

Definition at line 30 of file geo.c.

static int is_scale_overlay ( co_aix  x1,
co_aix  w1,
co_aix  x2,
co_aix  w2 
) [static]

Definition at line 11 of file geo.c.

SourceForge.net Logo