dropdown

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UIDropdown

type UIDropdown struct {
	// contains filtered or unexported fields
}

func NewUIDropdown

func NewUIDropdown(r *foundation.Rect) *UIDropdown

func (*UIDropdown) On

func (dd *UIDropdown) On(event fltk_bridge.Event, handler func(fltk_bridge.Event) bool)

On 绑定事件

func (*UIDropdown) OnSelectionChanged

func (dd *UIDropdown) OnSelectionChanged(cb func(index int, option string))

func (*UIDropdown) Options

func (dd *UIDropdown) Options() []string

func (*UIDropdown) Raw

func (dd *UIDropdown) Raw() *fltk_bridge.Choice

func (*UIDropdown) SelectedIndex

func (dd *UIDropdown) SelectedIndex() int

func (*UIDropdown) SelectedOption

func (dd *UIDropdown) SelectedOption() string

func (*UIDropdown) SetOptions

func (dd *UIDropdown) SetOptions(options []string)

func (*UIDropdown) SetSelectedIndex

func (dd *UIDropdown) SetSelectedIndex(index int)

func (*UIDropdown) View

func (dd *UIDropdown) View() *view.UIView

Jump to

Keyboard shortcuts

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