sp-switch.h revision b411bf4b8d2be4d10c0c5371c3b282639ff47bcf
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński * SVG <switch> implementation
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński * Andrius R. <knutux@gmail.com>
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński * Copyright (C) 2006 authors
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński * Released under GNU GPL, read the file 'COPYING' for more information
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński#define SP_TYPE_SWITCH (sp_switch_get_type())
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński#define SP_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_SWITCH, SPSwitch))
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński#define SP_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_SWITCH, SPSwitchClass))
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński#define SP_IS_SWITCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_SWITCH))
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński#define SP_IS_SWITCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_SWITCH))
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński * Virtual methods of SPSwitch
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński virtual void onChildAdded(Inkscape::XML::Node *child);
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński virtual void onChildRemoved(Inkscape::XML::Node *child);
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński virtual void onOrderChanged(Inkscape::XML::Node *child, Inkscape::XML::Node *old_ref, Inkscape::XML::Node *new_ref);
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński virtual GSList *_childList(bool add_ref, SPObject::Action action);
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński virtual void _showChildren (Inkscape::Drawing &drawing, Inkscape::DrawingItem *ai, unsigned int key, unsigned int flags);
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński void _reevaluate(bool add_to_arena = false);
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński static void _releaseItem(SPObject *obj, CSwitch *selection);
40742313779ee5e43be93a9191f1c86412cf183bKrzysztof Kosiński void resetChildEvaluated() { (static_cast<CSwitch *>(group))->_reevaluate(); }