Interface
TalkatuMessage
since: 0.0
Description [src]
interface Talkatu.Message : GObject.Object
TalkatuMessage
is an opaque data structure and can only be accessed using
the following functions.
Available since: 0.0
Prerequisite
In order to implement Message, your type must inherit fromGObject
.
Instance methods
talkatu_message_foreach_attachment
Calls func
for each TalkatuAttachment
that’s attached to message
.
since: 0.0
talkatu_message_get_attachment
Retrieves the TalkatuAttachment
identified by id
from message
.
since: 0.0
talkatu_message_get_author_name_color
Gets a GdkRGBA
that the author’s name will be rendered with or NULL
if no
color is set.
since: 0.0
talkatu_message_remove_attachment
Removes the TalkatuAttachment
identified by id
if it exists.
since: 0.0
talkatu_message_set_author_name_color
Sets the color for the name of the author of message
to color
. Calling
this with color
set to NULL
will unset a previously set color.
since: 0.0
Interface structure
struct TalkatuMessageInterface {
gboolean (* add_attachment) (
TalkatuMessage* message,
TalkatuAttachment* attachment
);
gboolean (* remove_attachment) (
TalkatuMessage* message,
guint64 id
);
TalkatuAttachment* (* get_attachment) (
TalkatuMessage* message,
guint64 id
);
void (* foreach_attachment) (
TalkatuMessage* message,
TalkatuAttachmentForeachFunc func,
gpointer data
);
void (* clear_attachments) (
TalkatuMessage* message
);
}
TalkatuMessage
is an interface to be implemented that standardizes the way
messages are handled. All of its properties should be overridden with a
sensible value returned for them.
It also needs to implement a storage mechanism for attachments which are identified by a #guint64.
Interface members
add_attachment |
|
The add_attachment vfunc is called to add an attachment to the message. |
|
remove_attachment |
|
The remove_attachment vfunc is called to remove an attachment from the message. |
|
get_attachment |
|
The get_attachment vfunc gets an attachment from the message. |
|
foreach_attachment |
|
The foreach_attachment vfunc is called to iterate over each attachment in the message and call the provided TalkatuForeachAttachmentFunc on them. |
|
clear_attachments |
|
The clear_attachments vfunc is called to clear all attachments from the message. |
Virtual methods
Talkatu.Message.foreach_attachment
Calls func
for each TalkatuAttachment
that’s attached to message
.
since: 0.0
Talkatu.Message.get_attachment
Retrieves the TalkatuAttachment
identified by id
from message
.
since: 0.0
Talkatu.Message.remove_attachment
Removes the TalkatuAttachment
identified by id
if it exists.
since: 0.0