Documentation ¶
Index ¶
- Constants
- func LocatePashua(pashuaPath string) (string, error)
- func RunPashua(configData string, pashuaPath string) (map[string]string, error)
- func RunPashuaWithStruct(pashuaWindow *PashuaWindow, pashuaPath string) (map[string]string, error)
- type CompletionMode
- type FontSize
- type PashuaButton
- type PashuaCancelButton
- type PashuaCheckbox
- type PashuaCombobox
- type PashuaComponents
- type PashuaDate
- type PashuaDefaultButton
- type PashuaImage
- type PashuaOpenBrowser
- type PashuaPassword
- type PashuaPopup
- type PashuaRadioButton
- type PashuaSaveBrowser
- type PashuaText
- type PashuaTextBox
- type PashuaTextField
- type PashuaWindow
Constants ¶
const ( NoCompletion CompletionMode = "0" CaseSensitive = "1" CaseInsensitive = "2" )
const ( Regular FontSize = "regular" Small = "small" Mini = "mini" )
Variables ¶
This section is empty.
Functions ¶
func LocatePashua ¶
LocatePashua is one of the two main binding function and tries to find the Pashua.app and the executable contained within the app container by iterating over the standard file locations. Returns the location path and an error code
func RunPashua ¶
RunPashua is one of the two main binding function. it sets up a pipe and executes Pashua as an external command, then converts the STdOut and StdErr to strings and parses the output
func RunPashuaWithStruct ¶
func RunPashuaWithStruct(pashuaWindow *PashuaWindow, pashuaPath string) (map[string]string, error)
RunPashuaWithStruct is a convenience function that saves you from having to convert a struct-based window definition to a string first
Types ¶
type CompletionMode ¶
type CompletionMode string
CompletionMode is a type to store the completion mode for a combobox
type PashuaButton ¶
PashuaButton is a structure that holds all information for a PashuaButton
func (*PashuaButton) ToString ¶
func (btn *PashuaButton) ToString(key string) string
type PashuaCancelButton ¶
PashuaCancelButton is a structure that holds all information for a PashuaCancelButton
func (*PashuaCancelButton) ToString ¶
func (txt *PashuaCancelButton) ToString(key string) string
type PashuaCheckbox ¶
type PashuaCheckbox struct { Label string Default bool Disabled bool Tooltip string X int Y int RelX int RelY int }
PashuaCheckbox is a structure that holds all information for a PashuaCheckbox
func (*PashuaCheckbox) ToString ¶
func (txt *PashuaCheckbox) ToString(key string) string
type PashuaCombobox ¶
type PashuaCombobox struct { Label string Option []string CompletionMode CompletionMode Mandatory bool Rows int Placeholder string Disabled bool Tooltip string Width int X int Y int RelX int RelY int }
PashuaCombobox is a structure that holds all information for a PashuaCombobox
func (*PashuaCombobox) ToString ¶
func (txt *PashuaCombobox) ToString(key string) string
type PashuaComponents ¶
type PashuaComponents map[string]interface{}
PashuaComponents is type for th elist of components contained in a Pashua window
type PashuaDate ¶
type PashuaDate struct { Label string Textual bool UseDate bool UseTime bool Default string Disabled bool Tooltip string X int Y int }
PashuaDate is a structure that holds all information for a PashuaDate
func (*PashuaDate) ToString ¶
func (btn *PashuaDate) ToString(key string) string
type PashuaDefaultButton ¶
PashuaDefaultButton is a structure that holds all information for a PashuaDefaultButton
func (*PashuaDefaultButton) ToString ¶
func (btn *PashuaDefaultButton) ToString(key string) string
type PashuaImage ¶
type PashuaImage struct { Label string Path string Border bool Width int Height int MaxWidth int MaxHeight int UpScale bool Tooltip string X int Y int RelX int RelY int }
PashuaImage is a structure that holds all information for a PashuaImage
func (*PashuaImage) ToString ¶
func (txt *PashuaImage) ToString(key string) string
type PashuaOpenBrowser ¶
type PashuaOpenBrowser struct { Label string DefaultPath string Width int Filetype string Placeholder string Mandatory bool X int Y int RelX int RelY int }
PashuaOpenBrowser is a structure that holds all information for a PashuaOpenBrowser
func (*PashuaOpenBrowser) ToString ¶
func (txt *PashuaOpenBrowser) ToString(key string) string
type PashuaPassword ¶
type PashuaPassword struct { Label string Default bool Disabled bool Mandatory bool Tooltip string Width int X int Y int RelX int RelY int }
PashuaPassword is a structure that holds all information for a PashuaPassword
func (*PashuaPassword) ToString ¶
func (txt *PashuaPassword) ToString(key string) string
type PashuaPopup ¶
type PashuaPopup struct { Option []string Default string Label string Disabled bool Tooltip string Mandatory bool Width int X int Y int RelX int RelY int }
PashuaPopup is a structure that holds all information for a PashuaPopup
func (*PashuaPopup) ToString ¶
func (txt *PashuaPopup) ToString(key string) string
type PashuaRadioButton ¶
type PashuaRadioButton struct { Option []string Default string Label string Disabled bool Tooltip string Mandatory bool X int Y int RelX int RelY int }
PashuaRadioButton is a structure that holds all information for a PashuaRadioButton
func (*PashuaRadioButton) ToString ¶
func (txt *PashuaRadioButton) ToString(key string) string
type PashuaSaveBrowser ¶
type PashuaSaveBrowser struct { Label string DefaultPath string Width int Filetype string Placeholder string Mandatory bool X int Y int RelX int RelY int }
PashuaSaveBrowser is a structure that holds all information for a PashuaSaveBrowser
func (*PashuaSaveBrowser) ToString ¶
func (txt *PashuaSaveBrowser) ToString(key string) string
type PashuaText ¶
type PashuaText struct { Label string Text string Tooltip string Width int X int Y int RelX int RelY int }
PashuaText is a structure that holds all information for a PashuaText
func (*PashuaText) ToString ¶
func (txt *PashuaText) ToString(key string) string
type PashuaTextBox ¶
type PashuaTextBox struct { Label string Default string Tooltip string FixedFont bool FontSize FontSize // regular small mini Mandatory bool Disabled bool Width int Height int X int Y int RelX int RelY int }
PashuaTextBox is a structure that holds all information for a PashuaTextBox
func (*PashuaTextBox) ToString ¶
func (txt *PashuaTextBox) ToString(key string) string
type PashuaTextField ¶
type PashuaTextField struct { Label string Default string Tooltip string Mandatory bool Disabled bool Width int X int Y int RelX int RelY int }
PashuaTextField is a structure that holds all information for a PashuaTextField
func (*PashuaTextField) ToString ¶
func (txt *PashuaTextField) ToString(key string) string
type PashuaWindow ¶
type PashuaWindow struct { AutoCloseTime int AutoSaveKey string Floating bool Title string Transparency float64 X int Y int Components PashuaComponents }
PashuaWindow is the top-most structure when defininng a dialog window for Pashua
func (*PashuaWindow) ToString ¶
func (win *PashuaWindow) ToString() string
func (*PashuaWindow) WindowToString ¶
func (win *PashuaWindow) WindowToString() string