Top | ![]() |
![]() |
![]() |
![]() |
DhLinkDhLink — A link inside a DhBook |
DhLink * | dh_link_new () |
DhLink * | dh_link_ref () |
void | dh_link_unref () |
DhLinkType | dh_link_get_link_type () |
DhLinkFlags | dh_link_get_flags () |
void | dh_link_set_flags () |
const gchar * | dh_link_get_name () |
const gchar * | dh_link_get_file_name () |
gchar * | dh_link_get_uri () |
const gchar * | dh_link_get_book_name () |
const gchar * | dh_link_get_book_id () |
gint | dh_link_compare () |
const gchar * | dh_link_type_to_string () |
A DhLink represents a link to an HTML page or somewhere inside a page (with an anchor) that is inside a DhBook. The link can point to a specific symbol, or a page, or the top-level page of the DhBook.
A DhLink has a type that can be retrieved with dh_link_get_link_type()
.
There is exactly one DhLink of type DH_LINK_TYPE_BOOK
per DhBook object.
DhLink * dh_link_new (DhLinkType type
,const gchar *base_path
,const gchar *book_id
,DhLink *book
,const gchar *name
,const gchar *relative_url
);
Creates a new DhLink.
base_path
and book_id
must be provided only for a link of type
DH_LINK_TYPE_BOOK
.
If type
is not a DH_LINK_TYPE_BOOK, then the book
link must be provided.
name
and relative_url
must always be provided.
type |
the DhLinkType. |
|
base_path |
the base path for the book, or |
[nullable] |
book_id |
the book ID, or |
[nullable] |
name |
the name of the link. |
|
book |
the book that the link is contained in, or |
[nullable] |
relative_url |
the URL relative to the book |
void dh_link_set_flags (DhLink *link
,DhLinkFlags flags
);
Sets the flags of the link.
gint dh_link_compare (gconstpointer a
,gconstpointer b
);
Compares the links a
and b
. This function is used to determine in which
order the links should be displayed.
The type of the content the link points to.
The top-level page of a DhBook. |
||
A page. |
||
Another kind of keyword. |
||
A function keyword. |
||
A struct keyword. |
||
A macro keyword. |
||
An enum keyword. |
||
A typedef keyword. |
||
A property keyword. |
||
A signal keyword. |