mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 06:33:47 +01:00
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
|
/* See LICENSE file for license and copyright information */
|
||
|
|
||
|
#ifndef DOCUMENT_WIDGET_H
|
||
|
#define DOCUMENT_WIDGET_H
|
||
|
|
||
|
#include <gtk/gtk.h>
|
||
|
#include "document.h"
|
||
|
|
||
|
typedef struct zathura_document_widget_s ZathuraDocument;
|
||
|
typedef struct zathura_document_widget_class_s ZathuraDocumentClass;
|
||
|
|
||
|
struct zathura_document_widget_s
|
||
|
{
|
||
|
GtkBin parent;
|
||
|
};
|
||
|
|
||
|
struct zathura_document_widget_class_s
|
||
|
{
|
||
|
GtkBinClass parent_class;
|
||
|
};
|
||
|
|
||
|
#define ZATHURA_TYPE_DOCUMENT \
|
||
|
(zathura_document_widget_get_type ())
|
||
|
#define ZATHURA_DOCUMENT(obj) \
|
||
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), ZATHURA_TYPE_DOCUMENT, ZathuraDocument))
|
||
|
#define ZATHURA_DOCUMENT_CLASS(obj) \
|
||
|
(G_TYPE_CHECK_CLASS_CAST ((obj), ZATHURA_TYPE_DOCUMENT, ZathuraDocumentClass))
|
||
|
#define ZATHURA_IS_DOCUMENT(obj) \
|
||
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZATHURA_TYPE_DOCUMENT))
|
||
|
#define ZATHURA_IS_DOCUMENT_CLASS(obj) \
|
||
|
(G_TYPE_CHECK_CLASS_TYPE ((obj), ZATHURA_TYPE_DOCUMENT))
|
||
|
#define ZATHURA_DOCUMENT_GET_CLASS \
|
||
|
(G_TYPE_INSTANCE_GET_CLASS ((obj), ZATHURA_TYPE_DOCUMENT, ZathuraDocumentClass))
|
||
|
|
||
|
/**
|
||
|
* Returns the type of the document view widget.
|
||
|
* @return the type
|
||
|
*/
|
||
|
GType zathura_document_widget_get_type(void);
|
||
|
/**
|
||
|
* Create a page view widget.
|
||
|
* @param zathura the zathura instance
|
||
|
* @param page the page to be displayed
|
||
|
* @return a page view widget
|
||
|
*/
|
||
|
GtkWidget* zathura_document_widget_new(zathura_t* zathura);
|
||
|
|
||
|
#endif // DOCUMENT_WIDGET_H
|