Documentation
¶
Index ¶
- type UIDropdown
- func (dd *UIDropdown) On(event fltk_bridge.Event, handler func(fltk_bridge.Event) bool)
- func (dd *UIDropdown) OnSelectionChanged(cb func(index int, option string))
- func (dd *UIDropdown) Options() []string
- func (dd *UIDropdown) Raw() *fltk_bridge.Choice
- func (dd *UIDropdown) SelectedIndex() int
- func (dd *UIDropdown) SelectedOption() string
- func (dd *UIDropdown) SetOptions(options []string)
- func (dd *UIDropdown) SetSelectedIndex(index int)
- func (dd *UIDropdown) View() *view.UIView
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
Click to show internal directories.
Click to hide internal directories.