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 Daniel Silverstone <dsilvers@netsurf-browser.org>
  6.  */
  7.  
  8. #ifndef dom_html_input_element_h_
  9. #define dom_html_input_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_input_element dom_html_input_element;
  17.  
  18. dom_exception dom_html_input_element_get_default_value(
  19.         dom_html_input_element *input, dom_string **default_value);
  20.  
  21. dom_exception dom_html_input_element_set_default_value(
  22.         dom_html_input_element *input, dom_string *default_value);
  23.  
  24. dom_exception dom_html_input_element_get_default_checked(
  25.         dom_html_input_element *input, bool *default_checked);
  26.  
  27. dom_exception dom_html_input_element_set_default_checked(
  28.         dom_html_input_element *input, bool default_checked);
  29.  
  30. dom_exception dom_html_input_element_get_form(
  31.         dom_html_input_element *input, dom_html_form_element **form);
  32.  
  33. dom_exception dom_html_input_element_get_accept(
  34.         dom_html_input_element *input, dom_string **accept);
  35.  
  36. dom_exception dom_html_input_element_set_accept(
  37.         dom_html_input_element *input, dom_string *accept);
  38.  
  39. dom_exception dom_html_input_element_get_access_key(
  40.         dom_html_input_element *input, dom_string **access_key);
  41.  
  42. dom_exception dom_html_input_element_set_access_key(
  43.         dom_html_input_element *input, dom_string *access_key);
  44.  
  45. dom_exception dom_html_input_element_get_align(
  46.         dom_html_input_element *input, dom_string **align);
  47.  
  48. dom_exception dom_html_input_element_set_align(
  49.         dom_html_input_element *input, dom_string *align);
  50.  
  51. dom_exception dom_html_input_element_get_alt(
  52.         dom_html_input_element *input, dom_string **alt);
  53.  
  54. dom_exception dom_html_input_element_set_alt(
  55.         dom_html_input_element *input, dom_string *alt);
  56.  
  57. dom_exception dom_html_input_element_get_checked(
  58.         dom_html_input_element *input, bool *checked);
  59.  
  60. dom_exception dom_html_input_element_set_checked(
  61.         dom_html_input_element *input, bool checked);
  62.  
  63. dom_exception dom_html_input_element_get_disabled(
  64.         dom_html_input_element *input, bool *disabled);
  65.  
  66. dom_exception dom_html_input_element_set_disabled(
  67.         dom_html_input_element *input, bool disabled);
  68.  
  69. dom_exception dom_html_input_element_get_max_length(
  70.         dom_html_input_element *input, int32_t *max_length);
  71.  
  72. dom_exception dom_html_input_element_set_max_length(
  73.         dom_html_input_element *input, uint32_t max_length);
  74.  
  75. dom_exception dom_html_input_element_get_name(
  76.         dom_html_input_element *input, dom_string **name);
  77.  
  78. dom_exception dom_html_input_element_set_name(
  79.         dom_html_input_element *input, dom_string *name);
  80.  
  81. dom_exception dom_html_input_element_get_read_only(
  82.         dom_html_input_element *input, bool *read_only);
  83.  
  84. dom_exception dom_html_input_element_set_read_only(
  85.         dom_html_input_element *input, bool read_only);
  86.  
  87. dom_exception dom_html_input_element_get_size(
  88.         dom_html_input_element *input, dom_string **size);
  89.  
  90. dom_exception dom_html_input_element_set_size(
  91.         dom_html_input_element *input, dom_string *size);
  92.  
  93. dom_exception dom_html_input_element_get_src(
  94.         dom_html_input_element *input, dom_string **src);
  95.  
  96. dom_exception dom_html_input_element_set_src(
  97.         dom_html_input_element *input, dom_string *src);
  98.  
  99. dom_exception dom_html_input_element_get_tab_index(
  100.         dom_html_input_element *input, int32_t *tab_index);
  101.  
  102. dom_exception dom_html_input_element_set_tab_index(
  103.         dom_html_input_element *input, uint32_t tab_index);
  104.  
  105. dom_exception dom_html_input_element_get_type(
  106.         dom_html_input_element *input, dom_string **type);
  107.  
  108. dom_exception dom_html_input_element_get_use_map(
  109.         dom_html_input_element *input, dom_string **use_map);
  110.  
  111. dom_exception dom_html_input_element_set_use_map(
  112.         dom_html_input_element *input, dom_string *use_map);
  113.  
  114. dom_exception dom_html_input_element_get_value(
  115.         dom_html_input_element *input, dom_string **value);
  116.  
  117. dom_exception dom_html_input_element_set_value(
  118.         dom_html_input_element *input, dom_string *value);
  119.  
  120. dom_exception dom_html_input_element_blur(dom_html_input_element *ele);
  121. dom_exception dom_html_input_element_focus(dom_html_input_element *ele);
  122. dom_exception dom_html_input_element_select(dom_html_input_element *ele);
  123. dom_exception dom_html_input_element_click(dom_html_input_element *ele);
  124.  
  125. #endif
  126.