gtk-0.12.0: Binding to the Gtk+ graphical user interface library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net

Graphics.UI.Gtk.General.Enums

Description

General enumeration types.

Synopsis

Documentation

data AccelFlags

State of an accelerator

Instances

Bounded AccelFlags 
Enum AccelFlags

Arrow directions for the arrow widget

Eq AccelFlags 
Show AccelFlags 
Flags AccelFlags 

data ArrowType

Instances

Enum ArrowType 
Eq ArrowType 
Show ArrowType 

data AttachOptions

Child widget attach options for table containers

Constructors

Expand 
Shrink 
Fill 

Instances

Bounded AttachOptions 
Enum AttachOptions

Mouse buttons.

Eq AttachOptions 
Show AttachOptions 
Flags AttachOptions 

data ButtonBoxStyle

Dictate the style that a ButtonBox uses to align it contents

Instances

data Click

Type of mouse click

Instances

Enum Click 
Eq Click 
Show Click 

data CornerType

Specifies in which corner a child widget should be placed

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.

Instances

Bounded DestDefaults 
Enum DestDefaults

Gives an indication why a drag operation failed. The value can by obtained by connecting to the dragFailed signal.

Eq DestDefaults 
Show DestDefaults 
Flags DestDefaults 

data DirectionType

Editing direction

Instances

data Justification

Justification for label and maybe other widgets (text?)

Instances

data MatchType

Some kind of string search options

Instances

Enum MatchType 
Eq MatchType 
Show MatchType 

data MenuDirectionType

From where was a menu item entered?

data MetricType

Units of measure

Constructors

Pixels 
Inches 
Centimeters 

Instances

data Orientation

Orientation is good

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.

Instances

Enum Packing 
Eq Packing 
Show Packing 

toPacking :: Bool -> Bool -> Packing

fromPacking :: Packing -> (Bool, Bool)

data PackType

Packing of widgets at start or end in a box

Constructors

PackStart 
PackEnd 

Instances

Enum PackType 
Eq PackType 
Show PackType 

data PathPriorityType

Priorities

Instances

Enum PathPriorityType

Scrollbar policy types (for scrolled windows)

Eq PathPriorityType 
Show PathPriorityType 

data PathType

Widget identification path

Instances

Enum PathType 
Eq PathType 
Show PathType 

data PolicyType

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?

data ReliefStyle

I don't have a clue.

Instances

data ResizeMode

Resize mode, for containers

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.

Instances

data ShadowType

Shadow types

Instances

data SortType

Instances

Enum SortType 
Eq SortType 
Show SortType 

data StateType

Widget states

Instances

Enum StateType 
Eq StateType 
Show StateType 

data SubmenuDirection

Submenu direction policies

data SubmenuPlacement

Submenu placement policies

Constructors

TopBottom 
LeftRight 

data SpinButtonUpdatePolicy

Whether to clamp or ignore illegal values.

data SpinType

Spin a SpinButton with the following method.

Instances

Enum SpinType 
Eq SpinType 
Show SpinType 

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.

Instances

Bounded TargetFlags 
Enum TargetFlags

Is the text written from left to right or the exotic way?

Eq TargetFlags 
Show TargetFlags 
Flags TargetFlags 

data TextSearchFlags

Specify the way the search function for Graphics.UI.Gtk.Multiline.TextBuffer works.

data ToolbarStyle

Where to place the toolbar?

Instances

data TreeViewColumnSizing

Wether columns of a tree or list widget can be resized.

data UpdateType

Updating types for range widgets (determines when the "connectToValueChanged" signal is emitted by the widget)

Instances

data Visibility

Visibility

Instances

data WindowType

Interaction of a window with window manager

Instances

data WrapMode

Determine how lines are wrapped in a Graphics.UI.Gtk.Multiline.TextView.

Instances

Enum WrapMode 
Eq WrapMode 
Show WrapMode 

data EntryIconPosition

Specifies the side of the entry at which an icon is placed.

data CapStyle

Specify the how the ends of a line is drawn.

Instances

Enum CapStyle 
Eq CapStyle 
Show CapStyle 

data Dither

Specify how to dither colors onto the screen.

Instances

Enum Dither 
Eq Dither 
Show Dither 

data DragProtocol

Used in Graphics.UI.Gtk.Gdk.Drag.DragContext to indicate the protocol according to which DND is done.

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.

Instances

Bounded DragAction 
Enum DragAction 
Eq DragAction 
Show DragAction 
Flags DragAction 

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.

Instances

Bounded Modifier 
Enum Modifier 
Eq Modifier 
Show Modifier 
Flags Modifier 

data ExtensionMode

specify which input extension a widget desires

Instances

data Fill

How objects are filled.

Instances

Enum Fill 
Eq Fill 
Show Fill 

data Function

Determine how bitmap operations are carried out.

Instances

Enum Function 
Eq Function 
Show Function 

data InputCondition

Specify on what file condition a callback should be done.

Instances

Bounded InputCondition 
Enum InputCondition

Determines how adjacent line ends are drawn.

Eq InputCondition 
Flags InputCondition 

data JoinStyle

Constructors

JoinMiter 
JoinRound 
JoinBevel 

Instances

Enum JoinStyle 
Eq JoinStyle 
Show JoinStyle 

data LineStyle

Determines if a line is solid or dashed.

Instances

Enum LineStyle 
Eq LineStyle 
Show LineStyle 

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.

Instances

Enum NotifyType

Determine if child widget may be overdrawn.

Eq NotifyType 
Show NotifyType 

data ScrollDirection

in which direction was scrolled?

data SubwindowMode

Instances

Enum SubwindowMode

visibility of a window

Eq SubwindowMode 
Show SubwindowMode 

data WindowState

The state a DrawWindow is in.

Instances

Bounded WindowState 
Enum WindowState

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 
Show WindowState 
Flags WindowState 

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.

Instances

Enum Gravity

Returned by pointerGrab and keyboardGrab to indicate success or the reason for the failure of the grab attempt.

GrabSuccess
the resource was successfully grabbed.
GrabAlreadyGrabbed
the resource is actively grabbed by another client.
GrabInvalidTime
the resource was grabbed more recently than the specified time.
GrabNotViewable
the grab window or the confine_to window are not viewable.
GrabFrozen
the resource is frozen by an active grab of another client.
Eq Gravity 
Show Gravity 

data GrabStatus

Instances

Enum GrabStatus

Specifies why a selection ownership was changed.

OwnerChangeNewOwner
some other application claimed the ownership
OwnerChangeDestroy
the window was destroyed
OwnerChangeClose
the client was closed
Eq GrabStatus 
Show GrabStatus