summaryrefslogtreecommitdiff
path: root/src/layout.h
blob: 35491747d08f62245ab8b4d960deca781829848b (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 *doc;
	css_select_ctx *css_ctx;
	css_media_type *media;
	nslayout_callback cb;
	void *pw;

	dom_event_listener *listener;
};

#endif