MatrixMessageImage

MatrixMessageImage — Class to hold a m.image message

Functions

Types and Values

Description

This message represents a single image and an optional thumbnail.

Functions

MATRIX_MESSAGE_TYPE_IMAGE

#define MATRIX_MESSAGE_TYPE_IMAGE (matrix_message_image_get_type ())

The type for MatrixMessageImage.


matrix_message_image_new ()

MatrixMessageImage *
matrix_message_image_new (void);

matrix_message_image_get_url ()

const gchar *
matrix_message_image_get_url (MatrixMessageImage *self);

Get and return the current value of the "url" property.

The URL to the image.

Parameters

self

the MatrixMessageImage instance to query

 

Returns

the value of the "url" property


matrix_message_image_set_url ()

void
matrix_message_image_set_url (MatrixMessageImage *self,
                              const gchar *value);

Set the value of the "url" property to value .

The URL to the image.

Parameters

self

the MatrixMessageImage instance to modify

 

value

the new value of the "url" property

 

matrix_message_image_get_thumbnail_url ()

const gchar *
matrix_message_image_get_thumbnail_url
                               (MatrixMessageImage *self);

Get and return the current value of the "thumbnail-url" property.

The URL to the thumbnail of the image.

Parameters

self

the MatrixMessageImage instance to query

 

Returns

the value of the "thumbnail-url" property


matrix_message_image_set_thumbnail_url ()

void
matrix_message_image_set_thumbnail_url
                               (MatrixMessageImage *self,
                                const gchar *value);

Set the value of the "thumbnail-url" property to value .

The URL to the thumbnail of the image.

Parameters

self

the MatrixMessageImage instance to modify

 

value

the new value of the "thumbnail-url" property

 

matrix_message_image_get_info ()

MatrixImageInfo *
matrix_message_image_get_info (MatrixMessageImage *self);

Get and return the current value of the "info" property.

Metadata about the image referred to in url.

Parameters

self

the MatrixMessageImage instance to query

 

Returns

the value of the "info" property


matrix_message_image_set_info ()

void
matrix_message_image_set_info (MatrixMessageImage *self,
                               MatrixImageInfo *value);

Set the value of the "info" property to value .

Metadata about the image referred to in url.

Parameters

self

the MatrixMessageImage instance to modify

 

value

the new value of the "info" property

 

matrix_message_image_get_thumbnail_info ()

MatrixImageInfo *
matrix_message_image_get_thumbnail_info
                               (MatrixMessageImage *self);

Get and return the current value of the "thumbnail-info" property.

Metadata about the image referred to in thumbnail_url.

Parameters

self

the MatrixMessageImage instance to query

 

Returns

the value of the "thumbnail-info" property


matrix_message_image_set_thumbnail_info ()

void
matrix_message_image_set_thumbnail_info
                               (MatrixMessageImage *self,
                                MatrixImageInfo *value);

Set the value of the "thumbnail-info" property to value .

Metadata about the image referred to in thumbnail_url.

Parameters

self

the MatrixMessageImage instance to modify

 

value

the new value of the "thumbnail-info" property

 

Types and Values

struct MatrixMessageImage

struct MatrixMessageImage {
	MatrixMessageBase parent_instance;
	MatrixMessageImagePrivate * priv;
};

Class to hold a m.image message

This message represents a single image and an optional thumbnail.


struct MatrixMessageImageClass

struct MatrixMessageImageClass {
	MatrixMessageBaseClass parent_class;
};

The class structure for MATRIX_MESSAGE_TYPE_IMAGE. All the fields in this structure are private and should never be accessed directly.

Members

MatrixMessageBaseClass parent_class;

the parent class structure