Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | Safe |
Language | Haskell98 |
General enumeration types.
- data AccelFlags
- data Align
- data ArrowType
- data AttachOptions
- data BaselinePosition
- data MouseButton
- data ButtonBoxStyle
- data CalendarDisplayOptions
- data Click
- data CornerType
- data DeleteType
- data DestDefaults
- data DragResult
- data DirectionType
- data Justification
- data LevelBarMode
- data MenuDirectionType
- data MovementStep
- data Orientation
- data Packing
- toPacking :: Bool -> Bool -> Packing
- fromPacking :: Packing -> (Bool, Bool)
- data PackType
- data PathPriorityType
- data PathType
- data PolicyType
- data PositionType
- data ReliefStyle
- data ResizeMode
- data ScrollType
- data ScrollStep
- data SelectionMode
- data ShadowType
- data StateFlags
- data SortType
- data StateType
- data SpinButtonUpdatePolicy
- data SpinType
- data TargetFlags
- data TextDirection
- data TextSearchFlags
- data TextWindowType
- data ToolbarStyle
- data TreeViewColumnSizing
- data WindowPosition
- data WindowType
- data WrapMode
- data EntryIconPosition
- data CrossingMode
- data DragProtocol
- data DragAction
- data EventMask
- = ExposureMask
- | PointerMotionMask
- | PointerMotionHintMask
- | ButtonMotionMask
- | Button1MotionMask
- | Button2MotionMask
- | Button3MotionMask
- | ButtonPressMask
- | ButtonReleaseMask
- | KeyPressMask
- | KeyReleaseMask
- | EnterNotifyMask
- | LeaveNotifyMask
- | FocusChangeMask
- | StructureMask
- | PropertyChangeMask
- | VisibilityNotifyMask
- | ProximityInMask
- | ProximityOutMask
- | SubstructureMask
- | ScrollMask
- | TouchMask
- | SmoothScrollMask
- | AllEventsMask
- data Modifier
- = Shift
- | Lock
- | Control
- | Alt
- | Alt2
- | Alt3
- | Alt4
- | Alt5
- | Button1
- | Button2
- | Button3
- | Button4
- | Button5
- | MODIFIER_RESERVED_13_MASK
- | MODIFIER_RESERVED_14_MASK
- | MODIFIER_RESERVED_15_MASK
- | MODIFIER_RESERVED_16_MASK
- | MODIFIER_RESERVED_17_MASK
- | MODIFIER_RESERVED_18_MASK
- | MODIFIER_RESERVED_19_MASK
- | MODIFIER_RESERVED_20_MASK
- | MODIFIER_RESERVED_21_MASK
- | MODIFIER_RESERVED_22_MASK
- | MODIFIER_RESERVED_23_MASK
- | MODIFIER_RESERVED_24_MASK
- | MODIFIER_RESERVED_25_MASK
- | Super
- | Hyper
- | Meta
- | MODIFIER_RESERVED_29_MASK
- | Release
- | ModifierMask
- data ModifierIntent
- data NotifyType
- data ScrollDirection
- data VisibilityState
- data WindowState
- data WindowEdge
- data WindowTypeHint
- = WindowTypeHintNormal
- | WindowTypeHintDialog
- | WindowTypeHintMenu
- | WindowTypeHintToolbar
- | WindowTypeHintSplashscreen
- | WindowTypeHintUtility
- | WindowTypeHintDock
- | WindowTypeHintDesktop
- | WindowTypeHintDropdownMenu
- | WindowTypeHintPopupMenu
- | WindowTypeHintTooltip
- | WindowTypeHintNotification
- | WindowTypeHintCombo
- | WindowTypeHintDnd
- data Gravity
- data GrabStatus
- data OwnerChange
Documentation
data AccelFlags Source
State of an accelerator
State of an accelerator
Arrow directions for the arrow widget
data AttachOptions Source
Child widget attach options for table containers
data BaselinePosition Source
Whenever a container has some form of natural row it may align children in that row along a common typographical baseline. If the amount of verical space in the row is taller than the total requested height of the baseline-aligned children then it can use a BaselinePosition to select where to put the baseline inside the extra availible space.
data MouseButton Source
Mouse buttons.
data ButtonBoxStyle Source
Dictate the style that a ButtonBox uses to align it contents
data CalendarDisplayOptions Source
Specify which items of a calendar should be displayed.
Type of mouse click
data CornerType Source
Specifies in which corner a child widget should be placed
data DeleteType Source
Editing option
data DestDefaults Source
The DestDefaults
enumeration specifies the various types of action that
will be taken on behalf of the user for a drag destination site.
DestDefaultMotion
: If set for a widget, GTK+, during a drag over this widget will check if the drag matches this widget's list of possible targets and actions. GTK+ will then calldragStatus
as appropriate.DestDefaultHighlight
: If set for a widget, GTK+ will draw a highlight on this widget as long as a drag is over this widget and the widget drag format and action are acceptable.DestDefaultDrop
: If set for a widget, when a drop occurs, GTK+ will will check if the drag matches this widget's list of possible targets and actions. If so, GTK+ will calldragGetData
on behalf of the widget. Whether or not the drop is successful, GTK+ will calldragFinish
. If the action was a move, then if the drag was successful, thenTrue
will be passed for the delete parameter todragFinish
DestDefaultAll
: If set, specifies that all default actions should be taken.
Bounded DestDefaults Source | |
Enum DestDefaults Source | Gives an indication why a drag operation failed. The value can by
obtained by connecting to the
|
Eq DestDefaults Source | |
Show DestDefaults Source | |
Flags DestDefaults Source |
data DragResult Source
data DirectionType Source
Editing direction
data Justification Source
Justification for label and maybe other widgets (text?)
data LevelBarMode Source
data MenuDirectionType Source
From where was a menu item entered?
data MovementStep Source
Movement in text widget
data Orientation Source
Orientation is good
Packing parameters of a widget
- The
Packing
parameter determines how the child behaves in the horizontal or vertical way in anHBox
orVBox
, respectively.PackNatural
means the child is as big as it requests. It will stay at the start or end of aBox
if there is more space available. All children packed withPackRepel
will be padded on both sides with additional space.PackGrow
will increase the size of a widget so that it covers the available space. A menu bar, for instance, should always stay at the top of a window and should only occupy as little space as possible. Hence it should be packed at the start of aVBox
with the packing optionPackNatural
. The working area of a window (e.g. the text area in an editor) should expand when the window is resized. Here the packing optionPackGrow
is the right choice and it is irrelevant whether the main area is inserted at the start or the end of a box. FinallyPackRepel
is most useful in a window where no widget can make use of excess space. Examples include a dialog box without list boxes or text fields.
fromPacking :: Packing -> (Bool, Bool) Source
Packing of widgets at start or end in a box
data PathPriorityType Source
Priorities
Enum PathPriorityType Source | Scrollbar policy types (for scrolled windows) |
Eq PathPriorityType Source | |
Show PathPriorityType Source |
Widget identification path
data PolicyType Source
data PositionType Source
Position a scale's value is drawn relative to the trough
data ReliefStyle Source
I don't have a clue.
data ResizeMode Source
Resize mode, for containers
ResizeParent
Pass resize request to the parentResizeQueue
Queue resizes on this widgetResizeImmediate
Perform the resizes now
data ScrollType Source
Scrolling type
data ScrollStep Source
Scrolling step
data SelectionMode Source
Mode in which selections can be performed
- There is a deprecated entry SelectionExtended which should have the same value as SelectionMultiple. C2HS chokes on that construct.
data ShadowType Source
Shadow types
data StateFlags Source
Describes a widget state. Widget states are used to match the widget against CSS pseudo-classes. Note that GTK extends the regular CSS classes and sometimes uses different names.
StateFlagNormal | |
StateFlagActive | |
StateFlagPrelight | |
StateFlagSelected | |
StateFlagInsensitive | |
StateFlagInconsistent | |
StateFlagFocused | |
StateFlagBackdrop | |
StateFlagDirLtr | |
StateFlagDirRtl |
Bounded StateFlags Source | |
Enum StateFlags Source | Widget states |
Eq StateFlags Source | |
Show StateFlags Source | |
Flags StateFlags Source |
data SpinButtonUpdatePolicy Source
Whether to clamp or ignore illegal values.
Spin a SpinButton with the following method.
data TargetFlags Source
The TargetFlags
enumeration is used to specify constraints on an entry
in a TargetList
. These flags are only
used for drag and drop.
- If the
TargetSameApp
flag is set, the target will only be selected for drags within a single application. - If the
TargetSameWidget
flag is set, the target will only be selected for drags within a single widget.
Bounded TargetFlags Source | |
Enum TargetFlags Source | Is the text written from left to right or the exotic way? |
Eq TargetFlags Source | |
Show TargetFlags Source | |
Flags TargetFlags Source |
data TextDirection Source
data TextSearchFlags Source
Specify the way the search function for
TextBuffer
works.
Bounded TextSearchFlags Source | |
Enum TextSearchFlags Source | The window type for coordinate translation. |
Eq TextSearchFlags Source | |
Show TextSearchFlags Source | |
Flags TextSearchFlags Source |
data TextWindowType Source
data ToolbarStyle Source
Where to place the toolbar?
data TreeViewColumnSizing Source
Wether columns of a tree or list widget can be resized.
data WindowPosition Source
Window position types
data WindowType Source
Interaction of a window with window manager
Determine how lines are wrapped in a TextView
.
data EntryIconPosition Source
Specifies the side of the entry at which an icon is placed.
data CrossingMode Source
How focus is crossing the widget.
data DragProtocol Source
Used in DragContext
to indicate the protocol according to which DND is done.
DragProtoNone | |
DragProtoMotif | |
DragProtoXdnd | |
DragProtoRootwin | |
DragProtoWin32Dropfiles | |
DragProtoOle2 | |
DragProtoLocal |
Bounded DragProtocol Source | |
Enum DragProtocol Source | Used in
|
Eq DragProtocol Source | |
Show DragProtocol Source |
data DragAction Source
Specify which events a widget will emit signals on.
Keyboard modifiers that are depressed when the user presses a key or a mouse button.
- This data type is used to build lists of modifers that were active during an event.
- The Apple key on Macintoshs is mapped to
Alt2
and theMeta
key (if available). - Since Gtk 2.10, there are also
Super
,Hyper
andMeta
modifiers which are simply generated fromAlt
..Compose
modifier keys, depending on the mapping used by the windowing system. Due to one key being mapped to e.g.Alt2
andMeta
, you shouldn't pattern match directly against a certain key but check whether a key is in the list using theelem
function, say.
data ModifierIntent Source
data NotifyType Source
Information on from what level of the widget hierarchy the mouse cursor came.
NotifyAncestor
- The window is entered from an ancestor or left towards an ancestor.
NotifyVirtual
- The pointer moves between an ancestor and an inferior of the window.
NotifyInferior
- The window is entered from an inferior or left towards an inferior.
NotifyNonlinear
- The window is entered from or left towards a window which is neither an ancestor nor an inferior.
NotifyNonlinearVirtual
- The pointer moves between two windows which are not ancestors of each other and the window is part of the ancestor chain between one of these windows and their least common ancestor.
NotifyUnknown
- The level change does not fit into any of the other categories or could not be determined.
data ScrollDirection Source
in which direction was scrolled?
data VisibilityState Source
visibility of a window
data WindowState Source
The state a DrawWindow
is in.
WindowStateWithdrawn | |
WindowStateIconified | |
WindowStateMaximized | |
WindowStateSticky | |
WindowStateFullscreen | |
WindowStateAbove | |
WindowStateBelow | |
WindowStateFocused | |
WindowStateTiled |
Bounded WindowState Source | |
Enum WindowState Source | These are hints for the window manager that indicate what type of function the window has. The window manager can use this when determining decoration and behaviour of the window. The hint must be set before mapping the window. See the extended window manager hints specification for more details about window types. |
Eq WindowState Source | |
Show WindowState Source | |
Flags WindowState Source |
data WindowEdge Source
Determines a window edge or corner.
data WindowTypeHint Source
Defines the reference point of a window and the meaning of coordinates
passed to windowMove
. See
windowMove
and the "implementation notes"
section of the extended window manager hints specification for more details.
GravityNorthWest | |
GravityNorth | |
GravityNorthEast | |
GravityWest | |
GravityCenter | |
GravityEast | |
GravitySouthWest | |
GravitySouth | |
GravitySouthEast | |
GravityStatic |
Enum Gravity Source | Returned by
|
Eq Gravity Source | |
Show Gravity Source |
data GrabStatus Source
Enum GrabStatus Source | Specifies why a selection ownership was changed.
|
Eq GrabStatus Source | |
Show GrabStatus Source |