mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 05:46:00 +01:00
2192b7172c
This is useful when the text of the link doesn't match its target. The default key is set to 'F'. See issue 266 <http://bugs.pwmt.org/issue266>. Reported-by: Iron <o380770@rtrtr.com> Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
67 lines
1.4 KiB
C
67 lines
1.4 KiB
C
/* See LICENSE file for license and copyright information */
|
|
|
|
#ifndef LINK_H
|
|
#define LINK_H
|
|
|
|
#include "types.h"
|
|
|
|
/**
|
|
* Creates a new zathura link
|
|
*
|
|
* @param type Type of the link
|
|
* @param position Position of the link
|
|
* @param target Target
|
|
* @return New zathura link
|
|
*/
|
|
zathura_link_t*
|
|
zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position,
|
|
zathura_link_target_t target);
|
|
|
|
/**
|
|
* Free link
|
|
*
|
|
* @param link The link
|
|
*/
|
|
void zathura_link_free(zathura_link_t* link);
|
|
|
|
/**
|
|
* Returns the type of the link
|
|
*
|
|
* @param link The link
|
|
* @return The target type of the link
|
|
*/
|
|
zathura_link_type_t zathura_link_get_type(zathura_link_t* link);
|
|
|
|
/**
|
|
* Returns the position of the link
|
|
*
|
|
* @param link The link
|
|
* @return The position of the link
|
|
*/
|
|
zathura_rectangle_t zathura_link_get_position(zathura_link_t* link);
|
|
|
|
/**
|
|
* The target value of the link
|
|
*
|
|
* @param link The link
|
|
* @return Returns the target of the link (depends on the link type)
|
|
*/
|
|
zathura_link_target_t zathura_link_get_target(zathura_link_t* link);
|
|
|
|
/**
|
|
* Evaluate link
|
|
*
|
|
* @param zathura Zathura instance
|
|
* @param link The link
|
|
*/
|
|
void zathura_link_evaluate(zathura_t* zathura, zathura_link_t* link);
|
|
|
|
/**
|
|
* Display a link using girara_notify
|
|
*
|
|
* @param zathura Zathura instance
|
|
* @param link The link
|
|
*/
|
|
void zathura_link_display(zathura_t* zathura, zathura_link_t* link);
|
|
|
|
#endif // LINK_H
|