26#ifndef _NETSURF_CONTENT_H_
27#define _NETSURF_CONTENT_H_
29#include <libwapcaplet/libwapcaplet.h>
Declaration of content enumerations.
content_type
The type of a content.
content_encoding_type
Content encoding information types.
bool content_redraw(struct hlcache_handle *h, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx)
Display content on screen with optional tiling.
struct nsurl * hlcache_handle_get_url(const struct hlcache_handle *handle)
Retrieve the URL associated with a high level cache handle.
const char * content_get_title(struct hlcache_handle *h)
Retrieve title associated with content.
int content_get_height(struct hlcache_handle *h)
Retrieve height of content.
struct bitmap * content_get_bitmap(struct hlcache_handle *h)
Retrieve the bitmap contained in an image content.
const uint8_t * content_get_source_data(struct hlcache_handle *h, size_t *size)
Retrieve source of content.
int content_get_width(struct hlcache_handle *h)
Retrieve width of content.
void content_invalidate_reuse_data(struct hlcache_handle *h)
Invalidate content reuse data.
const char * content_get_encoding(struct hlcache_handle *h, enum content_encoding_type op)
Retrieve the encoding of a content.
lwc_string * content_get_mime_type(struct hlcache_handle *h)
Retrieve mime-type of content.
bool content_scaled_redraw(struct hlcache_handle *h, int width, int height, const struct redraw_context *ctx)
Redraw a content with scale set for horizontal fit.
content_type content_get_type(struct hlcache_handle *h)
Retrieve computed type of content.
struct nsurl nsurl
NetSurf URL object.
RISC OS wimp toolkit bitmap.
parameters to content redraw
int height
vertical dimension
bool repeat_y
whether content is tiled in y direction
bool repeat_x
whether content is tiled in x direction
int y
coordinate for top-left of redraw
int x
coordinate for top-left of redraw
colour background_colour
The background colour.
int width
dimensions to render content at (for scaling contents with intrinsic dimensions)
float scale
Scale for redraw (for scaling contents without intrinsic dimensions)
uint32_t colour
Colour type: XBGR.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.