From 3bfdc232f22f0fa5be20e0b603a8287626ec0c2f Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 26 Mar 2013 12:54:41 +0000 Subject: Add edge anchor editing to GTK port Includes functions for testing if an anchor is valid. --- tikzit/src/common/TikzGraphAssembler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tikzit/src/common/TikzGraphAssembler.h') diff --git a/tikzit/src/common/TikzGraphAssembler.h b/tikzit/src/common/TikzGraphAssembler.h index c365128..3403969 100644 --- a/tikzit/src/common/TikzGraphAssembler.h +++ b/tikzit/src/common/TikzGraphAssembler.h @@ -100,6 +100,16 @@ */ + (BOOL)validateTikzPropertyNameOrValue:(NSString*)tikz; +/** + * Validate an edge anchor + * + * Checks that the given string will successfully lex if used as an anchor for + * and edge + * @param tikz the string to validate + * @return YES if the string can be used as an edge anchor, NO otherwise + */ ++ (BOOL)validateTikzEdgeAnchor:(NSString*)tikz; + @end // vi:ft=objc:noet:ts=4:sts=4:sw=4 -- cgit v1.2.3