Documentation ¶
Index ¶
- Variables
- func AddButton(layerAlias string, buttonAlias string, buttonLabel string, ...)
- func AddImage(imageAlias string, imageEntry ImageEntryType)
- func AddLayer(layerAlias string, xLocation int, yLocation int, width int, height int, ...)
- func AddTextStyle(textStyleAlias string, attributeEntry TextStyleEntryType)
- func AddTimer(timerAlias string, lengthOfTimerInMilliseconds int64, isTimerEnabled bool)
- func DeleteAllChildrenOfParent(parentAlias string)
- func DeleteButton(layerAlias string, buttonAlias string)
- func DeleteImage(imageAlias string)
- func DeleteLayer(layerAlias string)
- func DeleteTextStyle(textStyleAlias string)
- func DeleteTimer(timerAlias string)
- func GetCurrentTimeInMilliseconds() int64
- func InitializeButtonMemory()
- func InitializeImageMemory()
- func InitializeScreenMemory()
- func InitializeTextStyleMemory()
- func InitializeTimerMemory()
- func IsAParent(parentAlias string) bool
- func IsButtonEntryEqual(sourceButtonEntry *ButtonEntryType, targetButtonEntry *ButtonEntryType) bool
- func IsLayerExists(layerAlias string) bool
- type AttributeEntryType
- type ButtonEntryType
- type CharacterEntryType
- type ImageEntryType
- type LayerAliasZOrderPairList
- type LayerEntryType
- func (shared LayerEntryType) GetAnsiBackgroundColorString(color int32) string
- func (shared LayerEntryType) GetAnsiForegroundColorString(color int32) string
- func (shared LayerEntryType) GetAnsiLocateString(xLocation int, yLocation int) string
- func (shared LayerEntryType) GetBasicAnsiString() string
- func (shared LayerEntryType) GetBasicAnsiStringAsBase64() string
- func (shared LayerEntryType) GetEntryAsJsonDump() string
- func (shared LayerEntryType) GetRGBColorComponents(color int32) (int32, int32, int32)
- func (shared LayerEntryType) MarshalJSON() ([]byte, error)
- type SelectionEntryType
- type TextStyleEntryType
- type TimerEntryType
- type TuiStyleEntryType
Constants ¶
This section is empty.
Variables ¶
View Source
var ButtonMemory map[string]map[string]*ButtonEntryType
View Source
var ImageMemory map[string]*ImageEntryType
View Source
var KeyboardMemory keyboardMemoryType
View Source
var MouseMemory mouseMemoryType
View Source
var ScreenMemory map[string]*LayerEntryType
View Source
var TextStyleMemory map[string]*TextStyleEntryType
View Source
var TimerMemory map[string]*TimerEntryType
Functions ¶
func AddButton ¶
func AddButton(layerAlias string, buttonAlias string, buttonLabel string, styleEntry TuiStyleEntryType, xLocation int, yLocation int, width int, height int)
AddButton asdadsdas
func AddImage ¶
func AddImage(imageAlias string, imageEntry ImageEntryType)
func AddTextStyle ¶
func AddTextStyle(textStyleAlias string, attributeEntry TextStyleEntryType)
AddTextStyle asdadsdas
func DeleteAllChildrenOfParent ¶
func DeleteAllChildrenOfParent(parentAlias string)
func DeleteImage ¶
func DeleteImage(imageAlias string)
func DeleteLayer ¶
func DeleteLayer(layerAlias string)
func DeleteTimer ¶
func DeleteTimer(timerAlias string)
func GetCurrentTimeInMilliseconds ¶
func GetCurrentTimeInMilliseconds() int64
func InitializeButtonMemory ¶
func InitializeButtonMemory()
func InitializeImageMemory ¶
func InitializeImageMemory()
func InitializeScreenMemory ¶
func InitializeScreenMemory()
func InitializeTextStyleMemory ¶
func InitializeTextStyleMemory()
func InitializeTimerMemory ¶
func InitializeTimerMemory()
func IsButtonEntryEqual ¶
func IsButtonEntryEqual(sourceButtonEntry *ButtonEntryType, targetButtonEntry *ButtonEntryType) bool
func IsLayerExists ¶
Types ¶
type AttributeEntryType ¶
type AttributeEntryType struct { ForegroundColor int32 BackgroundColor int32 IsBold bool IsUnderlined bool IsReversed bool IsBlinking bool IsItalic bool ForegroundTransformValue float32 BackgroundTransformValue float32 CellId int CellType int CellAlias string }
func GetTextStyleAsAttributeEntry ¶
func GetTextStyleAsAttributeEntry(textStyleAlias string) AttributeEntryType
func NewAttributeEntry ¶
func NewAttributeEntry(existingAttributeEntry ...*AttributeEntryType) AttributeEntryType
func (AttributeEntryType) GetEntryAsJsonDump ¶
func (shared AttributeEntryType) GetEntryAsJsonDump() string
func (AttributeEntryType) MarshalJSON ¶
func (shared AttributeEntryType) MarshalJSON() ([]byte, error)
type ButtonEntryType ¶
type ButtonEntryType struct { StyleEntry TuiStyleEntryType ButtonAlias string ButtonLabel string IsPressed bool IsSelected bool XLocation int YLocation int Width int Height int }
func DrawButton(LayerAlias string, ButtonLabel string, StyleEntry TuiStyleEntryType, IsPressed bool, IsSelected bool, XLocation int, YLocation int, Width int, Height int) {
func GetButton ¶
func GetButton(layerAlias string, buttonAlias string) ButtonEntryType
func NewButtonEntry ¶
func NewButtonEntry(existingButtonEntry ...*ButtonEntryType) ButtonEntryType
func (ButtonEntryType) GetEntryAsJsonDump ¶
func (shared ButtonEntryType) GetEntryAsJsonDump() string
func (ButtonEntryType) MarshalJSON ¶
func (shared ButtonEntryType) MarshalJSON() ([]byte, error)
type CharacterEntryType ¶
type CharacterEntryType struct { Character rune AttributeEntry AttributeEntryType LayerAlias string }
func NewCharacterEntry ¶
func NewCharacterEntry(existingCharacterEntry ...*CharacterEntryType) CharacterEntryType
func (CharacterEntryType) GetEntryAsJsonDump ¶
func (shared CharacterEntryType) GetEntryAsJsonDump() string
func (CharacterEntryType) MarshalJSON ¶
func (shared CharacterEntryType) MarshalJSON() ([]byte, error)
type ImageEntryType ¶
type ImageEntryType struct { ImageData image.Image LayerEntry LayerEntryType }
func GetImage ¶
func GetImage(imageAlias string) ImageEntryType
func NewImageEntry ¶
func NewImageEntry(existingImageEntry ...*ImageEntryType) ImageEntryType
func (ImageEntryType) GetEntryAsJsonDump ¶
func (shared ImageEntryType) GetEntryAsJsonDump() string
func (ImageEntryType) MarshalJSON ¶
func (shared ImageEntryType) MarshalJSON() ([]byte, error)
type LayerAliasZOrderPairList ¶
type LayerAliasZOrderPairList []layerAliasZOrderPair
func GetSortedLayerMemoryAliasSlice ¶
func GetSortedLayerMemoryAliasSlice() LayerAliasZOrderPairList
type LayerEntryType ¶
type LayerEntryType struct { Width int Height int ScreenXLocation int ScreenYLocation int CursorXLocation int CursorYLocation int ZOrder int IsVisible bool LayerAlias string ParentAlias string IsParent bool DefaultAttribute AttributeEntryType CharacterMemory [][]CharacterEntryType }
func GetLayer ¶
func GetLayer(layerAlias string) *LayerEntryType
func NewLayerEntry ¶
func NewLayerEntry(width int, height int, existingLayerEntry ...*LayerEntryType) LayerEntryType
func (LayerEntryType) GetAnsiBackgroundColorString ¶
func (shared LayerEntryType) GetAnsiBackgroundColorString(color int32) string
func (LayerEntryType) GetAnsiForegroundColorString ¶
func (shared LayerEntryType) GetAnsiForegroundColorString(color int32) string
func (LayerEntryType) GetAnsiLocateString ¶
func (shared LayerEntryType) GetAnsiLocateString(xLocation int, yLocation int) string
func (LayerEntryType) GetBasicAnsiString ¶
func (shared LayerEntryType) GetBasicAnsiString() string
func (LayerEntryType) GetBasicAnsiStringAsBase64 ¶
func (shared LayerEntryType) GetBasicAnsiStringAsBase64() string
func (LayerEntryType) GetEntryAsJsonDump ¶
func (shared LayerEntryType) GetEntryAsJsonDump() string
func (LayerEntryType) GetRGBColorComponents ¶
func (shared LayerEntryType) GetRGBColorComponents(color int32) (int32, int32, int32)
func (LayerEntryType) MarshalJSON ¶
func (shared LayerEntryType) MarshalJSON() ([]byte, error)
type SelectionEntryType ¶
func NewSelectionEntry ¶
func NewSelectionEntry() SelectionEntryType
func (*SelectionEntryType) AddSelection ¶
func (shared *SelectionEntryType) AddSelection(selectionAlias string, selectionValue string)
func (*SelectionEntryType) ClearSelectionEntry ¶
func (shared *SelectionEntryType) ClearSelectionEntry()
ClearSelectionEntry asdasd
type TextStyleEntryType ¶
type TextStyleEntryType struct { ForegroundColor int32 BackgroundColor int32 IsBold bool IsUnderlined bool IsReversed bool IsBlinking bool IsItalic bool ForegroundTransformValue float32 BackgroundTransformValue float32 }
func GetTextStyle ¶
func GetTextStyle(textStyleAlias string) TextStyleEntryType
func NewTextStyleEntry ¶
func NewTextStyleEntry(existingAttributeEntry ...*TextStyleEntryType) TextStyleEntryType
func (TextStyleEntryType) GetEntryAsJsonDump ¶
func (shared TextStyleEntryType) GetEntryAsJsonDump() string
func (TextStyleEntryType) MarshalJSON ¶
func (shared TextStyleEntryType) MarshalJSON() ([]byte, error)
type TimerEntryType ¶
func GetTimer ¶
func GetTimer(timerAlias string) TimerEntryType
func NewTimerEntry ¶
func NewTimerEntry(existingTimerEntry ...*TimerEntryType) TimerEntryType
func (TimerEntryType) GetEntryAsJsonDump ¶
func (shared TimerEntryType) GetEntryAsJsonDump() string
func (TimerEntryType) MarshalJSON ¶
func (shared TimerEntryType) MarshalJSON() ([]byte, error)
type TuiStyleEntryType ¶
type TuiStyleEntryType struct { UpperLeftCorner rune UpperRightCorner rune HorizontalLine rune LeftSideTConnector rune RightSideTConnector rune UpSideTConnector rune DownSideTConnector rune VerticalLine rune LowerRightCorner rune LowerLeftCorner rune CrossConnector rune DesktopPattern rune ProgressBarBackgroundPattern rune ProgressBarForegroundPattern rune IsSquareFont bool IsWindowHeaderDrawn bool TextForegroundColor int32 TextBackgroundColor int32 TextInputForegroundColor int32 TextInputBackgroundColor int32 CursorCharacter rune CursorForegroundColor int32 CursorBackgroundColor int32 MenuForegroundColor int32 MenuBackgroundColor int32 HighlightForegroundColor int32 HighlightBackgroundColor int32 ButtonRaisedColor int32 ButtonForegroundColor int32 ButtonBackgroundColor int32 MenuTextAlignment int }
TuiStyleEntryType adsas
func NewTuiStyleEntry ¶
func NewTuiStyleEntry(existingStyleEntry ...*TuiStyleEntryType) TuiStyleEntryType
NewTuiStyleEntry asdasd existingCharacterObject ...*CharacterEntryType) CharacterEntryType
func (TuiStyleEntryType) GetEntryAsJsonDump ¶
func (shared TuiStyleEntryType) GetEntryAsJsonDump() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.