Commit Graph

19 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 96f7710c25 Introduce LdRectangle, LdPoint and LdPointArray.
Remove LdCanvasRect and LdSymbolArea.
2011-01-08 09:01:33 +01:00
Přemysl Eric Janouch fda123249a Export more cairo methods to Lua. 2011-01-07 16:15:58 +01:00
Přemysl Eric Janouch c4b8f092b7 Export cairo_{get,set}_line_width to Lua symbols. 2011-01-05 03:56:59 +01:00
Přemysl Eric Janouch fdf1ddbbb1 Move lines around. No functional change. 2011-01-04 23:05:38 +01:00
Přemysl Eric Janouch 721cc30478 Overall cleanup.
* Add missing asserts to exported functions.
* Unify formatting.
* Fix the gtk-doc comment for ld_symbol_category_set_human_name().
* Make ld_library_load() reflect it's declaration.
* Remove an unused variable in ld_library_load_cb().
* Change all char's to gchar's.
2010-12-16 06:51:18 +01:00
Přemysl Eric Janouch 37d898fb1a Change LdSymbolArea members.
Now it contains coordinates of the top-left delimiting
point and computed dimensions (instead of coorinates of
both delimiting points).
2010-12-10 08:57:42 +01:00
Přemysl Eric Janouch 1d956964e2 Random fixes.
Mostly found by -Wextra.
2010-12-05 15:21:00 +01:00
Přemysl Eric Janouch 5a24eaabb2 Made Lua symbol registration more robust. 2010-10-28 09:07:47 +02:00
Přemysl Eric Janouch 9271ce1134 Separate LdLua and LdSymbolCategory.
Originally, ld_lua_load_file_to_category() was adding
registered symbols into a passed LdSymbolCategory object.
This interface has been rewritten to be more generic
by using callbacks to notify about new symbols.
2010-10-27 20:49:21 +02:00
Přemysl Eric Janouch 8b5fa9a49a Implement parts of Lua symbol registration.
The human name and area now gets resolved.
2010-10-27 20:05:52 +02:00
Přemysl Eric Janouch 9156953cc9 Add more properties to LdSymbol.
Also move the actual storage of symbol properties to implementations
of the abstract LdSymbol class. All the properties are read only.
2010-10-27 16:52:00 +02:00
Přemysl Eric Janouch 9a242786b1 Redesign and implement the basic parts of LdLua.
There's a very strong bond between LdLua and LdLuaSymbol.
LdLuaSymbol is more like an interface to LdLua than a separate object.
2010-10-26 16:40:53 +02:00
Přemysl Eric Janouch ffc57249c8 Make LdLibrary call LdLua to load symbol scripts. 2010-10-26 13:58:39 +02:00
Přemysl Eric Janouch e0e63649dc Redesign the library and related components.
This step is needed, since the current design is quite chaotic
and it would not be possible to finish the application.

There's still a lot to be done.

After this step, it's time to implement the rest of LdLua.
2010-10-26 13:58:33 +02:00
Přemysl Eric Janouch 0c9b297e50 Implement part of LdLuaSymbol.
The "new" method requires to be passed a parameter that
makes it possible to call the appropriate render function.

Stub-plemented the "draw" method.
2010-10-17 14:05:53 +02:00
Přemysl Eric Janouch 9fc354e066 Implement a few bits of LdLua.
Some comments in the source code have been updated.
2010-10-17 14:05:53 +02:00
Přemysl Eric Janouch 23a1f25130 Created LdLua class. 2010-10-17 14:05:53 +02:00
Přemysl Eric Janouch c0ec389b59 Renamed LdSymbolLibrary to LdLibrary. 2010-10-17 14:05:53 +02:00
Přemysl Eric Janouch 5da5689541 WIP: Refactoring of the library and symbols 2010-10-17 14:05:53 +02:00