Portability | portable (depends on GHC) |
---|---|
Stability | provisional |
Maintainer | gtk2hs-users@lists.sourceforge.net |
Graphics.UI.Gtk.General.Enums
Description
General enumeration types.
- data AccelFlags
- = AccelVisible
- | AccelLocked
- | AccelMask
- data ArrowType
- = ArrowUp
- | ArrowDown
- | ArrowLeft
- | ArrowRight
- | ArrowNone
- data AttachOptions
- data MouseButton
- = LeftButton
- | MiddleButton
- | RightButton
- | OtherButton Int
- data ButtonBoxStyle
- data CalendarDisplayOptions
- data Click
- data CornerType
- data DeleteType
- data DestDefaults
- data DragResult
- data DirectionType
- = DirTabForward
- | DirTabBackward
- | DirUp
- | DirDown
- | DirLeft
- | DirRight
- data Justification
- data MatchType
- = MatchAll
- | MatchAllTail
- | MatchHead
- | MatchTail
- | MatchExact
- | MatchLast
- data MenuDirectionType
- data MetricType
- = Pixels
- | Inches
- | Centimeters
- data MovementStep
- data Orientation
- data Packing
- = PackRepel
- | PackGrow
- | PackNatural
- toPacking :: Bool -> Bool -> Packing
- fromPacking :: Packing -> (Bool, Bool)
- data PackType
- data PathPriorityType
- data PathType
- data PolicyType
- data PositionType
- data ProgressBarOrientation
- data ReliefStyle
- = ReliefNormal
- | ReliefHalf
- | ReliefNone
- data ResizeMode
- data ScrollType
- data ScrollStep
- data SelectionMode
- data ShadowType
- = ShadowNone
- | ShadowIn
- | ShadowOut
- | ShadowEtchedIn
- | ShadowEtchedOut
- data SortType
- data StateType
- data SubmenuDirection
- data SubmenuPlacement
- data SpinButtonUpdatePolicy
- data SpinType
- data TargetFlags
- data TextDirection
- = TextDirNone
- | TextDirLtr
- | TextDirRtl
- data TextSearchFlags
- data TextWindowType
- data ToolbarStyle
- data TreeViewColumnSizing
- data UpdateType
- data Visibility
- data WindowPosition
- data WindowType
- data WrapMode
- = WrapNone
- | WrapChar
- | WrapWord
- | WrapWordChar
- data EntryIconPosition
- data AnchorType
- = AnchorCenter
- | AnchorNorth
- | AnchorNorthWest
- | AnchorNorthEast
- | AnchorSouth
- | AnchorSouthWest
- | AnchorSouthEast
- | AnchorWest
- | AnchorEast
- | AnchorN
- | AnchorNw
- | AnchorNe
- | AnchorS
- | AnchorSw
- | AnchorSe
- | AnchorW
- | AnchorE
- data CapStyle
- = CapNotLast
- | CapButt
- | CapRound
- | CapProjecting
- data CrossingMode
- data Dither
- data DragProtocol
- data DragAction
- = ActionDefault
- | ActionCopy
- | ActionMove
- | ActionLink
- | ActionPrivate
- | ActionAsk
- data EventMask
- = ExposureMask
- | PointerMotionMask
- | PointerMotionHintMask
- | ButtonMotionMask
- | Button1MotionMask
- | Button2MotionMask
- | Button3MotionMask
- | ButtonPressMask
- | ButtonReleaseMask
- | KeyPressMask
- | KeyReleaseMask
- | EnterNotifyMask
- | LeaveNotifyMask
- | FocusChangeMask
- | StructureMask
- | PropertyChangeMask
- | VisibilityNotifyMask
- | ProximityInMask
- | ProximityOutMask
- | SubstructureMask
- | ScrollMask
- | AllEventsMask
- data Modifier
- data ExtensionMode
- data Fill
- = Solid
- | Tiled
- | Stippled
- | OpaqueStippled
- data Function
- data InputCondition
- data JoinStyle
- data LineStyle
- data NotifyType
- data ScrollDirection
- = ScrollUp
- | ScrollDown
- | ScrollLeft
- | ScrollRight
- data SubwindowMode
- 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 AttachOptions Source
Child widget attach options for table containers
data MouseButton Source
Constructors
LeftButton | |
MiddleButton | |
RightButton | |
OtherButton Int |
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.
data CornerType Source
Specifies in which corner a child widget should be placed
Constructors
CornerTopLeft | |
CornerBottomLeft | |
CornerTopRight | |
CornerBottomRight |
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 callGraphics.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 callGraphics.UI.Gtk.Gdk.Drag.dragGetData
on behalf of the widget. Whether or not the drop is successful, GTK+ will callGraphics.UI.Gtk.Gdk.Drag.dragFinish
. If the action was a move, then if the drag was successful, thenTrue
will be passed for the delete parameter toGraphics.UI.Gtk.Gdk.Drag.dragFinish
-
DestDefaultAll
: If set, specifies that all default actions should be taken.
data DragResult Source
data DirectionType Source
Editing direction
Constructors
DirTabForward | |
DirTabBackward | |
DirUp | |
DirDown | |
DirLeft | |
DirRight |
data Justification Source
Justification for label and maybe other widgets (text?)
Constructors
JustifyLeft | |
JustifyRight | |
JustifyCenter | |
JustifyFill |
Some kind of string search options
Constructors
MatchAll | |
MatchAllTail | |
MatchHead | |
MatchTail | |
MatchExact | |
MatchLast |
data MenuDirectionType Source
From where was a menu item entered?
Constructors
MenuDirParent | |
MenuDirChild | |
MenuDirNext | |
MenuDirPrev |
data MovementStep Source
Movement in text widget
Packing parameters of a widget
- The
Packing
parameter determines how the child behaves in the horizontal or vertical way in anGraphics.UI.Gtk.Layout.HBox
orGraphics.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 aGraphics.UI.Gtk.Layout.Box
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 aGraphics.UI.Gtk.Layout.VBox
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.
Constructors
PackRepel | |
PackGrow | |
PackNatural |
fromPacking :: Packing -> (Bool, Bool)Source
data PathPriorityType Source
Priorities
data PolicyType Source
Constructors
PolicyAlways | |
PolicyAutomatic | |
PolicyNever |
data PositionType Source
Position a scale's value is drawn relative to the trough
data ProgressBarOrientation Source
Is the ProgressBar horizontally or vertically directed?
data ResizeMode Source
Resize mode, for containers
-
ResizeParent
Pass resize request to the parent -
ResizeQueue
Queue resizes on this widget -
ResizeImmediate
Perform the resizes now
Constructors
ResizeParent | |
ResizeQueue | |
ResizeImmediate |
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.
Constructors
SelectionNone | |
SelectionSingle | |
SelectionBrowse | |
SelectionMultiple |
data ShadowType Source
Shadow types
Constructors
ShadowNone | |
ShadowIn | |
ShadowOut | |
ShadowEtchedIn | |
ShadowEtchedOut |
Constructors
SortAscending | |
SortDescending |
Widget states
Constructors
StateNormal | |
StateActive | |
StatePrelight | |
StateSelected | |
StateInsensitive |
data SpinButtonUpdatePolicy Source
Whether to clamp or ignore illegal values.
Constructors
UpdateAlways | |
UpdateIfValid |
Spin a SpinButton with the following method.
data TargetFlags Source
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 |
data TextDirection Source
Constructors
TextDirNone | |
TextDirLtr | |
TextDirRtl |
data TextSearchFlags Source
Specify the way the search function for
Graphics.UI.Gtk.Multiline.TextBuffer
works.
Constructors
TextSearchVisibleOnly | |
TextSearchTextOnly |
data TextWindowType Source
The window type for coordinate translation.
data ToolbarStyle Source
Where to place the toolbar?
Constructors
ToolbarIcons | |
ToolbarText | |
ToolbarBoth | |
ToolbarBothHoriz |
data TreeViewColumnSizing Source
Wether columns of a tree or list widget can be resized.
data UpdateType Source
Updating types for range widgets (determines when the
"connectToValueChanged"
signal is emitted by the widget)
Constructors
UpdateContinuous | |
UpdateDiscontinuous | |
UpdateDelayed |
data WindowPosition Source
Window position types
data WindowType Source
Interaction of a window with window manager
Constructors
WindowToplevel | |
WindowPopup |
Determine how lines are wrapped in a Graphics.UI.Gtk.Multiline.TextView
.
Constructors
WrapNone | |
WrapChar | |
WrapWord | |
WrapWordChar |
data EntryIconPosition Source
Specifies the side of the entry at which an icon is placed.
Constructors
EntryIconPrimary | |
EntryIconSecondary |
data AnchorType Source
Specify the how the ends of a line is drawn.
Constructors
CapNotLast | |
CapButt | |
CapRound | |
CapProjecting |
data CrossingMode Source
How focus is crossing the widget.
Specify how to dither colors onto the screen.
Constructors
RgbDitherNone | |
RgbDitherNormal | |
RgbDitherMax |
data DragProtocol Source
Used in Graphics.UI.Gtk.Gdk.Drag.DragContext
to indicate the protocol according to which DND is done.
data DragAction Source
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 |
Specify which events a widget will emit signals on.
Constructors
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 ExtensionMode Source
specify which input extension a widget desires
Determine how bitmap operations are carried out.
data InputCondition Source
Specify on what file condition a callback should be done.
Constructors
InputRead | |
InputWrite | |
InputException |
Determines if a line is solid or dashed.
Constructors
LineSolid | |
LineOnOffDash | |
LineDoubleDash |
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?
Constructors
ScrollUp | |
ScrollDown | |
ScrollLeft | |
ScrollRight |
data SubwindowMode Source
Constructors
ClipByChildren | |
IncludeInferiors |
data VisibilityState Source
data WindowState Source
The state a DrawWindow
is in.
data WindowEdge Source
Determines a window edge or corner.
data WindowTypeHint Source
Constructors
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.
data GrabStatus Source
data OwnerChange Source
Constructors
OwnerChangeNewOwner | |
OwnerChangeDestroy | |
OwnerChangeClose |