Index: Enums

Alignment

Mousetrap.AlignmentType

Alignment

Determines alignment of widgets along the horizontal or vertical axis.

Enum Values

  • ALIGNMENT_CENTER
  • ALIGNMENT_END
  • ALIGNMENT_START
source

AnimationState

Mousetrap.AnimationStateType

AnimationState

Current state of the animation.

Enum Values

  • ANIMATION_STATE_IDLE
  • ANIMATION_STATE_PAUSED
  • ANIMATION_STATE_PLAYING
  • ANIMATION_STATE_DONE
source

AnimationTimingFunction

Mousetrap.AnimationTimingFunctionType

AnimationTimingFunction

Shape of the mathematical function that will be used to generate the Animations value over its duration.

Enum Values

  • ANIMATION_TIMING_FUNCTION_LINEAR
  • ANIMATION_TIMING_FUNCTION_EXPONENTIAL_EASE_IN
  • ANIMATION_TIMING_FUNCTION_EXPONENTIAL_EASE_OUT
  • ANIMATION_TIMING_FUNCTION_EXPONENTIAL_SIGMOID
  • ANIMATION_TIMING_FUNCTION_SINE_EASE_IN
  • ANIMATION_TIMING_FUNCTION_SINE_EASE_OUT
  • ANIMATION_TIMING_FUNCTION_SINE_SIGMOID
  • ANIMATION_TIMING_FUNCTION_CIRCULAR_EASE_IN
  • ANIMATION_TIMING_FUNCTION_CIRCULAR_EASE_OUT
  • ANIMATION_TIMING_FUNCTION_CIRCULAR_SIGMOID
  • ANIMATION_TIMING_FUNCTION_OVERSHOOT_EASE_IN
  • ANIMATION_TIMING_FUNCTION_OVERSHOOT_EASE_OUT
  • ANIMATION_TIMING_FUNCTION_OVERSHOOT_SIGMOID
  • ANIMATION_TIMING_FUNCTION_ELASTIC_EASE_IN
  • ANIMATION_TIMING_FUNCTION_ELASTIC_EASE_OUT
  • ANIMATION_TIMING_FUNCTION_ELASTIC_SIGMOID
  • ANIMATION_TIMING_FUNCTION_BOUNCE_EASE_IN
  • ANIMATION_TIMING_FUNCTION_BOUNCE_EASE_OUT
  • ANIMATION_TIMING_FUNCTION_BOUNCE_SIGMOID
source

AntiAliasingQuality

Mousetrap.AntiAliasingQualityType

AntiAliasingQuality

Number of samples when performing multi-sampled anti aliasing (MSAA).

Enum Values

  • ANTI_ALIASING_QUALITY_OFF
  • ANTI_ALIASING_QUALITY_MINIMAL
  • ANTI_ALIASING_QUALITY_GOOD
  • ANTI_ALIASING_QUALITY_BETTER
  • ANTI_ALIASING_QUALITY_BEST
source

BlendMode

Mousetrap.BlendModeType

BlendMode

Governs how colors are mixed when two fragments are rendered on top of each other.

Enum Values

  • BLEND_MODE_ADD
  • BLEND_MODE_MAX
  • BLEND_MODE_MIN
  • BLEND_MODE_MULTIPLY
  • BLEND_MODE_NONE
  • BLEND_MODE_REVERSE_SUBTRACT
  • BLEND_MODE_SUBTRACT
source

ButtonID

Mousetrap.ButtonIDType

ButtonID

ID of a mouse button, manufacturer-specific.

Enum Values

  • BUTTON_ID_ANY
  • BUTTON_ID_BUTTON_01
  • BUTTON_ID_BUTTON_02
  • BUTTON_ID_BUTTON_03
  • BUTTON_ID_BUTTON_04
  • BUTTON_ID_BUTTON_05
  • BUTTON_ID_BUTTON_06
  • BUTTON_ID_BUTTON_07
  • BUTTON_ID_BUTTON_08
  • BUTTON_ID_BUTTON_09
  • BUTTON_ID_NONE
source

CheckButtonState


CornerPlacement

Mousetrap.CornerPlacementType

CornerPlacement

Placement of both scrollbars relative to the center of a Viewport.

Enum Values

  • CORNER_PLACEMENT_BOTTOM_LEFT
  • CORNER_PLACEMENT_BOTTOM_RIGHT
  • CORNER_PLACEMENT_TOP_LEFT
  • CORNER_PLACEMENT_TOP_RIGHT
source

CursorType

Mousetrap.CursorTypeType

CursorType

Determines what the users cursor will look like while it is inside the allocated area of the widget.

Enum Values

  • CURSOR_TYPE_ALL_SCROLL
  • CURSOR_TYPE_CELL
  • CURSOR_TYPE_COLUMN_RESIZE
  • CURSOR_TYPE_CONTEXT_MENU
  • CURSOR_TYPE_CROSSHAIR
  • CURSOR_TYPE_DEFAULT
  • CURSOR_TYPE_EAST_RESIZE
  • CURSOR_TYPE_GRAB
  • CURSOR_TYPE_GRABBING
  • CURSOR_TYPE_HELP
  • CURSOR_TYPE_MOVE
  • CURSOR_TYPE_NONE
  • CURSOR_TYPE_NORTH_EAST_RESIZE
  • CURSOR_TYPE_NORTH_RESIZE
  • CURSOR_TYPE_NORTH_WEST_RESIZE
  • CURSOR_TYPE_NOT_ALLOWED
  • CURSOR_TYPE_POINTER
  • CURSOR_TYPE_PROGRESS
  • CURSOR_TYPE_ROW_RESIZE
  • CURSOR_TYPE_SOUTH_EAST_RESIZE
  • CURSOR_TYPE_SOUTH_RESIZE
  • CURSOR_TYPE_SOUTH_WEST_RESIZE
  • CURSOR_TYPE_TEXT
  • CURSOR_TYPE_WAIT
  • CURSOR_TYPE_WEST_RESIZE
  • CURSOR_TYPE_ZOOM_IN
  • CURSOR_TYPE_ZOOM_OUT
source

DeviceAxis

Mousetrap.DeviceAxisType

DeviceAxis

Axes of stylus- and touchpad device, capture by StylusEventController. Not all manufactures support all or even any of these.

Enum Values

  • DEVICE_AXIS_DELTA_X
  • DEVICE_AXIS_DELTA_Y
  • DEVICE_AXIS_DISTANCE
  • DEVICE_AXIS_PRESSURE
  • DEVICE_AXIS_ROTATION
  • DEVICE_AXIS_SLIDER
  • DEVICE_AXIS_WHEEL
  • DEVICE_AXIS_X
  • DEVICE_AXIS_X_TILT
  • DEVICE_AXIS_Y
  • DEVICE_AXIS_Y_TILT
source

EllipsizeMode

Mousetrap.EllipsizeModeType

EllipsizeMode

Determines how ellipses are inserted when a Labels allocated area exceeds the space it is allowed to allocated.

Enum Values

  • ELLIPSIZE_MODE_END
  • ELLIPSIZE_MODE_MIDDLE
  • ELLIPSIZE_MODE_NONE
  • ELLIPSIZE_MODE_START
source

FileChooserAction

Mousetrap.FileChooserActionType

FileChooserAction

Determines layout, which, and how many files/folders a user can select when using FileChooser.

Enum Values

  • FILE_CHOOSER_ACTION_OPEN_FILE
  • FILE_CHOOSER_ACTION_OPEN_MULTIPLE_FILES
  • FILE_CHOOSER_ACTION_SAVE
  • FILE_CHOOSER_ACTION_SELECT_FOLDER
  • FILE_CHOOSER_ACTION_SELECT_MULTIPLE_FOLDERS
source

FileMonitorEvent

Mousetrap.FileMonitorEventType

FileMonitorEvent

Classifies user behavior that triggered the callback of FileMonitor.

Enum Values

  • FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED
  • FILE_MONITOR_EVENT_CHANGED
  • FILE_MONITOR_EVENT_CHANGES_DONE_HINT
  • FILE_MONITOR_EVENT_CREATED
  • FILE_MONITOR_EVENT_DELETED
  • FILE_MONITOR_EVENT_MOVED_IN
  • FILE_MONITOR_EVENT_MOVED_OUT
  • FILE_MONITOR_EVENT_RENAMED
source

InterpolationType

Mousetrap.InterpolationTypeType

InterpolationType

Determines interpolation algorithm used when scaling Image.

Enum Values

  • INTERPOLATION_TYPE_BILINEAR
  • INTERPOLATION_TYPE_HYPERBOLIC
  • INTERPOLATION_TYPE_NEAREST
  • INTERPOLATION_TYPE_TILES
source

JustifyMode

Mousetrap.JustifyModeType

JustifyMode

Determines how words are arranged along the horizontal axis of a Label or TextView.

Enum Values

  • JUSTIFY_MODE_CENTER
  • JUSTIFY_MODE_FILL
  • JUSTIFY_MODE_LEFT
  • JUSTIFY_MODE_RIGHT
source

LabelWrapMode

Mousetrap.LabelWrapModeType

LabelWrapMode

Determines at which point in a Labels contents a linebreak will be inserted.

Enum Values

  • LABEL_WRAP_MODE_NONE
  • LABEL_WRAP_MODE_ONLY_ON_CHAR
  • LABEL_WRAP_MODE_ONLY_ON_WORD
  • LABEL_WRAP_MODE_WORD_OR_CHAR
source

LevelBarMode


Orientation

Mousetrap.OrientationType

Orientation

Determines orientation of a widget.

Enum Values

  • ORIENTATION_HORIZONTAL
  • ORIENTATION_VERTICAL
source

PanDirection


PropagationPhase

Mousetrap.PropagationPhaseType

PropagationPhase

Determines at which part during the main loop event propgataion an event controller will consume the event, cf. https://developer-old.gnome.org/gtk4/stable/event-propagation.html

Enum Values

  • PROPAGATION_PHASE_BUBBLE
  • PROPAGATION_PHASE_CAPTURE
  • PROPAGATION_PHASE_NONE
  • PROPAGATION_PHASE_TARGET
source

RelativePosition

Mousetrap.RelativePositionType

RelativePosition

Relative position of one object to another.

Enum Values

  • RELATIVE_POSITION_ABOVE
  • RELATIVE_POSITION_BELOW
  • RELATIVE_POSITION_LEFT_OF
  • RELATIVE_POSITION_RIGHT_OF
source

RevealerTransitionType

Mousetrap.RevealerTransitionTypeType

RevealerTransitionType

Determines animation type when of [Revealer] showing or hiding its child.

Enum Values

  • REVEALER_TRANSITION_TYPE_CROSSFADE
  • REVEALER_TRANSITION_TYPE_NONE
  • REVEALER_TRANSITION_TYPE_SLIDE_DOWN
  • REVEALER_TRANSITION_TYPE_SLIDE_LEFT
  • REVEALER_TRANSITION_TYPE_SLIDE_RIGHT
  • REVEALER_TRANSITION_TYPE_SLIDE_UP
  • REVEALER_TRANSITION_TYPE_SWING_DOWN
  • REVEALER_TRANSITION_TYPE_SWING_LEFT
  • REVEALER_TRANSITION_TYPE_SWING_RIGHT
  • REVEALER_TRANSITION_TYPE_SWING_UP
source

ScrollType

Mousetrap.ScrollTypeType

ScrollType

Classification of keyboard event that triggered the scroll_child event of a Viewport.

Enum Values

  • SCROLL_TYPE_JUMP
  • SCROLL_TYPE_NONE
  • SCROLL_TYPE_PAGE_BACKWARD
  • SCROLL_TYPE_PAGE_DOWN
  • SCROLL_TYPE_PAGE_FORWARD
  • SCROLL_TYPE_PAGE_LEFT
  • SCROLL_TYPE_PAGE_RIGHT
  • SCROLL_TYPE_PAGE_UP
  • SCROLL_TYPE_SCROLL_END
  • SCROLL_TYPE_SCROLL_START
  • SCROLL_TYPE_STEP_BACKWARD
  • SCROLL_TYPE_STEP_DOWN
  • SCROLL_TYPE_STEP_FORWARD
  • SCROLL_TYPE_STEP_LEFT
  • SCROLL_TYPE_STEP_RIGHT
  • SCROLL_TYPE_STEP_UP
source

ScrollbarVisibilityPolicy

Mousetrap.ScrollbarVisibilityPolicyType

ScrollbarVisibilityPolicy

Determines when / if a scrollbar of a Viewport reveals itself.

Enum Values

  • SCROLLBAR_VISIBILITY_POLICY_ALWAYS
  • SCROLLBAR_VISIBILITY_POLICY_AUTOMATIC
  • SCROLLBAR_VISIBILITY_POLICY_NEVER
source

SectionFormat

Mousetrap.SectionFormatType

SectionFormat

Visual layout of a MenuModel "section"-type item.

Enum Values

  • SECTION_FORMAT_CIRCULAR_BUTTONS
  • SECTION_FORMAT_HORIZONTAL_BUTTONS
  • SECTION_FORMAT_HORIZONTAL_BUTTONS_LEFT_TO_RIGHT
  • SECTION_FORMAT_HORIZONTAL_BUTTONS_RIGHT_TO_LEFT
  • SECTION_FORMAT_INLINE_BUTTONS
  • SECTION_FORMAT_NORMAL
source

SelectionMode

Mousetrap.SelectionModeType

SelectionMode

Governs if and how many elements can be selected.

Enum Values

  • SELECTION_MODE_MULTIPLE
  • SELECTION_MODE_NONE
  • SELECTION_MODE_SINGLE
source

ShaderType

Mousetrap.ShaderTypeType

ShaderType

Type of OpenGL shaderprogram component.

Enum Values

  • SHADER_TYPE_FRAGMENT
  • SHADER_TYPE_VERTEX
source

ShortcutScope

Mousetrap.ShortcutScopeType

ShortcutScope

Determines at which scope a shortcut will be captured.

Enum Values

  • SHORTCUT_SCOPE_GLOBAL
  • SHORTCUT_SCOPE_LOCAL
source

StackTransitionType

Mousetrap.StackTransitionTypeType

StackTransitionType

Determines animation that plays when a Stack switches from one of its pages to another.

Enum Values

  • STACK_TRANSITION_TYPE_CROSSFADE
  • STACK_TRANSITION_TYPE_NONE
  • STACK_TRANSITION_TYPE_OVER_DOWN
  • STACK_TRANSITION_TYPE_OVER_LEFT
  • STACK_TRANSITION_TYPE_OVER_LEFT_RIGHT
  • STACK_TRANSITION_TYPE_OVER_RIGHT
  • STACK_TRANSITION_TYPE_OVER_UP
  • STACK_TRANSITION_TYPE_OVER_UP_DOWN
  • STACK_TRANSITION_TYPE_ROTATE_LEFT
  • STACK_TRANSITION_TYPE_ROTATE_LEFT_RIGHT
  • STACK_TRANSITION_TYPE_ROTATE_RIGHT
  • STACK_TRANSITION_TYPE_SLIDE_DOWN
  • STACK_TRANSITION_TYPE_SLIDE_LEFT
  • STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT
  • STACK_TRANSITION_TYPE_SLIDE_RIGHT
  • STACK_TRANSITION_TYPE_SLIDE_UP
  • STACK_TRANSITION_TYPE_SLIDE_UP_DOWN
  • STACK_TRANSITION_TYPE_UNDER_DOWN
  • STACK_TRANSITION_TYPE_UNDER_LEFT
  • STACK_TRANSITION_TYPE_UNDER_RIGHT
  • STACK_TRANSITION_TYPE_UNDER_UP
source

TextureScaleMode


TextureWrapMode

Mousetrap.TextureWrapModeType

TextureWrapMode

Determines content of fragments with a texture coordinate outside of [0, 1].

Enum Values

  • TEXTURE_WRAP_MODE_MIRROR
  • TEXTURE_WRAP_MODE_ONE
  • TEXTURE_WRAP_MODE_REPEAT
  • TEXTURE_WRAP_MODE_STRETCH
  • TEXTURE_WRAP_MODE_ZERO
source

Theme

Mousetrap.ThemeType

Theme

Determines the look of all widgets when made active using Applications set_current_theme!.

Enum Values

  • THEME_DEFAULT_LIGHT
  • THEME_DEFAULT_DARK
  • THEME_HIGH_CONTRAST_LIGHT
  • THEME_HIGH_CONTRAST_DARK
source

TickCallbackResult


ToolType

Mousetrap.ToolTypeType

ToolType

Tool type classification of a stylus, not all manufactures support all or even any of these.

Enum Values

  • TOOL_TYPE_AIRBRUSH
  • TOOL_TYPE_BRUSH
  • TOOL_TYPE_ERASER
  • TOOL_TYPE_LENS
  • TOOL_TYPE_MOUSE
  • TOOL_TYPE_PEN
  • TOOL_TYPE_PENCIL
  • TOOL_TYPE_UNKNOWN
source

WindowCloseRequestResult

Mousetrap.WindowCloseRequestResultType

WindowCloseRequestResult

Return value of signal close_request of Window. Determines whether the window should close when requested to.

Enum Values

  • WINDOW_CLOSE_REQUEST_RESULT_ALLOW_CLOSE
  • WINDOW_CLOSE_REQUEST_RESULT_PREVENT_CLOSE
source