2011-06-17 00:02:24 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 2011 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2011-06-17 00:02:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_CSS_SECTION_H__
|
|
|
|
#define __GTK_CSS_SECTION_H__
|
|
|
|
|
2019-04-10 16:40:50 +00:00
|
|
|
#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_CSS_COMPILATION)
|
|
|
|
#error "Only <gtk/css/gtkcss.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2011-06-17 00:02:24 +00:00
|
|
|
#include <gio/gio.h>
|
2019-04-10 16:40:50 +00:00
|
|
|
#include <gdk/gdkversionmacros.h>
|
|
|
|
#include <gtk/css/gtkcsslocation.h>
|
2011-06-17 00:02:24 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GTK_TYPE_CSS_SECTION (gtk_css_section_get_type ())
|
|
|
|
|
2015-12-26 03:22:51 +00:00
|
|
|
/**
|
|
|
|
* GtkCssSection:
|
|
|
|
*
|
2016-03-27 15:35:13 +00:00
|
|
|
* Defines a part of a CSS document. Because sections are nested into
|
|
|
|
* one another, you can use gtk_css_section_get_parent() to get the
|
|
|
|
* containing region.
|
2015-12-26 03:22:51 +00:00
|
|
|
*/
|
2011-06-17 00:02:24 +00:00
|
|
|
typedef struct _GtkCssSection GtkCssSection;
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-17 00:02:24 +00:00
|
|
|
GType gtk_css_section_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2019-04-10 14:37:52 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GtkCssSection * gtk_css_section_new (GFile *file,
|
|
|
|
const GtkCssLocation *start,
|
|
|
|
const GtkCssLocation *end);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-17 00:02:24 +00:00
|
|
|
GtkCssSection * gtk_css_section_ref (GtkCssSection *section);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-17 00:02:24 +00:00
|
|
|
void gtk_css_section_unref (GtkCssSection *section);
|
|
|
|
|
2019-04-10 15:23:14 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_css_section_print (const GtkCssSection *section,
|
|
|
|
GString *string);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
char * gtk_css_section_to_string (const GtkCssSection *section);
|
|
|
|
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-17 00:02:24 +00:00
|
|
|
GtkCssSection * gtk_css_section_get_parent (const GtkCssSection *section);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2011-06-17 00:02:24 +00:00
|
|
|
GFile * gtk_css_section_get_file (const GtkCssSection *section);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-10 03:18:14 +00:00
|
|
|
const GtkCssLocation *
|
|
|
|
gtk_css_section_get_start_location (const GtkCssSection *section);
|
2018-02-05 19:13:20 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2019-04-10 03:18:14 +00:00
|
|
|
const GtkCssLocation *
|
|
|
|
gtk_css_section_get_end_location (const GtkCssSection *section);
|
2011-06-17 00:02:24 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_CSS_SECTION_H__ */
|