From 9208eb249116013db51504ff9f4be6a6afcde596 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 26 Jan 2009 23:59:56 +0000 Subject: Introduce ability to create/destroy selection contexts. svn path=/trunk/libcss/; revision=6284 --- include/libcss/select.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 include/libcss/select.h (limited to 'include/libcss/select.h') diff --git a/include/libcss/select.h b/include/libcss/select.h new file mode 100644 index 0000000..08a9a64 --- /dev/null +++ b/include/libcss/select.h @@ -0,0 +1,36 @@ +/* + * This file is part of LibCSS + * Licensed under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * Copyright 2009 John-Mark Bell + */ + +#ifndef libcss_select_h_ +#define libcss_select_h_ + +#include +#include +#include + +css_error css_select_ctx_create(css_alloc alloc, void *pw, + css_select_ctx **result); +css_error css_select_ctx_destroy(css_select_ctx *ctx); + +css_error css_select_ctx_append_sheet(css_select_ctx *ctx, + const css_stylesheet *sheet); +css_error css_select_ctx_insert_sheet(css_select_ctx *ctx, + const css_stylesheet *sheet, uint32_t index); +css_error css_select_ctx_remove_sheet(css_select_ctx *ctx, + const css_stylesheet *sheet); + +css_error css_select_ctx_count_sheets(css_select_ctx *ctx, uint32_t *count); +css_error css_select_ctx_get_sheet(css_select_ctx *ctx, uint32_t index, + const css_stylesheet **sheet); + +css_error css_select_style(css_select_ctx *ctx, void *node, + uint32_t pseudo_classes, uint32_t media, + css_computed_style **result); + +/* css_error css_computed_style_destroy(css_computed_style *style); */ + +#endif -- cgit v1.2.3