| gtk-0.11.0: Binding to the Gtk+ graphical user interface library. | Contents | Index |
|
Graphics.UI.Gtk.General.Enums | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
Description |
General enumeration types.
|
|
Synopsis |
|
|
|
Documentation |
|
data AccelFlags |
State of an accelerator
| Constructors | AccelVisible | | AccelLocked | | AccelMask | |
| Instances | |
|
|
data ArrowType |
Constructors | ArrowUp | | ArrowDown | | ArrowLeft | | ArrowRight | | ArrowNone | |
| Instances | |
|
|
data AttachOptions |
Child widget attach options for table containers
| Constructors | | Instances | |
|
|
data MouseButton |
Constructors | LeftButton | | MiddleButton | | RightButton | | OtherButton Int | |
| Instances | |
|
|
data ButtonBoxStyle |
Dictate the style that a ButtonBox uses to align it contents
| Constructors | ButtonboxDefaultStyle | | ButtonboxSpread | | ButtonboxEdge | | ButtonboxStart | | ButtonboxEnd | | ButtonboxCenter | |
| Instances | |
|
|
data CalendarDisplayOptions |
Specify which items of a calendar should be displayed.
| Constructors | CalendarShowHeading | | CalendarShowDayNames | | CalendarNoMonthChange | | CalendarShowWeekNumbers | | CalendarWeekStartMonday | | CalendarShowDetails | |
| Instances | |
|
|
data Click |
Type of mouse click
| Constructors | SingleClick | | DoubleClick | | TripleClick | | ReleaseClick | |
| Instances | |
|
|
data CornerType |
Specifies in which corner a child widget should be placed
| Constructors | CornerTopLeft | | CornerBottomLeft | | CornerTopRight | | CornerBottomRight | |
| Instances | |
|
|
data DeleteType |
Editing option
| Constructors | DeleteChars | | DeleteWordEnds | | DeleteWords | | DeleteDisplayLines | | DeleteDisplayLineEnds | | DeleteParagraphEnds | | DeleteParagraphs | | DeleteWhitespace | |
| Instances | |
|
|
data DestDefaults |
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 call
Graphics.UI.Gtk.Gdk.Drag.dragStatus 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 call Graphics.UI.Gtk.Gdk.Drag.dragGetData on
behalf of the widget. Whether or not the drop is successful, GTK+ will
call Graphics.UI.Gtk.Gdk.Drag.dragFinish. If the action was a move,
then if the drag was successful, then True will be passed for the
delete parameter to Graphics.UI.Gtk.Gdk.Drag.dragFinish
- DestDefaultAll: If set, specifies that all default actions should be
taken.
| Constructors | DestDefaultMotion | | DestDefaultHighlight | | DestDefaultDrop | | DestDefaultAll | |
| Instances | |
|
|
data DragResult |
Constructors | DragResultSuccess | | DragResultNoTarget | | DragResultUserCancelled | | DragResultTimeoutExpired | | DragResultGrabBroken | | DragResultError | |
| Instances | |
|
|
data DirectionType |
Editing direction
| Constructors | DirTabForward | | DirTabBackward | | DirUp | | DirDown | | DirLeft | | DirRight | |
| Instances | |
|
|
data Justification |
Justification for label and maybe other widgets (text?)
| Constructors | JustifyLeft | | JustifyRight | | JustifyCenter | | JustifyFill | |
| Instances | |
|
|
data MatchType |
Some kind of string search options
| Constructors | MatchAll | | MatchAllTail | | MatchHead | | MatchTail | | MatchExact | | MatchLast | |
| Instances | |
|
|
data MenuDirectionType |
From where was a menu item entered?
| Constructors | MenuDirParent | | MenuDirChild | | MenuDirNext | | MenuDirPrev | |
| Instances | |
|
|
data MetricType |
Units of measure
| Constructors | | Instances | |
|
|
data MovementStep |
Movement in text widget
| Constructors | MovementLogicalPositions | | MovementVisualPositions | | MovementWords | | MovementDisplayLines | | MovementDisplayLineEnds | | MovementParagraphs | | MovementParagraphEnds | | MovementPages | | MovementBufferEnds | | MovementHorizontalPages | |
| Instances | |
|
|
data Orientation |
Orientation is good
| Constructors | OrientationHorizontal | | OrientationVertical | |
| Instances | |
|
|
data Packing |
Packing parameters of a widget
- The Packing parameter determines how the child behaves in the horizontal
or vertical way in an Graphics.UI.Gtk.Layout.HBox or
Graphics.UI.Gtk.Layout.VBox, respectively. PackNatural
means the child is as big as it reqests. It will stay at the start of the
end of a Graphics.UI.Gtk.Layout.Box if there is more space available.
All children packed with PackRepel 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 a
Graphics.UI.Gtk.Layout.VBox with
the packing option PackNatural. The working area of a window
(e.g. the text area in an editor) should expand when the window is
resized. Here the packing option PackGrow is the right choice and
it is irrelevant whether the main area is inserted at the start or
the end of a box. Finally PackRepel 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.
| Constructors | PackRepel | | PackGrow | | PackNatural | |
| Instances | |
|
|
toPacking :: Bool -> Bool -> Packing |
|
fromPacking :: Packing -> (Bool, Bool) |
|
data PackType |
Packing of widgets at start or end in a box
| Constructors | | Instances | |
|
|
data PathPriorityType |
Priorities
| Constructors | PathPrioLowest | | PathPrioGtk | | PathPrioApplication | | PathPrioTheme | | PathPrioRc | | PathPrioHighest | |
| Instances | |
|
|
data PathType |
Widget identification path
| Constructors | PathWidget | | PathWidgetClass | | PathClass | |
| Instances | |
|
|
data PolicyType |
Constructors | PolicyAlways | | PolicyAutomatic | | PolicyNever | |
| Instances | |
|
|
data PositionType |
Position a scale's value is drawn relative to the
trough
| Constructors | PosLeft | | PosRight | | PosTop | | PosBottom | |
| Instances | |
|
|
data ProgressBarOrientation |
Is the ProgressBar horizontally or vertically
directed?
| Constructors | ProgressLeftToRight | | ProgressRightToLeft | | ProgressBottomToTop | | ProgressTopToBottom | |
| Instances | |
|
|
data ReliefStyle |
I don't have a clue.
| Constructors | ReliefNormal | | ReliefHalf | | ReliefNone | |
| Instances | |
|
|
data ResizeMode |
Resize mode, for containers
| Constructors | ResizeParent | | ResizeQueue | | ResizeImmediate | |
| Instances | |
|
|
data ScrollType |
Scrolling type
| Constructors | ScrollNone | | ScrollJump | | ScrollStepBackward | | ScrollStepForward | | ScrollPageBackward | | ScrollPageForward | | ScrollStepUp | | ScrollStepDown | | ScrollPageUp | | ScrollPageDown | | ScrollStepLeft | | ScrollStepRight | | ScrollPageLeft | | ScrollPageRight | | ScrollStart | | ScrollEnd | |
| Instances | |
|
|
data ScrollStep |
Scrolling step
| Constructors | ScrollSteps | | ScrollPages | | ScrollEnds | | ScrollHorizontalSteps | | ScrollHorizontalPages | | ScrollHorizontalEnds | |
| Instances | |
|
|
data SelectionMode |
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.
| Constructors | SelectionNone | | SelectionSingle | | SelectionBrowse | | SelectionMultiple | |
| Instances | |
|
|
data ShadowType |
Shadow types
| Constructors | ShadowNone | | ShadowIn | | ShadowOut | | ShadowEtchedIn | | ShadowEtchedOut | |
| Instances | |
|
|
data SortType |
Constructors | SortAscending | | SortDescending | |
| Instances | |
|
|
data StateType |
Widget states
| Constructors | StateNormal | | StateActive | | StatePrelight | | StateSelected | | StateInsensitive | |
| Instances | |
|
|
data SubmenuDirection |
Submenu direction policies
| Constructors | DirectionLeft | | DirectionRight | |
| Instances | |
|
|
data SubmenuPlacement |
Submenu placement policies
| Constructors | | Instances | |
|
|
data SpinButtonUpdatePolicy |
Whether to clamp or ignore illegal values.
| Constructors | UpdateAlways | | UpdateIfValid | |
| Instances | |
|
|
data SpinType |
Spin a SpinButton with the following method.
| Constructors | SpinStepForward | | SpinStepBackward | | SpinPageForward | | SpinPageBackward | | SpinHome | | SpinEnd | | SpinUserDefined | |
| Instances | |
|
|
data TargetFlags |
The TargetFlags enumeration is used to specify constraints on an entry
in a Graphics.UI.Gtk.Gdk.Selection.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.
| Constructors | TargetSameApp | | TargetSameWidget | | TargetOtherApp | | TargetOtherWidget | |
| Instances | |
|
|
data TextDirection |
Constructors | TextDirNone | | TextDirLtr | | TextDirRtl | |
| Instances | |
|
|
data TextSearchFlags |
Specify the way the search function for
Graphics.UI.Gtk.Multiline.TextBuffer works.
| Constructors | TextSearchVisibleOnly | | TextSearchTextOnly | |
| Instances | |
|
|
data TextWindowType |
The window type for coordinate translation.
| Constructors | TextWindowPrivate | | TextWindowWidget | | TextWindowText | | TextWindowLeft | | TextWindowRight | | TextWindowTop | | TextWindowBottom | |
| Instances | |
|
|
data ToolbarStyle |
Where to place the toolbar?
| Constructors | ToolbarIcons | | ToolbarText | | ToolbarBoth | | ToolbarBothHoriz | |
| Instances | |
|
|
data TreeViewColumnSizing |
Wether columns of a tree or list widget can be resized.
| Constructors | TreeViewColumnGrowOnly | | TreeViewColumnAutosize | | TreeViewColumnFixed | |
| Instances | |
|
|
data UpdateType |
Updating types for range widgets (determines when the
"connectToValueChanged" signal is emitted by the widget)
| Constructors | UpdateContinuous | | UpdateDiscontinuous | | UpdateDelayed | |
| Instances | |
|
|
data Visibility |
Visibility
| Constructors | VisibilityNone | | VisibilityPartial | | VisibilityFull | |
| Instances | |
|
|
data WindowPosition |
Window position types
| Constructors | WinPosNone | | WinPosCenter | | WinPosMouse | | WinPosCenterAlways | | WinPosCenterOnParent | |
| Instances | |
|
|
data WindowType |
Interaction of a window with window manager
| Constructors | WindowToplevel | | WindowPopup | |
| Instances | |
|
|
data WrapMode |
Determine how lines are wrapped in a Graphics.UI.Gtk.Multiline.TextView.
| Constructors | WrapNone | | WrapChar | | WrapWord | | WrapWordChar | |
| Instances | |
|
|
data CapStyle |
Specify the how the ends of a line is drawn.
| Constructors | CapNotLast | | CapButt | | CapRound | | CapProjecting | |
| Instances | |
|
|
data CrossingMode |
How focus is crossing the widget.
| Constructors | CrossingNormal | | CrossingGrab | | CrossingUngrab | | CrossingGtkGrab | | CrossingGtkUngrab | | CrossingStateChanged | |
| Instances | |
|
|
data Dither |
Specify how to dither colors onto the screen.
| Constructors | RgbDitherNone | | RgbDitherNormal | | RgbDitherMax | |
| Instances | |
|
|
data DragProtocol |
Used in Graphics.UI.Gtk.Gdk.Drag.DragContext to indicate the protocol according to which DND is done.
| Constructors | DragProtoMotif | | DragProtoXdnd | | DragProtoRootwin | | DragProtoNone | | DragProtoWin32Dropfiles | | DragProtoOle2 | | DragProtoLocal | |
| Instances | |
|
|
data DragAction |
Used in Graphics.UI.Gtk.Genearl.Drag.DragContext to indicate what the
destination should do with the dropped data.
- ActionDefault: Initialisation value, should not be used.
- ActionCopy: Copy the data.
- ActionMove: Move the data, i.e. first copy it, then delete it from the source.
- ActionLink: Add a link to the data. Note that this is only useful if source and
destination agree on what it means.
- ActionPrivate: Special action which tells the source that the destination will do
something that the source doesn't understand.
- ActionAsk: Ask the user what to do with the data.
| Constructors | ActionDefault | | ActionCopy | | ActionMove | | ActionLink | | ActionPrivate | | ActionAsk | |
| Instances | |
|
|
data EventMask |
Specify which events a widget will emit signals on.
| Constructors | ExposureMask | | PointerMotionMask | | PointerMotionHintMask | | ButtonMotionMask | | Button1MotionMask | | Button2MotionMask | | Button3MotionMask | | ButtonPressMask | | ButtonReleaseMask | | KeyPressMask | | KeyReleaseMask | | EnterNotifyMask | | LeaveNotifyMask | | FocusChangeMask | | StructureMask | | PropertyChangeMask | | VisibilityNotifyMask | | ProximityInMask | | ProximityOutMask | | SubstructureMask | | ScrollMask | | AllEventsMask | |
| Instances | |
|
|
data Modifier |
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 the Meta
key (if available).
- Since Gtk 2.10, there are also Super, Hyper and Meta modifiers
which are simply generated from Alt .. Compose modifier keys,
depending on the mapping used by the windowing system. Due to one
key being mapped to e.g. Alt2 and Meta, you shouldn't pattern
match directly against a certain key but check whether a key is
in the list using the elem function, say.
| Constructors | Shift | | Lock | | Control | | Alt | | Alt2 | | Alt3 | | Alt4 | | Alt5 | | Button1 | | Button2 | | Button3 | | Button4 | | Button5 | | Super | | Hyper | | Meta | | Release | | ModifierMask | |
| Instances | |
|
|
data ExtensionMode |
specify which input extension a widget desires
| Constructors | ExtensionEventsNone | | ExtensionEventsAll | | ExtensionEventsCursor | |
| Instances | |
|
|
data Fill |
How objects are filled.
| Constructors | Solid | | Tiled | | Stippled | | OpaqueStippled | |
| Instances | |
|
|
data Function |
Determine how bitmap operations are carried out.
| Constructors | Copy | | Invert | | Xor | | Clear | | And | | AndReverse | | AndInvert | | Noop | | Or | | Equiv | | OrReverse | | CopyInvert | | OrInvert | | Nand | | Nor | | Set | |
| Instances | |
|
|
data InputCondition |
Specify on what file condition a callback should be
done.
| Constructors | InputRead | | InputWrite | | InputException | |
| Instances | |
|
|
data JoinStyle |
Constructors | JoinMiter | | JoinRound | | JoinBevel | |
| Instances | |
|
|
data LineStyle |
Determines if a line is solid or dashed.
| Constructors | LineSolid | | LineOnOffDash | | LineDoubleDash | |
| Instances | |
|
|
data NotifyType |
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.
| Constructors | NotifyAncestor | | NotifyVirtual | | NotifyInferior | | NotifyNonlinear | | NotifyNonlinearVirtual | | NotifyUnknown | |
| Instances | |
|
|
data ScrollDirection |
in which direction was scrolled?
| Constructors | ScrollUp | | ScrollDown | | ScrollLeft | | ScrollRight | |
| Instances | |
|
|
data SubwindowMode |
Constructors | ClipByChildren | | IncludeInferiors | |
| Instances | |
|
|
data VisibilityState |
Constructors | VisibilityUnobscured | | VisibilityPartialObscured | | VisibilityFullyObscured | |
| Instances | |
|
|
data WindowState |
The state a DrawWindow is in.
| Constructors | WindowStateWithdrawn | | WindowStateIconified | | WindowStateMaximized | | WindowStateSticky | | WindowStateFullscreen | | WindowStateAbove | | WindowStateBelow | |
| Instances | |
|
|
data WindowEdge |
Determines a window edge or corner.
| Constructors | WindowEdgeNorthWest | | WindowEdgeNorth | | WindowEdgeNorthEast | | WindowEdgeWest | | WindowEdgeEast | | WindowEdgeSouthWest | | WindowEdgeSouth | | WindowEdgeSouthEast | |
| Instances | |
|
|
data WindowTypeHint |
Constructors | WindowTypeHintNormal | | WindowTypeHintDialog | | WindowTypeHintMenu | | WindowTypeHintToolbar | | WindowTypeHintSplashscreen | | WindowTypeHintUtility | | WindowTypeHintDock | | WindowTypeHintDesktop | | WindowTypeHintDropdownMenu | | WindowTypeHintPopupMenu | | WindowTypeHintTooltip | | WindowTypeHintNotification | | WindowTypeHintCombo | | WindowTypeHintDnd | |
| Instances | |
|
|
data Gravity |
Defines the reference point of a window and the meaning of coordinates
passed to Graphics.UI.Gtk.Windows.Window.windowMove. See
Graphics.UI.Gtk.Windows.Window.windowMove and the implementation notes
section of the extended window manager hints specification for more details.
| Constructors | GravityNorthWest | | GravityNorth | | GravityNorthEast | | GravityWest | | GravityCenter | | GravityEast | | GravitySouthWest | | GravitySouth | | GravitySouthEast | | GravityStatic | |
| Instances | |
|
|
data GrabStatus |
Constructors | GrabSuccess | | GrabAlreadyGrabbed | | GrabInvalidTime | | GrabNotViewable | | GrabFrozen | |
| Instances | |
|
|
data OwnerChange |
Constructors | OwnerChangeNewOwner | | OwnerChangeDestroy | | OwnerChangeClose | |
| Instances | |
|
|
Produced by Haddock version 2.4.2 |