cocoawebview 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/cocoawebview/cocoawebview.m +15 -0
- data/lib/cocoawebview/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65d5bc05697a5ec00634b3ec334b0e3ef08592f368b923726f3dd96c3c3ae3ec
|
4
|
+
data.tar.gz: 6835225f17ad137d2d19914c51af884da505db193a40dfe613ff12a0ca6c594d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ca7d0683a135e12e1a80ba501565cb637bfefe3fe1d9a099620449e27152b2dd68987dfa40781e2cbf9e26b4ba3fd9740a76224ca10ace514925d999d170c86
|
7
|
+
data.tar.gz: 3d626872fb2d42995c9f5708312620583a1f06fdb93c34c64109adc35db12d8f70ff6fe5df63711f4f26c9422ecb69ae6a04de957c45a227285ff729bc2f200a
|
@@ -22,6 +22,7 @@ VALUE webview_get_pos(VALUE self);
|
|
22
22
|
VALUE webview_dragging(VALUE self);
|
23
23
|
VALUE webview_set_title(VALUE self, VALUE title);
|
24
24
|
VALUE webview_center(VALUE self);
|
25
|
+
VALUE webview_is_visible(VALUE self);
|
25
26
|
|
26
27
|
@interface AppDelegate : NSObject <NSApplicationDelegate> {
|
27
28
|
VALUE app;
|
@@ -186,6 +187,8 @@ Init_cocoawebview(void)
|
|
186
187
|
rb_define_method(rb_mCocoaWebviewClass, "dragging", webview_dragging, 0);
|
187
188
|
rb_define_method(rb_mCocoaWebviewClass, "set_title", webview_set_title, 1);
|
188
189
|
rb_define_method(rb_mCocoaWebviewClass, "center", webview_center, 0);
|
190
|
+
rb_define_method(rb_mCocoaWebviewClass, "visible?", webview_is_visible, 0);
|
191
|
+
|
189
192
|
}
|
190
193
|
|
191
194
|
VALUE nsapp_initialize(VALUE self) {
|
@@ -339,3 +342,15 @@ VALUE webview_center(VALUE self) {
|
|
339
342
|
|
340
343
|
[webview center];
|
341
344
|
}
|
345
|
+
|
346
|
+
VALUE webview_is_visible(VALUE self) {
|
347
|
+
VALUE wrapper = rb_ivar_get(self, rb_intern("@webview"));
|
348
|
+
CocoaWebview *webview;
|
349
|
+
TypedData_Get_Struct(wrapper, CocoaWebview, &cocoawebview_obj_type, webview);
|
350
|
+
|
351
|
+
if ([webview isVisible]) {
|
352
|
+
return Qtrue;
|
353
|
+
} else {
|
354
|
+
return Qfalse;
|
355
|
+
}
|
356
|
+
}
|
data/lib/cocoawebview/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoawebview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tommy Jeff
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-07-01 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: Webview ruby binding for macOS
|
13
13
|
email:
|