common-context.cpp revision 4fe50a80bfee178be2bb98e881a327464cd77982
#include "common-context.h"
#include "config.h"
#include "forward.h"
#include "message-context.h"
#define DRAG_DEFAULT 1.0
#define MIN_PRESSURE 0.0
#define MAX_PRESSURE 1.0
#define DEFAULT_PRESSURE 1.0
static SPEventContextClass *common_parent_class = 0;
{
if (!type) {
sizeof(SPCommonContextClass),
0, // base_init
0, // base_finalize
0, // class_finalize
0, // class_data
sizeof(SPCommonContext),
0, // n_preallocs
0 // value_table
};
type = g_type_register_static(SP_TYPE_EVENT_CONTEXT, "SPCommonContext", &info, static_cast<GTypeFlags>(0));
}
return type;
}
{
}
{
// ctx->cursor_shape = cursor_eraser_xpm;
// ctx->hot_x = 4;
// ctx->hot_y = 4;
ctx->accumulated = 0;
ctx->currentcurve = 0;
ctx->currentshape = 0;
/* Common values */
/* attributes */
}
{
if (ctx->accumulated) {
ctx->accumulated = 0;
}
}
if (ctx->currentcurve) {
ctx->currentcurve = 0;
}
}
}
if (ctx->currentshape) {
ctx->currentshape = 0;
}
if (ctx->_message_context) {
delete ctx->_message_context;
ctx->_message_context = 0;
}
}
{
}
static void sp_common_context_set(SPEventContext */*ec*/, gchar const */*key*/, gchar const */*value*/)
{
}
{
return 0;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :