2 Copyright (C) 2011 Samsung Electronics
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef WebKitDOM_DOMSelection_h
20 #define WebKitDOM_DOMSelection_h
22 #include <WebKitDOM_Defines.h>
23 #include <WebKitDOM_Object.h>
30 #define WEBKITDOM_DOMSELECTION_INIT(objPtr) \
31 (((WebKitDOM_Object*)(objPtr))->p_coreObject) = 0; \
32 (((WebKitDOM_Object*)(objPtr))->deinit) = ewk_webkitdom_domselection_deinit
34 struct _WebKitDOM_DOMSelection {
35 WebKitDOM_Object parent_object;
38 EAPI void ewk_webkitdom_domselection_get_anchor_node(WebKitDOM_DOMSelection* self, WebKitDOM_Node* ret);
40 EAPI int ewk_webkitdom_domselection_get_anchor_offset(WebKitDOM_DOMSelection* self);
42 EAPI void ewk_webkitdom_domselection_get_focus_node(WebKitDOM_DOMSelection* self, WebKitDOM_Node* ret);
44 EAPI int ewk_webkitdom_domselection_get_focus_offset(WebKitDOM_DOMSelection* self);
46 EAPI Eina_Bool ewk_webkitdom_domselection_get_is_collapsed(WebKitDOM_DOMSelection* self);
48 EAPI int ewk_webkitdom_domselection_get_range_count(WebKitDOM_DOMSelection* self);
50 EAPI void ewk_webkitdom_domselection_get_base_node(WebKitDOM_DOMSelection* self, WebKitDOM_Node* ret);
52 EAPI int ewk_webkitdom_domselection_get_base_offset(WebKitDOM_DOMSelection* self);
54 EAPI void ewk_webkitdom_domselection_get_extent_node(WebKitDOM_DOMSelection* self, WebKitDOM_Node* ret);
56 EAPI int ewk_webkitdom_domselection_get_extent_offset(WebKitDOM_DOMSelection* self);
58 EAPI void ewk_webkitdom_domselection_get_type(WebKitDOM_DOMSelection* self, WebKitDOM_String* ret);
61 EAPI void ewk_webkitdom_domselection_collapse(WebKitDOM_DOMSelection* self, WebKitDOM_Node* node, int index);
62 EAPI void ewk_webkitdom_domselection_collapse_to_end(WebKitDOM_DOMSelection* self);
63 EAPI void ewk_webkitdom_domselection_collapse_to_start(WebKitDOM_DOMSelection* self);
64 EAPI void ewk_webkitdom_domselection_delete_from_document(WebKitDOM_DOMSelection* self);
65 EAPI Eina_Bool ewk_webkitdom_domselection_contains_node(WebKitDOM_DOMSelection* self, WebKitDOM_Node* node, Eina_Bool allowPartial);
66 EAPI void ewk_webkitdom_domselection_select_all_children(WebKitDOM_DOMSelection* self, WebKitDOM_Node* node);
67 EAPI void ewk_webkitdom_domselection_extend(WebKitDOM_DOMSelection* self, WebKitDOM_Node* node, int offset);
68 EAPI void ewk_webkitdom_domselection_get_range_at(WebKitDOM_DOMSelection* self, int index, WebKitDOM_Range* ret);
69 EAPI void ewk_webkitdom_domselection_remove_all_ranges(WebKitDOM_DOMSelection* self);
70 EAPI void ewk_webkitdom_domselection_add_range(WebKitDOM_DOMSelection* self, WebKitDOM_Range* range);
71 EAPI void ewk_webkitdom_domselection_modify(WebKitDOM_DOMSelection* self, WebKitDOM_String* alter, WebKitDOM_String* direction, WebKitDOM_String* granularity);
72 EAPI void ewk_webkitdom_domselection_set_base_and_extent(WebKitDOM_DOMSelection* self, WebKitDOM_Node* baseNode, int baseOffset, WebKitDOM_Node* extentNode, int extentOffset);
73 EAPI void ewk_webkitdom_domselection_set_position(WebKitDOM_DOMSelection* self, WebKitDOM_Node* node, int offset);
74 EAPI void ewk_webkitdom_domselection_empty(WebKitDOM_DOMSelection* self);
76 EAPI void ewk_webkitdom_domselection_deinit(const WebKitDOM_Object*);
77 EAPI void _copy_webkit_domselection(WebKitDOM_DOMSelection* kitObjSrc, WebKitDOM_DOMSelection* ret);