modulepackage
0.0.0-20250123170056-14ecc76461ca
Repository: https://github.com/ddkwork/ux.git
Documentation: pkg.go.dev
# README
gio ux widgets is a go language gui framework based on https://github.com/gioui/gio, with added features such as treeGrid widget etc.
thanks
https://github.com/oligo/gioview https://github.com/x-module/gioui-plugins https://gitee.com/haodreams/gw https://github.com/chapar-rest/chapar https://github.com/dominikh/gotraceui https://github.com/vsariola/sointu https://github.com/g45t345rt/g45w https://github.com/richardwilkes/unison https://github.com/tonyhallett/TreeGrid
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
The main draw function.
No description provided by the author
CalculateTextWidth originalConstraints := gtx.Constraints // 保存原始约束 gtx.Constraints = originalConstraints.
No description provided by the author
No description provided by the author
Disabled blends color towards the luminance and multiplies alpha.
No description provided by the author
分隔线绘制函数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetYearsRangeButtons returns slice of yearButton with year range between startYear and upto but not including lastYear.
No description provided by the author
Hovered blends dark colors towards white, and light colors towards black.
func SaveButtonLayout(gtx DefaultDraw.Context, theme *material.Theme, rowClick *widget.Clickable) DefaultDraw.Dimensions { border := widget.Border{ Color: th.Bg, //todo: change color to th.Fg Width: unit.Dp(1), CornerRadius: unit.Dp(4), }
return DefaultDraw.Inset{Left: unit.Dp(15)}.Layout(gtx, func(gtx DefaultDraw.Context) DefaultDraw.Dimensions { return border.Layout(gtx, func(gtx DefaultDraw.Context) DefaultDraw.Dimensions { return Clickable(gtx, rowClick, func(gtx DefaultDraw.Context) DefaultDraw.Dimensions { return DefaultDraw.Inset{Left: unit.Dp(4), Right: unit.Dp(4)}.Layout(gtx, func(gtx DefaultDraw.Context) DefaultDraw.Dimensions { return DefaultDraw.Flex{Axis: DefaultDraw.Vertical, Alignment: DefaultDraw.Middle}.Layout(gtx, DefaultDraw.Rigid(func(gtx DefaultDraw.Context) DefaultDraw.Dimensions { return DefaultDraw.Flex{Axis: DefaultDraw.Horizontal, Alignment: DefaultDraw.Middle}.Layout(gtx, DefaultDraw.Rigid(func(gtx DefaultDraw.Context) DefaultDraw.Dimensions { gtx.Constraints.Max.X = gtx.Dp(16) return IconSave.Layout(gtx, th.Palette.ContrastFg) }), DefaultDraw.Rigid(func(gtx DefaultDraw.Context) DefaultDraw.Dimensions { return material.Body1(theme, "Save").Layout(gtx) }), ) }), ) }) }) }) }) }.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
*
* @description: struct 字段名转为ids
* @param {string} prefix
* @param {map[string][]int} key
* @param {[]int} paths
* @param {reflect.Type} meta
* @param {bool} toLower 是否转为小写
* @return {*}
*/.
MulAlpha applies the alpha to the color.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
list 数组 cols 可为空 textFunc 回调函数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewPatternEditor creates a new PatternEditor.
No description provided by the author
NewRadioButton returns a RadioButton with a label.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
奇偶行背景色.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TransposeMatrix 函数将输入的行切片矩阵转置为列切片.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
时分秒.
No description provided by the author
时分秒.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
精简版 年月日.
精简版 年月日时分.
精简版 年月日时分秒.
No description provided by the author
年月日.
年月日 时分.
年月日 时分秒.
年月日 时分秒,毫秒.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
rgb(255, 236, 179).
rgb(255, 224, 130).
rgb(255, 213, 79).
rgb(255, 202, 40).
rgb(255, 248, 225).
rgb(255, 193, 7).
rgb(255, 179, 0).
rgb(255, 160, 0).
rgb(255, 143, 0).
rgb(255, 111, 0).
rgb(255, 229, 127).
rgb(255, 215, 64).
rgb(255, 196, 0).
rgb(255, 171, 0).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
rgb(0, 0, 0).
rgb(187, 222, 251).
rgb(144, 202, 249).
rgb(100, 181, 246).
rgb(66, 165, 245).
rgb(227, 242, 253).
rgb(33, 150, 243).
rgb(30, 136, 229).
rgb(25, 118, 210).
rgb(21, 101, 192).
rgb(13, 71, 161).
rgb(130, 177, 255).
rgb(68, 138, 255).
rgb(41, 121, 255).
rgb(41, 98, 255).
rgb(207, 216, 220).
rgb(176, 190, 197).
rgb(144, 164, 174).
rgb(120, 144, 156).
rgb(236, 239, 241).
rgb(96, 125, 139).
rgb(84, 110, 122).
rgb(69, 90, 100).
rgb(55, 71, 79).
rgb(38, 50, 56).
rgb(215, 204, 200).
rgb(188, 170, 164).
rgb(161, 136, 127).
rgb(141, 110, 99).
rgb(239, 235, 233).
rgb(121, 85, 72).
rgb(109, 76, 65).
rgb(93, 64, 55).
rgb(78, 52, 46).
rgb(62, 39, 35).
go:embed CircledChevronDown.svg.
go:embed CircledChevronRight.svg.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
rgb(178, 235, 242).
rgb(128, 222, 234).
rgb(77, 208, 225).
rgb(38, 198, 218).
rgb(224, 247, 250).
rgb(0, 188, 212).
rgb(0, 172, 193).
rgb(0, 151, 167).
rgb(0, 131, 143).
rgb(0, 96, 100).
rgb(132, 255, 255).
rgb(24, 255, 255).
rgb(0, 229, 255).
rgb(0, 184, 212).
No description provided by the author
rgb(255, 204, 188).
rgb(255, 171, 145).
rgb(255, 138, 101).
rgb(255, 112, 67).
rgb(251, 233, 231).
rgb(255, 87, 34).
rgb(244, 81, 30).
rgb(230, 74, 25).
rgb(216, 67, 21).
rgb(191, 54, 12).
rgb(255, 158, 128).
rgb(255, 110, 64).
rgb(255, 61, 0).
rgb(221, 44, 0).
rgb(209, 196, 233).
rgb(179, 157, 219).
rgb(149, 117, 205).
rgb(126, 87, 194).
rgb(237, 231, 246).
rgb(103, 58, 183).
rgb(94, 53, 177).
rgb(81, 45, 168).
rgb(69, 39, 160).
rgb(49, 27, 146).
rgb(179, 136, 255).
rgb(124, 77, 255).
rgb(101, 31, 255).
rgb(98, 0, 234).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
go:embed dracula.xml.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
rgb(200, 230, 201).
rgb(165, 214, 167).
rgb(129, 199, 132).
rgb(102, 187, 106).
rgb(232, 245, 233).
rgb(76, 175, 80).
rgb(67, 160, 71).
rgb(56, 142, 60).
rgb(46, 125, 50).
rgb(27, 94, 32).
rgb(185, 246, 202).
rgb(105, 240, 174).
rgb(0, 230, 118).
rgb(0, 200, 83).
rgb(245, 245, 245).
rgb(238, 238, 238).
rgb(224, 224, 224).
rgb(189, 189, 189).
rgb(250, 250, 250).
rgb(158, 158, 158).
rgb(117, 117, 117).
rgb(97, 97, 97).
rgb(66, 66, 66).
rgb(33, 33, 33).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
rgb(197, 202, 233).
rgb(159, 168, 218).
rgb(121, 134, 203).
rgb(92, 107, 192).
rgb(232, 234, 246).
rgb(63, 81, 181).
rgb(57, 73, 171).
rgb(48, 63, 159).
rgb(40, 53, 147).
rgb(26, 35, 126).
rgb(140, 158, 255).
rgb(83, 109, 254).
rgb(61, 90, 254).
rgb(48, 79, 254).
rgb(179, 229, 252).
rgb(129, 212, 250).
rgb(79, 195, 247).
rgb(41, 182, 246).
rgb(225, 245, 254).
rgb(3, 169, 244).
rgb(3, 155, 229).
rgb(2, 136, 209).
rgb(2, 119, 189).
rgb(1, 87, 155).
rgb(128, 216, 255).
rgb(64, 196, 255).
rgb(0, 176, 255).
rgb(0, 145, 234).
rgb(220, 237, 200).
rgb(197, 225, 165).
rgb(174, 213, 129).
rgb(156, 204, 101).
rgb(241, 248, 233).
rgb(139, 195, 74).
rgb(124, 179, 66).
rgb(104, 159, 56).
rgb(85, 139, 47).
rgb(51, 105, 30).
rgb(204, 255, 144).
rgb(178, 255, 89).
rgb(118, 255, 3).
rgb(100, 221, 23).
rgb(240, 244, 195).
rgb(230, 238, 156).
rgb(220, 231, 117).
rgb(212, 225, 87).
rgb(249, 251, 231).
rgb(205, 220, 57).
rgb(192, 202, 51).
rgb(175, 180, 43).
rgb(158, 157, 36).
rgb(130, 119, 23).
rgb(244, 255, 129).
rgb(238, 255, 65).
rgb(198, 255, 0).
rgb(174, 234, 0).
No description provided by the author
Map contains named colors defined in the Theme Design style guide.
No description provided by the author
No description provided by the author
No description provided by the author
Names contains the color names defined in the Theme Design style guide.
No description provided by the author
No description provided by the author
No description provided by the author
rgb(255, 224, 178).
rgb(255, 204, 128).
rgb(255, 183, 77).
rgb(255, 167, 38).
rgb(255, 243, 224).
rgb(255, 152, 0).
rgb(251, 140, 0).
rgb(245, 124, 0).
rgb(239, 108, 0).
rgb(230, 81, 0).
rgb(255, 209, 128).
rgb(255, 171, 64).
rgb(255, 145, 0).
rgb(255, 109, 0).
No description provided by the author
No description provided by the author
rgb(248, 187, 208).
rgb(244, 143, 177).
rgb(240, 98, 146).
rgb(236, 64, 122).
rgb(252, 228, 236).
rgb(233, 30, 99).
rgb(216, 27, 96).
rgb(194, 24, 91).
rgb(173, 20, 87).
rgb(136, 14, 79).
rgb(255, 128, 171).
rgb(255, 64, 129).
rgb(245, 0, 87).
rgb(197, 17, 98).
No description provided by the author
rgb(225, 190, 231).
rgb(206, 147, 216).
rgb(186, 104, 200).
rgb(171, 71, 188).
rgb(243, 229, 245).
rgb(156, 39, 176).
rgb(142, 36, 170).
rgb(123, 31, 162).
rgb(106, 27, 154).
rgb(74, 20, 140).
rgb(234, 128, 252).
rgb(224, 64, 251).
rgb(213, 0, 249).
rgb(170, 0, 255).
rgb(255, 205, 210).
rgb(239, 154, 154).
rgb(229, 115, 115).
rgb(239, 83, 80).
rgb(255, 235, 238).
rgb(244, 67, 54).
rgb(229, 57, 53).
rgb(211, 47, 47).
rgb(198, 40, 40).
rgb(183, 28, 28).
rgb(255, 138, 128).
rgb(255, 82, 82).
rgb(255, 23, 68).
rgb(213, 0, 0).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
rgb(178, 223, 219).
rgb(128, 203, 196).
rgb(77, 182, 172).
rgb(38, 166, 154).
rgb(224, 242, 241).
rgb(0, 150, 136).
rgb(0, 137, 123).
rgb(0, 121, 107).
rgb(0, 105, 92).
rgb(0, 77, 64).
rgb(167, 255, 235).
rgb(100, 255, 218).
rgb(29, 233, 182).
rgb(0, 191, 165).
No description provided by the author
No description provided by the author
No description provided by the author
rgb(255, 255, 255).
No description provided by the author
rgb(255, 249, 196).
rgb(255, 245, 157).
rgb(255, 241, 118).
rgb(255, 238, 88).
rgb(255, 253, 231).
rgb(255, 235, 59).
rgb(253, 216, 53).
rgb(251, 192, 45).
rgb(249, 168, 37).
rgb(245, 127, 23).
rgb(255, 255, 141).
rgb(255, 255, 0).
rgb(255, 234, 0).
rgb(255, 214, 0).
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PatternEditor is a widget that allows the user to edit a text like and highlight patterns like {{id}} or {name}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Resize provides a draggable handle in between two widgets for resizing their area.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Split thx to github.com/vsariola/sointu C:\Users\Admin\Downloads\sointu-master\tracker\gioui\split.go.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author