Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3584 sourcerer 1
/*
2
 * Copyright 2011 Michael Drake 
3
 *
4
 * This file is part of NetSurf, http://www.netsurf-browser.org/
5
 *
6
 * NetSurf is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; version 2 of the License.
9
 *
10
 * NetSurf is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see .
17
 */
18
 
19
/** \file
20
 * Thumbail handling (interface).
21
 */
22
 
23
#ifndef _NETSURF_DESKTOP_THUMBNAIL_H_
24
#define _NETSURF_DESKTOP_THUMBNAIL_H_
25
 
26
#include 
27
#include "utils/nsurl.h"
28
#include "utils/types.h"
29
 
30
struct hlcache_handle;
31
struct bitmap;
32
 
33
 
34
/**
35
 * Redraw a content for thumbnailing
36
 *
37
 * Calls the redraw function for the content,
38
 *
39
 * \param  content  The content to redraw for thumbnail
40
 * \param  width    The thumbnail width
41
 * \param  height   The thumbnail height
42
 * \param  ctx      current redraw context
43
 * \return true if successful, false otherwise
44
 *
45
 * The thumbnail is guaranteed to be filled to its width/height extents, so
46
 * there is no need to render a solid background first.
47
 *
48
 * Units for width and height are pixels.
49
 */
50
bool thumbnail_redraw(struct hlcache_handle *content,
51
		int width, int height, const struct redraw_context *ctx);
52
 
53
 
54
/* In platform specific thumbnail.c. */
55
bool thumbnail_create(struct hlcache_handle *content, struct bitmap *bitmap,
56
		nsurl *url);
57
 
58
#endif