scbpoint.h File Reference

#include "scbstream.h"
Include dependency graph for scbpoint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _ScbPoint
struct  _ScbDevPoint

Typedefs

typedef struct _ScbPoint ScbPoint
typedef ScbPointScbPointPtr
typedef struct _ScbDevPoint ScbDevPoint
typedef ScbDevPointScbDevPointPtr

Functions

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

Typedef Documentation

typedef struct _ScbDevPoint ScbDevPoint

Definition at line 82 of file scbpoint.h.

typedef struct _ScbPoint ScbPoint

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

Definition at line 73 of file scbpoint.h.


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