enums

package
v0.5.23 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectFlags

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

func (ConnectFlags) Clear added in v0.3.4

Clear returns the bitmask with the given flag removed

func (ConnectFlags) Has added in v0.3.4

func (i ConnectFlags) Has(m ConnectFlags) bool

Has returns TRUE if the given flag is present in the bitmask

func (ConnectFlags) Set added in v0.3.4

Set returns the bitmask with the given flag set

func (ConnectFlags) String added in v0.3.4

func (i ConnectFlags) String() string

func (ConnectFlags) Toggle added in v0.3.4

Toggle returns the bitmask with the given flag toggled

type DestDefaults

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

func (DestDefaults) Clear added in v0.3.4

Clear returns the bitmask with the given flag removed

func (DestDefaults) Has added in v0.3.4

func (i DestDefaults) Has(m DestDefaults) bool

Has returns TRUE if the given flag is present in the bitmask

func (DestDefaults) Set added in v0.3.4

Set returns the bitmask with the given flag set

func (DestDefaults) String added in v0.3.4

func (i DestDefaults) String() (value string)

func (DestDefaults) Toggle added in v0.3.4

Toggle returns the bitmask with the given flag toggled

type DragResult

type DragResult uint64
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
)

func (DragResult) String added in v0.3.4

func (i DragResult) String() string

type EnumFromString

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

type EventFlag

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

func (EventFlag) String added in v0.3.4

func (i EventFlag) String() string

type HorizontalAlignment

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

func (HorizontalAlignment) String added in v0.3.4

func (i HorizontalAlignment) String() string

type Justification

type Justification uint64
const (
	JUSTIFY_LEFT Justification = iota
	JUSTIFY_RIGHT
	JUSTIFY_CENTER
	JUSTIFY_FILL
	JUSTIFY_NONE
)

func (Justification) String added in v0.3.4

func (i Justification) String() string

type ObjectFlags

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

func (ObjectFlags) Clear added in v0.3.4

func (i ObjectFlags) Clear(m ObjectFlags) ObjectFlags

Clear returns the bitmask with the given flag removed

func (ObjectFlags) Has added in v0.3.4

func (i ObjectFlags) Has(m ObjectFlags) bool

Has returns TRUE if the given flag is present in the bitmask

func (ObjectFlags) Set added in v0.3.4

Set returns the bitmask with the given flag set

func (ObjectFlags) String added in v0.3.4

func (i ObjectFlags) String() (value string)

func (ObjectFlags) Toggle added in v0.3.4

func (i ObjectFlags) Toggle(m ObjectFlags) ObjectFlags

Toggle returns the bitmask with the given flag toggled

type Orientation

type Orientation uint64
const (
	ORIENTATION_NONE Orientation = iota
	ORIENTATION_HORIZONTAL
	ORIENTATION_VERTICAL
)

func (Orientation) FromString

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

func (Orientation) String added in v0.3.4

func (i Orientation) String() string

type ResizeMode

type ResizeMode uint64
const (
	RESIZE_PARENT ResizeMode = iota
	RESIZE_QUEUE
	RESIZE_IMMEDIATE
)

type SignalFlags

type SignalFlags uint64
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
)

func (SignalFlags) Clear added in v0.3.4

func (i SignalFlags) Clear(m SignalFlags) SignalFlags

Clear returns the bitmask with the given flag removed

func (SignalFlags) Has added in v0.3.4

func (i SignalFlags) Has(m SignalFlags) bool

Has returns TRUE if the given flag is present in the bitmask

func (SignalFlags) Set added in v0.3.4

Set returns the bitmask with the given flag set

func (SignalFlags) String added in v0.3.4

func (i SignalFlags) String() (value string)

func (SignalFlags) Toggle added in v0.3.4

func (i SignalFlags) Toggle(m SignalFlags) SignalFlags

Toggle returns the bitmask with the given flag toggled

type SignalMatchType

type SignalMatchType uint64
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
)

func (SignalMatchType) Clear added in v0.3.4

Clear returns the bitmask with the given flag removed

func (SignalMatchType) Has added in v0.3.4

Has returns TRUE if the given flag is present in the bitmask

func (SignalMatchType) Set added in v0.3.4

Set returns the bitmask with the given flag set

func (SignalMatchType) String added in v0.3.4

func (i SignalMatchType) String() (value string)

func (SignalMatchType) Toggle added in v0.3.4

Toggle returns the bitmask with the given flag toggled

type SignalRunType

type SignalRunType uint64

func (SignalRunType) Clear added in v0.3.4

Clear returns the bitmask with the given flag removed

func (SignalRunType) Has added in v0.3.4

func (i SignalRunType) Has(m SignalRunType) bool

Has returns TRUE if the given flag is present in the bitmask

func (SignalRunType) Set added in v0.3.4

Set returns the bitmask with the given flag set

func (SignalRunType) String added in v0.3.4

func (i SignalRunType) String() (value string)

func (SignalRunType) Toggle added in v0.3.4

Toggle returns the bitmask with the given flag toggled

type TargetFlags

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

func (TargetFlags) Clear added in v0.3.4

func (i TargetFlags) Clear(m TargetFlags) TargetFlags

Clear returns the bitmask with the given flag removed

func (TargetFlags) Has added in v0.3.4

func (i TargetFlags) Has(m TargetFlags) bool

Has returns TRUE if the given flag is present in the bitmask

func (TargetFlags) Set added in v0.3.4

Set returns the bitmask with the given flag set

func (TargetFlags) String added in v0.3.4

func (i TargetFlags) String() (value string)

func (TargetFlags) Toggle added in v0.3.4

func (i TargetFlags) Toggle(m TargetFlags) TargetFlags

Toggle returns the bitmask with the given flag toggled

type VerticalAlignment

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

func (VerticalAlignment) String added in v0.3.4

func (i VerticalAlignment) String() string

type WindowType

type WindowType uint64
const (
	WINDOW_TOPLEVEL WindowType = iota
	WINDOW_POPUP
)

func (WindowType) String added in v0.3.4

func (i WindowType) String() string

type WrapMode

type WrapMode uint64
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)

func (WrapMode) String added in v0.3.4

func (i WrapMode) String() string

Jump to

Keyboard shortcuts

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