X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkcssshorthandpropertyprivate.h;h=d5483703140973f5a907f6fda0702d8103b6d0bb;hb=a960230a20f86ebb31594a40132e341c1b7a7c21;hp=d93a8f38374ff2aad07d92edde3d8b393986d60b;hpb=f9485241b1b9dde6604ec6aa92ae25f3c27e80c4;p=~andy%2Fgtk diff --git a/gtk/gtkcssshorthandpropertyprivate.h b/gtk/gtkcssshorthandpropertyprivate.h index d93a8f383..d54837031 100644 --- a/gtk/gtkcssshorthandpropertyprivate.h +++ b/gtk/gtkcssshorthandpropertyprivate.h @@ -12,8 +12,7 @@ * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * License along with this library. If not, see . * * Authors: Benjamin Otte */ @@ -23,6 +22,8 @@ #include +#include "gtk/gtkcssparserprivate.h" +#include "gtk/gtkcssstylepropertyprivate.h" #include "gtk/gtkstylepropertyprivate.h" G_BEGIN_DECLS @@ -37,9 +38,27 @@ G_BEGIN_DECLS typedef struct _GtkCssShorthandProperty GtkCssShorthandProperty; typedef struct _GtkCssShorthandPropertyClass GtkCssShorthandPropertyClass; +typedef gboolean (* GtkCssShorthandPropertyParseFunc) (GtkCssShorthandProperty *shorthand, + GtkCssValue **values, + GtkCssParser *parser); +typedef void (* GtkCssShorthandPropertyAssignFunc) (GtkCssShorthandProperty *shorthand, + GtkStyleProperties *props, + GtkStateFlags state, + const GValue *value); +typedef void (* GtkCssShorthandPropertyQueryFunc) (GtkCssShorthandProperty *shorthand, + GValue *value, + GtkStyleQueryFunc query_func, + gpointer query_data); + struct _GtkCssShorthandProperty { GtkStyleProperty parent; + + GPtrArray *subproperties; + + GtkCssShorthandPropertyParseFunc parse; + GtkCssShorthandPropertyAssignFunc assign; + GtkCssShorthandPropertyQueryFunc query; }; struct _GtkCssShorthandPropertyClass @@ -47,8 +66,14 @@ struct _GtkCssShorthandPropertyClass GtkStylePropertyClass parent_class; }; +void _gtk_css_shorthand_property_init_properties (void); + GType _gtk_css_shorthand_property_get_type (void) G_GNUC_CONST; +GtkCssStyleProperty * _gtk_css_shorthand_property_get_subproperty (GtkCssShorthandProperty *shorthand, + guint property); +guint _gtk_css_shorthand_property_get_n_subproperties (GtkCssShorthandProperty *shorthand); + G_END_DECLS