Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * This file is part of LibCSS
  3.  * Licensed under the MIT License,
  4.  *                http://www.opensource.org/licenses/mit-license.php
  5.  * Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
  6.  */
  7.  
  8. #ifndef libcss_hint_h_
  9. #define libcss_hint_h_
  10.  
  11. #ifdef __cplusplus
  12. extern "C"
  13. {
  14. #endif
  15.  
  16. #include <libwapcaplet/libwapcaplet.h>
  17.  
  18. #include <libcss/computed.h>
  19. #include <libcss/errors.h>
  20. #include <libcss/functypes.h>
  21. #include <libcss/types.h>
  22.  
  23. /**
  24.  * Length object for use in presentational hints
  25.  */
  26. typedef struct css_hint_length {
  27.         css_fixed value;
  28.         css_unit unit;
  29. } css_hint_length;
  30.  
  31. /**
  32.  * Presentational hints
  33.  */
  34. typedef struct css_hint {
  35.         /* Ownership of all data is passed to libcss */
  36.         union {
  37.                 css_computed_clip_rect *clip;
  38.                 css_color color;
  39.                 css_computed_content_item *content;
  40.                 css_computed_counter *counter;
  41.                 css_fixed fixed;
  42.                 int32_t integer;
  43.                 css_hint_length length;
  44.                 struct {
  45.                         css_hint_length h;
  46.                         css_hint_length v;
  47.                 } position;
  48.                 lwc_string *string;
  49.                 lwc_string **strings;
  50.         } data;
  51.  
  52.         uint8_t status;
  53. } css_hint;
  54.  
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58.  
  59. #endif
  60.