gox

package
v0.0.0-...-19eda46 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SPEED = 10
	ZERO  = 0
)
View Source
const Size = 94

Variables

View Source
var Abc = Icons{Size * 4, 0}
View Source
var AccountBalance = Icons{Size * 6, 0}
View Source
var AccountBalanceWallet = Icons{Size * 5, 0}
View Source
var AccountCircle = Icons{Size * 7, 0}
View Source
var Add = Icons{Size * 8, 0}
View Source
var AddNote = Icons{Size * 4, Size * 7}
View Source
var AddPost = Icons{Size * 7, Size * 6}
View Source
var AddVideo = Icons{Size * 8, Size * 9}
View Source
var Apps = Icons{Size * 9, 0}
View Source
var ArrowBack = Icons{Size * 10, 0}
View Source
var ArrowDown = Icons{Size * 2, 0}
View Source
var ArrowForward = Icons{1, Size}
View Source
var ArrowLeft = Icons{1, 0}
View Source
var ArrowRight = Icons{Size * 1, 0}
View Source
var ArrowUp = Icons{Size * 3, 0}
View Source
var Article = Icons{Size * 1, Size}
View Source
var Attachment = Icons{Size * 2, Size}
View Source
var BEIGE = rl.Beige
View Source
var BLACK = rl.Black
View Source
var BLANK = rl.Blank
View Source
var BLUE = rl.Blue
View Source
var BROWN = rl.Brown
View Source
var Backup = Icons{Size * 3, Size}
View Source
var Bookmark = Icons{Size * 4, Size}
View Source
var Brush = Icons{Size * 5, Size}
View Source
var Camrea = Icons{Size * 6, Size * 8}
View Source
var Check = Icons{Size * 8, Size}
View Source
var CheckCircle = Icons{Size * 6, Size}
View Source
var Checklist = Icons{Size * 7, Size}
View Source
var Close = Icons{1, Size * 2}
View Source
var Cloud = Icons{Size * 1, Size * 2}
View Source
var Copy = Icons{Size * 2, Size * 2}
View Source
var CopyRight = Icons{Size * 4, Size * 2}
View Source
var CreditCard = Icons{Size * 5, Size * 2}
View Source
var DARKBLUE = rl.DarkBlue
View Source
var DARKBROWN = rl.DarkBlue
View Source
var DARKGRAY = rl.DarkGray
View Source
var DARKGREEN = rl.DarkGreen
View Source
var DARKPURPLE = rl.DarkPurple
View Source
var DarkMode = Icons{1, Size * 3}
View Source
var Dashboard = Icons{Size * 1, Size * 3}
View Source
var Description = Icons{Size * 6, Size * 2}
View Source
var Download = Icons{Size * 8, Size * 2}
View Source
var DownloadDone = Icons{Size * 7, Size * 2}
View Source
var Edit = Icons{Size * 10, Size * 2}
View Source
var EditNote = Icons{Size * 9, Size * 2}
View Source
var Eject = Icons{Size * 2, Size * 3}
View Source
var EmojiEmotions = Icons{Size * 3, Size * 3}
View Source
var EventAvailable = Icons{Size * 4, Size * 3}
View Source
var ExitToApp = Icons{Size * 5, Size * 3}
View Source
var ExpandLess = Icons{Size * 1, Size * 4}
View Source
var ExpandLessExpandMore = Icons{1, Size * 4}
View Source
var Favorite = Icons{Size * 3, Size * 4}
View Source
var FavoriteBorder = Icons{Size * 2, Size * 4}
View Source
var FileDownload = Icons{Size * 4, Size * 4}
View Source
var FilePresent = Icons{Size * 5, Size * 4}
View Source
var FileUpload = Icons{Size * 6, Size * 3}
View Source
var Fingerprint = Icons{Size * 7, Size * 3}
View Source
var FirstPage = Icons{Size * 6, Size * 4}
View Source
var Folder = Icons{Size * 8, Size * 4}
View Source
var FolderCopy = Icons{Size * 7, Size * 4}
View Source
var FullScreen = Icons{Size * 9, Size * 3}
View Source
var GOLD = rl.Gold
View Source
var GRAY = rl.Gray
View Source
var GREEN = rl.Green
View Source
var Game = Icons{Size * 9, Size * 4}
View Source
var Grid = Icons{Size * 10, Size * 4}
View Source
var HeadPhones = Icons{Size * 1, Size * 5}
View Source
var Help = Icons{Size * 2, Size * 5}
View Source
var History = Icons{Size * 3, Size * 5}
View Source
var Home = Icons{Size * 9, Size * 10}
View Source
var ImageFile = Icons{Size * 4, Size * 5}
View Source
var Info = Icons{Size * 5, Size * 5}
View Source
var Inputs = Icons{Size * 6, Size * 5}
View Source
var Keyboard = Icons{Size * 8, Size * 5}
View Source
var KeyboardHide = Icons{Size * 7, Size * 5}
View Source
var LIGHTGRAY = rl.LightGray
View Source
var LIME = rl.Lime
View Source
var Language = Icons{Size * 9, Size * 5}
View Source
var LastPage = Icons{Size * 10, Size * 5}
View Source
var Lightbulb = Icons{1, Size * 6}
View Source
var Like = Icons{Size * 6, Size * 9}
View Source
var List = Icons{Size * 8, Size * 3}
View Source
var Location = Icons{Size * 2, Size * 6}

var nop = Icons{Size * 1, Size * 6}

View Source
var Login = Icons{Size * 3, Size * 6}
View Source
var MAGENTA = rl.Magenta
View Source
var MAROON = rl.Maroon
View Source
var ManageAccounts = Icons{Size * 4, Size * 6}
View Source
var Market = Icons{Size * 10, Size * 9}
View Source
var Maximize = Icons{1, Size * 7}
View Source
var Menu = Icons{Size * 5, Size * 6}
View Source
var Message = Icons{Size * 4, Size * 9}
View Source
var MoreVert = Icons{Size * 1, Size * 7}
View Source
var Movie = Icons{Size * 2, Size * 7}
View Source
var Music = Icons{Size * 3, Size * 7}
View Source
var NavigateBefore = Icons{1, Size * 8}
View Source
var NavigateNext = Icons{Size * 1, Size * 8}
View Source
var NotInterested = Icons{Size * 2, Size * 8}
View Source
var ORANGE = rl.Orange
View Source
var OpenInBrowser = Icons{Size * 6, Size * 6}
View Source
var PINK = rl.Pink
View Source
var PURPLE = rl.Purple
View Source
View Source
var Past = Icons{Size * 3, Size * 2}
View Source
var Pause = Icons{Size * 3, Size * 8}
View Source
var Percent = Icons{Size * 4, Size * 8}
View Source
var PermMedia = Icons{Size * 6, Size * 7}
View Source
var PersonAdd = Icons{Size * 5, Size * 8}
View Source
var Play = Icons{1, Size * 9}
View Source
var Preview = Icons{Size * 8, Size * 6}
View Source
var Printer = Icons{Size * 7, Size * 7}
View Source
var Public = Icons{Size * 8, Size * 7}
View Source
var RAYWHITE = rl.RayWhite
View Source
var Red = rl.Red
View Source
var Redeem = Icons{Size * 9, Size * 6}
View Source
var RemoveDone = Icons{Size * 10, Size * 6}
View Source
var RemoveRedEye = Icons{Size * 9, Size * 7}
View Source
var Reply = Icons{Size * 7, Size * 8}
View Source
var RestorOfTrash = Icons{Size * 8, Size * 8}
View Source
var RoketLunch = Icons{Size * 9, Size * 8}
View Source
var SKYBLUE = rl.SkyBlue
View Source
var Save = Icons{Size * 10, Size * 7}
View Source
var Savings = Icons{Size * 10, Size * 8}
View Source
var Search = Icons{Size * 1, Size * 9}
View Source
var Send = Icons{Size * 2, Size * 9}
View Source
var Setting = Icons{Size * 10, Size * 10}
View Source
var Share = Icons{Size * 9, Size * 9}
View Source
var SkipNext = Icons{Size * 5, Size * 10}
View Source
var SkipPrevious = Icons{Size * 6, Size * 10}
View Source
var Sort = Icons{Size * 1, Size * 10}
View Source
var Source = Icons{1, Size * 10}
View Source
var Star = Icons{Size * 10, Size * 3}
View Source
var TableView = Icons{Size * 2, Size * 10}
View Source
var Text = Icons{Size * 3, Size * 9}
View Source
var Translate = Icons{1, Size * 5}
View Source
var Trash = Icons{Size * 10, Size}

var nop = Icons{Size * 9, Size}

View Source
var UnLike = Icons{Size * 5, Size * 9}
View Source
var VIOLET = rl.Violet
View Source
var Video = Icons{Size * 7, Size * 9}
View Source
var ViewList = Icons{Size * 3, Size * 10}
View Source
var VolumeOff = Icons{Size * 7, Size * 10}
View Source
var VolumeUp = Icons{Size * 8, Size * 10}
View Source
var WHITE = rl.White
View Source
var YELLOW = rl.Yellow
View Source
var Zoom = Icons{Size * 4, Size * 10}

Functions

func CustomColor

func CustomColor(red, green, blue, alpha uint8) color.RGBA

func Update

func Update(a *App, f func())

Exce to update a for per frame

Types

type App

type App struct {
	Font                   rl.Font
	FontAddreesFlie        string
	FontSize               int32
	SlideSize, MenuBarSize int32
	RadioButtonChecker     map[string]*RadioButton
	BackgroundColor        rl.Color
	DefulteBoard           *Board
	Lock                   bool
	Icon                   *Icon
	CodePoint              *CodePoint
}

func Init

func Init(title string, width, hight int32) *App

Init window if you want use wihout raylib-go

func (*App) CheckForNotMemberSideBar

func (a *App) CheckForNotMemberSideBar(object bool) int32

func (*App) GetScreenHeight

func (a *App) GetScreenHeight() int32

func (*App) GetScreenHeightByprcentage

func (a *App) GetScreenHeightByprcentage(value float32) float32

func (*App) GetScreenWidth

func (a *App) GetScreenWidth() int32

func (*App) GetScreenWidthByprcentage

func (a *App) GetScreenWidthByprcentage(value float32) float32

func (*App) LoadFont

func (a *App) LoadFont(file string, size int32) rl.Font

func (*App) MouseX

func (a *App) MouseX() int32

func (*App) MouseY

func (a *App) MouseY() int32

func (*App) NewBoard

func (a *App) NewBoard() *Board

we can this object multi board per board like a canvas

func (*App) NewButton

func (a *App) NewButton() *Button

New text button

func (*App) NewCheckBox

func (a *App) NewCheckBox() *CheckBox

func (*App) NewColorPicker

func (a *App) NewColorPicker() *ColorPicker

func (*App) NewExplorer

func (a *App) NewExplorer() *Explorer

func (*App) NewImage

func (a *App) NewImage(file string, width, hight int) *Image

New image

func (*App) NewInput

func (a *App) NewInput() *Input

New text input

func (*App) NewMeneBar

func (a *App) NewMeneBar() *MenuBar

func (*App) NewMeneFloat

func (a *App) NewMeneFloat() *MenuFloat

func (*App) NewModal

func (a *App) NewModal() *Modal

New modal

func (*App) NewNotfiy

func (a *App) NewNotfiy() *Notify

func (*App) NewProgress

func (a *App) NewProgress(value, width int32) *Progress

New Progress

func (*App) NewRadioButton

func (a *App) NewRadioButton(name string, value interface{}, id string) *RadioButton

func (*App) NewSidePanel

func (a *App) NewSidePanel() *SidePanel

New SidePanel be side right and left

func (*App) NewSliderBar

func (a *App) NewSliderBar(min, max, width int32) *SlideBar

func (*App) NewTab

func (a *App) NewTab(count int8, childBoard bool) *TabBar

New tab button

func (*App) NewTopBar

func (a *App) NewTopBar(logoName, tabName string) *TopBar

func (*App) NewWidget

func (a *App) NewWidget() *Widget

func (*App) Newlabel

func (a *App) Newlabel() *Label

New label

func (*App) Unload

func (a *App) Unload()

type Board

type Board struct {
	Font rl.Font

	Iteams []InterfaceDraw
	// contains filtered or unexported fields
}

func (*Board) AddChild

func (win *Board) AddChild(iteam ...InterfaceDraw)

func (*Board) Draw

func (win *Board) Draw(x, y, width, hight int32)

func (*Board) Event

func (win *Board) Event()

type Button

type Button struct {
	X, Y, Width, Hight int32

	FuncExce        func()
	BackgroundColor rl.Color
	TextColor       rl.Color
	FontSize        int32
	Text            string
	Font            rl.Font

	Icon      Icons
	IconSize  int8
	IconColor rl.Color

	MemberModal bool
	// contains filtered or unexported fields
}

func (*Button) Coord

func (bu *Button) Coord() rl.Rectangle

func (*Button) Draw

func (bu *Button) Draw(x, y, width, hight int32)

func (*Button) DrawInterface

func (bu *Button) DrawInterface(x, y, width, hight int32)

func (*Button) EnableMemberModal

func (bu *Button) EnableMemberModal()

func (*Button) Event

func (bu *Button) Event()

func (*Button) Hide

func (bu *Button) Hide()

func (*Button) SetPosition

func (bu *Button) SetPosition(x, y int32)

func (*Button) Show

func (bu *Button) Show()

type CheckBox

type CheckBox struct {
	X, Y, Width, Hight int32
	Font               rl.Font
	MemberModal        bool
	BackgroundColor    rl.Color
	CircleColor        rl.Color

	Check bool
	// contains filtered or unexported fields
}

func (*CheckBox) Coord

func (ch *CheckBox) Coord() rl.Rectangle

func (*CheckBox) Draw

func (ch *CheckBox) Draw(x, y float32)

func (*CheckBox) DrawInterface

func (ch *CheckBox) DrawInterface(x, y, width, hight int32)

func (*CheckBox) EnableMemberModal

func (ch *CheckBox) EnableMemberModal()

func (*CheckBox) Event

func (ch *CheckBox) Event(x, y float32)

func (*CheckBox) SetPosition

func (ch *CheckBox) SetPosition(x, y int32)

type CodePoint

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

func NewCodePoints

func NewCodePoints(file string) *CodePoint

func (*CodePoint) Genrate

func (c *CodePoint) Genrate(text string, bidi codepointtext.Direction) string

func (*CodePoint) Init

func (c *CodePoint) Init()

type ColorPicker

type ColorPicker struct{}

func (*ColorPicker) SelectColor

func (co *ColorPicker) SelectColor() (color.Color, error)

type Direction

type Direction int
const (
	Right Direction = iota
	Left
)

type Explorer

type Explorer struct{}

func (*Explorer) SelectDirctory

func (ex *Explorer) SelectDirctory(title string) (string, error)

func (*Explorer) SelectDirctoryMultiple

func (ex *Explorer) SelectDirctoryMultiple(title string) ([]string, error)

func (*Explorer) SelectFile

func (ex *Explorer) SelectFile(title string) (string, error)

func (*Explorer) SelectFileMultiple

func (ex *Explorer) SelectFileMultiple(title string) ([]string, error)

func (*Explorer) SelectFileSave

func (ex *Explorer) SelectFileSave(title string, name string) (string, error)

type Icon

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

func NewIcon

func NewIcon() *Icon

Init icon

func (*Icon) Draw

func (ic *Icon) Draw(icon Icons, x, y float32, iconSize int8, color rl.Color)

func (*Icon) Unload

func (ic *Icon) Unload()

type IconData

type IconData struct{}

func (*IconData) Data

func (ic *IconData) Data() []byte

type Icons

type Icons rl.Vector2
var NoIcon Icons = Icons{0, 0}

type Image

type Image struct {
	X, Y, Width, Hight int32
	Font               rl.Font
	Texture            rl.Texture2D

	MemberModal bool
	// contains filtered or unexported fields
}

func (*Image) Coord

func (im *Image) Coord() rl.Rectangle

func (*Image) Draw

func (im *Image) Draw(x, y int32)

func (*Image) DrawInterface

func (im *Image) DrawInterface(x, y, width, hight int32)

func (*Image) EnableMemberModal

func (im *Image) EnableMemberModal()

func (*Image) SetPosition

func (im *Image) SetPosition(x, y, width int32)

func (*Image) Unload

func (im *Image) Unload()

type Input

type Input struct {
	X, Y, Width, Hight int32
	RectangleBody      rl.Rectangle

	LimitText          int32
	Placeholder        string
	PlaceholderDefulte string
	PlaceholderColor   rl.Color

	Font       rl.Font
	FontSize   float32
	Background rl.Color
	TextColor  rl.Color

	BorderColorActive   rl.Color
	BorderColorUnactive rl.Color

	ReadOnly    bool
	MemberModal bool
	// contains filtered or unexported fields
}

func (*Input) Coord

func (in *Input) Coord() rl.Rectangle

func (*Input) DisableMemberModal

func (in *Input) DisableMemberModal()

func (*Input) Draw

func (in *Input) Draw(x, y, width, hight int32)

func (*Input) DrawInterface

func (in *Input) DrawInterface(x, y, width, hight int32)

func (*Input) EnableMemberModal

func (in *Input) EnableMemberModal()

func (*Input) GetText

func (in *Input) GetText() string

func (*Input) SetPosition

func (in *Input) SetPosition(x, y int32)

func (*Input) SetText

func (in *Input) SetText(text string)

type InterfaceDraw

type InterfaceDraw interface {
	Coord() rl.Rectangle
	DrawInterface(x, y, width, hight int32)
	EnableMemberModal()
}

we can use by this interface pass draw to other object

type Label

type Label struct {
	X, Y, Width, Hight int32
	Font               rl.Font
	TextColor          rl.Color
	TextSize           float32
	Textspace          float32
	MemberModal        bool

	Text      string
	Icon      Icons
	IconColor rl.Color
	// contains filtered or unexported fields
}

func (*Label) Coord

func (la *Label) Coord() rl.Rectangle

func (*Label) Draw

func (la *Label) Draw(text string, x, y float32)

func (*Label) DrawInterface

func (la *Label) DrawInterface(x, y, width, hight int32)

func (*Label) EnableMemberModal

func (la *Label) EnableMemberModal()

func (*Label) SetPosition

func (la *Label) SetPosition(x, y int32)
type MenuBar struct {
	Font            rl.Font
	FontSize        int32
	TextColor       rl.Color
	BackgroundColor rl.Color
	MemberModal     bool
	// contains filtered or unexported fields
}
func (bar *MenuBar) AddItem(name string, menuFloat *MenuFloat)
func (bar *MenuBar) Coord() rl.Rectangle
func (bar *MenuBar) Draw()
func (bar *MenuBar) DrawInterface(x, y, width, hight int32)
func (bar *MenuBar) EnableMemberModal()
type MenuFloat struct {
	X, Y, Width, Hight int32
	BackgroundColor    rl.Color
	LineColor          rl.Color

	HightPerIteam int32
	TotalHight    int32

	Enable bool
	// contains filtered or unexported fields
}
func (me *MenuFloat) AddMainMenu(nameItam string, iconItam Icons, menu *MenuFloat)
func (me *MenuFloat) AddSubMenu(nameItam string, iconItam Icons, shortKey string, exeRun func())
func (me *MenuFloat) Coord() rl.Rectangle
func (me *MenuFloat) Draw(x, y int32)
func (me *MenuFloat) DrawInterface(x, y, width, hight int32)
func (me *MenuFloat) EnableMemberModal()
func (me *MenuFloat) Hide()
func (me *MenuFloat) SetPosition(x, y int32)
func (me *MenuFloat) Show()
type Modal struct {
	X, Y, Width, Hight int32
	Font               rl.Font

	Iteams          []InterfaceDraw
	Rounde          float32
	BackgroundColor rl.Color
	// contains filtered or unexported fields
}

func (*Modal) AddChild

func (mo *Modal) AddChild(iteam ...InterfaceDraw)

func (*Modal) Close

func (mo *Modal) Close()

func (*Modal) Coord

func (mo *Modal) Coord() rl.Rectangle

func (*Modal) Draw

func (mo *Modal) Draw(x, y, width, hight int32)

func (*Modal) DrawInterface

func (mo *Modal) DrawInterface(x, y, width, hight int32)

func (*Modal) EnableMemberModal

func (mo *Modal) EnableMemberModal()

func (*Modal) Open

func (mo *Modal) Open()

func (*Modal) SetPosition

func (mo *Modal) SetPosition(x, y int32)

type Notify

type Notify struct{}

func (*Notify) Error

func (no *Notify) Error(text string) error

func (*Notify) Info

func (no *Notify) Info(text string) error

func (*Notify) Notify

func (no *Notify) Notify(text string) error

func (*Notify) Warning

func (no *Notify) Warning(text string) error

type Progress

type Progress struct {
	X, Y, Width, Hight int32
	Font               rl.Font
	MemberModal        bool
	Color              rl.Color

	Value          int32
	Auto           bool
	ShowPrecentage bool
	// contains filtered or unexported fields
}

func (*Progress) Coord

func (pro *Progress) Coord() rl.Rectangle

func (*Progress) Draw

func (pro *Progress) Draw(x, y float32)

func (*Progress) DrawInterface

func (pro *Progress) DrawInterface(x, y, width, hight int32)

func (*Progress) EnableMemberModal

func (pro *Progress) EnableMemberModal()

func (*Progress) SetPosition

func (pro *Progress) SetPosition(x, y int32)

type RadioButton

type RadioButton struct {
	X, Y, Width, Hight int32
	Font               rl.Font
	MemberModal        bool
	BackgroundColor    rl.Color
	CircleColor        rl.Color
	CircleColorChecked rl.Color
	TextColor          rl.Color

	Check bool

	Value interface{}
	Name  string
	Id    string
	// contains filtered or unexported fields
}

func (*RadioButton) Checked

func (ra *RadioButton) Checked()

func (*RadioButton) Coord

func (ra *RadioButton) Coord() rl.Rectangle

func (*RadioButton) Draw

func (ra *RadioButton) Draw(x, y float32)

func (*RadioButton) DrawInterface

func (ra *RadioButton) DrawInterface(x, y, width, hight int32)

func (*RadioButton) EnableMemberModal

func (ra *RadioButton) EnableMemberModal()

func (*RadioButton) SetPosition

func (ra *RadioButton) SetPosition(x, y int32)

func (*RadioButton) UnChecked

func (ra *RadioButton) UnChecked()

func (*RadioButton) UnCheckedOther

func (ra *RadioButton) UnCheckedOther()

type SidePanel

type SidePanel struct {
	X, Y, Width, Hight int32
	Font               rl.Font

	Iteams          []InterfaceDraw
	Rounde          float32
	BackgroundColor rl.Color

	Direction Direction
	// contains filtered or unexported fields
}

func (*SidePanel) AddChild

func (si *SidePanel) AddChild(iteam ...InterfaceDraw)

func (*SidePanel) Coord

func (si *SidePanel) Coord() rl.Rectangle

func (*SidePanel) Draw

func (si *SidePanel) Draw()

func (*SidePanel) DrawInterface

func (si *SidePanel) DrawInterface(x, y, width, hight int32)

type SlideBar

type SlideBar struct {
	X, Y, Width, Hight int32
	Font               rl.Font
	MemberModal        bool
	Color              rl.Color

	Value          int32
	Auto           bool
	ShowPrecentage bool

	CircleRangeColor    rl.Color
	PercentageColor     rl.Color
	TextPercentageColor rl.Color

	Min, Max int32
	// contains filtered or unexported fields
}

func (*SlideBar) Coord

func (sl *SlideBar) Coord() rl.Rectangle

func (*SlideBar) Draw

func (sl *SlideBar) Draw(x, y float32)

func (*SlideBar) DrawInterface

func (sl *SlideBar) DrawInterface(x, y, width, hight int32)

func (*SlideBar) EnableMemberModal

func (sl *SlideBar) EnableMemberModal()

func (*SlideBar) SetPosition

func (sl *SlideBar) SetPosition(x, y int32)

type TabBar

type TabBar struct {
	X, Y, Width, Hight int32
	Font               rl.Font

	ChildBoard  bool
	Count       int8
	Buttons     []*Button
	AutoSize    bool
	Minsize     int32
	MemberModal bool

	SpeedScroll int32

	FontSize        int32
	TextColor       rl.Color
	BackgroundColor rl.Color
	// contains filtered or unexported fields
}

func (*TabBar) AddChildButtons

func (tab *TabBar) AddChildButtons()

func (*TabBar) AddItemFun

func (tab *TabBar) AddItemFun(item int, f func())

func (*TabBar) Coord

func (tab *TabBar) Coord() rl.Rectangle

func (*TabBar) Draw

func (tab *TabBar) Draw(x, y int32)

func (*TabBar) DrawInterface

func (tab *TabBar) DrawInterface(x, y, width, hight int32)

func (*TabBar) EnableMemberModal

func (tab *TabBar) EnableMemberModal()

func (*TabBar) ItemName

func (tab *TabBar) ItemName(item int, name string)

func (*TabBar) SetPosition

func (tab *TabBar) SetPosition(x, y int32)

func (*TabBar) Unload

func (tab *TabBar) Unload()

type TopBar

type TopBar struct {
	FuncExce       func()
	ColorBacground rl.Color
	TextColor      rl.Color
	FontSize       int32
	Font           rl.Font
	Text           string
	App            *App
	Button         *Button

	IconTop   Icons
	IconColor rl.Color

	TextLogoSize  float32
	TextLogoColor rl.Color

	ImageWidth float32
	Imagehight float32
	Buttons    []*Button
	// contains filtered or unexported fields
}

func (*TopBar) AddChildButtons

func (top *TopBar) AddChildButtons(iteam ...*Button)

func (*TopBar) Close

func (top *TopBar) Close()

func (*TopBar) Draw

func (top *TopBar) Draw()

func (*TopBar) Event

func (top *TopBar) Event()

func (*TopBar) Fixed

func (top *TopBar) Fixed()

func (*TopBar) Open

func (top *TopBar) Open()

only work when topbar be fixed

func (*TopBar) Unload

func (top *TopBar) Unload()

type Widget

type Widget struct{}

func (*Widget) Calendar

func (wi *Widget) Calendar(text string) (time.Time, error)

func (*Widget) Entry

func (wi *Widget) Entry(text string) (string, error)

func (*Widget) List

func (wi *Widget) List(text string, list []string) (string, error)

func (*Widget) ListMultiple

func (wi *Widget) ListMultiple(text string, list []string) ([]string, error)

func (*Widget) ListMultipleItems

func (wi *Widget) ListMultipleItems(text string) ([]string, error)

func (*Widget) Password

func (wi *Widget) Password() (string, string, error)

func (*Widget) Progress

func (wi *Widget) Progress() (zenity.ProgressDialog, error)

func (*Widget) Question

func (wi *Widget) Question(text string) error

Jump to

Keyboard shortcuts

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