scbpoint.c File Reference

#include <stdio.h>
#include "scbpoint.h"
#include "scbtype.h"
#include "scblog.h"
Include dependency graph for scbpoint.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Functions

gboolean erscribble_point_load (ScbDevPointPtr point, ScbStreamPtr stream)
void erscribble_point_dump (const ScbPointPtr p)

Define Documentation

#define _GNU_SOURCE

Copyright (C) 2008 iRex Technologies B.V. All rights reserved.

Definition at line 28 of file scbpoint.c.


Function Documentation

void erscribble_point_dump ( const ScbPointPtr  p  ) 

Definition at line 77 of file scbpoint.c.

References DUMPPRINTF, ERSCRIBBLE_RET_IF, _ScbPoint::x, and _ScbPoint::y.

00078 {
00079     ERSCRIBBLE_RET_IF(p == NULL, "NULL pointer!");
00080     DUMPPRINTF("(%d, %d)", p->x, p->y);
00081 }

gboolean erscribble_point_load ( ScbDevPointPtr  point,
ScbStreamPtr  stream 
)

Definition at line 69 of file scbpoint.c.

References erscribble_read_stream(), and ERSCRIBBLE_RET_FALSE_IF.

Referenced by erscribble_stroke_load().

00070 {
00071     ERSCRIBBLE_RET_FALSE_IF(NULL == point || NULL == stream, "Invalid point or stream!");
00072 
00073     return erscribble_read_stream(stream, point, sizeof(ScbDevPoint));
00074 }

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  doxygen 1.6.2-20100208