On this page
container.Clip
import "fyne.io/fyne/v2/container"Usage
type Clip
type Clip struct {
widget.BaseWidget
Content fyne.CanvasObject
}Clip describes a rectangular region that will clip anything outside its bounds.
Since:
2.7func NewClip
func NewClip(content fyne.CanvasObject) *ClipNewClip returns a new rectangular clipping object.
Since:
2.7func (*Clip) CreateRenderer
func (c *Clip) CreateRenderer() fyne.WidgetRendererfunc (*Clip) MinSize
func (c *Clip) MinSize() fyne.SizeMinSize for a Clip simply returns Size{1, 1} as there is no explicit content