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);
                    MexProxyPrivate;

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 {
  GObject parent;

  MexProxyPrivate *priv;
};

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);

MexProxyPrivate

typedef struct _MexProxyPrivate MexProxyPrivate;