-
Notifications
You must be signed in to change notification settings - Fork 11
UIObject
ben-sangster edited this page Nov 9, 2010
·
3 revisions
The base class for all of the bindings. Based on QObject.
N/A
String className ()
- Returns object class name as string
String objectName (String value)
-
If called with an argument, set object's object name to value.
-
Always returns objectName. Returns new name if set.
Widget lookup (String WidgetName)
- Return a JS object representation of the object's child with specified name if object has a matching child.
void observe (self, [String widgetName], String SignalName, Function fnc)
-
Add observer to call function fnc whenever object receives signal SignalName.
-
If the optional second argument is given, the observer is set on the child widget with the name widgetName. This is done to allow programmers to set observers for widgets without having to explicitly perform a lookup on each one first.
Type property (String Name)
- Returns the value of object's property with name Name. The return type is determined by the specified property.
FunctionPtr callback (self, String Signal)
- Returns the function associated with the specified signal for object