enums

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectFlags

type ConnectFlags uint64

Connect flags

const (
	CONNECT_AFTER   ConnectFlags = 1 << 0
	CONNECT_SWAPPED ConnectFlags = 1 << iota
)

type DestDefaults

type DestDefaults uint64

Dest defaults

const (
	DEST_DEFAULT_MOTION    DestDefaults = 1 << 0
	DEST_DEFAULT_HIGHLIGHT DestDefaults = 1 << iota
	DEST_DEFAULT_DROP
	DEST_DEFAULT_ALL DestDefaults = 0
)

type DragResult

type DragResult uint64

Drag result

const (
	DRAG_RESULT_SUCCESS DragResult = iota
	DRAG_RESULT_NO_TARGET
	DRAG_RESULT_USER_CANCELLED
	DRAG_RESULT_TIMEOUT_EXPIRED
	DRAG_RESULT_GRAB_BROKEN
	DRAG_RESULT_ERROR
)

type EnumFromString

type EnumFromString interface {
	FromString(value string) (enum interface{}, err error)
}

type EventFlag

type EventFlag int

CEvent handling event flag type

const (
	EVENT_PASS EventFlag = iota // Allow other handlers to process
	EVENT_STOP                  // Prevent further event handling
)

CEvent handling event flags

type HorizontalAlignment

type HorizontalAlignment uint
const (
	ALIGN_LEFT   HorizontalAlignment = 0
	ALIGN_RIGHT  HorizontalAlignment = 1
	ALIGN_CENTER HorizontalAlignment = 2
)

type Justification

type Justification uint64

Justification

const (
	JUSTIFY_LEFT Justification = iota
	JUSTIFY_RIGHT
	JUSTIFY_CENTER
	JUSTIFY_FILL
)

type ObjectFlags

type ObjectFlags uint64

Object flags

const (
	IN_DESTRUCTION ObjectFlags = 1 << 0
	FLOATING       ObjectFlags = 1 << iota
	RESERVED_1
	RESERVED_2
)

type Orientation

type Orientation uint64

Orientation

const (
	ORIENTATION_NONE Orientation = iota
	ORIENTATION_HORIZONTAL
	ORIENTATION_VERTICAL
)

func (Orientation) FromString

func (o Orientation) FromString(value string) (enum interface{}, err error)

type ResizeMode

type ResizeMode uint64

Resize mode

const (
	RESIZE_PARENT ResizeMode = iota
	RESIZE_QUEUE
	RESIZE_IMMEDIATE
)

type SignalFlags

type SignalFlags uint64

Signal flags

const (
	SIGNAL_RUN_FIRST SignalFlags = 1 << 0
	SIGNAL_RUN_LAST  SignalFlags = 1 << iota
	SIGNAL_RUN_CLEANUP
	SIGNAL_NO_RECURSE
	SIGNAL_DETAILED
	SIGNAL_ACTION
	SIGNAL_NO_HOOKS
	SIGNAL_MUST_COLLECT
	SIGNAL_DEPRECATED
)

type SignalMatchType

type SignalMatchType uint64

Signal match type

const (
	SIGNAL_MATCH_ID     SignalMatchType = 1 << 0
	SIGNAL_MATCH_DETAIL SignalMatchType = 1 << iota
	SIGNAL_MATCH_CLOSURE
	SIGNAL_MATCH_FUNC
	SIGNAL_MATCH_DATA
	SIGNAL_MATCH_UNBLOCKED
)

type TargetFlags

type TargetFlags uint64

Target flags

const (
	TARGET_SAME_APP    TargetFlags = 1 << 0
	TARGET_SAME_WIDGET TargetFlags = 1 << iota
	TARGET_OTHER_APP
	TARGET_OTHER_WIDGET
)

type VerticalAlignment

type VerticalAlignment uint
const (
	ALIGN_TOP    VerticalAlignment = 0
	ALIGN_BOTTOM VerticalAlignment = 1
	ALIGN_MIDDLE VerticalAlignment = 2
)

type WindowType

type WindowType uint64

Window type

const (
	WINDOW_TOPLEVEL WindowType = iota
	WINDOW_POPUP
)

type WrapMode

type WrapMode uint64

Wrap mode

const (
	WRAP_NONE WrapMode = iota
	WRAP_CHAR
	WRAP_WORD
	WRAP_WORD_CHAR
)

func (WrapMode) FromString

func (m WrapMode) FromString(value string) (enum interface{}, err error)

Jump to

Keyboard shortcuts

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