MexProxy

MexProxy — An abstract proxy for mapping MexModel content items to arbitrary GObjects.

Synopsis

struct              MexProxy;
struct              MexProxyClass;
MexModel *          mex_proxy_get_model                 (MexProxy *proxy);
GType               mex_proxy_get_object_type           (MexProxy *proxy);
void                mex_proxy_set_model                 (MexProxy *proxy,
                                                         MexModel *model);

Object Hierarchy

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

Properties

  "model"                    GObject*              : Read / Write
  "object-type"              GType*                : Read / Write / Construct Only

Signals

  "object-created"                                 : Run Last
  "object-removed"                                 : Run First

Description

MexProxy can also be used to limit the number of content items in the model which are translated to GObjects (see mex_proxy_set_limit()), and reorder the content in a model (by changing the start point from which items are added: see mex_proxy_start_at()).

Details

struct MexProxy

struct MexProxy;

struct MexProxyClass

struct MexProxyClass {
  GObjectClass parent_class;

  void (*object_created) (MexProxy   *proxy,
                          MexContent *content,
                          GObject    *object);
  void (*object_removed) (MexProxy   *proxy,
                          MexContent *content,
                          GObject    *object);
};

mex_proxy_get_model ()

MexModel *          mex_proxy_get_model                 (MexProxy *proxy);

mex_proxy_get_object_type ()

GType               mex_proxy_get_object_type           (MexProxy *proxy);

mex_proxy_set_model ()

void                mex_proxy_set_model                 (MexProxy *proxy,
                                                         MexModel *model);

Property Details

The "model" property

  "model"                    GObject*              : Read / Write

MexModel the proxy is listening to.


The "object-type" property

  "object-type"              GType*                : Read / Write / Construct Only

GType for creating GObjects.

Allowed values: GObject

Signal Details

The "object-created" signal

void                user_function                      (MexProxy *mexproxy,
                                                        GObject  *arg1,
                                                        GObject  *arg2,
                                                        gpointer  user_data)      : Run Last

The "object-removed" signal

void                user_function                      (MexProxy *mexproxy,
                                                        GObject  *arg1,
                                                        GObject  *arg2,
                                                        gpointer  user_data)      : Run First