Documentation ¶
Index ¶
- Constants
- func Run(options ...Option) (err error)
- type ArgsAppSwitcherDescription
- type Option
- func OptionAddPluginReceiver(handler PluginReceivers, channelName string) Option
- func OptionAssetPath(p string) Option
- func OptionICUDataPath(p string) Option
- func OptionPixelRatio(ratio float64) Option
- func OptionVMArguments(a []string) Option
- func OptionWindowDimension(x int, y int) Option
- func OptionWindowInitializer(ini func(*glfw.Window) error) Option
- type PluginReceivers
Constants ¶
View Source
const ( ModNone int = 0 ModShift int = 1 ModControl int = 2 ModShiftControl int = 3 ModAlt int = 4 ModSuper int = 8 )
Modifier keys from glfw
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArgsAppSwitcherDescription ¶
type ArgsAppSwitcherDescription struct { Label string `json:"label"` PrimaryColor int64 `json:"primaryColor"` }
ArgsAppSwitcherDescription Args content
type Option ¶
type Option func(*config)
Option for gutter
func OptionAddPluginReceiver ¶
func OptionAddPluginReceiver(handler PluginReceivers, channelName string) Option
OptionAddPluginReceiver add a new function that will be trigger when the FlutterEngine send a PlatformMessage to the Embedder
func OptionAssetPath ¶
OptionAssetPath specify the flutter asset directory.
func OptionICUDataPath ¶
OptionICUDataPath specify the path to the ICUData.
func OptionPixelRatio ¶
OptionPixelRatio specify the scale factor for the physical screen.
func OptionVMArguments ¶
OptionVMArguments specify the arguments to the Dart VM.
func OptionWindowDimension ¶
OptionWindowDimension specify the startup's dimention of the window.
type PluginReceivers ¶
type PluginReceivers func( message *flutter.PlatformMessage, flutterEngine *flutter.EngineOpenGL, window *glfw.Window, ) bool
PluginReceivers do stuff when receiving Message from the Engine, send result with `flutterEngine.SendPlatformMessageResponse`
Source Files ¶
Click to show internal directories.
Click to hide internal directories.