src/X_main.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/select.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <cairo.h>
#include <cairo-xlib.h>
#include <string.h>
#include "mb_shapes.h"
#include "mb_redraw_man.h"
#include "mb_paint.h"
#include "mb_timer.h"
#include "mb_animate.h"

Go to the source code of this file.

Defines

#define OK   0
#define ERR   -1

Functions

void hint_shape (redraw_man_t *rdman, shape_t *shape)
void event_interaction (Display *display, redraw_man_t *rdman, int w, int h)
void handle_connection (Display *display, mb_tman_t *tman, redraw_man_t *rdman, int w, int h)
void draw_path (cairo_t *cr, int w, int h)
void drawing (cairo_surface_t *surface, int w, int h)
int main (int argc, char *const argv[])

Variables

Display * display
Window win


Define Documentation

#define ERR   -1

Definition at line 18 of file X_main.c.

#define OK   0

Definition at line 17 of file X_main.c.


Function Documentation

void draw_path ( cairo_t *  cr,
int  w,
int  h 
)

Definition at line 122 of file X_main.c.

void drawing ( cairo_surface_t *  surface,
int  w,
int  h 
)

Definition at line 260 of file X_main.c.

void event_interaction ( Display *  display,
redraw_man_t rdman,
int  w,
int  h 
)

Definition at line 38 of file X_main.c.

void handle_connection ( Display *  display,
mb_tman_t tman,
redraw_man_t rdman,
int  w,
int  h 
)

Definition at line 70 of file X_main.c.

void hint_shape ( redraw_man_t rdman,
shape_t shape 
)

Definition at line 23 of file X_main.c.

int main ( int  argc,
char *const   argv[] 
)

Definition at line 271 of file X_main.c.


Variable Documentation

Display* display

Definition at line 20 of file X_main.c.

Window win

Definition at line 21 of file X_main.c.

SourceForge.net Logo