MexContentProxy

MexContentProxy — A bridge between a model and user interface elements, which creates widgets from model content items.

Synopsis

struct              MexContentProxy;
struct              MexContentProxyClass;
MexProxy *          mex_content_proxy_new               (MexModel *model,
                                                         ClutterContainer *view,
                                                         GType object_type);
void                mex_content_proxy_set_stage         (MexContentProxy *proxy,
                                                         ClutterStage *stage);
                    MexContentProxyPrivate;

Object Hierarchy

  GObject
   +----MexProxy
         +----MexContentProxy

Properties

  "view"                     ClutterContainer*     : Read / Write

Description

An MexContentProxy is associated with an MexModel, a ClutterContainer, and an MxWidget subclass which implements MexContentView.

As objects from the model are added to the proxy, they are added to the container as widgets of the specified class.

The implementation of MexContentView determines how metadata or other properties of a content item are translated to properties on the widget.

Details

struct MexContentProxy

struct MexContentProxy;

struct MexContentProxyClass

struct MexContentProxyClass {
    MexProxyClass parent_class;
};

mex_content_proxy_new ()

MexProxy *          mex_content_proxy_new               (MexModel *model,
                                                         ClutterContainer *view,
                                                         GType object_type);

mex_content_proxy_set_stage ()

void                mex_content_proxy_set_stage         (MexContentProxy *proxy,
                                                         ClutterStage *stage);

MexContentProxyPrivate

typedef struct _MexContentProxyPrivate MexContentProxyPrivate;

Property Details

The "view" property

  "view"                     ClutterContainer*     : Read / Write

The view that will display the objects.