Documentation ¶
Index ¶
- Constants
- Variables
- func CustomColor(red, green, blue, alpha uint8) color.RGBA
- func Update(a *App, f func())
- type App
- func (a *App) CheckForNotMemberSideBar(object bool) int32
- func (a *App) GetScreenHeight() int32
- func (a *App) GetScreenHeightByprcentage(value float32) float32
- func (a *App) GetScreenWidth() int32
- func (a *App) GetScreenWidthByprcentage(value float32) float32
- func (a *App) LoadFont(file string, size int32) rl.Font
- func (a *App) MouseX() int32
- func (a *App) MouseY() int32
- func (a *App) NewBoard() *Board
- func (a *App) NewButton() *Button
- func (a *App) NewCheckBox() *CheckBox
- func (a *App) NewColorPicker() *ColorPicker
- func (a *App) NewExplorer() *Explorer
- func (a *App) NewImage(file string, width, hight int) *Image
- func (a *App) NewInput() *Input
- func (a *App) NewMeneBar() *MenuBar
- func (a *App) NewMeneFloat() *MenuFloat
- func (a *App) NewModal() *Modal
- func (a *App) NewNotfiy() *Notify
- func (a *App) NewProgress(value, width int32) *Progress
- func (a *App) NewRadioButton(name string, value interface{}, id string) *RadioButton
- func (a *App) NewSidePanel() *SidePanel
- func (a *App) NewSliderBar(min, max, width int32) *SlideBar
- func (a *App) NewTab(count int8, childBoard bool) *TabBar
- func (a *App) NewTopBar(logoName, tabName string) *TopBar
- func (a *App) NewWidget() *Widget
- func (a *App) Newlabel() *Label
- func (a *App) Unload()
- type Board
- type Button
- func (bu *Button) Coord() rl.Rectangle
- func (bu *Button) Draw(x, y, width, hight int32)
- func (bu *Button) DrawInterface(x, y, width, hight int32)
- func (bu *Button) EnableMemberModal()
- func (bu *Button) Event()
- func (bu *Button) Hide()
- func (bu *Button) SetPosition(x, y int32)
- func (bu *Button) Show()
- type CheckBox
- type CodePoint
- type ColorPicker
- type Direction
- type Explorer
- func (ex *Explorer) SelectDirctory(title string) (string, error)
- func (ex *Explorer) SelectDirctoryMultiple(title string) ([]string, error)
- func (ex *Explorer) SelectFile(title string) (string, error)
- func (ex *Explorer) SelectFileMultiple(title string) ([]string, error)
- func (ex *Explorer) SelectFileSave(title string, name string) (string, error)
- type Icon
- type IconData
- type Icons
- type Image
- type Input
- func (in *Input) Coord() rl.Rectangle
- func (in *Input) DisableMemberModal()
- func (in *Input) Draw(x, y, width, hight int32)
- func (in *Input) DrawInterface(x, y, width, hight int32)
- func (in *Input) EnableMemberModal()
- func (in *Input) GetText() string
- func (in *Input) SetPosition(x, y int32)
- func (in *Input) SetText(text string)
- type InterfaceDraw
- type Label
- type MenuBar
- type MenuFloat
- 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
- func (mo *Modal) AddChild(iteam ...InterfaceDraw)
- func (mo *Modal) Close()
- func (mo *Modal) Coord() rl.Rectangle
- func (mo *Modal) Draw(x, y, width, hight int32)
- func (mo *Modal) DrawInterface(x, y, width, hight int32)
- func (mo *Modal) EnableMemberModal()
- func (mo *Modal) Open()
- func (mo *Modal) SetPosition(x, y int32)
- type Notify
- type Progress
- type RadioButton
- func (ra *RadioButton) Checked()
- func (ra *RadioButton) Coord() rl.Rectangle
- func (ra *RadioButton) Draw(x, y float32)
- func (ra *RadioButton) DrawInterface(x, y, width, hight int32)
- func (ra *RadioButton) EnableMemberModal()
- func (ra *RadioButton) SetPosition(x, y int32)
- func (ra *RadioButton) UnChecked()
- func (ra *RadioButton) UnCheckedOther()
- type SidePanel
- type SlideBar
- type TabBar
- func (tab *TabBar) AddChildButtons()
- func (tab *TabBar) AddItemFun(item int, f func())
- func (tab *TabBar) Coord() rl.Rectangle
- func (tab *TabBar) Draw(x, y int32)
- func (tab *TabBar) DrawInterface(x, y, width, hight int32)
- func (tab *TabBar) EnableMemberModal()
- func (tab *TabBar) ItemName(item int, name string)
- func (tab *TabBar) SetPosition(x, y int32)
- func (tab *TabBar) Unload()
- type TopBar
- type Widget
- func (wi *Widget) Calendar(text string) (time.Time, error)
- func (wi *Widget) Entry(text string) (string, error)
- func (wi *Widget) List(text string, list []string) (string, error)
- func (wi *Widget) ListMultiple(text string, list []string) ([]string, error)
- func (wi *Widget) ListMultipleItems(text string) ([]string, error)
- func (wi *Widget) Password() (string, string, error)
- func (wi *Widget) Progress() (zenity.ProgressDialog, error)
- func (wi *Widget) Question(text string) error
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 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
var Paid = Icons{Size * 5, Size * 7}
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 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 ¶
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 (*App) CheckForNotMemberSideBar ¶
func (*App) GetScreenHeight ¶
func (*App) GetScreenHeightByprcentage ¶
func (*App) GetScreenWidth ¶
func (*App) GetScreenWidthByprcentage ¶
func (*App) NewCheckBox ¶
func (*App) NewColorPicker ¶
func (a *App) NewColorPicker() *ColorPicker
func (*App) NewExplorer ¶
func (*App) NewMeneBar ¶
func (*App) NewMeneFloat ¶
func (*App) NewRadioButton ¶
func (a *App) NewRadioButton(name string, value interface{}, id string) *RadioButton
func (*App) NewSidePanel ¶
New SidePanel be side right and left
func (*App) NewSliderBar ¶
type Board ¶
type Board struct { Font rl.Font Iteams []InterfaceDraw // contains filtered or unexported fields }
func (*Board) AddChild ¶
func (win *Board) AddChild(iteam ...InterfaceDraw)
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) DrawInterface ¶
func (*Button) EnableMemberModal ¶
func (bu *Button) EnableMemberModal()
func (*Button) SetPosition ¶
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) DrawInterface ¶
func (*CheckBox) EnableMemberModal ¶
func (ch *CheckBox) EnableMemberModal()
func (*CheckBox) SetPosition ¶
type CodePoint ¶
type CodePoint struct {
// contains filtered or unexported fields
}
func NewCodePoints ¶
type ColorPicker ¶
type ColorPicker struct{}
func (*ColorPicker) SelectColor ¶
func (co *ColorPicker) SelectColor() (color.Color, error)
type Explorer ¶
type Explorer struct{}
func (*Explorer) SelectDirctoryMultiple ¶
func (*Explorer) SelectFileMultiple ¶
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) DrawInterface ¶
func (*Image) EnableMemberModal ¶
func (im *Image) EnableMemberModal()
func (*Image) SetPosition ¶
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) DisableMemberModal ¶
func (in *Input) DisableMemberModal()
func (*Input) DrawInterface ¶
func (*Input) EnableMemberModal ¶
func (in *Input) EnableMemberModal()
func (*Input) SetPosition ¶
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) DrawInterface ¶
func (*Label) EnableMemberModal ¶
func (la *Label) EnableMemberModal()
func (*Label) SetPosition ¶
type MenuBar ¶
type MenuBar struct { Font rl.Font FontSize int32 TextColor rl.Color BackgroundColor rl.Color MemberModal bool // contains filtered or unexported fields }
func (*MenuBar) DrawInterface ¶
func (*MenuBar) EnableMemberModal ¶
func (bar *MenuBar) EnableMemberModal()
type MenuFloat ¶
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 (*MenuFloat) AddMainMenu ¶
func (*MenuFloat) AddSubMenu ¶
func (*MenuFloat) DrawInterface ¶
func (*MenuFloat) EnableMemberModal ¶
func (me *MenuFloat) EnableMemberModal()
func (*MenuFloat) SetPosition ¶
type Modal ¶
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) DrawInterface ¶
func (*Modal) EnableMemberModal ¶
func (mo *Modal) EnableMemberModal()
func (*Modal) SetPosition ¶
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) DrawInterface ¶
func (*Progress) EnableMemberModal ¶
func (pro *Progress) EnableMemberModal()
func (*Progress) SetPosition ¶
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) DrawInterface ¶
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) DrawInterface ¶
func (*SlideBar) EnableMemberModal ¶
func (sl *SlideBar) EnableMemberModal()
func (*SlideBar) SetPosition ¶
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 (*TabBar) DrawInterface ¶
func (*TabBar) EnableMemberModal ¶
func (tab *TabBar) EnableMemberModal()
func (*TabBar) SetPosition ¶
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 TextLogo string TextLogoSize float32 TextLogoColor rl.Color ImageWidth float32 Imagehight float32 Buttons []*Button // contains filtered or unexported fields }
func (*TopBar) AddChildButtons ¶
Source Files ¶
- IconData.go
- accordions.go
- app.go
- board.go
- button.go
- card.go
- checkBox.go
- circle.go
- codePoint.go
- color.go
- colorPicker.go
- comoBox.go
- dropdownBox.go
- explorer.go
- flex.go
- groupBox.go
- icons.go
- image.go
- input.go
- label.go
- line.go
- listView.go
- menuBar.go
- menuFloat.go
- messageBox.go
- modal.go
- navbar.go
- notify.go
- panelBox.go
- progressBar.go
- radioButton.go
- rectangle.go
- select.go
- sidePanel.go
- slider.go
- sliderBar.go
- spinner.go
- tabBar.go
- table.go
- toggleGroup.go
- topbar.go
- triangle.go
- widget.go
- windowBox.go
Click to show internal directories.
Click to hide internal directories.