cr-cascade.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
  2. /*
  3. * This file is part of The Croco Library
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of version 2.1 of the
  7. * GNU Lesser General Public
  8. * License as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the
  16. * GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  19. * USA
  20. *
  21. */
  22. /*
  23. *$Id$
  24. */
  25. #ifndef __CR_CASCADE_H__
  26. #define __CR_CASCADE_H__
  27. #include "cr-stylesheet.h"
  28. /**
  29. *@file
  30. *the declaration of the #CRCascade class.
  31. */
  32. G_BEGIN_DECLS
  33. typedef struct _CRCascadePriv CRCascadePriv ;
  34. /**
  35. *An abstraction of the "Cascade" defined
  36. *in the css2 spec, chapter 6.4.
  37. */
  38. typedef struct _CRCascade CRCascade ;
  39. struct _CRCascade
  40. {
  41. CRCascadePriv *priv ;
  42. };
  43. CRCascade * cr_cascade_new (CRStyleSheet *a_author_sheet,
  44. CRStyleSheet *a_user_sheet,
  45. CRStyleSheet *a_ua_sheet) ;
  46. CRStyleSheet * cr_cascade_get_sheet (CRCascade *a_this,
  47. enum CRStyleOrigin a_origin) ;
  48. enum CRStatus cr_cascade_set_sheet (CRCascade *a_this,
  49. CRStyleSheet *a_sheet,
  50. enum CRStyleOrigin a_origin) ;
  51. void cr_cascade_ref (CRCascade *a_this) ;
  52. void cr_cascade_unref (CRCascade *a_this) ;
  53. void cr_cascade_destroy (CRCascade *a_this) ;
  54. G_END_DECLS
  55. #endif /*__CR_CASCADE_H__*/