2 ;; PyWebKitGtk - Python bindings to WebKit/GTK+
4 ;; Copyright (C) 2008 Luke Kenneth Carlson Leigh
6 ;; This library is free software; you can redistribute it and/or
7 ;; modify it under the terms of the GNU Library General Public
8 ;; License as published by the Free Software Foundation; either
9 ;; version 2 of the License, or (at your option) any later version.
11 ;; This library is distributed in the hope that it will be useful,
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 ;; Library General Public License for more details.
16 ;; You should have received a copy of the GNU Library General Public
17 ;; License along with this library; if not, write to the Free Software
18 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
25 (gtype-id "GJS_TYPE_VALUE")
28 ;(define-method gjs_get_global_context
29 ; (of-object "WebKitWebFrame")
30 ; (c-name "gjs_get_global_context")
31 ; (return-type "GjsValue*")
36 (define-method has_attribute
37 (of-object "GjsValue")
38 (c-name "gjs_value_has_attribute")
39 (return-type "gboolean")
41 '("const-gchar*" "name")
45 (define-method get_attribute
46 (of-object "GjsValue")
47 (c-name "gjs_value_get_attribute")
48 (caller-owns-return #t)
49 (return-type "GjsValue*")
51 '("const-gchar*" "name")
55 (define-method get_string
56 (of-object "GjsValue")
57 (c-name "gjs_value_get_string")
58 (caller-owns-return #t)
59 (return-type "const-gchar*")
62 (define-method get_attribute_string
63 (of-object "GjsValue")
64 (c-name "gjs_value_get_attribute_string")
65 (caller-owns-return #t)
66 (return-type "GjsValue*")
68 '("const-gchar*" "name")
72 (define-method get_nth_attribute
73 (of-object "GjsValue")
74 (c-name "gjs_value_get_nth_attribute")
75 (caller-owns-return #t)
76 (return-type "GjsValue*")
82 (define-method get_elements_by_tag_name
83 (of-object "GjsValue")
84 (c-name "gjs_value_get_elements_by_tag_name")
85 (caller-owns-return #t)
86 (return-type "GjsValue*")
88 '("const-gchar*" "name")
93 ; (of-object "GjsValue")
94 ; (c-name "gjs_value_eval")
95 ; (caller-owns-return #t)
96 ; (return-type "GjsValue*")
98 ; '("const-gchar*" "script")
102 (define-method execute
103 (of-object "GjsValue")
104 (c-name "gjs_value_execute")
105 (caller-owns-return #t)
106 (return-type "GjsValue*")
108 '("const-gchar*" "script")
112 (define-method get_by_name
113 (of-object "GjsValue")
114 (c-name "gjs_value_get_by_name")
115 (caller-owns-return #t)
116 (return-type "GjsValue*")
118 '("const-gchar*" "name")