gegl-qt  0.0.7
Integration library for using GEGL in Qt based applications
GeglQt::NodeViewDeclarativeItem Class Reference

QDeclarativeItem showing the output of a GeglNode. More...

#include <nodeviewdeclarativeitem.h>

List of all members.

Signals

void inputNodeChanged ()
void optionsChanged ()

Public Member Functions

 NodeViewDeclarativeItem (QDeclarativeItem *parent=0)
 ~NodeViewDeclarativeItem ()
GeglNodePtr inputNode ()
 The node this widget displays.
void setInputNode (GeglNodePtr node)
 Set the node to display.
GeglQt::NodeViewOptionsoptions () const
 The options used on this widget.
void setOptions (GeglQt::NodeViewOptions *newOptions)
void setInputNodeVariant (QVariant node)
QVariant inputNodeVariant ()
void geometryChanged (const QRectF &newGeometry, const QRectF &oldGeometry)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)

Properties

GeglQt::NodeViewOptions options
QVariant inputNode

Detailed Description

QDeclarativeItem showing the output of a GeglNode.

Typically used from QML, but can also be instantiated by C++.


Constructor & Destructor Documentation

NodeViewDeclarativeItem::NodeViewDeclarativeItem ( QDeclarativeItem *  parent = 0) [explicit]
NodeViewDeclarativeItem::~NodeViewDeclarativeItem ( )

Member Function Documentation

void NodeViewDeclarativeItem::geometryChanged ( const QRectF &  newGeometry,
const QRectF &  oldGeometry 
)
GeglNodePtr GeglQt::NodeViewDeclarativeItem::inputNode ( )

The node this widget displays.

Returns:
The GeglNode
void GeglQt::NodeViewDeclarativeItem::inputNodeChanged ( ) [signal]
QVariant NodeViewDeclarativeItem::inputNodeVariant ( )
GeglQt::NodeViewOptions* GeglQt::NodeViewDeclarativeItem::options ( ) const

The options used on this widget.

void GeglQt::NodeViewDeclarativeItem::optionsChanged ( ) [signal]
void NodeViewDeclarativeItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
void NodeViewDeclarativeItem::setInputNode ( GeglNodePtr  node)

Set the node to display.

Parameters:
nodeThe GeglNode to display, or 0 to unset

Will reference the GeglNode.

void NodeViewDeclarativeItem::setInputNodeVariant ( QVariant  node)
void NodeViewDeclarativeItem::setOptions ( GeglQt::NodeViewOptions newOptions)

Property Documentation

GeglNode * NodeViewDeclarativeItem::inputNode [read, write]
NodeViewOptions * NodeViewDeclarativeItem::options [read, write]

The documentation for this class was generated from the following files: