gv

package module
v0.0.0-...-7a87471 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

README

Go View Interface

GoDoc

Documentation

Index

Constants

View Source
const (
	Id          = "id"
	Show        = "show"
	Size        = "size"
	Text        = "text"
	Placeholder = "placeholder"
	Pack        = "pack"
	Spacing     = "spacing"
	Padding     = "padding"
	Expend      = "expend"
	Fill        = "fill"

	OnAccelClosuresChanged  SignalName = "accel-closures-changed"  // void
	OnButtonPressEvent                 = "button-press-event"      // boolean
	OnButtonReleaseEvent               = "button-release-event"    // boolean
	OnCanActivateAccel                 = "can-activate-accel"      // boolean
	OnChildNotify                      = "child-notify"            // void
	OnCompositedChanged                = "composited-changed"      // void
	OnConfigureEvent                   = "configure-event"         // boolean
	OnDamageEvent                      = "damage-event"            // boolean
	OnDeleteEvent                      = "delete-event"            // boolean
	OnDestroyEvent                     = "destroy-event"           // boolean
	OnDestroy                          = "destroy"                 // void
	OnDirectionChanged                 = "direction-changed"       // void
	OnDragBegin                        = "drag-begin"              // void
	OnDragDataDelete                   = "drag-data-delete"        // void
	OnDragDataGet                      = "drag-data-get"           // void
	OnDragDataReceived                 = "drag-data-received"      // void
	OnDragDrop                         = "drag-drop"               // boolean
	OnDragEnd                          = "drag-end"                // void
	OnDragFailed                       = "drag-failed"             // boolean
	OnDragLeave                        = "drag-leave"              // void
	OnDragMotion                       = "drag-motion"             // boolean
	OnDraw                             = "draw"                    // boolean
	OnEnterNotifyEvent                 = "enter-notify-event"      // boolean
	OnEvent                            = "event"                   // boolean
	OnEventAfter                       = "event-after"             // void
	OnFocus                            = "focus"                   // boolean
	OnFocusInEvent                     = "focus-in-event"          // boolean
	OnFocusOutEvent                    = "focus-out-event"         // boolean
	OnGrabBrokenEvent                  = "grab-broken-event"       // boolean
	OnGrabFocus                        = "grab-focus"              // void
	OnGrabNotify                       = "grab-notify"             // void
	OnHide                             = "hide"                    // void
	OnHierarchyChanged                 = "hierarchy-changed"       // void
	OnKeyPressEvent                    = "key-press-event"         // boolean
	OnKeyReleaseEvent                  = "key-release-event"       // boolean
	OnKeynavFailed                     = "keynav-failed"           // boolean
	OnLeaveNotifyEvent                 = "leave-notify-event"      // boolean
	OnMap                              = "map"                     // void
	OnMapEvent                         = "map-event"               // boolean
	OnMnemonicActivate                 = "mnemonic-activate"       // boolean
	OnMotionNotifyEvent                = "motion-notify-event"     // boolean
	OnMoveFocus                        = "move-focus"              // void
	OnParentSet                        = "parent-set"              // void
	OnPopupMenu                        = "popup-menu"              // boolean
	OnPropertyNotifyEvent              = "property-notify-event"   // boolean
	OnProximityInEvent                 = "proximity-in-event"      // boolean
	OnProximityOutEvent                = "proximity-out-event"     // boolean
	OnQueryTooltip                     = "query-tooltip"           // boolean
	OnRealize                          = "realize"                 // void
	OnScreenChanged                    = "screen-changed"          // void
	OnScrollEvent                      = "scroll-event"            // boolean
	OnSelectionClearEvent              = "selection-clear-event"   // boolean
	OnSelectionGet                     = "selection-get"           // void
	OnSelectionNotifyEvent             = "selection-notify-event"  // boolean
	OnSelectionReceived                = "selection-received"      // void
	OnSelectionRequestEvent            = "selection-request-event" // boolean
	OnShow                             = "show"                    // void
	OnShowHelp                         = "show-help"               // boolean
	OnSizeAllocate                     = "size-allocate"           // void
	OnStateChanged                     = "state-changed"           // void
	OnStateFlagsChanged                = "state-flags-changed"     // void
	OnStyleSet                         = "style-set"               // void
	OnStyleUpdated                     = "style-updated"           // void
	OnTouchEvent                       = "touch-event"             // boolean
	OnUnmap                            = "unmap"                   // void
	OnUnmapEvent                       = "unmap-event"             // boolean
	OnUnrealize                        = "unrealize"               // void
	OnVisibilityNotifyEvent            = "visibility-notify-event" // boolean
	OnWindowStateEvent                 = "window-state-event"      // boolean

	// Static, Editable
	OnCopyClipboard = "copy-clipboard" // void
	OnMoveCursor    = "move-cursor"    // void
	OnPopulatePopup = "populate-popup" // void

	// Static
	OnActivateCurrentLink = "activate-current-link" // void
	OnActivateLink        = "activate-link"         // gboolean

	// Pushable, Editable
	OnActivate = "activate" // void

	// Editable
	//-OnActivate           = "activate"            // void
	OnBackspace = "backspace" // void
	//-OnCopyClipboard      = "copy-clipboard"      // void
	OnCutClipboard     = "cut-clipboard"      // void
	OnDeleteFromCursor = "delete-from-cursor" // void
	OnIconPress        = "icon-press"         // void
	OnIconRelease      = "icon-release"       // void
	OnInsertAtCursor   = "insert-at-cursor"   // void
	//-OnMoveCursor         = "move-cursor"         // void
	OnPasteClipboard = "paste-clipboard" // void
	//-OnPopulatePopup      = "populate-popup"      // void
	OnPreeditChanged  = "preedit-changed"  // void
	OnToggleOverwrite = "toggle-overwrite" // void

	// Pushable
	//-OnActivate           = "activate" // void
	OnClicked  = "clicked"  // void
	OnEnter    = "enter"    // void
	OnLeave    = "leave"    // void
	OnPressed  = "pressed"  // void
	OnReleased = "released" // void
)

Variables

This section is empty.

Functions

func Interact

func Interact()

Run interaction message loop.

func Quit

func Quit()

Quit ends interaction message loop.

Types

type Bag

type Bag interface {
	// contains filtered or unexported methods
}

type Connection

type Connection uint

type CustomSignalName

type CustomSignalName SignalName

type Emitter

type Emitter interface {
	Emit(name CustomSignalName, args ...interface{}) error
}

Emitter emits a custom signal.

type Finder

type Finder interface {
	Find(id string) View
	// contains filtered or unexported methods
}

Finder finds a view with an id.

type PointType

type PointType struct{ image.Point }

func NewPoint

func NewPoint(x, y int) PointType

type PropName

type PropName string

type SignalName

type SignalName string

type SizeType

type SizeType struct{ image.Point }

func NewSize

func NewSize(w, h int) SizeType

type View

type View interface {
	Bag

	Connect(name SignalName, h interface{}, d ...interface{}) (Connection, error)
	Disconnect(c Connection) (interface{}, error)
}

A View is visible rectangle on the screen. Such as top level window, or a child view in a window or view.

func Load

func Load(in io.Reader) (View, error)

Load loads views from a reader.

func LoadFile

func LoadFile(name string) (View, error)

LoadFile loads views from XML file.

func LoadString

func LoadString(s string) (View, error)

LoadString loads views from XML string.

Jump to

Keyboard shortcuts

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