diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-14 10:14:28 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-14 10:14:28 +0100 |
commit | baed5ee4bd2dd04e49df650b07278a8ceb900cab (patch) | |
tree | babffd783963aa569fe27ed086fb21779d8280df /liblogdiag/ld-diagram-symbol.h | |
parent | 5ccabad6ce7fbceda23ce0fb650d1c2ffd4337a4 (diff) | |
download | logdiag-baed5ee4bd2dd04e49df650b07278a8ceb900cab.tar.gz logdiag-baed5ee4bd2dd04e49df650b07278a8ceb900cab.tar.xz logdiag-baed5ee4bd2dd04e49df650b07278a8ceb900cab.zip |
Allow rotation of symbols.
Bind this action to the right mouse button.
Due to limitations of json-glib, we can't store rotation as an enum.
Diffstat (limited to 'liblogdiag/ld-diagram-symbol.h')
-rw-r--r-- | liblogdiag/ld-diagram-symbol.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/liblogdiag/ld-diagram-symbol.h b/liblogdiag/ld-diagram-symbol.h index d96c0f0..d7dfce2 100644 --- a/liblogdiag/ld-diagram-symbol.h +++ b/liblogdiag/ld-diagram-symbol.h @@ -50,11 +50,21 @@ struct _LdDiagramSymbolClass }; +enum +{ + LD_DIAGRAM_SYMBOL_ROTATION_0, + LD_DIAGRAM_SYMBOL_ROTATION_90, + LD_DIAGRAM_SYMBOL_ROTATION_180, + LD_DIAGRAM_SYMBOL_ROTATION_270 +}; + GType ld_diagram_symbol_get_type (void) G_GNUC_CONST; LdDiagramSymbol *ld_diagram_symbol_new (JsonObject *storage); gchar *ld_diagram_symbol_get_class (LdDiagramSymbol *self); void ld_diagram_symbol_set_class (LdDiagramSymbol *self, const gchar *klass); +gint ld_diagram_symbol_get_rotation (LdDiagramSymbol *self); +void ld_diagram_symbol_set_rotation (LdDiagramSymbol *self, gint rotation); G_END_DECLS |