
Go to the source code of this file.
Defines | |
| #define | SCB_GTK_DRAW_PAGE(doc, pageId, drawable, gc) |
| #define | SCB_TOOLBAR_INIT(doc, channel, id) |
| #define | SCB_TOOLBAR_MAP(doc, s, i) |
| #define | SCB_TOOLBAR_UPDATE(doc, channel) |
| #define | SCB_ACTION_SCRIBBLE(doc, channel, iconId) |
| #define | SCB_ACTION_SELECT_PEN_SIZE(doc, channel, iconId) |
| #define | SCB_ACTION_SELECT_LINE_COLOR(doc, channel, iconId) |
| #define | SCB_ACTION_ERASE(doc, channel, iconId) |
| #define | SCB_TOOLBAR_ON_RECEIVE_MSG(doc, channel, iconId) |
| #define SCB_ACTION_ERASE | ( | doc, | |||
| channel, | |||||
| iconId | ) |
Value:
{\
if (SCB_TBS_ERASE != doc->context.curState)\
{\
doc->context.curState = SCB_TBS_ERASE;\
}\
else\
{\
doc->context.curState = SCB_TBS_SCRIBBLE;\
}\
SCB_TOOLBAR_UPDATE(doc, channel)\
}
Definition at line 257 of file scbmacro.h.
| #define SCB_ACTION_SCRIBBLE | ( | doc, | |||
| channel, | |||||
| iconId | ) |
Value:
{\
if (SCB_TBS_SCRIBBLE == doc->context.curState)\
{\
doc->context.curState = SCB_TBS_NONE;\
}\
else\
{\
doc->context.curState = SCB_TBS_SCRIBBLE;\
}\
SCB_TOOLBAR_UPDATE(doc, channel)\
}
Definition at line 207 of file scbmacro.h.
| #define SCB_ACTION_SELECT_LINE_COLOR | ( | doc, | |||
| channel, | |||||
| iconId | ) |
Value:
{\
if (SCB_TBS_SELECT_LINE_COLOR != doc->context.curState)\
{\
doc->context.curState = SCB_TBS_SELECT_LINE_COLOR;\
}\
else\
{\
doc->context.curState = SCB_TBS_SCRIBBLE;\
doc->context.curStrokeStyle.color = SCB_DEV_COLOR_BLACK - ((int)iconId - (int)iconID_pencolorbl);\
}\
SCB_TOOLBAR_UPDATE(doc, channel)\
}
Definition at line 240 of file scbmacro.h.
| #define SCB_ACTION_SELECT_PEN_SIZE | ( | doc, | |||
| channel, | |||||
| iconId | ) |
Value:
{\
if (SCB_TBS_SELECT_PEN_SIZE != doc->context.curState)\
{\
doc->context.curState = SCB_TBS_SELECT_PEN_SIZE;\
}\
else\
{\
doc->context.curState = SCB_TBS_SCRIBBLE;\
doc->context.curStrokeStyle.penSize = ((int)iconId - (int)iconID_pen1pixel) * 2 + 1;\
}\
SCB_TOOLBAR_UPDATE(doc, channel)\
}
Definition at line 223 of file scbmacro.h.
| #define SCB_GTK_DRAW_PAGE | ( | doc, | |||
| pageId, | |||||
| drawable, | |||||
| gc | ) |
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.
Definition at line 43 of file scbmacro.h.
| #define SCB_TOOLBAR_INIT | ( | doc, | |||
| channel, | |||||
| id | ) |
Value:
{\
doc->context.appId = id;\
SCB_TOOLBAR_UPDATE(doc, channel);\
}
Definition at line 94 of file scbmacro.h.
| #define SCB_TOOLBAR_MAP | ( | doc, | |||
| s, | |||||
| i | ) |
Value:
{\
ScbTBSItem item;\
item.state = s;\
item.iconId = i;\
scb_doc_add_map_item(doc, &item);\
}
Definition at line 100 of file scbmacro.h.
| #define SCB_TOOLBAR_ON_RECEIVE_MSG | ( | doc, | |||
| channel, | |||||
| iconId | ) |
Value:
{\
if (iconID_pen == iconId)\
{\
SCB_ACTION_SCRIBBLE(doc, channel, iconId);\
}\
else if ((int)iconID_pen1pixel <= iconId && (int)iconID_pen7pixel >= iconId)\
{\
SCB_ACTION_SELECT_PEN_SIZE(doc, channel, iconId);\
}\
else if ((int)iconID_pencolorbl <= iconId && (int)iconID_pencolorwh >= iconId)\
{\
SCB_ACTION_SELECT_LINE_COLOR(doc, channel, iconId);\
}\
else if (iconID_eraseline == iconId)\
{\
SCB_ACTION_ERASE(doc, channel, iconId);\
}\
}
Definition at line 273 of file scbmacro.h.
| #define SCB_TOOLBAR_UPDATE | ( | doc, | |||
| channel | ) |
Definition at line 108 of file scbmacro.h.
1.5.6