Changes between Version 8 and Version 9 of documentation/PythonManual/APIReference
- Timestamp:
- 08/31/08 03:48:17 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/PythonManual/APIReference
v8 v9 5 5 6 6 '''CreateContext'''(''name'', ''dimensions''):: 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 9 '''GetContext'''(''name''):: 10 Returns the context called ''name''. If no such context exists, None will be returned. 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 11 8 12 9 '''LoadFontFace'''(''font_path''):: 17 14 18 15 '''Log'''(''type'', ''message''):: 19 Sends a log message to rocket (and the attached debugger if present).[[br]]16 Sends a log message to libRocket (and the attached debugger if present).[[br]] 20 17 type should be one of: 21 18 * rocket.logtype.always 25 22 * rocket.logtype.debug 26 23 24 '''contexts''':: 25 A dictionary of the active libRocket contexts. It can be indexed by string (in which case the context with the matching name is returned), or number (in which case the nth context is returned). The number of contexts can be queried with the ''len'' operator. 26 27 27 == Basic Types == 28 28 434 434 435 435 '''num_tabs''':: 436 436 437 The number of tabs in the tab set. Read-only. 437 438