Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danfragoso/thdwb
/ functions
Functions
486 in github.com/danfragoso/thdwb
⨍
Functions
486
◇
Types & classes
63
↓ 40 callers
Method
Fill
Fill fills the current path with the current color. Open subpaths are implicity closed. The path is cleared after this operation.
gg/context.go:495
↓ 33 callers
Method
SetHexColor
SetHexColor sets the current color using a hex string. The leading pound sign (#) is optional. Both 3- and 6-digit variations are supported. 8 digits
gg/context.go:255
↓ 32 callers
Method
SetRGB
SetRGB sets the current color. r, g, b values should be between 0 and 1, inclusive. Alpha will be set to 1 (fully opaque).
gg/context.go:287
↓ 30 callers
Method
AttachWidget
(wd Widget)
mustard/widget.go:194
↓ 28 callers
Method
DrawRectangle
(x, y, w, h float64)
gg/context.go:590
↓ 28 callers
Function
NewContext
NewContext creates a new image.RGBA with the specified width and height and prepares a context for rendering onto that image.
gg/context.go:85
↓ 23 callers
Method
Clear
Convenient Drawing Functions Clear fills the entire image with the current color.
gg/context.go:564
↓ 20 callers
Method
Image
Image returns the image that has been drawn by this context.
gg/context.go:132
↓ 19 callers
Method
RequestReflow
()
mustard/window.go:125
↓ 16 callers
Method
Fixed
()
gg/point.go:13
↓ 16 callers
Function
checkHash
(t *testing.T, dc *Context, expected string)
gg/context_test.go:23
↓ 16 callers
Function
saveImage
(dc *Context, name string)
gg/context_test.go:30
↓ 14 callers
Method
GetCoords
()
mustard/types.go:121
↓ 14 callers
Function
hexToFloatInRange
(hex string)
mayo/color.go:10
↓ 14 callers
Function
unfix
(x fixed.Int26_6)
gg/util.go:121
↓ 13 callers
Function
CreateFrame
CreateFrame - Creates and returns a new Frame
mustard/frame.go:4
↓ 13 callers
Method
SetFont
Text Functions
gg/context.go:700
↓ 11 callers
Method
AddContextMenuEntry
(entryText string, action func())
mustard/contextMenu.go:19
↓ 11 callers
Method
LineTo
LineTo adds a line segment to the current path starting at the current point. If there is no current point, it is equivalent to MoveTo(x, y)
gg/context.go:310
↓ 11 callers
Method
SetRGBA
SetRGBA sets the current color. r, g, b, a values should be between 0 and 1, inclusive.
gg/context.go:275
↓ 11 callers
Function
loadDocumentFromUrl
(browser *hotdog.WebBrowser, statusLabel *mustard.LabelWidget, urlInput *mustard.InputWidget, viewPort *mustar
browser/browser.go:61
↓ 10 callers
Method
MeasureString
(s string)
gg/wrap.go:9
↓ 10 callers
Method
SetValue
SetFontColor - Sets the input font color
mustard/input.go:69
↓ 9 callers
Method
Close
()
mustard/types.go:277
↓ 9 callers
Method
DrawImage
DrawImage draws the specified image at the specified point.
gg/context.go:672
↓ 9 callers
Function
GetElementStylesheet
(elementName string, attributes []*hotdog.Attribute)
mayo/mayo.go:107
↓ 9 callers
Method
MoveTo
Path Manipulation MoveTo starts a new subpath within the current path starting at the specified point.
gg/context.go:295
↓ 9 callers
Function
Radians
(degrees float64)
gg/util.go:22
↓ 9 callers
Method
RequestRepaint
()
hotdog/node.go:126
↓ 9 callers
Method
SetCursor
(cursorType cursorType)
mustard/window.go:352
↓ 9 callers
Method
Stroke
Stroke strokes the current path with the current color, line width, line cap, line join and dash settings. The path is cleared after this operation.
gg/context.go:469
↓ 9 callers
Method
Translate
Translate updates the current matrix with a translation.
gg/context.go:874
↓ 9 callers
Function
copyWidgetToBuffer
(widget Widget, src image.Image)
mustard/widget.go:8
↓ 8 callers
Method
DrawString
DrawString draws the specified text at the specified point.
gg/context.go:767
↓ 8 callers
Method
SetWidth
SetWidth - Sets the frame width
mustard/frame.go:29
↓ 8 callers
Method
TransformPoint
TransformPoint multiplies the specified point by the current matrix, returning a transformed position.
gg/context.go:922
↓ 7 callers
Method
GetOffset
()
mustard/canvas.go:59
↓ 7 callers
Method
SetBackgroundColor
SetBackgroundColor - Sets the frame background color
mustard/frame.go:21
↓ 6 callers
Method
AddColorStop
(offset float64, color color.Color)
gg/gradient.go:33
↓ 6 callers
Method
ClosePath
ClosePath adds a line segment from the current point to the beginning of the current subpath. If there is no current point, this is a no-op.
gg/context.go:367
↓ 6 callers
Method
DrawCircle
(x, y, r float64)
gg/context.go:651
↓ 6 callers
Method
DrawLine
(x1, y1, x2, y2 float64)
gg/context.go:585
↓ 6 callers
Method
NewSubPath
NewSubPath starts a new subpath within the current path. There is no current point after this operation.
gg/context.go:385
↓ 6 callers
Method
SetHeight
SetHeight - Sets the frame height
mustard/frame.go:36
↓ 6 callers
Method
SetLineWidth
(lineWidth float64)
gg/context.go:181
↓ 6 callers
Function
getColor
(pos float64, stops stops)
gg/gradient.go:167
↓ 5 callers
Method
BaseWidget
()
mustard/types.go:133
↓ 5 callers
Method
DrawStringWrapped
DrawStringWrapped word-wraps the specified string to the given max width and then draws it at the specified anchor point using the given line spacing
gg/context.go:790
↓ 5 callers
Method
FindChildByName
(childName string)
hotdog/node.go:73
↓ 5 callers
Method
SetContent
SetContent - Sets the text content
mustard/text.go:58
↓ 5 callers
Method
Start
(profileName string)
profiler/profiler.go:20
↓ 5 callers
Method
Widgets
()
mustard/types.go:130
↓ 5 callers
Function
parseFont
(weight int)
bun/fonts.go:17
↓ 4 callers
Function
CreateButtonWidget
CreateButtonWidget - Creates and returns a new Button Widget
mustard/button.go:12
↓ 4 callers
Method
DrawArc
(x, y, r, angle1, angle2 float64)
gg/context.go:647
↓ 4 callers
Method
DrawStringAnchored
DrawStringAnchored draws the specified text at the specified anchor point. The anchor point is x - w * ax, y - h * ay, where w, h is the size of the t
gg/context.go:774
↓ 4 callers
Method
Error
()
hotdog/structs.go:112
↓ 4 callers
Function
LoadAsset
(asset []byte)
gg/util.go:40
↓ 4 callers
Function
Log
(component, msg string)
hotdog/structs.go:207
↓ 4 callers
Method
Multiply
(b Matrix)
gg/matrix.go:51
↓ 4 callers
Function
NewSolidPattern
(color color.Color)
gg/pattern.go:32
↓ 4 callers
Method
Open
()
mustard/types.go:281
↓ 4 callers
Method
Pop
Pop restores the last saved context state from the stack.
gg/context.go:943
↓ 4 callers
Method
ProcessArrowKeys
(arrowKey string)
mustard/events.go:63
↓ 4 callers
Method
Push
Stack Push saves the current state of the context for later retrieval. These can be nested.
gg/context.go:937
↓ 4 callers
Method
RegisterButton
(button *ButtonWidget, callback func())
mustard/window.go:331
↓ 4 callers
Method
RemoveStaticOverlay
(ref string)
mustard/window.go:394
↓ 4 callers
Method
SetFontSize
SetFontSize - Sets the tree font size
mustard/tree.go:150
↓ 4 callers
Function
dot3
(x0, y0, z0, x1, y1, z1 float64)
gg/gradient.go:99
↓ 4 callers
Function
lerp
(a, b uint32, t float64)
gg/gradient.go:200
↓ 3 callers
Method
AddWindow
(window *Window)
mustard/app.go:19
↓ 3 callers
Method
Attr
(attrName string)
hotdog/node.go:97
↓ 3 callers
Method
ClearPath
ClearPath clears the current path. There is no current point after this operation.
gg/context.go:377
↓ 3 callers
Method
ComputedBox
()
mustard/types.go:131
↓ 3 callers
Function
CreateLabelWidget
CreateLabelWidget - Creates and returns a new Label Widget
mustard/label.go:11
↓ 3 callers
Function
CreateNewWindow
(title string, width int, height int, hiDPI bool)
mustard/window.go:22
↓ 3 callers
Method
DrawEllipticalArc
(x, y, rx, ry, angle1, angle2 float64)
gg/context.go:615
↓ 3 callers
Method
GetCursorPosition
()
mustard/window.go:323
↓ 3 callers
Method
GetXPath
()
hotdog/node.go:69
↓ 3 callers
Method
Height
Height returns the height of the image in pixels.
gg/context.go:142
↓ 3 callers
Function
HexStringToColor
HexStringToColor - Transforms hex color string to *hotdog.ColorRGBA
mayo/color.go:86
↓ 3 callers
Method
IsPointInside
(x, y float64)
mustard/widget.go:235
↓ 3 callers
Method
Last
()
hotdog/structs.go:68
↓ 3 callers
Function
MapCSSColor
MapCSSColor - Transforms css color strings to #hotdog.ColorRGBA
mayo/color.go:129
↓ 3 callers
Method
MeasureStringWrapped
(s string, width, lineSpacing float64)
gg/context.go:816
↓ 3 callers
Function
NewContextForRGBA
NewContextForRGBA prepares a context for rendering onto the specified image. No copy is made.
gg/context.go:97
↓ 3 callers
Method
Run
(callback func())
mustard/app.go:7
↓ 3 callers
Method
Scale
Scale updates the current matrix with a scaling factor. Scaling occurs about the origin.
gg/context.go:880
↓ 3 callers
Method
SetOffset
(offset int)
mustard/canvas.go:55
↓ 3 callers
Method
SetRootFrame
SetRootFrame - Sets the window root frame
mustard/window.go:92
↓ 3 callers
Method
SetWindow
(*Window)
mustard/types.go:132
↓ 3 callers
Method
Show
Show - Show the window
mustard/window.go:85
↓ 3 callers
Method
Width
Width returns the width of the image in pixels.
gg/context.go:137
↓ 3 callers
Method
draw
()
mustard/types.go:135
↓ 3 callers
Function
fix
(x float64)
gg/util.go:117
↓ 3 callers
Function
getNodeChildren
(NodeDOM *hotdog.NodeDOM)
bun/bun.go:49
↓ 3 callers
Function
mapSizeValue
(sizeValue string)
mayo/mayo.go:38
↓ 3 callers
Method
setFillAndStrokeColor
Color Setters
gg/context.go:227
↓ 2 callers
Method
AddNode
(childNode *TreeWidgetNode)
mustard/types.go:245
↓ 2 callers
Method
Buffer
()
mustard/types.go:126
next →
1–100 of 486, ranked by callers