flutter_systray

package module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 8 Imported by: 0

README

flutter_systray

This Go package implements the host-side of the Flutter flutter_systray plugin.

Usage

Import as:

import flutter_systray "github.com/JanezStupar/flutter_systray/go"

Then add the following option to your go-flutter application options:

flutter.AddPlugin(&flutter_systray.FlutterSystrayPlugin{}),

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionType = &actionType{
	Quit:         "0",
	Focus:        "1",
	SystrayEvent: "2",
}

Functions

This section is empty.

Types

type ActionEnumType

type ActionEnumType string

type FlutterSystrayPlugin

type FlutterSystrayPlugin struct {
	// contains filtered or unexported fields
}

FlutterSystrayPlugin implements flutter.Plugin and handles method.

func (*FlutterSystrayPlugin) InitPlugin

func (p *FlutterSystrayPlugin) InitPlugin(messenger plugin.BinaryMessenger) error

InitPlugin initializes the plugin.

func (*FlutterSystrayPlugin) InitPluginGLFW

func (p *FlutterSystrayPlugin) InitPluginGLFW(window *glfw.Window) error

InitPluginGLFW initializes the GLFW

type MainEntry

type MainEntry struct {
	Title    string
	IconPath string
}

type SystrayAction

type SystrayAction struct {
	Name       string
	Label      string
	ActionType ActionEnumType
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL