fzeet 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/LICENSE +1 -1
- data/LICENSE_Scintilla +14 -14
- data/README.md +13 -0
- data/RELNOTES.md +5 -0
- data/lib/fzeet/windows/comctl/ListView.rb +1 -1
- data/lib/fzeet/windows/comctl/TreeView.rb +1 -1
- data/lib/fzeet/windows/comdlg/FindReplaceDialog.rb +1 -1
- data/lib/fzeet/windows/user/Control/ComboBox.rb +3 -0
- data/lib/fzeet/windows/user/Control/ListBox.rb +3 -0
- data/lib/fzeet/windows/user/Control.rb +3 -0
- data/lib/fzeet/windows.rb +0 -6
- data/lib/fzeet.rb +24 -16
- data/screenshot.png +0 -0
- metadata +237 -263
- data/LICENSE_CEF +0 -29
- data/checks/Bstr.rb +0 -14
- data/checks/Decimal.rb +0 -27
- data/checks/OSVERSIONINFOEX.rb +0 -14
- data/checks/Point.rb +0 -65
- data/checks/Rect.rb +0 -104
- data/checks/RunAll.rb +0 -2
- data/checks/SafeArray.rb +0 -27
- data/checks/Size.rb +0 -45
- data/checks/SystemTime.rb +0 -43
- data/checks/Variant.rb +0 -160
- data/lib/fzeet/windows/libcef.rb +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MGM1NjUwNmIyNWVlOTQyMjE2MjdmNTIzYmIzYWQ0ZTUxOGNmOThlMQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NTRmZDhlMzY5OTgxYThjOWFmODQzYTc2NTk1MmViZDkzMDlkYzFkYQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YzBjOWE1ZDM4MmVjYWQ1NzJiMmRmMDk5MDkzNTJmMTZiOWQ0MGQxMGRhNzUx
|
10
|
+
NzdhYWU3NmFjMjdiYjY0MTQ5OGE1NjkzMTllNWNlZjQ5MGQxMmRlMDMxOTQy
|
11
|
+
NDE1ZDhlNjJiNzEwNjZiYThjMTdlZDExOThlYWM2MjVhODNlZWQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NzgzMzIxNTRkMTg5NTYzNzI3N2FlZTgyZmY1Njg4MGUwYjBlODkxMDczYzdk
|
14
|
+
NTE5MTc2ZTgyNWZlYzAwN2RjMWI0ZDE2YTc3ZTU3ZDRlMjdkMDA4NmEzODA2
|
15
|
+
NDUxOTkxNjMzY2M3Yjg3MzFhODM2MzgzNmMxMGZkNWE4NmVkMTE=
|
data/LICENSE
CHANGED
data/LICENSE_Scintilla
CHANGED
@@ -2,19 +2,19 @@ License for Scintilla and SciTE
|
|
2
2
|
|
3
3
|
Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
|
4
4
|
|
5
|
-
All Rights Reserved
|
5
|
+
All Rights Reserved
|
6
6
|
|
7
|
-
Permission to use, copy, modify, and distribute this software and its
|
8
|
-
documentation for any purpose and without fee is hereby granted,
|
9
|
-
provided that the above copyright notice appear in all copies and that
|
10
|
-
both that copyright notice and this permission notice appear in
|
11
|
-
supporting documentation.
|
7
|
+
Permission to use, copy, modify, and distribute this software and its
|
8
|
+
documentation for any purpose and without fee is hereby granted,
|
9
|
+
provided that the above copyright notice appear in all copies and that
|
10
|
+
both that copyright notice and this permission notice appear in
|
11
|
+
supporting documentation.
|
12
12
|
|
13
|
-
NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
14
|
-
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
15
|
-
AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
|
16
|
-
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
17
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
18
|
-
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
19
|
-
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
|
20
|
-
OR PERFORMANCE OF THIS SOFTWARE.
|
13
|
+
NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
14
|
+
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
15
|
+
AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
|
16
|
+
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
17
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
18
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
19
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
|
20
|
+
OR PERFORMANCE OF THIS SOFTWARE.
|
data/README.md
ADDED
data/RELNOTES.md
ADDED
data/lib/fzeet/windows.rb
CHANGED
@@ -6,7 +6,6 @@ require_relative 'windows/gdi'
|
|
6
6
|
|
7
7
|
require_relative 'windows/comctl'
|
8
8
|
require_relative 'windows/scintilla' if Fzeet::Windows::Version >= :xp
|
9
|
-
#require_relative 'windows/libcef' if Fzeet::Windows::Version >= :xp
|
10
9
|
require_relative 'windows/comdlg'
|
11
10
|
|
12
11
|
require_relative 'windows/com'
|
@@ -28,11 +27,6 @@ Fzeet::Windows.DetonateLastError(FFI::Pointer::NULL,
|
|
28
27
|
"#{File.dirname(File.expand_path(__FILE__))}/windows/scintilla/SciLexer.dll"
|
29
28
|
).tap { |hdll| at_exit { Fzeet::Windows.FreeLibrary(hdll) } } if Fzeet::Windows::Version >= :xp
|
30
29
|
|
31
|
-
#Fzeet::Windows.DetonateLastError(FFI::Pointer::NULL,
|
32
|
-
# :LoadLibrary,
|
33
|
-
# "#{File.dirname(File.expand_path(__FILE__))}/windows/libcef/libcef.dll"
|
34
|
-
#).tap { |hdll| at_exit { Fzeet::Windows.FreeLibrary(hdll) } } if Fzeet::Windows::Version >= :xp
|
35
|
-
|
36
30
|
module Fzeet
|
37
31
|
class Application
|
38
32
|
@name = File.basename($0, '.rbw')
|
data/lib/fzeet.rb
CHANGED
@@ -1,22 +1,30 @@
|
|
1
1
|
require_relative 'fzeet/windows'
|
2
2
|
|
3
|
-
module Fzeet
|
4
|
-
|
5
|
-
INITCOMMONCONTROLSEX.new.tap { |icc|
|
6
|
-
icc[:dwSize] = icc.size
|
7
|
-
icc[:dwICC] = \
|
8
|
-
ICC_WIN95_CLASSES |
|
9
|
-
ICC_DATE_CLASSES |
|
10
|
-
ICC_USEREX_CLASSES |
|
11
|
-
ICC_COOL_CLASSES |
|
12
|
-
ICC_INTERNET_CLASSES |
|
13
|
-
ICC_PAGESCROLLER_CLASS
|
14
|
-
}
|
15
|
-
)
|
3
|
+
module Fzeet
|
4
|
+
VERSION = '0.6.7'
|
16
5
|
|
17
|
-
|
6
|
+
module Windows
|
7
|
+
DetonateLastError(0, :InitCommonControlsEx,
|
8
|
+
INITCOMMONCONTROLSEX.new.tap { |icc|
|
9
|
+
icc[:dwSize] = icc.size
|
10
|
+
icc[:dwICC] = \
|
11
|
+
ICC_WIN95_CLASSES |
|
12
|
+
ICC_DATE_CLASSES |
|
13
|
+
ICC_USEREX_CLASSES |
|
14
|
+
ICC_COOL_CLASSES |
|
15
|
+
ICC_INTERNET_CLASSES |
|
16
|
+
ICC_PAGESCROLLER_CLASS
|
17
|
+
}
|
18
|
+
)
|
18
19
|
|
19
|
-
|
20
|
+
EnableVisualStyles()
|
20
21
|
|
21
|
-
|
22
|
+
DetonateLastError(0, :SetProcessDPIAware) if Version >= :vista
|
23
|
+
|
24
|
+
InitializeOle()
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
if __FILE__ == $0
|
29
|
+
puts Fzeet::VERSION
|
22
30
|
end
|
data/screenshot.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,212 +1,42 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fzeet
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 6
|
8
|
-
- 6
|
9
|
-
version: 0.6.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.7
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- Radoslav Peev
|
13
8
|
autorequire:
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: ffi
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
- 1
|
30
|
-
- 0
|
31
|
-
- 5
|
32
|
-
version: 1.0.5
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1'
|
33
20
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1'
|
27
|
+
description: Ruby-FFI (x86) bindings to (plus rubyesque APIs on top) GUI/COM-related
|
28
|
+
Windows APIs
|
29
|
+
email:
|
30
|
+
- rpeev@ymail.com
|
37
31
|
executables: []
|
38
|
-
|
39
32
|
extensions: []
|
40
|
-
|
41
33
|
extra_rdoc_files: []
|
42
|
-
|
43
|
-
|
44
|
-
-
|
45
|
-
-
|
46
|
-
-
|
47
|
-
- lib/fzeet/windows/core.rb
|
48
|
-
- lib/fzeet/windows/gdi.rb
|
49
|
-
- lib/fzeet/windows/kernel.rb
|
50
|
-
- lib/fzeet/windows/libc.rb
|
51
|
-
- lib/fzeet/windows/libcef.rb
|
52
|
-
- lib/fzeet/windows/mshtml.rb
|
53
|
-
- lib/fzeet/windows/ole.rb
|
54
|
-
- lib/fzeet/windows/oleaut.rb
|
55
|
-
- lib/fzeet/windows/propsys.rb
|
56
|
-
- lib/fzeet/windows/scintilla.rb
|
57
|
-
- lib/fzeet/windows/shdocvw.rb
|
58
|
-
- lib/fzeet/windows/shell.rb
|
59
|
-
- lib/fzeet/windows/shlwapi.rb
|
60
|
-
- lib/fzeet/windows/uiribbon.rb
|
61
|
-
- lib/fzeet/windows/urlmon.rb
|
62
|
-
- lib/fzeet/windows/user.rb
|
63
|
-
- lib/fzeet/windows/core/Common.rb
|
64
|
-
- lib/fzeet/windows/core/Point.rb
|
65
|
-
- lib/fzeet/windows/core/Rect.rb
|
66
|
-
- lib/fzeet/windows/core/Size.rb
|
67
|
-
- lib/fzeet/windows/core/SystemTime.rb
|
68
|
-
- lib/fzeet/windows/core/Version.rb
|
69
|
-
- lib/fzeet/windows/kernel/Common.rb
|
70
|
-
- lib/fzeet/windows/user/Accelerator.rb
|
71
|
-
- lib/fzeet/windows/user/Common.rb
|
72
|
-
- lib/fzeet/windows/user/Control.rb
|
73
|
-
- lib/fzeet/windows/user/Menu.rb
|
74
|
-
- lib/fzeet/windows/user/Message.rb
|
75
|
-
- lib/fzeet/windows/user/MessageBox.rb
|
76
|
-
- lib/fzeet/windows/user/SystemParametersInfo.rb
|
77
|
-
- lib/fzeet/windows/user/Window.rb
|
78
|
-
- lib/fzeet/windows/user/Window/Common.rb
|
79
|
-
- lib/fzeet/windows/user/Window/Container.rb
|
80
|
-
- lib/fzeet/windows/user/Window/Dialog.rb
|
81
|
-
- lib/fzeet/windows/user/Window/MDI.rb
|
82
|
-
- lib/fzeet/windows/user/Window/View.rb
|
83
|
-
- lib/fzeet/windows/user/Window/Window.rb
|
84
|
-
- lib/fzeet/windows/user/Window/WindowMethods.rb
|
85
|
-
- lib/fzeet/windows/user/Control/Button.rb
|
86
|
-
- lib/fzeet/windows/user/Control/ComboBox.rb
|
87
|
-
- lib/fzeet/windows/user/Control/Common.rb
|
88
|
-
- lib/fzeet/windows/user/Control/Edit.rb
|
89
|
-
- lib/fzeet/windows/user/Control/ListBox.rb
|
90
|
-
- lib/fzeet/windows/user/Control/Static.rb
|
91
|
-
- lib/fzeet/windows/gdi/Common.rb
|
92
|
-
- lib/fzeet/windows/gdi/Font.rb
|
93
|
-
- lib/fzeet/windows/comctl/Button.rb
|
94
|
-
- lib/fzeet/windows/comctl/ComboBox.rb
|
95
|
-
- lib/fzeet/windows/comctl/ComboBoxEx.rb
|
96
|
-
- lib/fzeet/windows/comctl/Common.rb
|
97
|
-
- lib/fzeet/windows/comctl/DateTimePicker.rb
|
98
|
-
- lib/fzeet/windows/comctl/Edit.rb
|
99
|
-
- lib/fzeet/windows/comctl/Header.rb
|
100
|
-
- lib/fzeet/windows/comctl/ListView.rb
|
101
|
-
- lib/fzeet/windows/comctl/MonthCalendar.rb
|
102
|
-
- lib/fzeet/windows/comctl/ProgressBar.rb
|
103
|
-
- lib/fzeet/windows/comctl/PropertySheet.rb
|
104
|
-
- lib/fzeet/windows/comctl/SysLink.rb
|
105
|
-
- lib/fzeet/windows/comctl/Tab.rb
|
106
|
-
- lib/fzeet/windows/comctl/TreeView.rb
|
107
|
-
- lib/fzeet/windows/comctl/UpDown.rb
|
108
|
-
- lib/fzeet/windows/scintilla/SciLexer.dll
|
109
|
-
- lib/fzeet/windows/comdlg/ColorDialog.rb
|
110
|
-
- lib/fzeet/windows/comdlg/Common.rb
|
111
|
-
- lib/fzeet/windows/comdlg/FileDialog.rb
|
112
|
-
- lib/fzeet/windows/comdlg/FindReplaceDialog.rb
|
113
|
-
- lib/fzeet/windows/comdlg/FontDialog.rb
|
114
|
-
- lib/fzeet/windows/comdlg/PrintDialog.rb
|
115
|
-
- lib/fzeet/windows/comdlg/ShellFileDialog.rb
|
116
|
-
- lib/fzeet/windows/com/Common.rb
|
117
|
-
- lib/fzeet/windows/ole/Common.rb
|
118
|
-
- lib/fzeet/windows/ole/PropVariant.rb
|
119
|
-
- lib/fzeet/windows/oleaut/Bstr.rb
|
120
|
-
- lib/fzeet/windows/oleaut/Common.rb
|
121
|
-
- lib/fzeet/windows/oleaut/SafeArray.rb
|
122
|
-
- lib/fzeet/windows/oleaut/Variant.rb
|
123
|
-
- lib/fzeet/windows/shell/BrowseForFolder.rb
|
124
|
-
- lib/fzeet/windows/shell/Common.rb
|
125
|
-
- lib/fzeet/windows/shell/FileDialog.rb
|
126
|
-
- lib/fzeet/windows/mshtml/Common.rb
|
127
|
-
- lib/fzeet/windows.rb
|
128
|
-
- lib/fzeet.rb
|
129
|
-
- checks/Bstr.rb
|
130
|
-
- checks/Decimal.rb
|
131
|
-
- checks/OSVERSIONINFOEX.rb
|
132
|
-
- checks/Point.rb
|
133
|
-
- checks/Rect.rb
|
134
|
-
- checks/RunAll.rb
|
135
|
-
- checks/SafeArray.rb
|
136
|
-
- checks/Size.rb
|
137
|
-
- checks/SystemTime.rb
|
138
|
-
- checks/Variant.rb
|
139
|
-
- examples/res/applications-graphics-big.bmp
|
140
|
-
- examples/res/applications-graphics-small.bmp
|
141
|
-
- examples/res/applications-graphics.bmp
|
142
|
-
- examples/res/audio-volume-muted-big.bmp
|
143
|
-
- examples/res/audio-volume-muted-small.bmp
|
144
|
-
- examples/res/audio-volume-muted.bmp
|
145
|
-
- examples/res/document-print-big.bmp
|
146
|
-
- examples/res/document-print-preview-big.bmp
|
147
|
-
- examples/res/document-print-preview-small.bmp
|
148
|
-
- examples/res/document-print-preview.bmp
|
149
|
-
- examples/res/document-print-small.bmp
|
150
|
-
- examples/res/document-print.bmp
|
151
|
-
- examples/res/edit-copy.bmp
|
152
|
-
- examples/res/edit-cut.bmp
|
153
|
-
- examples/res/edit-paste.bmp
|
154
|
-
- examples/res/go-bottom-big.bmp
|
155
|
-
- examples/res/go-bottom-small.bmp
|
156
|
-
- examples/res/go-bottom.bmp
|
157
|
-
- examples/res/go-down-big.bmp
|
158
|
-
- examples/res/go-down-small.bmp
|
159
|
-
- examples/res/go-down.bmp
|
160
|
-
- examples/res/go-jump-big.bmp
|
161
|
-
- examples/res/go-jump-small.bmp
|
162
|
-
- examples/res/go-jump.bmp
|
163
|
-
- examples/res/go-next-big.bmp
|
164
|
-
- examples/res/go-next-small.bmp
|
165
|
-
- examples/res/go-next.bmp
|
166
|
-
- examples/res/go-previous-big.bmp
|
167
|
-
- examples/res/go-previous-small.bmp
|
168
|
-
- examples/res/go-previous.bmp
|
169
|
-
- examples/res/media-playback-pause-big.bmp
|
170
|
-
- examples/res/media-playback-pause-small.bmp
|
171
|
-
- examples/res/media-playback-pause.bmp
|
172
|
-
- examples/res/preferences-desktop-font-big.bmp
|
173
|
-
- examples/res/preferences-desktop-font-small.bmp
|
174
|
-
- examples/res/preferences-desktop-font.bmp
|
175
|
-
- examples/res/process-stop-big.bmp
|
176
|
-
- examples/res/process-stop-small.bmp
|
177
|
-
- examples/res/process-stop.bmp
|
178
|
-
- examples/Raw/Command.rbw
|
179
|
-
- examples/Raw/Hello.rbw
|
180
|
-
- examples/Raw/LifeCycle.rbw
|
181
|
-
- examples/Raw/Minimal.rbw
|
182
|
-
- examples/Raw/UIRibbon/Command.rbw
|
183
|
-
- examples/Raw/UIRibbon/Minimal.rbw
|
184
|
-
- examples/Raw/UIRibbon/Command.xml
|
185
|
-
- examples/Raw/UIRibbon/Minimal.xml
|
186
|
-
- examples/Raw/UIRibbon/Command.rb
|
187
|
-
- examples/Raw/UIRibbon/Minimal.rb
|
188
|
-
- examples/Raw/UIRibbon/Command.dll
|
189
|
-
- examples/Raw/UIRibbon/Minimal.dll
|
34
|
+
files:
|
35
|
+
- LICENSE
|
36
|
+
- LICENSE_Scintilla
|
37
|
+
- README.md
|
38
|
+
- RELNOTES.md
|
190
39
|
- examples/Command.rbw
|
191
|
-
- examples/Hello.rbw
|
192
|
-
- examples/Inheritance.rbw
|
193
|
-
- examples/Inheritance1.rbw
|
194
|
-
- examples/Layout.rbw
|
195
|
-
- examples/LifeCycle.rbw
|
196
|
-
- examples/LifeCycle1.rbw
|
197
|
-
- examples/LifeCycle2.rbw
|
198
|
-
- examples/LifeCycleNC.rbw
|
199
|
-
- examples/MDI.rbw
|
200
|
-
- examples/MessageBox.rbw
|
201
|
-
- examples/Minimal.rbw
|
202
|
-
- examples/MinimalOpts.rbw
|
203
|
-
- examples/Paint.rbw
|
204
|
-
- examples/Scribble.rbw
|
205
|
-
- examples/Style.rbw
|
206
|
-
- examples/Version.rbw
|
207
|
-
- examples/Menu/ContextMenu.rbw
|
208
|
-
- examples/Menu/Menu.rbw
|
209
|
-
- examples/Menu/MenuPARGB32.rbw
|
210
40
|
- examples/Control/Button.rbw
|
211
41
|
- examples/Control/Button1.rbw
|
212
42
|
- examples/Control/ComboBox.rbw
|
@@ -226,15 +56,15 @@ files:
|
|
226
56
|
- examples/Control/Tab.rbw
|
227
57
|
- examples/Control/TreeView.rbw
|
228
58
|
- examples/Control/UpDown.rbw
|
229
|
-
- examples/Control/WebBrowser/jQueryUI.rbw
|
230
59
|
- examples/Control/WebBrowser/WebBrowser.rbw
|
231
60
|
- examples/Control/WebBrowser/WebBrowser1.rbw
|
232
61
|
- examples/Control/WebBrowser/WebBrowser2.rbw
|
233
62
|
- examples/Control/WebBrowser/WebBrowser3.rbw
|
234
63
|
- examples/Control/WebBrowser/WebBrowser4.rbw
|
235
|
-
- examples/Control/WebBrowser/WebBrowser5.rbw
|
236
64
|
- examples/Control/WebBrowser/WebBrowser4Sinatra.rb
|
65
|
+
- examples/Control/WebBrowser/WebBrowser5.rbw
|
237
66
|
- examples/Control/WebBrowser/jQueryUI.html
|
67
|
+
- examples/Control/WebBrowser/jQueryUI.rbw
|
238
68
|
- examples/Dialog/ColorDialog.rbw
|
239
69
|
- examples/Dialog/Dialog.rbw
|
240
70
|
- examples/Dialog/DialogApplication.rbw
|
@@ -243,87 +73,231 @@ files:
|
|
243
73
|
- examples/Dialog/FontDialog.rbw
|
244
74
|
- examples/Dialog/PrintDialog.rbw
|
245
75
|
- examples/Dialog/ShellFileDialog.rbw
|
76
|
+
- examples/Hello.rbw
|
77
|
+
- examples/Inheritance.rbw
|
78
|
+
- examples/Inheritance1.rbw
|
79
|
+
- examples/Layout.rbw
|
80
|
+
- examples/LifeCycle.rbw
|
81
|
+
- examples/LifeCycle1.rbw
|
82
|
+
- examples/LifeCycle2.rbw
|
83
|
+
- examples/LifeCycleNC.rbw
|
84
|
+
- examples/MDI.rbw
|
85
|
+
- examples/Menu/ContextMenu.rbw
|
86
|
+
- examples/Menu/Menu.rbw
|
87
|
+
- examples/Menu/MenuPARGB32.rbw
|
88
|
+
- examples/MessageBox.rbw
|
89
|
+
- examples/Minimal.rbw
|
90
|
+
- examples/MinimalOpts.rbw
|
91
|
+
- examples/Paint.rbw
|
92
|
+
- examples/Raw/Command.rbw
|
93
|
+
- examples/Raw/Hello.rbw
|
94
|
+
- examples/Raw/LifeCycle.rbw
|
95
|
+
- examples/Raw/Minimal.rbw
|
96
|
+
- examples/Raw/UIRibbon/Command.dll
|
97
|
+
- examples/Raw/UIRibbon/Command.rb
|
98
|
+
- examples/Raw/UIRibbon/Command.rbw
|
99
|
+
- examples/Raw/UIRibbon/Command.xml
|
100
|
+
- examples/Raw/UIRibbon/Minimal.dll
|
101
|
+
- examples/Raw/UIRibbon/Minimal.rb
|
102
|
+
- examples/Raw/UIRibbon/Minimal.rbw
|
103
|
+
- examples/Raw/UIRibbon/Minimal.xml
|
104
|
+
- examples/Scribble.rbw
|
105
|
+
- examples/Style.rbw
|
106
|
+
- examples/UIRibbon/ApplicationModes.dll
|
107
|
+
- examples/UIRibbon/ApplicationModes.rb
|
246
108
|
- examples/UIRibbon/ApplicationModes.rbw
|
109
|
+
- examples/UIRibbon/ApplicationModes.xml
|
247
110
|
- examples/UIRibbon/Color.rbw
|
111
|
+
- examples/UIRibbon/Command.dll
|
112
|
+
- examples/UIRibbon/Command.rb
|
248
113
|
- examples/UIRibbon/Command.rbw
|
249
|
-
- examples/UIRibbon/ContextPopup.rbw
|
250
|
-
- examples/UIRibbon/Minimal.rbw
|
251
|
-
- examples/UIRibbon/Size.rbw
|
252
|
-
- examples/UIRibbon/TabGroup.rbw
|
253
|
-
- examples/UIRibbon/Viewer.rbw
|
254
|
-
- examples/UIRibbon/ApplicationModes.xml
|
255
114
|
- examples/UIRibbon/Command.xml
|
256
|
-
- examples/UIRibbon/ContextPopup.xml
|
257
|
-
- examples/UIRibbon/Minimal.xml
|
258
|
-
- examples/UIRibbon/TabGroup.xml
|
259
|
-
- examples/UIRibbon/ApplicationModes.rb
|
260
|
-
- examples/UIRibbon/Command.rb
|
261
|
-
- examples/UIRibbon/ContextPopup.rb
|
262
|
-
- examples/UIRibbon/Minimal.rb
|
263
|
-
- examples/UIRibbon/TabGroup.rb
|
264
|
-
- examples/UIRibbon/ApplicationModes.dll
|
265
|
-
- examples/UIRibbon/Command.dll
|
266
115
|
- examples/UIRibbon/ContextPopup.dll
|
267
|
-
- examples/UIRibbon/
|
268
|
-
- examples/UIRibbon/
|
116
|
+
- examples/UIRibbon/ContextPopup.rb
|
117
|
+
- examples/UIRibbon/ContextPopup.rbw
|
118
|
+
- examples/UIRibbon/ContextPopup.xml
|
119
|
+
- examples/UIRibbon/Control/Button.dll
|
120
|
+
- examples/UIRibbon/Control/Button.rb
|
269
121
|
- examples/UIRibbon/Control/Button.rbw
|
270
|
-
- examples/UIRibbon/Control/ColorPicker.rbw
|
271
|
-
- examples/UIRibbon/Control/ComboBox.rbw
|
272
|
-
- examples/UIRibbon/Control/FontControl.rbw
|
273
|
-
- examples/UIRibbon/Control/Gallery.rbw
|
274
|
-
- examples/UIRibbon/Control/Spinner.rbw
|
275
122
|
- examples/UIRibbon/Control/Button.xml
|
276
|
-
- examples/UIRibbon/Control/ColorPicker.xml
|
277
|
-
- examples/UIRibbon/Control/ComboBox.xml
|
278
|
-
- examples/UIRibbon/Control/FontControl.xml
|
279
|
-
- examples/UIRibbon/Control/Gallery.xml
|
280
|
-
- examples/UIRibbon/Control/Spinner.xml
|
281
|
-
- examples/UIRibbon/Control/Button.rb
|
282
|
-
- examples/UIRibbon/Control/ColorPicker.rb
|
283
|
-
- examples/UIRibbon/Control/ComboBox.rb
|
284
|
-
- examples/UIRibbon/Control/FontControl.rb
|
285
|
-
- examples/UIRibbon/Control/Gallery.rb
|
286
|
-
- examples/UIRibbon/Control/Spinner.rb
|
287
|
-
- examples/UIRibbon/Control/Button.dll
|
288
123
|
- examples/UIRibbon/Control/ColorPicker.dll
|
124
|
+
- examples/UIRibbon/Control/ColorPicker.rb
|
125
|
+
- examples/UIRibbon/Control/ColorPicker.rbw
|
126
|
+
- examples/UIRibbon/Control/ColorPicker.xml
|
289
127
|
- examples/UIRibbon/Control/ComboBox.dll
|
128
|
+
- examples/UIRibbon/Control/ComboBox.rb
|
129
|
+
- examples/UIRibbon/Control/ComboBox.rbw
|
130
|
+
- examples/UIRibbon/Control/ComboBox.xml
|
290
131
|
- examples/UIRibbon/Control/FontControl.dll
|
132
|
+
- examples/UIRibbon/Control/FontControl.rb
|
133
|
+
- examples/UIRibbon/Control/FontControl.rbw
|
134
|
+
- examples/UIRibbon/Control/FontControl.xml
|
291
135
|
- examples/UIRibbon/Control/Gallery.dll
|
136
|
+
- examples/UIRibbon/Control/Gallery.rb
|
137
|
+
- examples/UIRibbon/Control/Gallery.rbw
|
138
|
+
- examples/UIRibbon/Control/Gallery.xml
|
292
139
|
- examples/UIRibbon/Control/Spinner.dll
|
293
|
-
-
|
294
|
-
-
|
295
|
-
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
140
|
+
- examples/UIRibbon/Control/Spinner.rb
|
141
|
+
- examples/UIRibbon/Control/Spinner.rbw
|
142
|
+
- examples/UIRibbon/Control/Spinner.xml
|
143
|
+
- examples/UIRibbon/Minimal.dll
|
144
|
+
- examples/UIRibbon/Minimal.rb
|
145
|
+
- examples/UIRibbon/Minimal.rbw
|
146
|
+
- examples/UIRibbon/Minimal.xml
|
147
|
+
- examples/UIRibbon/Size.rbw
|
148
|
+
- examples/UIRibbon/TabGroup.dll
|
149
|
+
- examples/UIRibbon/TabGroup.rb
|
150
|
+
- examples/UIRibbon/TabGroup.rbw
|
151
|
+
- examples/UIRibbon/TabGroup.xml
|
152
|
+
- examples/UIRibbon/Viewer.rbw
|
153
|
+
- examples/Version.rbw
|
154
|
+
- examples/res/applications-graphics-big.bmp
|
155
|
+
- examples/res/applications-graphics-small.bmp
|
156
|
+
- examples/res/applications-graphics.bmp
|
157
|
+
- examples/res/audio-volume-muted-big.bmp
|
158
|
+
- examples/res/audio-volume-muted-small.bmp
|
159
|
+
- examples/res/audio-volume-muted.bmp
|
160
|
+
- examples/res/document-print-big.bmp
|
161
|
+
- examples/res/document-print-preview-big.bmp
|
162
|
+
- examples/res/document-print-preview-small.bmp
|
163
|
+
- examples/res/document-print-preview.bmp
|
164
|
+
- examples/res/document-print-small.bmp
|
165
|
+
- examples/res/document-print.bmp
|
166
|
+
- examples/res/edit-copy.bmp
|
167
|
+
- examples/res/edit-cut.bmp
|
168
|
+
- examples/res/edit-paste.bmp
|
169
|
+
- examples/res/go-bottom-big.bmp
|
170
|
+
- examples/res/go-bottom-small.bmp
|
171
|
+
- examples/res/go-bottom.bmp
|
172
|
+
- examples/res/go-down-big.bmp
|
173
|
+
- examples/res/go-down-small.bmp
|
174
|
+
- examples/res/go-down.bmp
|
175
|
+
- examples/res/go-jump-big.bmp
|
176
|
+
- examples/res/go-jump-small.bmp
|
177
|
+
- examples/res/go-jump.bmp
|
178
|
+
- examples/res/go-next-big.bmp
|
179
|
+
- examples/res/go-next-small.bmp
|
180
|
+
- examples/res/go-next.bmp
|
181
|
+
- examples/res/go-previous-big.bmp
|
182
|
+
- examples/res/go-previous-small.bmp
|
183
|
+
- examples/res/go-previous.bmp
|
184
|
+
- examples/res/media-playback-pause-big.bmp
|
185
|
+
- examples/res/media-playback-pause-small.bmp
|
186
|
+
- examples/res/media-playback-pause.bmp
|
187
|
+
- examples/res/preferences-desktop-font-big.bmp
|
188
|
+
- examples/res/preferences-desktop-font-small.bmp
|
189
|
+
- examples/res/preferences-desktop-font.bmp
|
190
|
+
- examples/res/process-stop-big.bmp
|
191
|
+
- examples/res/process-stop-small.bmp
|
192
|
+
- examples/res/process-stop.bmp
|
193
|
+
- lib/fzeet.rb
|
194
|
+
- lib/fzeet/windows.rb
|
195
|
+
- lib/fzeet/windows/com.rb
|
196
|
+
- lib/fzeet/windows/com/Common.rb
|
197
|
+
- lib/fzeet/windows/comctl.rb
|
198
|
+
- lib/fzeet/windows/comctl/Button.rb
|
199
|
+
- lib/fzeet/windows/comctl/ComboBox.rb
|
200
|
+
- lib/fzeet/windows/comctl/ComboBoxEx.rb
|
201
|
+
- lib/fzeet/windows/comctl/Common.rb
|
202
|
+
- lib/fzeet/windows/comctl/DateTimePicker.rb
|
203
|
+
- lib/fzeet/windows/comctl/Edit.rb
|
204
|
+
- lib/fzeet/windows/comctl/Header.rb
|
205
|
+
- lib/fzeet/windows/comctl/ListView.rb
|
206
|
+
- lib/fzeet/windows/comctl/MonthCalendar.rb
|
207
|
+
- lib/fzeet/windows/comctl/ProgressBar.rb
|
208
|
+
- lib/fzeet/windows/comctl/PropertySheet.rb
|
209
|
+
- lib/fzeet/windows/comctl/SysLink.rb
|
210
|
+
- lib/fzeet/windows/comctl/Tab.rb
|
211
|
+
- lib/fzeet/windows/comctl/TreeView.rb
|
212
|
+
- lib/fzeet/windows/comctl/UpDown.rb
|
213
|
+
- lib/fzeet/windows/comdlg.rb
|
214
|
+
- lib/fzeet/windows/comdlg/ColorDialog.rb
|
215
|
+
- lib/fzeet/windows/comdlg/Common.rb
|
216
|
+
- lib/fzeet/windows/comdlg/FileDialog.rb
|
217
|
+
- lib/fzeet/windows/comdlg/FindReplaceDialog.rb
|
218
|
+
- lib/fzeet/windows/comdlg/FontDialog.rb
|
219
|
+
- lib/fzeet/windows/comdlg/PrintDialog.rb
|
220
|
+
- lib/fzeet/windows/comdlg/ShellFileDialog.rb
|
221
|
+
- lib/fzeet/windows/core.rb
|
222
|
+
- lib/fzeet/windows/core/Common.rb
|
223
|
+
- lib/fzeet/windows/core/Point.rb
|
224
|
+
- lib/fzeet/windows/core/Rect.rb
|
225
|
+
- lib/fzeet/windows/core/Size.rb
|
226
|
+
- lib/fzeet/windows/core/SystemTime.rb
|
227
|
+
- lib/fzeet/windows/core/Version.rb
|
228
|
+
- lib/fzeet/windows/gdi.rb
|
229
|
+
- lib/fzeet/windows/gdi/Common.rb
|
230
|
+
- lib/fzeet/windows/gdi/Font.rb
|
231
|
+
- lib/fzeet/windows/kernel.rb
|
232
|
+
- lib/fzeet/windows/kernel/Common.rb
|
233
|
+
- lib/fzeet/windows/libc.rb
|
234
|
+
- lib/fzeet/windows/mshtml.rb
|
235
|
+
- lib/fzeet/windows/mshtml/Common.rb
|
236
|
+
- lib/fzeet/windows/ole.rb
|
237
|
+
- lib/fzeet/windows/ole/Common.rb
|
238
|
+
- lib/fzeet/windows/ole/PropVariant.rb
|
239
|
+
- lib/fzeet/windows/oleaut.rb
|
240
|
+
- lib/fzeet/windows/oleaut/Bstr.rb
|
241
|
+
- lib/fzeet/windows/oleaut/Common.rb
|
242
|
+
- lib/fzeet/windows/oleaut/SafeArray.rb
|
243
|
+
- lib/fzeet/windows/oleaut/Variant.rb
|
244
|
+
- lib/fzeet/windows/propsys.rb
|
245
|
+
- lib/fzeet/windows/scintilla.rb
|
246
|
+
- lib/fzeet/windows/scintilla/SciLexer.dll
|
247
|
+
- lib/fzeet/windows/shdocvw.rb
|
248
|
+
- lib/fzeet/windows/shell.rb
|
249
|
+
- lib/fzeet/windows/shell/BrowseForFolder.rb
|
250
|
+
- lib/fzeet/windows/shell/Common.rb
|
251
|
+
- lib/fzeet/windows/shell/FileDialog.rb
|
252
|
+
- lib/fzeet/windows/shlwapi.rb
|
253
|
+
- lib/fzeet/windows/uiribbon.rb
|
254
|
+
- lib/fzeet/windows/urlmon.rb
|
255
|
+
- lib/fzeet/windows/user.rb
|
256
|
+
- lib/fzeet/windows/user/Accelerator.rb
|
257
|
+
- lib/fzeet/windows/user/Common.rb
|
258
|
+
- lib/fzeet/windows/user/Control.rb
|
259
|
+
- lib/fzeet/windows/user/Control/Button.rb
|
260
|
+
- lib/fzeet/windows/user/Control/ComboBox.rb
|
261
|
+
- lib/fzeet/windows/user/Control/Common.rb
|
262
|
+
- lib/fzeet/windows/user/Control/Edit.rb
|
263
|
+
- lib/fzeet/windows/user/Control/ListBox.rb
|
264
|
+
- lib/fzeet/windows/user/Control/Static.rb
|
265
|
+
- lib/fzeet/windows/user/Menu.rb
|
266
|
+
- lib/fzeet/windows/user/Message.rb
|
267
|
+
- lib/fzeet/windows/user/MessageBox.rb
|
268
|
+
- lib/fzeet/windows/user/SystemParametersInfo.rb
|
269
|
+
- lib/fzeet/windows/user/Window.rb
|
270
|
+
- lib/fzeet/windows/user/Window/Common.rb
|
271
|
+
- lib/fzeet/windows/user/Window/Container.rb
|
272
|
+
- lib/fzeet/windows/user/Window/Dialog.rb
|
273
|
+
- lib/fzeet/windows/user/Window/MDI.rb
|
274
|
+
- lib/fzeet/windows/user/Window/View.rb
|
275
|
+
- lib/fzeet/windows/user/Window/Window.rb
|
276
|
+
- lib/fzeet/windows/user/Window/WindowMethods.rb
|
277
|
+
- screenshot.png
|
278
|
+
homepage: https://github.com/rpeev/fzeet
|
279
|
+
licenses:
|
280
|
+
- MIT
|
281
|
+
metadata: {}
|
300
282
|
post_install_message:
|
301
283
|
rdoc_options: []
|
302
|
-
|
303
|
-
require_paths:
|
284
|
+
require_paths:
|
304
285
|
- lib
|
305
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
requirements:
|
316
|
-
- - ">="
|
317
|
-
- !ruby/object:Gem::Version
|
318
|
-
segments:
|
319
|
-
- 0
|
320
|
-
version: "0"
|
286
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
287
|
+
requirements:
|
288
|
+
- - ! '>='
|
289
|
+
- !ruby/object:Gem::Version
|
290
|
+
version: '0'
|
291
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
292
|
+
requirements:
|
293
|
+
- - ! '>='
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: '0'
|
321
296
|
requirements: []
|
322
|
-
|
323
297
|
rubyforge_project:
|
324
|
-
rubygems_version:
|
298
|
+
rubygems_version: 2.6.8
|
325
299
|
signing_key:
|
326
|
-
specification_version:
|
327
|
-
summary: GUI
|
300
|
+
specification_version: 4
|
301
|
+
summary: Ruby-FFI (x86) bindings to (plus rubyesque APIs on top) GUI/COM-related Windows
|
302
|
+
APIs
|
328
303
|
test_files: []
|
329
|
-
|
data/LICENSE_CEF
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
// Copyright (c) 2008-2010 Marshall A. Greenblatt. Portions Copyright (c)
|
2
|
-
// 2006-2010 Google Inc. All rights reserved.
|
3
|
-
//
|
4
|
-
// Redistribution and use in source and binary forms, with or without
|
5
|
-
// modification, are permitted provided that the following conditions are
|
6
|
-
// met:
|
7
|
-
//
|
8
|
-
// * Redistributions of source code must retain the above copyright
|
9
|
-
// notice, this list of conditions and the following disclaimer.
|
10
|
-
// * Redistributions in binary form must reproduce the above
|
11
|
-
// copyright notice, this list of conditions and the following disclaimer
|
12
|
-
// in the documentation and/or other materials provided with the
|
13
|
-
// distribution.
|
14
|
-
// * Neither the name of Google Inc. nor the name Chromium Embedded
|
15
|
-
// Framework nor the names of its contributors may be used to endorse
|
16
|
-
// or promote products derived from this software without specific prior
|
17
|
-
// written permission.
|
18
|
-
//
|
19
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
20
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
21
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
22
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
23
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
24
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
25
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
26
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
27
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
29
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/checks/Bstr.rb
DELETED
data/checks/Decimal.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
require 'fzeet'
|
2
|
-
|
3
|
-
include Fzeet
|
4
|
-
|
5
|
-
Decimal[42].tap { |decimal|
|
6
|
-
raise unless decimal.int == 42
|
7
|
-
}
|
8
|
-
|
9
|
-
Decimal[-42].tap { |decimal|
|
10
|
-
raise unless decimal.int == -42
|
11
|
-
}
|
12
|
-
|
13
|
-
Decimal[0x7fff_ffff_ffff_ffff].tap { |decimal|
|
14
|
-
raise unless decimal.longlong == 0x7fff_ffff_ffff_ffff
|
15
|
-
}
|
16
|
-
|
17
|
-
Decimal[-0x7fff_ffff_ffff_ffff].tap { |decimal|
|
18
|
-
raise unless decimal.longlong == -0x7fff_ffff_ffff_ffff
|
19
|
-
}
|
20
|
-
|
21
|
-
Decimal[1.1].tap { |decimal|
|
22
|
-
raise unless decimal.double == 1.1
|
23
|
-
}
|
24
|
-
|
25
|
-
Decimal[-1.1].tap { |decimal|
|
26
|
-
raise unless decimal.double == -1.1
|
27
|
-
}
|
data/checks/OSVERSIONINFOEX.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'fzeet'
|
2
|
-
|
3
|
-
include Fzeet
|
4
|
-
|
5
|
-
Windows::OSVERSIONINFOEX.new.tap { |ovi|
|
6
|
-
ovi[:dwMajorVersion] = 5
|
7
|
-
ovi[:dwMinorVersion] = 2
|
8
|
-
|
9
|
-
raise unless ovi.hex == 0x0502
|
10
|
-
raise unless ovi >= :xp
|
11
|
-
raise unless ovi > 2000
|
12
|
-
raise unless ovi < :vista
|
13
|
-
raise unless ovi.name == 'Windows XP'
|
14
|
-
}
|
data/checks/Point.rb
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
require 'fzeet'
|
2
|
-
|
3
|
-
include Fzeet
|
4
|
-
|
5
|
-
# Point.[], Point#to_a
|
6
|
-
raise unless Point[42, 43].to_a == [42, 43]
|
7
|
-
|
8
|
-
# Point#wrap, Point#==
|
9
|
-
Point[42, 43].tap { |pt|
|
10
|
-
Point.wrap(pt.pointer).tap { |pt1|
|
11
|
-
raise unless pt.pointer == pt1.pointer # same pointer
|
12
|
-
raise if pt.equal?(pt1) # different objects
|
13
|
-
raise unless pt == pt1 # same coords
|
14
|
-
|
15
|
-
pt1[:x] += 2
|
16
|
-
}
|
17
|
-
|
18
|
-
raise unless pt[:x] == 44
|
19
|
-
}
|
20
|
-
|
21
|
-
# Point#dup
|
22
|
-
Point[42, 43].tap { |pt|
|
23
|
-
pt.dup.tap { |pt1|
|
24
|
-
raise if pt.pointer == pt1.pointer # different pointers
|
25
|
-
raise if pt.equal?(pt1) # different objects
|
26
|
-
raise unless pt == pt1 # same coords
|
27
|
-
|
28
|
-
pt1[:x] += 2
|
29
|
-
}
|
30
|
-
|
31
|
-
raise unless pt[:x] == 42
|
32
|
-
}
|
33
|
-
|
34
|
-
# Point#get, Point#set, Point#clear
|
35
|
-
Point[42, 43].tap { |pt|
|
36
|
-
raise unless pt.set(1, 2).get == [1, 2]
|
37
|
-
raise unless pt.clear.get == [0, 0]
|
38
|
-
}
|
39
|
-
|
40
|
-
# Point#inside?, Point#outside?
|
41
|
-
Rect[100, 200, 300, 400].tap { |r|
|
42
|
-
raise unless Point[100, 200].inside?(r)
|
43
|
-
raise unless Point[299, 399].inside?(r)
|
44
|
-
raise if Point[300, 400].inside?(r) # rigth-bottom corner is excluded
|
45
|
-
raise unless Point[300, 400].outside?(r)
|
46
|
-
}
|
47
|
-
|
48
|
-
# Point#offset, Point#offset!
|
49
|
-
Point[42, 43].tap { |pt|
|
50
|
-
raise if pt.equal?(pt.offset(10, 20))
|
51
|
-
raise unless pt.offset!(10, 20).to_a == [52, 63]
|
52
|
-
raise unless pt.offset!(-10, -20).to_a == [42, 43]
|
53
|
-
}
|
54
|
-
|
55
|
-
# Point#client, Point#client!, Point#screen, Point#screen!
|
56
|
-
Window.new(x: 100, y: 200).tap { |window|
|
57
|
-
Point[100, 200].tap { |screen|
|
58
|
-
raise if screen.equal?(screen.client(window))
|
59
|
-
screen.client!(window).tap { |client|
|
60
|
-
raise if client.equal?(client.screen(window))
|
61
|
-
raise unless client.to_a.all? { |coord| coord < 0 }
|
62
|
-
raise unless client.screen!(window).to_a == [100, 200]
|
63
|
-
}
|
64
|
-
}
|
65
|
-
}
|
data/checks/Rect.rb
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
require 'fzeet'
|
2
|
-
|
3
|
-
include Fzeet
|
4
|
-
|
5
|
-
# Rect.[](left, top, right, bottom), Rect#to_a
|
6
|
-
raise unless Rect[100, 200, 300, 400].to_a == [100, 200, 300, 400]
|
7
|
-
|
8
|
-
# Rect.[](location, size)
|
9
|
-
raise unless Rect[Point[100, 200], Size[200, 200]].to_a == [100, 200, 300, 400]
|
10
|
-
|
11
|
-
# Rect#wrap, Rect#==
|
12
|
-
Rect[100, 200, 300, 400].tap { |r|
|
13
|
-
Rect.wrap(r.pointer).tap { |r1|
|
14
|
-
raise unless r.pointer == r1.pointer # same pointer
|
15
|
-
raise if r.equal?(r1) # different objects
|
16
|
-
raise unless r == r1 # same coords
|
17
|
-
|
18
|
-
r1[:left] += 50
|
19
|
-
}
|
20
|
-
|
21
|
-
raise unless r[:left] == 150
|
22
|
-
}
|
23
|
-
|
24
|
-
# Rect#dup
|
25
|
-
Rect[100, 200, 300, 400].tap { |r|
|
26
|
-
r.dup.tap { |r1|
|
27
|
-
raise if r.pointer == r1.pointer # different pointers
|
28
|
-
raise if r.equal?(r1) # different objects
|
29
|
-
raise unless r == r1 # same coords
|
30
|
-
|
31
|
-
r1[:left] += 50
|
32
|
-
}
|
33
|
-
|
34
|
-
raise unless r[:left] == 100
|
35
|
-
}
|
36
|
-
|
37
|
-
# Rect#get, Rect#set, Rect#clear, Rect#empty?
|
38
|
-
Rect[100, 200, 300, 400].tap { |r|
|
39
|
-
raise unless r.set(1, 2, 3, 4).get == [1, 2, 3, 4]
|
40
|
-
raise if r.empty?
|
41
|
-
raise unless r.clear.get == [0, 0, 0, 0]
|
42
|
-
raise unless r.empty?
|
43
|
-
}
|
44
|
-
|
45
|
-
# Rect#lt, Rect#lt=, Rect#lb, Rect#lb=, Rect#rt, Rect#rt=, Rect#rb, Rect#rb=
|
46
|
-
# Rect#width, Rect#width=, Rect#height, Rect#height=, Rect#size, Rect#size=
|
47
|
-
# Rect#structSize
|
48
|
-
Rect[100, 200, 300, 400].tap { |r|
|
49
|
-
raise unless r.lt.to_a == [100, 200]
|
50
|
-
raise unless r.lb.to_a == [100, 400]
|
51
|
-
raise unless r.rt.to_a == [300, 200]
|
52
|
-
raise unless r.rb.to_a == [300, 400]
|
53
|
-
|
54
|
-
raise unless r.location.to_a == [100, 200]
|
55
|
-
raise unless r.size.to_a == [200, 200]
|
56
|
-
|
57
|
-
r.location = Point[1, 2]
|
58
|
-
r.size = Size[3, 4]
|
59
|
-
|
60
|
-
raise unless r.to_a == [1, 2, 4, 6]
|
61
|
-
|
62
|
-
raise unless r.structSize == 16
|
63
|
-
}
|
64
|
-
|
65
|
-
# Rect#include?, Rect#exclude?
|
66
|
-
Rect[100, 200, 300, 400].tap { |r|
|
67
|
-
raise unless r.include?(Point[100, 200])
|
68
|
-
raise unless r.include?(Point[299, 399])
|
69
|
-
raise if r.include?(Point[300, 400]) # rigth-bottom corner is excluded
|
70
|
-
raise unless r.exclude?(Point[300, 400])
|
71
|
-
|
72
|
-
raise unless r.include?(Rect[100, 200, 299, 399])
|
73
|
-
raise unless r.include?(Rect[100, 200, 299, 399], Point[299, 399])
|
74
|
-
}
|
75
|
-
|
76
|
-
# Rect#normalized?, Rect#normalize, Point#normalize!
|
77
|
-
Rect[300, 400, 100, 200].tap { |r|
|
78
|
-
raise if r.equal?(r.normalize)
|
79
|
-
raise if r.normalized?
|
80
|
-
raise unless r.normalize!.to_a == [100, 200, 300, 400]
|
81
|
-
raise unless r.normalized?
|
82
|
-
}
|
83
|
-
|
84
|
-
# Rect#offset, Rect#offset!, Rect#inflate, Rect#inflate!
|
85
|
-
Rect[100, 200, 300, 400].tap { |r|
|
86
|
-
raise if r.equal?(r.offset(10, 20))
|
87
|
-
raise unless r.offset!(10, 20).to_a == [110, 220, 310, 420]
|
88
|
-
raise unless r.offset!(-10, -20).to_a == [100, 200, 300, 400]
|
89
|
-
|
90
|
-
raise if r.equal?(r.inflate(10, 20))
|
91
|
-
raise unless r.inflate!(10, 20).to_a == [90, 180, 310, 420]
|
92
|
-
raise unless r.inflate!(-10, -20).to_a == [100, 200, 300, 400]
|
93
|
-
}
|
94
|
-
|
95
|
-
# Rect#|, Rect#&, Rect#-
|
96
|
-
[Rect[100, 200, 300, 400], Rect[110, 220, 310, 420]].tap { |r1, r2|
|
97
|
-
raise unless (r1 | r2).to_a == [100, 200, 310, 420]
|
98
|
-
|
99
|
-
raise unless (r1 & r2).to_a == [110, 220, 300, 400]
|
100
|
-
|
101
|
-
raise unless r1 - r2 == r1
|
102
|
-
r2[:top] = 200
|
103
|
-
raise unless (r1 - r2).to_a == [100, 200, 110, 400]
|
104
|
-
}
|
data/checks/RunAll.rb
DELETED
data/checks/SafeArray.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
require 'fzeet'
|
2
|
-
|
3
|
-
include Fzeet
|
4
|
-
|
5
|
-
SafeArray.vector(2).tap { |sa|
|
6
|
-
raise unless sa[:cDims] == 1
|
7
|
-
raise unless sa.length == 2
|
8
|
-
raise unless sa.vt == Windows::VT_VARIANT
|
9
|
-
|
10
|
-
sa[0] = Variant[:int, 42]
|
11
|
-
raise unless sa[0].int == 42
|
12
|
-
|
13
|
-
sa[1] = Variant[:bstr, 'foo']
|
14
|
-
raise unless sa[1].bstr == 'foo'
|
15
|
-
|
16
|
-
sa.dispose
|
17
|
-
}
|
18
|
-
|
19
|
-
raise unless SafeArray.vector(2) { |sa|
|
20
|
-
raise unless sa.length == 2
|
21
|
-
}.nil?
|
22
|
-
|
23
|
-
SafeArray.vector(5) { |sa|
|
24
|
-
(1..5).each.with_index { |v, i| sa[i] = Variant[:int, v] }
|
25
|
-
|
26
|
-
raise unless sa.inject(1) { |product, variant| product *= variant.int } == 120
|
27
|
-
}
|
data/checks/Size.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
require 'fzeet'
|
2
|
-
|
3
|
-
include Fzeet
|
4
|
-
|
5
|
-
# Size.[], Size#to_a
|
6
|
-
raise unless Size[42, 43].to_a == [42, 43]
|
7
|
-
|
8
|
-
# Size#wrap, Size#==
|
9
|
-
Size[42, 43].tap { |s|
|
10
|
-
Size.wrap(s.pointer).tap { |s1|
|
11
|
-
raise unless s.pointer == s1.pointer # same pointer
|
12
|
-
raise if s.equal?(s1) # different objects
|
13
|
-
raise unless s == s1 # same lengths
|
14
|
-
|
15
|
-
s1[:cx] += 2
|
16
|
-
}
|
17
|
-
|
18
|
-
raise unless s[:cx] == 44
|
19
|
-
}
|
20
|
-
|
21
|
-
# Size#dup
|
22
|
-
Size[42, 43].tap { |s|
|
23
|
-
s.dup.tap { |s1|
|
24
|
-
raise if s.pointer == s1.pointer # different pointers
|
25
|
-
raise if s.equal?(s1) # different objects
|
26
|
-
raise unless s == s1 # same lengths
|
27
|
-
|
28
|
-
s1[:cx] += 2
|
29
|
-
}
|
30
|
-
|
31
|
-
raise unless s[:cx] == 42
|
32
|
-
}
|
33
|
-
|
34
|
-
# Size#get, Size#set, Size#clear
|
35
|
-
Size[42, 43].tap { |s|
|
36
|
-
raise unless s.set(1, 2).get == [1, 2]
|
37
|
-
raise unless s.clear.get == [0, 0]
|
38
|
-
}
|
39
|
-
|
40
|
-
# Size#inflate, Size#inflate!
|
41
|
-
Size[42, 43].tap { |s|
|
42
|
-
raise if s.equal?(s.inflate(10, 20))
|
43
|
-
raise unless s.inflate!(10, 20).to_a == [52, 63]
|
44
|
-
raise unless s.inflate!(-10, -20).to_a == [42, 43]
|
45
|
-
}
|
data/checks/SystemTime.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
require 'fzeet'
|
2
|
-
|
3
|
-
include Fzeet
|
4
|
-
|
5
|
-
# SystemTime.[], SystemTime#get
|
6
|
-
SystemTime[Time.local(2000, 3, 4, 5, 6, 7, 8.9 * 1000)].tap { |st|
|
7
|
-
local = st.get
|
8
|
-
|
9
|
-
raise unless local.year == 2000
|
10
|
-
raise unless local.month == 3
|
11
|
-
raise unless local.day == 4
|
12
|
-
raise unless local.hour == 5
|
13
|
-
raise unless local.min == 6
|
14
|
-
raise unless local.sec == 7
|
15
|
-
raise unless st[:wMilliseconds] == 9
|
16
|
-
raise unless local.usec == 9000
|
17
|
-
}
|
18
|
-
|
19
|
-
# SystemTime#wrap, SystemTime#==
|
20
|
-
SystemTime[Time.local(2000, 3, 4)].tap { |st|
|
21
|
-
SystemTime.wrap(st.pointer).tap { |st1|
|
22
|
-
raise unless st.pointer == st1.pointer # same pointer
|
23
|
-
raise if st.equal?(st1) # different objects
|
24
|
-
raise unless st == st1 # same time
|
25
|
-
|
26
|
-
st1[:wYear] += 10
|
27
|
-
}
|
28
|
-
|
29
|
-
raise unless st[:wYear] == 2010
|
30
|
-
}
|
31
|
-
|
32
|
-
# SystemTime#dup
|
33
|
-
SystemTime[Time.local(2000, 3, 4)].tap { |st|
|
34
|
-
st.dup.tap { |st1|
|
35
|
-
raise if st.pointer == st1.pointer # different pointers
|
36
|
-
raise if st.equal?(st1) # different objects
|
37
|
-
raise unless st == st1 # same time
|
38
|
-
|
39
|
-
st1[:wYear] += 10
|
40
|
-
}
|
41
|
-
|
42
|
-
raise unless st[:wYear] == 2000
|
43
|
-
}
|
data/checks/Variant.rb
DELETED
@@ -1,160 +0,0 @@
|
|
1
|
-
require 'fzeet'
|
2
|
-
|
3
|
-
include Fzeet
|
4
|
-
|
5
|
-
Variant[:bool, true].tap { |variant|
|
6
|
-
raise unless variant.bool == true
|
7
|
-
variant.bool = false
|
8
|
-
raise unless variant.bool == false
|
9
|
-
}
|
10
|
-
|
11
|
-
Variant[:bool, false].tap { |variant|
|
12
|
-
raise unless variant.bool == false
|
13
|
-
variant.bool = true
|
14
|
-
raise unless variant.bool == true
|
15
|
-
}
|
16
|
-
|
17
|
-
Variant[:bool, false].tap { |variant|
|
18
|
-
variant.clear
|
19
|
-
|
20
|
-
begin
|
21
|
-
variant.bool
|
22
|
-
rescue
|
23
|
-
else
|
24
|
-
raise
|
25
|
-
end
|
26
|
-
}
|
27
|
-
|
28
|
-
Variant[:byte, 255].tap { |variant|
|
29
|
-
raise unless variant.byte == 255
|
30
|
-
}
|
31
|
-
|
32
|
-
Variant[:char, 255].tap { |variant|
|
33
|
-
raise unless variant.char == -1
|
34
|
-
}
|
35
|
-
|
36
|
-
Variant[:qword, 0xdead_beef_feeb_daed].tap { |variant|
|
37
|
-
raise unless variant.qword >> 32 == 0xdead_beef
|
38
|
-
}
|
39
|
-
|
40
|
-
Variant[:float, 1.1].tap { |variant|
|
41
|
-
#raise unless variant.float == 1.1
|
42
|
-
raise unless variant.float - 1.1 < 0.000_000_1
|
43
|
-
}
|
44
|
-
|
45
|
-
Variant[:double, 1.1].tap { |variant|
|
46
|
-
raise unless variant.double == 1.1
|
47
|
-
}
|
48
|
-
|
49
|
-
Variant[:string, 'foo'].tap { |variant|
|
50
|
-
raise unless variant.string == 'foo'
|
51
|
-
|
52
|
-
variant.clear
|
53
|
-
}
|
54
|
-
|
55
|
-
Variant[:date, Time.local(2000, 3, 4, 5, 6, 7)].tap { |variant|
|
56
|
-
local = variant.date
|
57
|
-
|
58
|
-
raise unless local.year == 2000
|
59
|
-
raise unless local.month == 3
|
60
|
-
raise unless local.day == 4
|
61
|
-
raise unless local.hour == 5
|
62
|
-
raise unless local.min == 6
|
63
|
-
raise unless local.sec == 7
|
64
|
-
}
|
65
|
-
|
66
|
-
Variant[:decimal, 42].tap { |variant|
|
67
|
-
raise unless variant.decimal == 42
|
68
|
-
}
|
69
|
-
|
70
|
-
Variant[:decimal, -42].tap { |variant|
|
71
|
-
raise unless variant.decimal == -42
|
72
|
-
}
|
73
|
-
|
74
|
-
Variant[:decimal, 1.1].tap { |variant|
|
75
|
-
raise unless variant.decimal == 1.1
|
76
|
-
}
|
77
|
-
|
78
|
-
Variant[:decimal, -1.1].tap { |variant|
|
79
|
-
raise unless variant.decimal == -1.1
|
80
|
-
}
|
81
|
-
|
82
|
-
IFoo = Windows::COM::Interface[Windows::IDispatch,
|
83
|
-
Windows::GUID['00000000-0000-0000-0000-000000000042'],
|
84
|
-
|
85
|
-
value: [[], :int]
|
86
|
-
]
|
87
|
-
|
88
|
-
Foo = Windows::COM::Callback[IFoo]
|
89
|
-
|
90
|
-
class Foo
|
91
|
-
def value; 42 end
|
92
|
-
end
|
93
|
-
|
94
|
-
Foo.new.tap { |foo|
|
95
|
-
raise unless foo.refc == 1
|
96
|
-
|
97
|
-
Variant[:dispatch, foo].tap { |variant|
|
98
|
-
raise unless foo.refc == 2
|
99
|
-
|
100
|
-
dispatch = variant.dispatch
|
101
|
-
|
102
|
-
raise unless foo.refc == 3
|
103
|
-
|
104
|
-
dispatch.QueryInstance(Foo) { |instance|
|
105
|
-
raise unless foo.refc == 4
|
106
|
-
|
107
|
-
raise unless instance.value == 42
|
108
|
-
}.Release
|
109
|
-
|
110
|
-
raise unless foo.refc == 3
|
111
|
-
|
112
|
-
dispatch.Release
|
113
|
-
|
114
|
-
raise unless foo.refc == 2
|
115
|
-
|
116
|
-
variant.clear
|
117
|
-
|
118
|
-
raise unless foo.refc == 1
|
119
|
-
}
|
120
|
-
|
121
|
-
foo.Release
|
122
|
-
|
123
|
-
raise unless foo.refc == 0
|
124
|
-
}
|
125
|
-
|
126
|
-
Variant[:array, SafeArray.vector(2)].tap { |variant|
|
127
|
-
array = variant.array
|
128
|
-
|
129
|
-
array.
|
130
|
-
put(0, Variant[:int, 42]).
|
131
|
-
put(1, Variant[:array, SafeArray.vector(2).
|
132
|
-
put(0, Variant[:int, 43]).
|
133
|
-
put(1, Variant[:bstr, 'foo'])
|
134
|
-
])
|
135
|
-
|
136
|
-
raise unless array[0].int == 42
|
137
|
-
raise unless array[1].array[0].int == 43
|
138
|
-
raise unless array[1].array[1].bstr == 'foo'
|
139
|
-
|
140
|
-
variant.clear
|
141
|
-
}
|
142
|
-
|
143
|
-
FFI::MemoryPointer.new(:int) { |pint|
|
144
|
-
pint.write_int(0xc0ffee)
|
145
|
-
|
146
|
-
Variant[:byref, pint].tap { |variant|
|
147
|
-
raise unless variant.byref.address == pint.address
|
148
|
-
raise unless variant.byref(:int) == 0xc0ffee
|
149
|
-
}
|
150
|
-
}
|
151
|
-
|
152
|
-
Decimal[1.1].tap { |decimal|
|
153
|
-
Variant[:byref, decimal].tap { |variant|
|
154
|
-
raise unless Decimal.new(variant.byref).double == 1.1
|
155
|
-
}
|
156
|
-
}
|
157
|
-
|
158
|
-
Variant[:object, [1, 2, 3, 4, 5]].tap { |variant|
|
159
|
-
raise unless variant.object.inject(:+) == 15
|
160
|
-
}
|
data/lib/fzeet/windows/libcef.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require_relative 'libcef/CefBrowser'
|