Documentation ¶
Index ¶
- func ColorWithAlpha(col color.Color, alpha uint8) color.Color
- type CoordinateTranslator
- type Event
- type FormSizeChangedEvent
- type FormTimer
- type KeyCharEvent
- type KeyDownEvent
- type KeyModifiers
- type KeyUpEvent
- type MouseButton
- type MouseClickEvent
- type MouseDblClickEvent
- type MouseDownEvent
- type MouseDropEvent
- type MouseEvent
- type MouseMoveEvent
- type MouseUpEvent
- type MouseValidateDropEvent
- type MouseWheelEvent
- type UserDataContainer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoordinateTranslator ¶
type Event ¶
type Event struct { UserDataContainer Sender interface{} Modifiers KeyModifiers Ignore bool }
type FormSizeChangedEvent ¶
type FormTimer ¶
func (*FormTimer) StartTimer ¶
func (c *FormTimer) StartTimer()
type KeyCharEvent ¶
type KeyDownEvent ¶
type KeyModifiers ¶
type KeyUpEvent ¶
type MouseButton ¶
type MouseButton int
const MouseButtonLeft MouseButton = 0x01
const MouseButtonMiddle MouseButton = 0x02
const MouseButtonRight MouseButton = 0x04
type MouseClickEvent ¶
type MouseClickEvent struct { MouseEvent Button MouseButton }
func (*MouseClickEvent) Translate ¶
func (event *MouseClickEvent) Translate(w CoordinateTranslator) *MouseClickEvent
type MouseDblClickEvent ¶
type MouseDblClickEvent struct { MouseEvent Button MouseButton }
func (*MouseDblClickEvent) Translate ¶
func (event *MouseDblClickEvent) Translate(w CoordinateTranslator) *MouseDblClickEvent
type MouseDownEvent ¶
type MouseDownEvent struct { MouseEvent Button MouseButton }
func NewMouseDownEvent ¶
func NewMouseDownEvent(x, y int, button MouseButton, modifiers KeyModifiers) *MouseDownEvent
func (*MouseDownEvent) Translate ¶
func (event *MouseDownEvent) Translate(w CoordinateTranslator) *MouseDownEvent
type MouseDropEvent ¶
type MouseDropEvent struct { MouseEvent Button MouseButton DroppingObject interface{} }
func NewMouseDropEvent ¶
func NewMouseDropEvent(x, y int, button MouseButton, modifiers KeyModifiers, droppingObject interface{}) *MouseDropEvent
func (*MouseDropEvent) Translate ¶
func (event *MouseDropEvent) Translate(w CoordinateTranslator) *MouseDropEvent
type MouseEvent ¶
func (*MouseEvent) PosX ¶
func (c *MouseEvent) PosX() int
func (*MouseEvent) PosY ¶
func (c *MouseEvent) PosY() int
func (*MouseEvent) SetPosX ¶
func (c *MouseEvent) SetPosX(x int)
func (*MouseEvent) SetPosY ¶
func (c *MouseEvent) SetPosY(y int)
type MouseMoveEvent ¶
type MouseMoveEvent struct {
MouseEvent
}
func (*MouseMoveEvent) Translate ¶
func (event *MouseMoveEvent) Translate(w CoordinateTranslator) *MouseMoveEvent
type MouseUpEvent ¶
type MouseUpEvent struct { MouseEvent Button MouseButton }
func (*MouseUpEvent) Translate ¶
func (event *MouseUpEvent) Translate(w CoordinateTranslator) *MouseUpEvent
type MouseValidateDropEvent ¶
type MouseValidateDropEvent struct { MouseEvent Button MouseButton DroppingObject interface{} AllowDrop bool }
func NewMouseValidateDropEvent ¶
func NewMouseValidateDropEvent(x, y int, button MouseButton, modifiers KeyModifiers, droppingObject interface{}) *MouseValidateDropEvent
func (*MouseValidateDropEvent) Translate ¶
func (event *MouseValidateDropEvent) Translate(w CoordinateTranslator) *MouseValidateDropEvent
type MouseWheelEvent ¶
type MouseWheelEvent struct { MouseEvent Delta int }
func (*MouseWheelEvent) Translate ¶
func (event *MouseWheelEvent) Translate(w CoordinateTranslator) *MouseWheelEvent
type UserDataContainer ¶
type UserDataContainer struct { TempData string // contains filtered or unexported fields }
func (*UserDataContainer) AllUserData ¶
func (c *UserDataContainer) AllUserData() interface{}
func (*UserDataContainer) Dispose ¶
func (c *UserDataContainer) Dispose()
func (*UserDataContainer) InitDataContainer ¶
func (c *UserDataContainer) InitDataContainer()
func (*UserDataContainer) SetUserData ¶
func (c *UserDataContainer) SetUserData(key string, data interface{})
func (*UserDataContainer) UserData ¶
func (c *UserDataContainer) UserData(key string) interface{}
Click to show internal directories.
Click to hide internal directories.