candies

package
v0.0.0-...-3ab8725 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventTypeStatusReport int

EventTypeStatusReport represents some status change that should be shown to user. payload is the string.

View Source
var EventTypeUnrecoverableFail int

EventTypeUnrecoverableFail represents some unrecoverable failure happened. os.Exit() will be called after clean-ups done. payload is its reason.

Functions

func Atof

func Atof(a string) (float64, error)

Atof is the faster path too

func Base64Fuck

func Base64Fuck(name string, encoded string) (*fyne.StaticResource, error)

Base64Fuck generate resource out of base64

func FastGG

func FastGG(info string, ebus *evbus.EventBus)

FastGG simply declares unrecoverable happened.

func FastRegister

func FastRegister(name string, ebus *evbus.EventBus) int

FastRegister frees you from handling errors

func FastSQLPrep

func FastSQLPrep(pstmt string, db *sql.DB, ebus *evbus.EventBus) *sql.Stmt

FastSQLPrep helps you ignore the errors

func Ftoa

func Ftoa(f float64) string

Ftoa is the faster path to format float. only 64 acceptable

func FuckBase64

func FuckBase64(fn string) (string, error)

FuckBase64 fucks the base64 out of the file

func Initialization

func Initialization(bus *evbus.EventBus)

Initialization finishes the initialization process

func NewChannelSubscriber

func NewChannelSubscriber(evtype int, pri int, consumed bool, theChannel chan evbus.Event) evbus.Subscriber

NewChannelSubscriber is a simple subscriber that just put things into that channel

Types

type CandyEvent

type CandyEvent evbus.Event

CandyEvent is the candy-wrapped event bus event

func NewEvent

func NewEvent(payload interface{}) *CandyEvent

NewEvent return a candy event object

func (*CandyEvent) Fin

func (c *CandyEvent) Fin() evbus.Event

Fin return a acceptable obj

func (*CandyEvent) Type

func (c *CandyEvent) Type(evtype int) *CandyEvent

Type append a new type to the candy event

type TextStyle

type TextStyle fyne.TextStyle

TextStyle is the candied fyne text style

func NewTextStyle

func NewTextStyle() TextStyle

NewTextStyle creates..

func (TextStyle) Fin

func (ts TextStyle) Fin() fyne.TextStyle

Fin convert it to fyne-acceptable state

func (TextStyle) SetBold

func (ts TextStyle) SetBold() TextStyle

SetBold return with bold set

func (TextStyle) SetItalic

func (ts TextStyle) SetItalic() TextStyle

SetItalic return a new textstyle

func (TextStyle) SetMono

func (ts TextStyle) SetMono() TextStyle

SetMono return a new textstyle

Jump to

Keyboard shortcuts

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