* 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 <http://www.gnu.org/licenses/>.
*
* Authors: Benjamin Otte <otte@gnome.org>
*/
#include <glib-object.h>
+#include "gtk/gtkcssparserprivate.h"
+#include "gtk/gtkcssstylepropertyprivate.h"
#include "gtk/gtkstylepropertyprivate.h"
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
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