summaryrefslogtreecommitdiff
path: root/src/layout.h
blob: 3bc9a30962631e1bdc6919630c2ca93e927f4c5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * This file is part of LibNSLayout
 * Licensed under the ISC License, http://opensource.org/licenses/ISC
 * Copyright 2015 Michael Drake <tlsa@netsurf-browser.org>
 */

/** \file src/layout.h
 * Layout object handling
 */

#ifndef nslayout_layout_h_
#define nslayout_layout_h_

#include <libnslayout/nslayout.h>

/**
 * The layout object for a DOM document
 */
struct nslayout_layout {
	dom_document *document;
	css_select_ctx *css_ctx;
	css_media_type *media;
	nslayout_callback cb;
	void *pw;

	struct nsl_dom_watcher *watcher;
};

#endif