Top | ![]() |
![]() |
![]() |
![]() |
IdeMarkedContent * ide_marked_content_new (GBytes *content
,IdeMarkedKind kind
);
Creates a new IdeMarkedContent using the bytes provided.
Since: 3.32
IdeMarkedContent *
ide_marked_content_new_plaintext (const gchar *plaintext
);
Creates a new IdeMarkedContent of type IDE_MARKED_KIND_PLAINTEXT
with the contents of string
.
Since: 3.32
IdeMarkedContent * ide_marked_content_new_from_data (const gchar *data
,gssize len
,IdeMarkedKind kind
);
Creates a new IdeMarkedContent from the provided data.
data |
the data for the content |
|
len |
the length of the data, or -1 to |
|
kind |
the kind of markup |
Since: 3.32
GBytes *
ide_marked_content_get_bytes (IdeMarkedContent *self
);
Gets the bytes for the marked content.
Since: 3.32
IdeMarkedKind
ide_marked_content_get_kind (IdeMarkedContent *self
);
Gets the kind of markup that self
contains.
This is used to display the content appropriately.
Since: 3.32
gchar *
ide_marked_content_as_string (IdeMarkedContent *self
);
Gets the contents of the marked content as a newly allcoated C string.
Since: 3.32
IdeMarkedContent *
ide_marked_content_ref (IdeMarkedContent *self
);
Increments the reference count of self
by one.
When a IdeMarkedContent reaches a reference count of zero, by using
ide_marked_content_unref()
, it will be freed.
Since: 3.32
void
ide_marked_content_unref (IdeMarkedContent *self
);
Decrements the reference count of self
by one.
When the reference count of self
reaches zero, it will be freed.
Since: 3.32