X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkcsssection.h;h=b26c587371a7e8172805b562557295630a44f94b;hb=32825a66ac8e65bf98cafed26a339fa1f31eddd4;hp=761ebd11025fd9f382be7f72084ad5e3347baf54;hpb=00d14e35157d7512ec9892bcc5eebdc186ad52e3;p=~andy%2Fgtk diff --git a/gtk/gtkcsssection.h b/gtk/gtkcsssection.h index 761ebd110..b26c58737 100644 --- a/gtk/gtkcsssection.h +++ b/gtk/gtkcsssection.h @@ -12,22 +12,21 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ #ifndef __GTK_CSS_SECTION_H__ #define __GTK_CSS_SECTION_H__ #include +#include G_BEGIN_DECLS #define GTK_TYPE_CSS_SECTION (gtk_css_section_get_type ()) /** - * GtkCssSection: + * GtkCssSectionType: * @GTK_CSS_SECTION_DOCUMENT: The section describes a complete document. * This section time is the only one where gtk_css_section_get_parent() * might return %NULL. @@ -40,6 +39,10 @@ G_BEGIN_DECLS * @GTK_CSS_SECTION_SELECTOR: The section defines a CSS selector. * @GTK_CSS_SECTION_DECLARATION: The section defines the declaration of * a CSS variable. + * @GTK_CSS_SECTION_VALUE: The section defines the value of a CSS declaration. + * @GTK_CSS_SECTION_KEYFRAMES: The section defines keyframes. See CSS + * animations for details. Since 3.6 * * The different types of sections indicate parts of a CSS document as * parsed by GTK's CSS parser. They are oriented towards the CSS grammar @@ -60,21 +63,33 @@ typedef enum GTK_CSS_SECTION_RULESET, GTK_CSS_SECTION_SELECTOR, GTK_CSS_SECTION_DECLARATION, + GTK_CSS_SECTION_VALUE, + GTK_CSS_SECTION_KEYFRAMES } GtkCssSectionType; typedef struct _GtkCssSection GtkCssSection; +GDK_AVAILABLE_IN_3_2 GType gtk_css_section_get_type (void) G_GNUC_CONST; +GDK_AVAILABLE_IN_3_2 GtkCssSection * gtk_css_section_ref (GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 void gtk_css_section_unref (GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 GtkCssSectionType gtk_css_section_get_section_type (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 GtkCssSection * gtk_css_section_get_parent (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 GFile * gtk_css_section_get_file (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 guint gtk_css_section_get_start_line (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 guint gtk_css_section_get_start_position (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 guint gtk_css_section_get_end_line (const GtkCssSection *section); +GDK_AVAILABLE_IN_3_2 guint gtk_css_section_get_end_position (const GtkCssSection *section); G_END_DECLS