MCPcopy Create free account
hub / github.com/AllenDang/giu / FramePadding

Method FramePadding

ClickableWidgets.go:289–292  ·  view source on GitHub ↗

FramePadding sets button's frame padding (set 0 to fit image to the frame).

(padding int)

Source from the content-addressed store, hash-verified

287
288// FramePadding sets button's frame padding (set 0 to fit image to the frame).
289func (b *ImageButtonWidget) FramePadding(padding int) *ImageButtonWidget {
290 b.framePadding = padding
291 return b
292}
293
294var _ Widget = &ImageButtonWithRgbaWidget{}
295

Callers 2

FramePaddingMethod · 0.45
GetFramePaddingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected