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 ERSCRIBBLE_ACTION_ERASE | ( | doc, | |||
channel, | |||||
iconId | ) |
{\ 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 | ) |
{\ 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 | ) |
{\ 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 | ) |
{\ 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 | ) |
{\ doc->context.appId = id;\ ERSCRIBBLE_TOOLBAR_UPDATE(doc, channel);\ }
Definition at line 92 of file scbmacro.h.
#define ERSCRIBBLE_TOOLBAR_MAP | ( | doc, | |||
s, | |||||
i | ) |
{\ 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 | ) |
{\ 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.