render

package
v0.0.0-...-8083d74 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClientBuildConfig = helper.NewBuilderConfig()
	MessageBoxToSend  = server.MessageBox{Delay: 1, Amount: 1}
	FilesToSend       []server.ClientFile
	URLToOpen         string
	FilesUploadedStr  string
)

Input storage variables.

View Source
var (
	// The index of the client that our last operation was performed on.
	ClientSelected int

	// Window monitoring variables.
	ClientBuilderWindowOpen bool
	ClientRunFileWindowOpen bool
	ClientShellWindowOpen   bool
	ClientProcessWindowOpen bool
	ClientMsgBoxWindowOpen  bool
	ClientURLWindowOpen     bool

	// Latest combo box option(s) selected.
	IconIndexLastSelected   int32
	ButtonIndexLastSelected int32
)

Functions

func ClientBuilderLayout

func ClientBuilderLayout() *g.Layout

`ClientBuilderLayout` returns the window Layout for the Client Builder window.

func ConnectedMachinesLayout

func ConnectedMachinesLayout() *g.Layout

`ConnectedMachinesLayout` returns the window Layout for the Connected Machines window.

func CreateClientContextMenu

func CreateClientContextMenu(i int) *g.ContextMenuWidget

`CreateClientContextMenu` creates a new operations context menu for the passed table row (client index).

func CreateClientTable

func CreateClientTable() []*g.TableRowWidget

`CreateClientTable` parses and formats the CurrentServer Connections array into usable TableRows.

func CreateProcessContextMenu

func CreateProcessContextMenu(client *server.Client, process server.Process) *g.ContextMenuWidget

`CreateProcessContextMenu` creates a new operations context menu for each process.

func CreateProcessTable

func CreateProcessTable(client *server.Client) []*g.TableRowWidget

`CreateProcessTable` parses and formats the passed clients processes into usable TableRows.

func FileDropManager

func FileDropManager(filePaths []string)

`FileDropManager` is the dropper callback that handles any files dropped in the program appropriately.

func FileExecutorLayout

func FileExecutorLayout(client *server.Client) *g.Layout

`FileExecutorLayout` returns the window Layout for the File Executor window.

func Init

func Init()

`Init` initialises the GUI window and runs it indefinitely.

func ManageWindowConflict

func ManageWindowConflict(currentWindowToggler func(i int)) *server.Client

`ManageWindowConflict` Makes sure the windows aren't conflicting and that ClientSelected is valid. Only one window can be open at a time due to the way each clients data is managed and processed. Returns the derived client if ClientSelected is a valid index in the server, otherwise nil.

func MessageBoxSenderLayout

func MessageBoxSenderLayout(client *server.Client) *g.Layout

`MessageBoxSenderLayout` returns the window Layout for the Message Box Sender window.

func ProcessManagerLayout

func ProcessManagerLayout(client *server.Client) *g.Layout

`ProcessManagerLayout` returns the window Layout for the Process Manager window.

func RemoteShellLayout

func RemoteShellLayout(client *server.Client) *g.Layout

`RemoteShellLayout` returns the window Layout for the Remote Shell window.

func RunGUI

func RunGUI()

`RunGUI` displays the configured widgets in the GUI, while constantly updating.

func ServerManagerLayout

func ServerManagerLayout() *g.Layout

`ServerManagerLayout` returns the window Layout for the Server Manager window.

func SetWindowIcon

func SetWindowIcon(window *g.MasterWindow, path string)

`SetWindowIcon` loads the icon texture from the passed image path and applies it to the window.

func ToggleClientBuilderOpen

func ToggleClientBuilderOpen()

Window togglers.

func ToggleClientMsgBoxOpen

func ToggleClientMsgBoxOpen(clientID int)

func ToggleClientProcessManagerOpen

func ToggleClientProcessManagerOpen(clientID int)

func ToggleClientShellOpen

func ToggleClientShellOpen(clientID int)

func ToggleRunFileOpen

func ToggleRunFileOpen(clientID int)

func ToggleURLOpenerOpen

func ToggleURLOpenerOpen(clientID int)

func URLOpenerLayout

func URLOpenerLayout(client *server.Client) *g.Layout

`URLOpenerLayout` returns the window Layout for the URL Opener window.

func VerifyCurrentClient

func VerifyCurrentClient() *server.Client

`VerifyCurrentClient` verifies that the passed index is within the valid range of the servers Connections and returns the derived Client using the aforementioned index if it is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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