Zen
A cross-platform functional programming language

view Class Reference

Intrinsic gui view type. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 view ()
 Default constructor.
 view (const view &src)
 Copy constructor.
 ~view ()
 Destructor.
viewoperator= (const view &src)
 Assign a view to this instance.
viewclear ()
 Clear the view.
viewset (QDeclarativeView *val)
 Assign a view to this instance.
QDeclarativeView & get ()
 Returns the stored value.
viewload (const z::string &filename)
 Load a QML file.
viewsetCallback (const z::string &name, QObject *obj)
 Set an object containing callback functions.
viewshow ()
 Show the view.
widget operator[] (const z::string &idx) const
 Get a named widget.

Private Attributes

QDeclarativeView * _val
 The value.

Detailed Description

Intrinsic gui view type.

Represents a QML view.


Constructor & Destructor Documentation

view ( const view src) [inline]

Copy constructor.

Parameters:
srcThe source instance

Member Function Documentation

view& clear ( ) [inline]

Clear the view.

Returns:
Self reference
QDeclarativeView& get ( ) [inline]

Returns the stored value.

Returns:
The value
view& load ( const z::string filename) [inline]

Load a QML file.

Parameters:
filenameThe file to load
Returns:
Self reference
view& operator= ( const view src) [inline]

Assign a view to this instance.

Parameters:
srcThe value to assign
Returns:
Self reference
widget operator[] ( const z::string idx) const [inline]

Get a named widget.

Parameters:
idxName of the widget
Returns:
Widget instance
view& set ( QDeclarativeView *  val) [inline]

Assign a view to this instance.

Parameters:
valThe value to assign
Returns:
Self reference
view& setCallback ( const z::string name,
QObject *  obj 
) [inline]

Set an object containing callback functions.

Parameters:
nameThe name of the callback object
objThe callback object to set
Returns:
Self reference
view& show ( ) [inline]

Show the view.

Returns:
Self reference

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines