mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
Add gtk_css_parser_has_percentage
This commit is contained in:
parent
5574bf59f6
commit
12e0ec0b48
@ -953,6 +953,16 @@ gtk_css_parser_has_integer (GtkCssParser *self)
|
||||
gtk_css_token_is (token, GTK_CSS_TOKEN_SIGNLESS_INTEGER);
|
||||
}
|
||||
|
||||
gboolean
|
||||
gtk_css_parser_has_percentage (GtkCssParser *self)
|
||||
{
|
||||
const GtkCssToken *token;
|
||||
|
||||
token = gtk_css_parser_get_token (self);
|
||||
|
||||
return gtk_css_token_is (token, GTK_CSS_TOKEN_PERCENTAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_css_parser_has_function:
|
||||
* @self: a `GtkCssParser`
|
||||
|
@ -132,6 +132,7 @@ gboolean gtk_css_parser_has_ident (GtkCssParser
|
||||
gboolean gtk_css_parser_has_url (GtkCssParser *self);
|
||||
gboolean gtk_css_parser_has_number (GtkCssParser *self);
|
||||
gboolean gtk_css_parser_has_integer (GtkCssParser *self);
|
||||
gboolean gtk_css_parser_has_percentage (GtkCssParser *self);
|
||||
gboolean gtk_css_parser_has_function (GtkCssParser *self,
|
||||
const char *name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user