forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcef_values.pxd
More file actions
78 lines (71 loc) · 3.35 KB
/
cef_values.pxd
File metadata and controls
78 lines (71 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright (c) 2013 CEF Python, see the Authors file.
# All rights reserved. Licensed under BSD 3-clause license.
# Project website: https://github.com/cztomczak/cefpython
from cef_ptr cimport CefRefPtr
from libcpp cimport bool as cpp_bool
from cef_string cimport CefString
from libcpp.vector cimport vector
from cef_types cimport cef_value_type_t
cdef extern from "include/cef_values.h":
cdef CefRefPtr[CefBinaryValue] CefBinaryValue_Create \
"CefBinaryValue::Create"(const void* data, size_t data_size)
cdef cppclass CefBinaryValue:
cpp_bool IsValid()
cpp_bool IsOwned()
CefRefPtr[CefBinaryValue] Copy()
size_t GetSize()
size_t GetData(void* buffer_, size_t buffer_size, size_t data_offset)
cdef CefRefPtr[CefDictionaryValue] CefDictionaryValue_Create \
"CefDictionaryValue::Create"()
cdef cppclass CefDictionaryValue:
cpp_bool IsValid()
cpp_bool IsOwned()
cpp_bool IsReadOnly()
CefRefPtr[CefDictionaryValue] Copy(cpp_bool exclude_empty_children)
size_t GetSize()
cpp_bool Clear()
cpp_bool HasKey(const CefString& key)
cpp_bool GetKeys(vector[CefString]& keys)
cpp_bool Remove(const CefString& key)
cef_value_type_t GetType(const CefString& key)
cpp_bool GetBool(const CefString& key)
int GetInt(const CefString& key)
double GetDouble(const CefString& key)
CefString GetString(const CefString& key)
CefRefPtr[CefBinaryValue] GetBinary(const CefString& key)
CefRefPtr[CefDictionaryValue] GetDictionary(const CefString& key)
CefRefPtr[CefListValue] GetList(const CefString& key)
cpp_bool SetNull(const CefString& key)
cpp_bool SetBool(const CefString& key, cpp_bool value)
cpp_bool SetInt(const CefString& key, int value)
cpp_bool SetDouble(const CefString& key, double value)
cpp_bool SetString(const CefString& key, const CefString& value)
cpp_bool SetBinary(const CefString& key, CefRefPtr[CefBinaryValue] value)
cpp_bool SetDictionary(const CefString& key, CefRefPtr[CefDictionaryValue] value)
cpp_bool SetList(const CefString& key, CefRefPtr[CefListValue] value)
cdef CefRefPtr[CefListValue] CefListValue_Create "CefListValue::Create"()
cdef cppclass CefListValue:
cpp_bool IsValid()
cpp_bool IsOwned()
cpp_bool IsReadOnly()
CefRefPtr[CefListValue] Copy()
cpp_bool SetSize(size_t size)
size_t GetSize()
cpp_bool Clear()
cpp_bool Remove(int index)
cef_value_type_t GetType(int index)
cpp_bool GetBool(int index)
int GetInt(int index)
double GetDouble(int index)
CefString GetString(int index)
CefRefPtr[CefBinaryValue] GetBinary(int index)
CefRefPtr[CefDictionaryValue] GetDictionary(int index)
CefRefPtr[CefListValue] GetList(int index)
cpp_bool SetNull(int index)
cpp_bool SetBool(int index, cpp_bool value)
cpp_bool SetInt(int index, int value)
cpp_bool SetDouble(int index, double value)
cpp_bool SetString(int index, const CefString& value)
cpp_bool SetBinary(int index, CefRefPtr[CefBinaryValue] value)
cpp_bool SetDictionary(int index, CefRefPtr[CefDictionaryValue] value)
cpp_bool SetList(int index, CefRefPtr[CefListValue] value)