Changes between Version 5 and Version 6 of documentation/PythonManual/APIReference
- Timestamp:
- 04/08/08 11:33:45 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/PythonManual/APIReference
v5 v6 7 7 Creates and returns a new context called ''name'', with initial dimensions of ''dimensions''. The dimensions are a ''Vector2i'' type. The name of the context must be unique; if it is not, None will be returned. 8 8 9 '''GetContext (''name'')::9 '''GetContext'''(''name''):: 10 10 Returns the context called ''name''. If no such context exists, None will be returned. 11 11 13 13 Loads the font face at ''font_path''. The function will return True if the font face was loaded, False if not. 14 14 15 '''RegisterTag'''( tag_name, class_definition)::15 '''RegisterTag'''(''tag_name'', ''class_definition''):: 16 16 Registers an Python class to instance when a specific XML tag is encountered in an RML file. 17 17 18 '''Log'''( type, message)::18 '''Log'''(''type'', ''message''):: 19 19 Sends a log message to rocket (and the attached debugger if present).[[br]] 20 20 type should be one of: