Skip to content

feat: sync WindowLevel / exclude_own_windows and multi-window region screenshot (#85) - #86

Merged
lijy91 merged 1 commit into
mainfrom
feat/issue-85-window-overlay
Dec 3, 2026
Merged

lijy91 merged 1 commit into
mainfrom
feat/issue-85-window-overlay

Conversation

@lijy91

@lijy91 lijy91 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

Depends on / pairs with libnativeapi/nativeapi-core#115.

Closes #81
Closes #82
Closes #83
Closes #84
Closes #85

Changes

  1. Synced all 7 language bindings & API reference with core bbdd13b:
    • WindowLevel (Normal, Floating, Status, ScreenSaver) + Window.setLevel / Window.getLevel
    • ScreenCaptureOptions.excludeOwnWindows
    • Updated Rust, Python, and JS screen_capture tests for the new exclude_own_windows field.
  2. Multi-window region screenshot in examples/flutter_screen_capture_example:
    • Restored macos/Runner/MainFlutterWindow.swift to the stock 15-line Flutter template (zero custom platform code or MethodChannel).
    • Configured standard Flutter multi-window runners (macos/Runner/AppDelegate.swift, MainMenu.xib, windows/runner/main.cpp) matching flutter_floating_toolbar_example.
    • Captures every display with excludeOwnWindows: true and spawns one borderless WindowLevel.screenSaver overlay Window per display via nativeapi + nativeapi_flutter/windowing.dart, leaving the main window untouched underneath.

Verification

  • ./codegen check — 87 C ABI files + 436 binding/reference files up to date.
  • Core C++ tests: screen_capture_test & window_corner_preference_unsupported_test passed.
  • Rust cargo test -p nativeapi --test screen_capture, Swift swift test, C# dotnet build NativeAPI.slnx, Go go test, Python pytest tests/test_screen_capture.py passed.
  • flutter_screen_capture_example: dart format, flutter analyze, flutter build macos --debug passed, and verified visually on dual displays (built-in Retina + external 2K) with instant full-display dimmed overlays covering menu bar and Dock.

…overlay to multi-window

- Sync all 7 language bindings (Rust, Dart, C#, JS, Python, Go, Swift) and API reference with core bbdd13b (WindowLevel, instant macOS visibility, square frameless, ScreenCaptureOptions.exclude_own_windows)
- Update Rust, Python, and JS screen_capture tests for exclude_own_windows
- Refactor examples/flutter_screen_capture_example to multi-window overlays (one borderless screen-saver-level overlay window per display via Flutter multi-window + nativeapi)
- Restore MainFlutterWindow.swift to the stock Flutter template with zero custom platform code
@lijy91
lijy91 merged commit 69d7044 into main Dec 3, 2026
27 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment