-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package desktop | ||
|
||
// Window defines the desktop specific extensions to a fyne.Window. | ||
// | ||
// Since: 2.5 | ||
type Window interface { | ||
RunNative(func(ctx any) error) error | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
package driver | ||
|
||
// AndroidContext is passed to the `RunNative` callback when it is executed on an Android device. | ||
// AndroidContext is passed to the `driver.RunNative` callback when it is executed on an Android device. | ||
// The VM, Env and Ctx pointers are reqiured to make various calls into JVM methods. | ||
// | ||
// Since: 2.3 | ||
type AndroidContext struct { | ||
VM, Env, Ctx uintptr | ||
} | ||
|
||
// UnknownContext is passed to the `RunNative` callback when it is executed on devices without special native context. | ||
// UnknownContext is passed to the RunNative callback when it is executed | ||
// on devices without special native context. | ||
// | ||
// Since: 2.3 | ||
type UnknownContext struct{} | ||
|
||
// WindowsContext is passed to the `(desktop.Window).RunNative` callback | ||
// when it is executed on a Microsoft Windows desktop device. | ||
// | ||
// Since: 2.5 | ||
type WindowsContext struct { | ||
// HWND is the WinAPI HWND for the window. | ||
HWND uintptr | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters