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 libdom.
  3.  * Licensed under the MIT License,
  4.  *                http://www.opensource.org/licenses/mit-license.php
  5.  * Copyright 2012 John-Mark Bell <jmb@netsurf-browser.org>
  6.  */
  7.  
  8. #ifndef dom_html_option_element_h_
  9. #define dom_html_option_element_h_
  10.  
  11. #include <stdbool.h>
  12. #include <dom/core/exceptions.h>
  13. #include <dom/core/string.h>
  14. #include <dom/html/html_form_element.h>
  15.  
  16. typedef struct dom_html_option_element dom_html_option_element;
  17.  
  18. dom_exception dom_html_option_element_get_form(
  19.         dom_html_option_element *option, dom_html_form_element **form);
  20.  
  21. dom_exception dom_html_option_element_get_default_selected(
  22.         dom_html_option_element *option, bool *default_selected);
  23.  
  24. dom_exception dom_html_option_element_set_default_selected(
  25.         dom_html_option_element *option, bool default_selected);
  26.  
  27. dom_exception dom_html_option_element_get_text(
  28.         dom_html_option_element *option, dom_string **text);
  29.  
  30. dom_exception dom_html_option_element_get_index(
  31.         dom_html_option_element *option, unsigned long *index);
  32.  
  33. dom_exception dom_html_option_element_get_disabled(
  34.         dom_html_option_element *option, bool *disabled);
  35.  
  36. dom_exception dom_html_option_element_set_disabled(
  37.         dom_html_option_element *option, bool disabled);
  38.  
  39. dom_exception dom_html_option_element_get_label(
  40.         dom_html_option_element *option, dom_string **label);
  41.  
  42. dom_exception dom_html_option_element_set_label(
  43.         dom_html_option_element *option, dom_string *label);
  44.  
  45. dom_exception dom_html_option_element_get_selected(
  46.         dom_html_option_element *option, bool *selected);
  47.  
  48. dom_exception dom_html_option_element_set_selected(
  49.         dom_html_option_element *option, bool selected);
  50.  
  51. dom_exception dom_html_option_element_get_value(
  52.         dom_html_option_element *option, dom_string **value);
  53.  
  54. dom_exception dom_html_option_element_set_value(
  55.         dom_html_option_element *option, dom_string *value);
  56.  
  57. #endif
  58.