button

package
v1.0.3-0...-554643c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BezelStyle

type BezelStyle uint
const (
	BezelStyleRounded       BezelStyle // 1
	BezelStyleRegularSquare            // 2

	BezelStyleDisclosure        // 5
	BezelStyleShadowlessSquare  // 6
	BezelStyleCircular          // 7
	BezelStyleTexturedSquare    // 8
	BezelStyleHelpButton        // 9
	BezelStyleSmallSquare       // 10
	BezelStyleTexturedRounded   // 11
	BezelStyleRoundRect         // 12
	BezelStyleRecessed          // 13
	BezelStyleRoundedDisclosure // 14
	BezelStyleInline            // 15
)

type NSButton

type NSButton struct {
	cocoa.NSView
}

func NewButtonWithFrame

func NewButtonWithFrame(frame core.NSRect) NSButton

func (NSButton) SetAction

func (b NSButton) SetAction(action func(object NSButton))

func (NSButton) SetBorderType

func (b NSButton) SetBorderType(border BezelStyle)

func (NSButton) SetTitle

func (b NSButton) SetTitle(title string)

func (NSButton) SetType

func (b NSButton) SetType()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL