scbmacro.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ERSCRIBBLE_GTK_DRAW_PAGE(doc, pageId, drawable, gc)
#define ERSCRIBBLE_TOOLBAR_INIT(doc, channel, id)
#define ERSCRIBBLE_TOOLBAR_MAP(doc, s, i)
#define erscribble_TOOLBAR_UPDATE(doc, channel)
#define ERSCRIBBLE_ACTION_SCRIBBLE(doc, channel, iconId)
#define ERSCRIBBLE_ACTION_SELECT_PEN_SIZE(doc, channel, iconId)
#define ERSCRIBBLE_ACTION_SELECT_LINE_COLOR(doc, channel, iconId)
#define ERSCRIBBLE_ACTION_ERASE(doc, channel, iconId)
#define ERSCRIBBLE_TOOLBAR_ON_RECEIVE_MSG(doc, channel, iconId)

Define Documentation

#define ERSCRIBBLE_ACTION_ERASE ( doc,
channel,
iconId   ) 
Value:
{\
    if (ERSCRIBBLE_TBS_ERASE != doc->context.curState)\
    {\
        doc->context.curState = ERSCRIBBLE_TBS_ERASE;\
    }\
    else\
    {\
        doc->context.curState = ERSCRIBBLE_TBS_SCRIBBLE;\
    }\
    ERSCRIBBLE_TOOLBAR_UPDATE(doc, channel)\
}

Definition at line 255 of file scbmacro.h.

#define ERSCRIBBLE_ACTION_SCRIBBLE ( doc,
channel,
iconId   ) 
Value:
{\
    if (ERSCRIBBLE_TBS_SCRIBBLE == doc->context.curState)\
    {\
        doc->context.curState = ERSCRIBBLE_TBS_NONE;\
    }\
    else\
    {\
        doc->context.curState = ERSCRIBBLE_TBS_SCRIBBLE;\
    }\
    ERSCRIBBLE_TOOLBAR_UPDATE(doc, channel)\
}

Definition at line 205 of file scbmacro.h.

#define ERSCRIBBLE_ACTION_SELECT_LINE_COLOR ( doc,
channel,
iconId   ) 
Value:
{\
    if (ERSCRIBBLE_TBS_SELECT_LINE_COLOR != doc->context.curState)\
    {\
        doc->context.curState = ERSCRIBBLE_TBS_SELECT_LINE_COLOR;\
    }\
    else\
    {\
        doc->context.curState = ERSCRIBBLE_TBS_SCRIBBLE;\
        doc->context.curStrokeStyle.color = ERSCRIBBLE_DEV_COLOR_BLACK - ((int)iconId - (int)iconID_pencolorbl);\
    }\
    ERSCRIBBLE_TOOLBAR_UPDATE(doc, channel)\
}

Definition at line 238 of file scbmacro.h.

#define ERSCRIBBLE_ACTION_SELECT_PEN_SIZE ( doc,
channel,
iconId   ) 
Value:
{\
    if (ERSCRIBBLE_TBS_SELECT_PEN_SIZE != doc->context.curState)\
    {\
        doc->context.curState = ERSCRIBBLE_TBS_SELECT_PEN_SIZE;\
    }\
    else\
    {\
        doc->context.curState = ERSCRIBBLE_TBS_SCRIBBLE;\
        doc->context.curStrokeStyle.penSize = ((int)iconId - (int)iconID_pen1pixel) * 2 + 1;\
    }\
    ERSCRIBBLE_TOOLBAR_UPDATE(doc, channel)\
}

Definition at line 221 of file scbmacro.h.

#define ERSCRIBBLE_GTK_DRAW_PAGE ( doc,
pageId,
drawable,
gc   ) 

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

Definition at line 41 of file scbmacro.h.

#define ERSCRIBBLE_TOOLBAR_INIT ( doc,
channel,
id   ) 
Value:
{\
    doc->context.appId = id;\
    ERSCRIBBLE_TOOLBAR_UPDATE(doc, channel);\
}

Definition at line 92 of file scbmacro.h.

#define ERSCRIBBLE_TOOLBAR_MAP ( doc,
s,
 ) 
Value:
{\
    ScbTBSItem item;\
    item.state  = s;\
    item.iconId = i;\
    erscribble_doc_add_map_item(doc, &item);\
}

Definition at line 98 of file scbmacro.h.

#define ERSCRIBBLE_TOOLBAR_ON_RECEIVE_MSG ( doc,
channel,
iconId   ) 
Value:
{\
    if (iconID_pen == iconId)\
    {\
        ERSCRIBBLE_ACTION_SCRIBBLE(doc, channel, iconId);\
    }\
    else if ((int)iconID_pen1pixel <= iconId && (int)iconID_pen7pixel >= iconId)\
    {\
        ERSCRIBBLE_ACTION_SELECT_PEN_SIZE(doc, channel, iconId);\
    }\
    else if ((int)iconID_pencolorbl <= iconId && (int)iconID_pencolorwh >= iconId)\
    {\
        ERSCRIBBLE_ACTION_SELECT_LINE_COLOR(doc, channel, iconId);\
    }\
    else if (iconID_eraseline == iconId)\
    {\
        ERSCRIBBLE_ACTION_ERASE(doc, channel, iconId);\
    }\
}

Definition at line 271 of file scbmacro.h.

#define erscribble_TOOLBAR_UPDATE ( doc,
channel   ) 

Definition at line 106 of file scbmacro.h.

Generated by  doxygen 1.6.2-20100208