Interface
TalkatuMessage
Description [src]
interface Talkatu.Message : GObject.Object
TalkatuMessage
is an opaque data structure and can only be accessed using
the following functions.
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
.
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.
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.
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 |
|
No description available. | |
remove_attachment |
|
No description available. | |
get_attachment |
|
No description available. | |
foreach_attachment |
|
No description available. | |
clear_attachments |
|
No description available. |
Virtual methods
Talkatu.Message.foreach_attachment
Calls func
for each TalkatuAttachment
that’s attached to message
.