AgsPortlet

AgsPortlet — interfacing portlets

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsPortlet

Includes

#include <ags/object/ags_portlet.h>

Description

The AgsPortlet interface is intended to use with ports containing GObject. Whereas its should implement this interface.

Functions

ags_portlet_get_port ()

GObject *
ags_portlet_get_port (AgsPortlet *portlet);

Get port.

Parameters

portlet

an AgsPortlet

 

Returns

the GObject

Since: 1.0.0


ags_portlet_set_port ()

void
ags_portlet_set_port (AgsPortlet *portlet,
                      GObject *port);

Set port.

Parameters

portlet

an AgsPortlet

 

port

the GObject

 

Since: 1.0.0


ags_portlet_list_safe_properties ()

GList *
ags_portlet_list_safe_properties (AgsPortlet *portlet);

Retrieve thread-safe properties.

Parameters

portlet

an AgsPortlet

 

Returns

a GList containing properties

Since: 1.0.0


ags_portlet_safe_get_property ()

void
ags_portlet_safe_get_property (AgsPortlet *portlet,
                               gchar *property_name,
                               GValue *value);

Get property thread safe.

Parameters

portlet

an AgsPortlet

 

property_name

propertie's name

 

value

the GValue

 

Since: 1.0.0


ags_portlet_safe_set_property ()

void
ags_portlet_safe_set_property (AgsPortlet *portlet,
                               gchar *property_name,
                               GValue *value);

Set property thread safe.

Parameters

portlet

an AgsPortlet

 

property_name

propertie's name

 

value

the GValue

 

Since: 1.0.0


AGS_IS_PORTLET()

#define AGS_IS_PORTLET(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_PORTLET))

AGS_IS_PORTLET_INTERFACE()

#define AGS_IS_PORTLET_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_PORTLET))

AGS_PORTLET()

#define AGS_PORTLET(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PORTLET, AgsPortlet))

AGS_PORTLET_GET_INTERFACE()

#define AGS_PORTLET_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_PORTLET, AgsPortletInterface))

AGS_PORTLET_INTERFACE()

#define AGS_PORTLET_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_PORTLET, AgsPortletInterface))

ags_portlet_get_type ()

GType
ags_portlet_get_type ();

Types and Values

AGS_TYPE_PORTLET

#define AGS_TYPE_PORTLET                    (ags_portlet_get_type())

AgsPortlet

typedef struct _AgsPortlet AgsPortlet;

struct AgsPortletInterface

struct AgsPortletInterface {
  GTypeInterface ginterface;

  GObject* (*get_port)(AgsPortlet *portlet);
  void (*set_port)(AgsPortlet *portlet, GObject *port);

  GList* (*list_safe_properties)(AgsPortlet *portlet);

  void (*safe_get_property)(AgsPortlet *portlet, gchar *property_name, GValue *value);
  void (*safe_set_property)(AgsPortlet *portlet, gchar *property_name, GValue *value);
};