-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Binding to the Gtk+ 3 graphical user interface library
--   
--   This is the core library of the Gtk2Hs suite of libraries for Haskell
--   based on Gtk+. Gtk+ is an extensive and mature multi-platform toolkit
--   for creating graphical user interfaces.
@package gtk3
@version 0.15.10

-- | A KeyVal is a numeric value identifying a keyboard key. The
--   defined values can be found at <http: The names of the keys are the
--   names of the macros without the prefix.
module Graphics.UI.Gtk.Gdk.Keys

-- | Key values are the codes which are sent whenever a key is pressed or
--   released.
type KeyVal = Word32
type KeyCode = Word16

-- | Converts a key value into a symbolic name.
keyName :: KeyVal -> DefaultGlibString

-- | Converts a key name to a key value.
keyFromName :: DefaultGlibString -> KeyVal

-- | Convert from a Gdk key symbol to the corresponding Unicode character.
keyToChar :: KeyVal -> Maybe Char
keyvalName :: KeyVal -> IO DefaultGlibString
keyvalFromName :: DefaultGlibString -> IO KeyVal
keyvalToChar :: KeyVal -> IO (Maybe Char)

-- | Obtains the upper- and lower-case versions of the keyval symbol.
--   Examples of keyvals are GDK_a, Enter, F1, etc.
keyvalConvertCase :: KeyVal -> (KeyVal, KeyVal)

-- | Converts a key value to upper case, if applicable.
keyvalToUpper :: KeyVal -> KeyVal

-- | Converts a key value to lower case, if applicable.
keyvalToLower :: KeyVal -> KeyVal

-- | Returns True if the given key value is in upper case.
keyvalIsUpper :: KeyVal -> Bool

-- | Returns True if the given key value is in upper case.
keyvalIsLower :: KeyVal -> Bool

-- | General enumeration types.
module Graphics.UI.Gtk.General.Enums

-- | State of an accelerator
data AccelFlags
AccelVisible :: AccelFlags
AccelLocked :: AccelFlags
AccelMask :: AccelFlags

-- | State of an accelerator
data Align
AlignFill :: Align
AlignStart :: Align
AlignEnd :: Align
AlignCenter :: Align
AlignBaseline :: Align

-- | Arrow directions for the arrow widget
data ArrowType
ArrowUp :: ArrowType
ArrowDown :: ArrowType
ArrowLeft :: ArrowType
ArrowRight :: ArrowType
ArrowNone :: ArrowType

-- | Child widget attach options for table containers
data AttachOptions
Expand :: AttachOptions
Shrink :: AttachOptions
Fill :: AttachOptions

-- | 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 vertical 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
--   available space.
data BaselinePosition
BaselinePositionTop :: BaselinePosition
BaselinePositionCenter :: BaselinePosition
BaselinePositionBottom :: BaselinePosition

-- | Mouse buttons.
data MouseButton
LeftButton :: MouseButton
MiddleButton :: MouseButton
RightButton :: MouseButton
OtherButton :: Int -> MouseButton

-- | Dictate the style that a ButtonBox uses to align it contents
data ButtonBoxStyle
ButtonboxSpread :: ButtonBoxStyle
ButtonboxEdge :: ButtonBoxStyle
ButtonboxStart :: ButtonBoxStyle
ButtonboxEnd :: ButtonBoxStyle
ButtonboxCenter :: ButtonBoxStyle
ButtonboxExpand :: ButtonBoxStyle

-- | Specify which items of a calendar should be displayed.
data CalendarDisplayOptions
CalendarShowHeading :: CalendarDisplayOptions
CalendarShowDayNames :: CalendarDisplayOptions
CalendarNoMonthChange :: CalendarDisplayOptions
CalendarShowWeekNumbers :: CalendarDisplayOptions
CalendarShowDetails :: CalendarDisplayOptions

-- | Type of mouse click
data Click
SingleClick :: Click
DoubleClick :: Click
TripleClick :: Click
ReleaseClick :: Click

-- | Specifies in which corner a child widget should be placed
data CornerType
CornerTopLeft :: CornerType
CornerBottomLeft :: CornerType
CornerTopRight :: CornerType
CornerBottomRight :: CornerType

-- | Editing option
data DeleteType
DeleteChars :: DeleteType
DeleteWordEnds :: DeleteType
DeleteWords :: DeleteType
DeleteDisplayLines :: DeleteType
DeleteDisplayLineEnds :: DeleteType
DeleteParagraphEnds :: DeleteType
DeleteParagraphs :: DeleteType
DeleteWhitespace :: DeleteType

-- | 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 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 dragGetData
--   on behalf of the widget. Whether or not the drop is successful, GTK+
--   will call dragFinish. If the action was a move, then if the
--   drag was successful, then True will be passed for the delete
--   parameter to dragFinish
--   
- DestDefaultAll: If set, specifies that all default actions
--   should be taken.
--   
data DestDefaults
DestDefaultMotion :: DestDefaults
DestDefaultHighlight :: DestDefaults
DestDefaultDrop :: DestDefaults
DestDefaultAll :: DestDefaults
data DragResult
DragResultSuccess :: DragResult
DragResultNoTarget :: DragResult
DragResultUserCancelled :: DragResult
DragResultTimeoutExpired :: DragResult
DragResultGrabBroken :: DragResult
DragResultError :: DragResult

-- | Editing direction
data DirectionType
DirTabForward :: DirectionType
DirTabBackward :: DirectionType
DirUp :: DirectionType
DirDown :: DirectionType
DirLeft :: DirectionType
DirRight :: DirectionType

-- | Justification for label and maybe other widgets (text?)
data Justification
JustifyLeft :: Justification
JustifyRight :: Justification
JustifyCenter :: Justification
JustifyFill :: Justification
data LevelBarMode
LevelBarModeContinuous :: LevelBarMode
LevelBarModeDiscrete :: LevelBarMode

-- | From where was a menu item entered?
data MenuDirectionType
MenuDirParent :: MenuDirectionType
MenuDirChild :: MenuDirectionType
MenuDirNext :: MenuDirectionType
MenuDirPrev :: MenuDirectionType

-- | Movement in text widget
data MovementStep
MovementLogicalPositions :: MovementStep
MovementVisualPositions :: MovementStep
MovementWords :: MovementStep
MovementDisplayLines :: MovementStep
MovementDisplayLineEnds :: MovementStep
MovementParagraphs :: MovementStep
MovementParagraphEnds :: MovementStep
MovementPages :: MovementStep
MovementBufferEnds :: MovementStep
MovementHorizontalPages :: MovementStep

-- | Orientation is good
data Orientation
OrientationHorizontal :: Orientation
OrientationVertical :: Orientation

-- | Packing parameters of a widget
--   
--   
--   
- The Packing parameter determines how the child behaves in
--   the horizontal or vertical way in an HBox or VBox,
--   respectively. PackNatural means the child is as big as it
--   requests. It will stay at the start or end of a 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 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.
--   
data Packing
PackRepel :: Packing
PackGrow :: Packing
PackNatural :: Packing
toPacking :: Bool -> Bool -> Packing
fromPacking :: Packing -> (Bool, Bool)

-- | Packing of widgets at start or end in a box
data PackType
PackStart :: PackType
PackEnd :: PackType

-- | Priorities
data PathPriorityType
PathPrioLowest :: PathPriorityType
PathPrioGtk :: PathPriorityType
PathPrioApplication :: PathPriorityType
PathPrioTheme :: PathPriorityType
PathPrioRc :: PathPriorityType
PathPrioHighest :: PathPriorityType

-- | Widget identification path
data PathType
PathWidget :: PathType
PathWidgetClass :: PathType
PathClass :: PathType
data PolicyType
PolicyAlways :: PolicyType
PolicyAutomatic :: PolicyType
PolicyNever :: PolicyType
PolicyExternal :: PolicyType

-- | Position a scale's value is drawn relative to the through
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType

-- | I don't have a clue.
data ReliefStyle
ReliefNormal :: ReliefStyle
ReliefHalf :: ReliefStyle
ReliefNone :: ReliefStyle

-- | Resize mode, for containers
--   
--   
--   
- ResizeParent Pass resize request to the parent
--   
- ResizeQueue Queue resizes on this widget
--   
- ResizeImmediate Perform the resizes now
--   
data ResizeMode
ResizeParent :: ResizeMode
ResizeQueue :: ResizeMode
ResizeImmediate :: ResizeMode

-- | Scrolling type
data ScrollType
ScrollNone :: ScrollType
ScrollJump :: ScrollType
ScrollStepBackward :: ScrollType
ScrollStepForward :: ScrollType
ScrollPageBackward :: ScrollType
ScrollPageForward :: ScrollType
ScrollStepUp :: ScrollType
ScrollStepDown :: ScrollType
ScrollPageUp :: ScrollType
ScrollPageDown :: ScrollType
ScrollStepLeft :: ScrollType
ScrollStepRight :: ScrollType
ScrollPageLeft :: ScrollType
ScrollPageRight :: ScrollType
ScrollStart :: ScrollType
ScrollEnd :: ScrollType

-- | Scrolling step
data ScrollStep
ScrollSteps :: ScrollStep
ScrollPages :: ScrollStep
ScrollEnds :: ScrollStep
ScrollHorizontalSteps :: ScrollStep
ScrollHorizontalPages :: ScrollStep
ScrollHorizontalEnds :: ScrollStep

-- | 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 SelectionMode
SelectionNone :: SelectionMode
SelectionSingle :: SelectionMode
SelectionBrowse :: SelectionMode
SelectionMultiple :: SelectionMode

-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType

-- | 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.
data StateFlags
StateFlagNormal :: StateFlags
StateFlagActive :: StateFlags
StateFlagPrelight :: StateFlags
StateFlagSelected :: StateFlags
StateFlagInsensitive :: StateFlags
StateFlagInconsistent :: StateFlags
StateFlagFocused :: StateFlags
StateFlagBackdrop :: StateFlags
StateFlagDirLtr :: StateFlags
StateFlagDirRtl :: StateFlags
StateFlagLink :: StateFlags
StateFlagVisited :: StateFlags
StateFlagChecked :: StateFlags
StateFlagDropActive :: StateFlags
data SortType
SortAscending :: SortType
SortDescending :: SortType

-- | Widget states
data StateType
StateNormal :: StateType
StateActive :: StateType
StatePrelight :: StateType
StateSelected :: StateType
StateInsensitive :: StateType
StateInconsistent :: StateType
StateFocused :: StateType

-- | Whether to clamp or ignore illegal values.
data SpinButtonUpdatePolicy
UpdateAlways :: SpinButtonUpdatePolicy
UpdateIfValid :: SpinButtonUpdatePolicy

-- | Spin a SpinButton with the following method.
data SpinType
SpinStepForward :: SpinType
SpinStepBackward :: SpinType
SpinPageForward :: SpinType
SpinPageBackward :: SpinType
SpinHome :: SpinType
SpinEnd :: SpinType
SpinUserDefined :: SpinType

-- | 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.
--   
data TargetFlags
TargetSameApp :: TargetFlags
TargetSameWidget :: TargetFlags
TargetOtherApp :: TargetFlags
TargetOtherWidget :: TargetFlags
data TextDirection
TextDirNone :: TextDirection
TextDirLtr :: TextDirection
TextDirRtl :: TextDirection

-- | Specify the way the search function for TextBuffer works.
data TextSearchFlags
TextSearchVisibleOnly :: TextSearchFlags
TextSearchTextOnly :: TextSearchFlags
TextSearchCaseInsensitive :: TextSearchFlags
data TextWindowType
TextWindowPrivate :: TextWindowType
TextWindowWidget :: TextWindowType
TextWindowText :: TextWindowType
TextWindowLeft :: TextWindowType
TextWindowRight :: TextWindowType
TextWindowTop :: TextWindowType
TextWindowBottom :: TextWindowType

-- | Where to place the toolbar?
data ToolbarStyle
ToolbarIcons :: ToolbarStyle
ToolbarText :: ToolbarStyle
ToolbarBoth :: ToolbarStyle
ToolbarBothHoriz :: ToolbarStyle

-- | Whether columns of a tree or list widget can be resized.
data TreeViewColumnSizing
TreeViewColumnGrowOnly :: TreeViewColumnSizing
TreeViewColumnAutosize :: TreeViewColumnSizing
TreeViewColumnFixed :: TreeViewColumnSizing

-- | Window position types
data WindowPosition
WinPosNone :: WindowPosition
WinPosCenter :: WindowPosition
WinPosMouse :: WindowPosition
WinPosCenterAlways :: WindowPosition
WinPosCenterOnParent :: WindowPosition

-- | Interaction of a window with window manager
data WindowType
WindowToplevel :: WindowType
WindowPopup :: WindowType

-- | Determine how lines are wrapped in a TextView.
data WrapMode
WrapNone :: WrapMode
WrapChar :: WrapMode
WrapWord :: WrapMode
WrapWordChar :: WrapMode

-- | Specifies the side of the entry at which an icon is placed.
data EntryIconPosition
EntryIconPrimary :: EntryIconPosition
EntryIconSecondary :: EntryIconPosition
data StackTransitionType
StackTransitionTypeNone :: StackTransitionType
StackTransitionTypeCrossfade :: StackTransitionType
StackTransitionTypeSlideRight :: StackTransitionType
StackTransitionTypeSlideLeft :: StackTransitionType
StackTransitionTypeSlideUp :: StackTransitionType
StackTransitionTypeSlideDown :: StackTransitionType
StackTransitionTypeSlideLeftRight :: StackTransitionType
StackTransitionTypeSlideUpDown :: StackTransitionType
StackTransitionTypeOverUp :: StackTransitionType
StackTransitionTypeOverDown :: StackTransitionType
StackTransitionTypeOverLeft :: StackTransitionType
StackTransitionTypeOverRight :: StackTransitionType
StackTransitionTypeUnderUp :: StackTransitionType
StackTransitionTypeUnderDown :: StackTransitionType
StackTransitionTypeUnderLeft :: StackTransitionType
StackTransitionTypeUnderRight :: StackTransitionType
StackTransitionTypeOverUpDown :: StackTransitionType
StackTransitionTypeOverDownUp :: StackTransitionType
StackTransitionTypeOverLeftRight :: StackTransitionType
StackTransitionTypeOverRightLeft :: StackTransitionType

-- | Keyboard modifiers that are depressed when the user presses a key or a
--   mouse button.
--   
--   
--   
- This data type is used to build lists of modifiers 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.
--   
data Modifier
Shift :: Modifier
Lock :: Modifier
Control :: Modifier
Alt :: Modifier
Alt2 :: Modifier
Alt3 :: Modifier
Alt4 :: Modifier
Alt5 :: Modifier
Button1 :: Modifier
Button2 :: Modifier
Button3 :: Modifier
Button4 :: Modifier
Button5 :: Modifier
MODIFIER_RESERVED_13_MASK :: Modifier
MODIFIER_RESERVED_14_MASK :: Modifier
MODIFIER_RESERVED_15_MASK :: Modifier
MODIFIER_RESERVED_16_MASK :: Modifier
MODIFIER_RESERVED_17_MASK :: Modifier
MODIFIER_RESERVED_18_MASK :: Modifier
MODIFIER_RESERVED_19_MASK :: Modifier
MODIFIER_RESERVED_20_MASK :: Modifier
MODIFIER_RESERVED_21_MASK :: Modifier
MODIFIER_RESERVED_22_MASK :: Modifier
MODIFIER_RESERVED_23_MASK :: Modifier
MODIFIER_RESERVED_24_MASK :: Modifier
MODIFIER_RESERVED_25_MASK :: Modifier
Super :: Modifier
Hyper :: Modifier
Meta :: Modifier
MODIFIER_RESERVED_29_MASK :: Modifier
Release :: Modifier
ModifierMask :: Modifier

-- | Specify which events a widget will emit signals on.
data EventMask
ExposureMask :: EventMask
PointerMotionMask :: EventMask
PointerMotionHintMask :: EventMask
ButtonMotionMask :: EventMask
Button1MotionMask :: EventMask
Button2MotionMask :: EventMask
Button3MotionMask :: EventMask
ButtonPressMask :: EventMask
ButtonReleaseMask :: EventMask
KeyPressMask :: EventMask
KeyReleaseMask :: EventMask
EnterNotifyMask :: EventMask
LeaveNotifyMask :: EventMask
FocusChangeMask :: EventMask
StructureMask :: EventMask
PropertyChangeMask :: EventMask
VisibilityNotifyMask :: EventMask
ProximityInMask :: EventMask
ProximityOutMask :: EventMask
SubstructureMask :: EventMask
ScrollMask :: EventMask
TouchMask :: EventMask
SmoothScrollMask :: EventMask
TouchpadGestureMask :: EventMask
TabletPadMask :: EventMask
AllEventsMask :: EventMask
data ModifierIntent
ModifierIntentPrimaryAccelerator :: ModifierIntent
ModifierIntentContextMenu :: ModifierIntent
ModifierIntentExtendSelection :: ModifierIntent
ModifierIntentModifySelection :: ModifierIntent
ModifierIntentNoTextInput :: ModifierIntent
ModifierIntentShiftGroup :: ModifierIntent
ModifierIntentDefaultModMask :: ModifierIntent

-- | The state a DrawWindow is in.
data WindowState
WindowStateWithdrawn :: WindowState
WindowStateIconified :: WindowState
WindowStateMaximized :: WindowState
WindowStateSticky :: WindowState
WindowStateFullscreen :: WindowState
WindowStateAbove :: WindowState
WindowStateBelow :: WindowState
WindowStateFocused :: WindowState
WindowStateTiled :: WindowState
WindowStateTopTiled :: WindowState
WindowStateTopResizable :: WindowState
WindowStateRightTiled :: WindowState
WindowStateRightResizable :: WindowState
WindowStateBottomTiled :: WindowState
WindowStateBottomResizable :: WindowState
WindowStateLeftTiled :: WindowState
WindowStateLeftResizable :: WindowState

-- | in which direction was scrolled?
data ScrollDirection
ScrollUp :: ScrollDirection
ScrollDown :: ScrollDirection
ScrollLeft :: ScrollDirection
ScrollRight :: ScrollDirection
ScrollSmooth :: ScrollDirection

-- | visibility of a window
data VisibilityState
VisibilityUnobscured :: VisibilityState
VisibilityPartialObscured :: VisibilityState
VisibilityFullyObscured :: VisibilityState

-- | How focus is crossing the widget.
data CrossingMode
CrossingNormal :: CrossingMode
CrossingGrab :: CrossingMode
CrossingUngrab :: CrossingMode
CrossingGtkGrab :: CrossingMode
CrossingGtkUngrab :: CrossingMode
CrossingStateChanged :: CrossingMode
CrossingTouchBegin :: CrossingMode
CrossingTouchEnd :: CrossingMode
CrossingDeviceSwitch :: CrossingMode

-- | 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 NotifyType
NotifyAncestor :: NotifyType
NotifyVirtual :: NotifyType
NotifyInferior :: NotifyType
NotifyNonlinear :: NotifyType
NotifyNonlinearVirtual :: NotifyType
NotifyUnknown :: NotifyType
data OwnerChange
OwnerChangeNewOwner :: OwnerChange
OwnerChangeDestroy :: OwnerChange
OwnerChangeClose :: OwnerChange
data GrabStatus
GrabSuccess :: GrabStatus
GrabAlreadyGrabbed :: GrabStatus
GrabInvalidTime :: GrabStatus
GrabNotViewable :: GrabStatus
GrabFrozen :: GrabStatus
GrabFailed :: GrabStatus
data DragAction
ActionDefault :: DragAction
ActionCopy :: DragAction
ActionMove :: DragAction
ActionLink :: DragAction
ActionPrivate :: DragAction
ActionAsk :: DragAction

-- | Used in DragContext to indicate the protocol according to which
--   DND is done.
data DragProtocol
DragProtoNone :: DragProtocol
DragProtoMotif :: DragProtocol
DragProtoXdnd :: DragProtocol
DragProtoRootwin :: DragProtocol
DragProtoWin32Dropfiles :: DragProtocol
DragProtoOle2 :: DragProtocol
DragProtoLocal :: DragProtocol
DragProtoWayland :: DragProtocol

-- | Determines a window edge or corner.
data WindowEdge
WindowEdgeNorthWest :: WindowEdge
WindowEdgeNorth :: WindowEdge
WindowEdgeNorthEast :: WindowEdge
WindowEdgeWest :: WindowEdge
WindowEdgeEast :: WindowEdge
WindowEdgeSouthWest :: WindowEdge
WindowEdgeSouth :: WindowEdge
WindowEdgeSouthEast :: WindowEdge

-- | 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.
data WindowTypeHint
WindowTypeHintNormal :: WindowTypeHint
WindowTypeHintDialog :: WindowTypeHint
WindowTypeHintMenu :: WindowTypeHint
WindowTypeHintToolbar :: WindowTypeHint
WindowTypeHintSplashscreen :: WindowTypeHint
WindowTypeHintUtility :: WindowTypeHint
WindowTypeHintDock :: WindowTypeHint
WindowTypeHintDesktop :: WindowTypeHint
WindowTypeHintDropdownMenu :: WindowTypeHint
WindowTypeHintPopupMenu :: WindowTypeHint
WindowTypeHintTooltip :: WindowTypeHint
WindowTypeHintNotification :: WindowTypeHint
WindowTypeHintCombo :: WindowTypeHint
WindowTypeHintDnd :: WindowTypeHint
data Gravity
GravityNorthWest :: Gravity
GravityNorth :: Gravity
GravityNorthEast :: Gravity
GravityWest :: Gravity
GravityCenter :: Gravity
GravityEast :: Gravity
GravitySouthWest :: Gravity
GravitySouth :: Gravity
GravitySouthEast :: Gravity
GravityStatic :: Gravity
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.AccelFlags
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.Align
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.AttachOptions
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.DestDefaults
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.DragResult
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.StateFlags
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.TargetFlags
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.AccelFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.Align
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.ArrowType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.AttachOptions
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.BaselinePosition
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.ButtonBoxStyle
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.Click
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.CornerType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.DeleteType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.DestDefaults
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.DirectionType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.DragResult
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.EntryIconPosition
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.Justification
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.LevelBarMode
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.MenuDirectionType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.MouseButton
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.MovementStep
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.Orientation
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.PackType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.Packing
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.PathPriorityType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.PathType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.PolicyType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.PositionType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.ReliefStyle
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.ResizeMode
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.ScrollStep
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.ScrollType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.SelectionMode
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.ShadowType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.SortType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.SpinButtonUpdatePolicy
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.SpinType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.StackTransitionType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.StateFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.StateType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.TargetFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.TextDirection
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.TextWindowType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.ToolbarStyle
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.TreeViewColumnSizing
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.WindowPosition
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.WindowType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.Enums.WrapMode
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.AccelFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Align
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ArrowType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.AttachOptions
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.BaselinePosition
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ButtonBoxStyle
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Click
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.CornerType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.DeleteType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.DestDefaults
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.DirectionType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.DragResult
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.EntryIconPosition
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Justification
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.LevelBarMode
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.MenuDirectionType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.MouseButton
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.MovementStep
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Orientation
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PackType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.Packing
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PathPriorityType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PathType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PolicyType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.PositionType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ReliefStyle
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ResizeMode
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ScrollStep
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ScrollType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.SelectionMode
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ShadowType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.SortType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.SpinButtonUpdatePolicy
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.SpinType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.StackTransitionType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.StateFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.StateType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TargetFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TextDirection
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TextWindowType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.ToolbarStyle
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.TreeViewColumnSizing
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.WindowPosition
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.WindowType
instance GHC.Classes.Eq Graphics.UI.Gtk.General.Enums.WrapMode
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.AccelFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.AttachOptions
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.DestDefaults
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.StateFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.TargetFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.AccelFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.Align
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.ArrowType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.AttachOptions
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.BaselinePosition
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.ButtonBoxStyle
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.CalendarDisplayOptions
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.Click
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.CornerType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.DeleteType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.DestDefaults
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.DirectionType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.DragResult
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.EntryIconPosition
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.Justification
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.LevelBarMode
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.MenuDirectionType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.MouseButton
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.MovementStep
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.Orientation
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.PackType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.Packing
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.PathPriorityType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.PathType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.PolicyType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.PositionType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.ReliefStyle
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.ResizeMode
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.ScrollStep
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.ScrollType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.SelectionMode
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.ShadowType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.SortType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.SpinButtonUpdatePolicy
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.SpinType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.StackTransitionType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.StateFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.StateType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.TargetFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.TextDirection
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.TextSearchFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.TextWindowType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.ToolbarStyle
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.TreeViewColumnSizing
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.WindowPosition
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.WindowType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Enums.WrapMode

-- | Support for named paper sizes
module Graphics.UI.Gtk.Printing.PaperSize
newtype PaperSize
PaperSize :: ForeignPtr PaperSize -> PaperSize
mkPaperSize :: Ptr PaperSize -> IO PaperSize
data Unit
UnitNone :: Unit
UnitPoints :: Unit
UnitInch :: Unit
UnitMm :: Unit

-- | Creates a new PaperSize object by parsing a PWG 5101.1-2002
--   paper name.
--   
--   If name is Nothing, the default paper size is returned, see
--   paperSizeGetDefault.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeNew :: GlibString string => Maybe string -> IO PaperSize

-- | Creates a new PaperSize object by using PPD information.
--   
--   If ppdName is not a recognized PPD paper name,
--   ppdDisplayName, width and height are used
--   to construct a custom PaperSize object.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeNewFromPpd :: GlibString string => string -> string -> Double -> Double -> IO PaperSize

-- | Creates a new PaperSize object with the given parameters.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeNewCustom :: GlibString string => string -> string -> Double -> Double -> Unit -> IO PaperSize

-- | Copies an existing PaperSize.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeCopy :: PaperSize -> IO PaperSize

-- | Compares two PaperSize objects.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeIsEqual :: PaperSize -> PaperSize -> IO Bool

-- | Gets the name of the PaperSize.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetName :: GlibString string => PaperSize -> IO string

-- | Gets the human-readable name of the PaperSize.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetDisplayName :: GlibString string => PaperSize -> IO string

-- | Gets the PPD name of the PaperSize, which may be
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetPpdName :: GlibString string => PaperSize -> IO (Maybe string)

-- | Gets the paper width of the PaperSize, in units of
--   unit.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetWidth :: PaperSize -> Unit -> IO Double

-- | Gets the paper height of the PaperSize, in units of
--   unit.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetHeight :: PaperSize -> Unit -> IO Double

-- | Returns True if size is not a standard paper size.
paperSizeIsCustom :: PaperSize -> IO Bool

-- | Changes the dimensions of a size to width x
--   height.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeSetSize :: PaperSize -> Double -> Double -> Unit -> IO ()

-- | Gets the default top margin for the PaperSize.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetDefaultTopMargin :: PaperSize -> Unit -> IO Double

-- | Gets the default bottom margin for the PaperSize.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetDefaultBottomMargin :: PaperSize -> Unit -> IO Double

-- | Gets the default left margin for the PaperSize.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetDefaultLeftMargin :: PaperSize -> Unit -> IO Double

-- | Gets the default right margin for the PaperSize.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetDefaultRightMargin :: PaperSize -> Unit -> IO Double

-- | Returns the name of the default paper size, which depends on the
--   current locale.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
paperSizeGetDefault :: GlibString string => IO string

-- | Creates a list of known paper sizes.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
paperSizeGetPaperSizes :: Bool -> IO [PaperSize]
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PaperSize.Unit
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PaperSize.Unit
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PaperSize.Unit
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PaperSize.Unit

module Graphics.UI.Gtk.Recent.RecentInfo
data RecentInfo

-- | Helper function for build RecentInfo
mkRecentInfo :: Ptr RecentInfo -> IO RecentInfo

-- | Checks whether the resource pointed by info still exists. At the
--   moment this check is done only on resources pointing to local files.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoExists :: RecentInfo -> IO Bool

-- | Gets the timestamp (seconds from system's Epoch) when the resource was
--   added to the recently used resources list.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetAdded :: RecentInfo -> IO Int

-- | Gets the number of days elapsed since the last update of the resource
--   pointed by info.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetAge :: RecentInfo -> IO Int

-- | Gets the data regarding the application that has registered the
--   resource pointed by info.
--   
--   If the command line contains any escape characters defined inside the
--   storage specification, they will be expanded.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetApplicationInfo :: GlibString string => RecentInfo -> string -> IO (Maybe ([string], Int, Int))

-- | Retrieves the list of applications that have registered this resource.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetApplications :: GlibString string => RecentInfo -> IO [string]

-- | Gets the (short) description of the resource.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetDescription :: GlibString string => RecentInfo -> IO string

-- | Gets the name of the resource. If none has been defined, the basename
--   of the resource is obtained.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetDisplayName :: GlibString string => RecentInfo -> IO string

-- | Returns all groups registered for the recently used item info.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetGroups :: GlibString string => RecentInfo -> IO [string]

-- | Retrieves the icon of size size associated to the resource MIME type.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetIcon :: RecentInfo -> Int -> IO (Maybe Pixbuf)

-- | Gets the MIME type of the resource.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetMimeType :: GlibString string => RecentInfo -> IO string

-- | Gets the timestamp (seconds from system's Epoch) when the resource was
--   last modified.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetModified :: RecentInfo -> IO Int

-- | Gets the value of the "private" flag. Resources in the recently used
--   list that have this flag set to True should only be displayed
--   by the applications that have registered them.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetPrivateHint :: RecentInfo -> IO Bool

-- | Computes a valid UTF-8 string that can be used as the name of the item
--   in a menu or list. For example, calling this function on an item that
--   refers to "file://foobar.txt" will yield "bar.txt".
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetShortName :: GlibString string => RecentInfo -> IO string

-- | Gets the URI of the resource.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetURI :: GlibString string => RecentInfo -> IO string

-- | Gets a displayable version of the resource's URI. If the resource is
--   local, it returns a local path; if the resource is not local, it
--   returns the UTF-8 encoded content of recentInfoGetUri.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetURIDisplay :: GlibString string => RecentInfo -> IO string

-- | Gets the timestamp (seconds from system's Epoch) when the resource was
--   last visited.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoGetVisited :: RecentInfo -> IO Int

-- | Checks whether an application registered this resource using
--   appName.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoHasApplication :: GlibString string => RecentInfo -> string -> IO Bool

-- | Checks whether groupName appears inside the groups registered
--   for the recently used item info.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoHasGroup :: GlibString string => RecentInfo -> string -> IO Bool

-- | Checks whether the resource is local or not by looking at the scheme
--   of its URI.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoIsLocal :: RecentInfo -> IO Bool

-- | Gets the name of the last application that have registered the
--   recently used resource represented by info.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoLastApplication :: GlibString string => RecentInfo -> IO string

-- | Checks whether two RecentInfo structures point to the same
--   resource.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentInfoMatch :: RecentInfo -> RecentInfo -> IO Bool

-- | Managing Recently Used Files
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
--   
--   TODO: GtkRecentData gtk_recent_manager_add_full
module Graphics.UI.Gtk.Recent.RecentManager
data RecentManager
class GObjectClass o => RecentManagerClass o
castToRecentManager :: GObjectClass obj => obj -> RecentManager
toRecentManager :: RecentManagerClass o => o -> RecentManager

-- | Creates a new recent manager object. Recent manager objects are used
--   to handle the list of recently used resources. A RecentManager
--   object monitors the recently used resources list, and emits the
--   "changed" signal each time something inside the list changes.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerNew :: IO RecentManager

-- | Gets a unique instance of RecentManager.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerGetDefault :: IO RecentManager

-- | Adds a new resource, pointed by uri, into the recently used
--   resources list.
--   
--   This function automatically retrieves some of the needed metadata and
--   setting other metadata to common default values; it then feeds the
--   data to recentManagerAddFull.
--   
--   See recentManagerAddFull if you want to explicitly define the
--   metadata for the resource pointed by uri.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerAddItem :: (RecentManagerClass self, GlibString string) => self -> string -> IO Bool

-- | Removes a resource pointed by uri from the recently used
--   resources list handled by a recent manager.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerRemoveItem :: (RecentManagerClass self, GlibString string) => self -> string -> IO Bool

-- | Searches for a URI inside the recently used resources list, and
--   returns a structure containing information about the resource like its
--   MIME type, or its display name.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerLookupItem :: (RecentManagerClass self, GlibString string) => self -> string -> IO RecentInfo

-- | Checks whether there is a recently used resource registered with
--   uri inside the recent manager.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerHasItem :: (RecentManagerClass self, GlibString string) => self -> string -> IO Bool

-- | Changes the location of a recently used resource from uri to
--   newUri.
--   
--   Please note that this function will not affect the resource pointed by
--   the URIs, but only the URI used in the recently used resources list.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerMoveItem :: (RecentManagerClass self, GlibString string) => self -> string -> string -> IO Bool

-- | Gets the list of recently used resources.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerGetItems :: RecentManagerClass self => self -> IO [RecentInfo]

-- | Purges every item from the recently used resources list.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerPurgeItems :: RecentManagerClass self => self -> IO Int

-- | The full path to the file to be used to store and read the recently
--   used resources list
--   
--   Default value: Nothing
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerFilename :: (RecentManagerClass self, GlibString string) => ReadAttr self string

-- | The maximum number of items to be returned by the
--   recentManagerGetItems function.
--   
--   Allowed values: >= GMaxulong
--   
--   Default value: -1
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerLimit :: RecentManagerClass self => Attr self Int

-- | The size of the recently used resources list.
--   
--   Allowed values: >= GMaxulong
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerSize :: RecentManagerClass self => ReadAttr self Int

-- | Emitted when the current recently used resources manager changes its
--   contents.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentManagerChanged :: RecentManagerClass self => Signal self (IO ())

-- | Stores print settings
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Printing.PrintSettings
data PrintSettings
class GObjectClass o => PrintSettingsClass o
castToPrintSettings :: GObjectClass obj => obj -> PrintSettings
toPrintSettings :: PrintSettingsClass o => o -> PrintSettings
data PageOrientation
PageOrientationPortrait :: PageOrientation
PageOrientationLandscape :: PageOrientation
PageOrientationReversePortrait :: PageOrientation
PageOrientationReverseLandscape :: PageOrientation

-- | Used to determine the layout of pages on a sheet when printing
--   multiple pages per sheet.
data NumberUpLayout
NumberUpLayoutLeftToRightTopToBottom :: NumberUpLayout
NumberUpLayoutLeftToRightBottomToTop :: NumberUpLayout
NumberUpLayoutRightToLeftTopToBottom :: NumberUpLayout
NumberUpLayoutRightToLeftBottomToTop :: NumberUpLayout
NumberUpLayoutTopToBottomLeftToRight :: NumberUpLayout
NumberUpLayoutTopToBottomRightToLeft :: NumberUpLayout
NumberUpLayoutBottomToTopLeftToRight :: NumberUpLayout
NumberUpLayoutBottomToTopRightToLeft :: NumberUpLayout
data PrintQuality
PrintQualityLow :: PrintQuality
PrintQualityNormal :: PrintQuality
PrintQualityHigh :: PrintQuality
PrintQualityDraft :: PrintQuality
data PrintDuplex
PrintDuplexSimplex :: PrintDuplex
PrintDuplexHorizontal :: PrintDuplex
PrintDuplexVertical :: PrintDuplex
data PrintPages
PrintPagesAll :: PrintPages
PrintPagesCurrent :: PrintPages
PrintPagesRanges :: PrintPages
PrintPagesSelection :: PrintPages
data PageSet
PageSetAll :: PageSet
PageSetEven :: PageSet
PageSetOdd :: PageSet

-- | Creates a new PrintSettings object.
printSettingsNew :: IO PrintSettings

-- | Reads the print settings from fileName. Returns a new
--   PrintSettings object with the restored settings.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
printSettingsNewFromFile :: GlibFilePath fp => fp -> IO PrintSettings

-- | Copies a PrintSettings object.
printSettingsCopy :: PrintSettingsClass self => self -> IO PrintSettings

-- | Returns True, if a value is associated with key.
printSettingsHasKey :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Bool

-- | Looks up the string value associated with key.
printSettingsGet :: (PrintSettingsClass self, GlibString string) => self -> string -> IO string

-- | Associates value with key.
printSettingsSet :: (PrintSettingsClass self, GlibString string) => self -> string -> string -> IO ()

-- | Removes any value associated with key
printSettingsUnset :: (PrintSettingsClass self, GlibString string) => self -> string -> IO ()

-- | Calls func for each key-value pair of settings.
printSettingsForeach :: PrintSettingsClass self => self -> (String -> IO ()) -> IO ()

-- | Returns the boolean represented by the value that is associated with
--   key.
--   
--   The string "true" represents True, any other string
--   False.
printSettingsGetBool :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Bool

-- | Sets key to a boolean value.
printSettingsSetBool :: (PrintSettingsClass self, GlibString string) => self -> string -> Bool -> IO ()

-- | Returns the double value associated with key, or 0.
printSettingsGetDouble :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Double

-- | Returns the floating point number represented by the value that is
--   associated with key, or defaultVal if the value does
--   not represent a floating point number.
--   
--   Floating point numbers are parsed with gAsciiStrtod.
printSettingsGetDoubleWithDefault :: (PrintSettingsClass self, GlibString string) => self -> string -> Double -> IO Double

-- | Sets key to a double value.
printSettingsSetDouble :: (PrintSettingsClass self, GlibString string) => self -> string -> Double -> IO ()

-- | Returns the value associated with key, interpreted as a
--   length. The returned value is converted to units.
printSettingsGetLength :: (PrintSettingsClass self, GlibString string) => self -> string -> Unit -> IO Double

-- | Associates a length in units of unit with key.
printSettingsSetLength :: (PrintSettingsClass self, GlibString string) => self -> string -> Double -> Unit -> IO ()

-- | Returns the integer value of key, or 0.
printSettingsGetInt :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Int

-- | Returns the value of key, interpreted as an integer, or the
--   default value.
printSettingsGetIntWithDefault :: (PrintSettingsClass self, GlibString string) => self -> string -> Int -> IO Int

-- | Sets key to an integer value.
printSettingsSetInt :: (PrintSettingsClass self, GlibString string) => self -> string -> Int -> IO ()

-- | Gets the value of PrintSettingsPaperWidth, converted to unit.
printSettingsGetPaperWidth :: PrintSettingsClass self => self -> Unit -> IO Double

-- | Sets the value of PrintSettingsPaperWidth.
printSettingsSetPaperWidth :: PrintSettingsClass self => self -> Double -> Unit -> IO ()

-- | Gets the value of PrintSettingsPaperHeight, converted to
--   unit.
printSettingsGetPaperHeight :: PrintSettingsClass self => self -> Unit -> IO Double

-- | Sets the value of PrintSettingsPaperHeight.
printSettingsSetPaperHeight :: PrintSettingsClass self => self -> Double -> Unit -> IO ()

-- | Sets the values of PrintSettingsResolution,
--   PrintSettingsResolutionX and
--   PrintSettingsResolutionY.
--   
--   
--   
- Available since Gtk+ version 2.16
--   
printSettingsSetResolutionXy :: PrintSettingsClass self => self -> Int -> Int -> IO ()

-- | Gets the value of "resolution-x".
--   
--   
--   
- Available since Gtk+ version 2.16
--   
printSettingsGetResolutionX :: PrintSettingsClass self => self -> IO Int

-- | Gets the value of "resolution-y".
--   
--   
--   
- Available since Gtk+ version 2.16
--   
printSettingsGetResolutionY :: PrintSettingsClass self => self -> IO Int

-- | Reads the print settings from fileName. See
--   printSettingsToFile.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
printSettingsLoadFile :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Bool

-- | This function saves the print settings from settings to
--   fileName.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
printSettingsToFile :: (PrintSettingsClass self, GlibString string) => self -> string -> IO Bool

-- | Obtain the value of PrintSettingsPrinter.
printSettingsPrinter :: (PrintSettingsClass self, GlibString string) => Attr self string

-- | The value of 'PrintSettingsOrientation', converted to a
--   PageOrientation.
printSettingsOrientation :: PrintSettingsClass self => Attr self PageOrientation

-- | The value of PrintSettingsPaperFormat, converted to a
--   PaperSize.
printSettingsPaperSize :: PrintSettingsClass self => Attr self PaperSize

-- | The value of 'PrintSettingsUseColor'.
printSettingsUseColor :: PrintSettingsClass self => Attr self Bool

-- | The value of 'PrintSettingsCollate'.
printSettingsCollate :: PrintSettingsClass self => Attr self Bool

-- | The value of 'PrintSettingsReverse'.
printSettingsReverse :: PrintSettingsClass self => Attr self Bool

-- | The value of 'PrintSettingsDuplex'.
printSettingsDuplex :: PrintSettingsClass self => Attr self PrintDuplex

-- | The value of 'PrintSettingsQuality'.
printSettingsQuality :: PrintSettingsClass self => Attr self PrintQuality

-- | The value of PrintSettingsNCopies.
printSettingsNCopies :: PrintSettingsClass self => Attr self Int

-- | The value of PrintSettingsNumberUp.
printSettingsNumberUp :: PrintSettingsClass self => Attr self Int

-- | The value of PrintSettingsResolution.
printSettingsResolution :: PrintSettingsClass self => Attr self Int

-- | The value of PrintSettingsScale.
printSettingsScale :: PrintSettingsClass self => Attr self Double

-- | The value of PrintSettingsPrintPages.
printSettingsPrintPages :: PrintSettingsClass self => Attr self PrintPages

-- | The value of PrintSettingsPageSet.
printSettingsPageSet :: PrintSettingsClass self => Attr self PageSet

-- | The value of PrintSettingsDefaultSource.
printSettingsDefaultSource :: (PrintSettingsClass self, GlibString string) => Attr self string

-- | The value of PrintSettingsMediaType.
printSettingsMediaType :: (PrintSettingsClass self, GlibString string) => Attr self string

-- | The value of PrintSettingsDither.
printSettingsDither :: (PrintSettingsClass self, GlibString string) => Attr self string

-- | The value of PrintSettingsFinishings.
printSettingsFinishings :: (PrintSettingsClass self, GlibString string) => Attr self string

-- | The value of PrintSettingsOutputBin.
printSettingsOutputBin :: (PrintSettingsClass self, GlibString string) => Attr self string

-- | The value of PrintSettingsNumberUpLayout.
printSettingsNumberUpLayout :: PrintSettingsClass self => Attr self NumberUpLayout

-- | The value of PrintSettingsPrinterLpi.
printSettingsPrinterLpi :: PrintSettingsClass self => Attr self Double
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.NumberUpLayout
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PageOrientation
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PageSet
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PrintDuplex
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PrintPages
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintSettings.PrintQuality
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.NumberUpLayout
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PageOrientation
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PageSet
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PrintDuplex
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PrintPages
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintSettings.PrintQuality
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.NumberUpLayout
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PageOrientation
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PageSet
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PrintDuplex
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PrintPages
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintSettings.PrintQuality
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.NumberUpLayout
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PageOrientation
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PageSet
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PrintDuplex
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PrintPages
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintSettings.PrintQuality

-- | High-level Printing API
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Printing.PrintOperation
data PrintOperation
class GObjectClass o => PrintOperationClass o
castToPrintOperation :: GObjectClass obj => obj -> PrintOperation
toPrintOperation :: PrintOperationClass o => o -> PrintOperation
data PrintOperationPreview
class GObjectClass o => PrintOperationPreviewClass o
castToPrintOperationPreview :: GObjectClass obj => obj -> PrintOperationPreview
toPrintOperationPreview :: PrintOperationPreviewClass o => o -> PrintOperationPreview

-- | The status gives a rough indication of the completion of a running
--   print operation.
data PrintStatus
PrintStatusInitial :: PrintStatus
PrintStatusPreparing :: PrintStatus
PrintStatusGeneratingData :: PrintStatus
PrintStatusSendingData :: PrintStatus
PrintStatusPending :: PrintStatus
PrintStatusPendingIssue :: PrintStatus
PrintStatusPrinting :: PrintStatus
PrintStatusFinished :: PrintStatus
PrintStatusFinishedAborted :: PrintStatus

-- | The action parameter to printOperationRun determines what
--   action the print operation should perform.
data PrintOperationAction
PrintOperationActionPrintDialog :: PrintOperationAction
PrintOperationActionPrint :: PrintOperationAction
PrintOperationActionPreview :: PrintOperationAction
PrintOperationActionExport :: PrintOperationAction

-- | A value of this type is returned by printOperationRun.
data PrintOperationResult
PrintOperationResultError :: PrintOperationResult
PrintOperationResultApply :: PrintOperationResult
PrintOperationResultCancel :: PrintOperationResult
PrintOperationResultInProgress :: PrintOperationResult

-- | Error codes that identify various errors that can occur while using
--   the GTK+ printing support.
data PrintError
PrintErrorGeneral :: PrintError
PrintErrorInternalError :: PrintError
PrintErrorNomem :: PrintError
PrintErrorInvalidFile :: PrintError

-- | Creates a new PrintOperation.
printOperationNew :: IO PrintOperation

-- | Sets whether the printOperationRun may return before the print
--   operation is completed. Note that some platforms may not allow
--   asynchronous operation.
printOperationSetAllowAsync :: PrintOperationClass self => self -> Bool -> IO ()

-- | Call this when the result of a print operation is
--   PrintOperationResultError, either as returned by
--   printOperationRun, or in the done signal handler. The
--   returned GError will contain more details on what went wrong.
printOperationGetError :: PrintOperationClass self => self -> IO ()

-- | Sets the name of the print job. The name is used to identify the job
--   (e.g. in monitoring applications like eggcups).
--   
--   If you don't set a job name, Gtk+ picks a default one by numbering
--   successive print jobs.
printOperationSetJobName :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()

-- | Sets the number of pages in the document.
--   
--   This must be set to a positive number before the rendering
--   starts. It may be set in a beginPrint signal handler.
--   
--   Note that the page numbers passed to the requestPageSetup and
--   drawPage signals are 0-based, i.e. if the user chooses to
--   print all pages, the last 'draw-page' signal will be for page
--   nPages - 1.
printOperationSetNPages :: PrintOperationClass self => self -> Int -> IO ()

-- | Returns the number of pages that will be printed.
--   
--   Note that this value is set during print preparation phase
--   (PrintStatusPreparing), so this function should never be called
--   before the data generation phase (PrintStatusGeneratingData).
--   You can connect to the statusChanged signal and call
--   printOperationGetNPagesToPrint when print status is
--   PrintStatusGeneratingData. This is typically used to track the
--   progress of print operation.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
printOperationGetNPagesToPrint :: PrintOperationClass self => self -> IO Int

-- | Sets the current page.
--   
--   If this is called before printOperationRun, the user will be
--   able to select to print only the current page.
--   
--   Note that this only makes sense for pre-paginated documents.
printOperationSetCurrentPage :: PrintOperationClass self => self -> Int -> IO ()

-- | If fullPage is True, the transformation for the
--   cairo context obtained from PrintContext puts the origin at the
--   top left corner of the page (which may not be the top left corner of
--   the sheet, depending on page orientation and the number of pages per
--   sheet). Otherwise, the origin is at the top left corner of the
--   imageable area (i.e. inside the margins).
printOperationSetUseFullPage :: PrintOperationClass self => self -> Bool -> IO ()

-- | Sets up the transformation for the cairo context obtained from
--   PrintContext in such a way that distances are measured in units
--   of unit.
printOperationSetUnit :: PrintOperationClass self => self -> Unit -> IO ()

-- | Sets up the PrintOperation to generate a file instead of
--   showing the print dialog. The intended use of this function is for
--   implementing "Export to PDF" actions. Currently, PDF is the only
--   supported format.
--   
--   "Print to PDF" support is independent of this and is done by letting
--   the user pick the "Print to PDF" item from the list of printers in the
--   print dialog.
printOperationSetExportFilename :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()

-- | If showProgress is True, the print operation will
--   show a progress dialog during the print operation.
printOperationSetShowProgress :: PrintOperationClass self => self -> Bool -> IO ()

-- | If track_status is True, the print operation will try to
--   continue report on the status of the print job in the printer queues
--   and printer. This can allow your application to show things like "out
--   of paper" issues, and when the print job actually reaches the printer.
--   
--   This function is often implemented using some form of polling, so it
--   should not be enabled unless needed.
printOperationSetTrackPrintStatus :: PrintOperationClass self => self -> Bool -> IO ()

-- | Sets the label for the tab holding custom widgets.
printOperationSetCustomTabLabel :: (PrintOperationClass self, GlibString string) => self -> string -> IO ()

-- | Runs the print operation, by first letting the user modify print
--   settings in the print dialog, and then print the document.
--   
--   Normally that this function does not return until the rendering of all
--   pages is complete. You can connect to the statusChanged
--   signal on op to obtain some information about the progress of
--   the print operation. Furthermore, it may use a recursive mainloop to
--   show the print dialog.
--   
--   If you call printOperationSetAllowAsync or set the
--   allowAsync property the operation will run asynchronously if
--   this is supported on the platform. The done signal will be
--   emitted with the result of the operation when the it is done (i.e.
--   when the dialog is canceled, or when the print succeeds or fails).
printOperationRun :: (PrintOperationClass self, WindowClass parent) => self -> PrintOperationAction -> parent -> IO PrintOperationResult

-- | Cancels a running print operation. This function may be called from a
--   beginPrint, paginate or drawPage signal
--   handler to stop the currently running print operation.
printOperationCancel :: PrintOperationClass self => self -> IO ()

-- | Signalize that drawing of particular page is complete.
--   
--   It is called after completion of page drawing (e.g. drawing in another
--   thread). If printOperationSetDeferDrawing was called before,
--   then this function has to be called by application. In another case it
--   is called by the library itself.
--   
--   
--   
- Available since Gtk+ version 2.16
--   
printOperationDrawPageFinish :: PrintOperationClass self => self -> IO ()

-- | Sets up the PrintOperation to wait for calling of
--   printOperationDrawPageFinish from application. It can be used
--   for drawing page in another thread.
--   
--   This function must be called in the callback of "draw-page" signal.
--   
--   
--   
- Available since Gtk+ version 2.16
--   
printOperationSetDeferDrawing :: PrintOperationClass self => self -> IO ()

-- | Returns the status of the print operation. Also see
--   printOperationGetStatusString.
printOperationGetStatus :: PrintOperationClass self => self -> IO PrintStatus

-- | Returns a string representation of the status of the print operation.
--   The string is translated and suitable for displaying the print status
--   e.g. in a Statusbar.
--   
--   Use printOperationGetStatus to obtain a status value that is
--   suitable for programmatic use.
printOperationGetStatusString :: (PrintOperationClass self, GlibString string) => self -> IO string

-- | A convenience function to find out if the print operation is finished,
--   either successfully (PrintStatusFinished) or unsuccessfully
--   (PrintStatusFinishedAborted).
--   
--   Note: when you enable print status tracking the print operation can be
--   in a non-finished state even after done has been called, as the
--   operation status then tracks the print job status on the printer.
printOperationIsFinished :: PrintOperationClass self => self -> IO Bool

-- | Runs a page setup dialog, letting the user modify the values from
--   pageSetup. If the user cancels the dialog, the returned
--   PageSetup is identical to the passed in pageSetup,
--   otherwise it contains the modifications done in the dialog.
--   
--   Note that this function may use a recursive mainloop to show the page
--   setup dialog. See printRunPageSetupDialogAsync if this is a
--   problem.
printRunPageSetupDialog :: (WindowClass window, PageSetupClass pageSetup, PrintSettingsClass setting) => window -> pageSetup -> setting -> IO PageSetup

-- | Runs a page setup dialog, letting the user modify the values from
--   pageSetup.
--   
--   In contrast to printRunPageSetupDialog, this function returns
--   after showing the page setup dialog on platforms that support this,
--   and calls doneCb from a signal handler for the
--   response signal of the dialog.
printRunPageSetupDialogAsync :: (WindowClass window, PageSetupClass pageSetup, PrintSettingsClass setting) => window -> pageSetup -> setting -> (PageSetup -> IO ()) -> IO ()

-- | Ends a preview.
--   
--   This function must be called to finish a custom print preview.
printOperationPreviewEndPreview :: PrintOperationPreviewClass self => self -> IO ()

-- | Returns whether the given page is included in the set of pages that
--   have been selected for printing.
printOperationPreviewIsSelected :: PrintOperationPreviewClass self => self -> Int -> IO Bool

-- | Renders a page to the preview, using the print context that was passed
--   to the "preview" handler together with preview.
--   
--   A custom iprint preview should use this function in its
--   expose handler to render the currently selected page.
--   
--   Note that this function requires a suitable cairo context to be
--   associated with the print context.
printOperationPreviewRenderPage :: PrintOperationPreviewClass self => self -> Int -> IO ()

-- | The PageSetup used by default.
--   
--   This page setup will be used by printOperationRun, but it can
--   be overridden on a per-page basis by connecting to the
--   requestPageSetup signal.
--   
--   Since 2.10
printOperationDefaultPageSetup :: (PrintOperationClass self, PageSetupClass pageSetup) => ReadWriteAttr self PageSetup pageSetup

-- | The PrintSettings used for initializing the dialog.
--   
--   Setting this property is typically used to re-establish print settings
--   from a previous print operation, see printOperationRun.
--   
--   Since 2.10
printOperationPrintSettings :: (PrintOperationClass self, PrintSettingsClass printSettings) => ReadWriteAttr self PrintSettings printSettings

-- | A string used to identify the job (e.g. in monitoring applications
--   like eggcups).
--   
--   If you don't set a job name, GTK+ picks a default one by numbering
--   successive print jobs.
--   
--   Default value: ""
--   
--   Since 2.10
printOperationJobName :: (PrintOperationClass self, GlibString string) => Attr self string

-- | The number of pages in the document.
--   
--   This must be set to a positive number before the rendering starts. It
--   may be set in a beginPrint signal handler.
--   
--   Note that the page numbers passed to the requestPageSetup and
--   drawPage signals are 0-based, i.e. if the user chooses to
--   print all pages, the last drawPage signal will be for page
--   nPages - 1.
--   
--   Allowed values: >= GMaxulong
--   
--   Default value: -1
--   
--   Since 2.10
printOperationNPages :: PrintOperationClass self => Attr self Int

-- | The current page in the document.
--   
--   If this is set before printOperationRun, the user will be able
--   to select to print only the current page.
--   
--   Note that this only makes sense for pre-paginated documents.
--   
--   Allowed values: >= GMaxulong
--   
--   Default value: -1
--   
--   Since 2.10
printOperationCurrentPage :: PrintOperationClass self => Attr self Int

-- | If True, the transformation for the cairo context obtained from
--   PrintContext puts the origin at the top left corner of the page
--   (which may not be the top left corner of the sheet, depending on page
--   orientation and the number of pages per sheet). Otherwise, the origin
--   is at the top left corner of the imageable area (i.e. inside the
--   margins).
--   
--   Default value: False
--   
--   Since 2.10
printOperationUseFullPage :: PrintOperationClass self => Attr self Bool

-- | If True, the print operation will try to continue report on the
--   status of the print job in the printer queues and printer. This can
--   allow your application to show things like "out of paper" issues, and
--   when the print job actually reaches the printer. However, this is
--   often implemented using polling, and should not be enabled unless
--   needed.
--   
--   Default value: False
--   
--   Since 2.10
printOperationTrackPrintStatus :: PrintOperationClass self => Attr self Bool

-- | The transformation for the cairo context obtained from
--   PrintContext is set up in such a way that distances are
--   measured in units of unit.
--   
--   Default value: 'UnitPixel'
--   
--   Since 2.10
printOperationUnit :: PrintOperationClass self => Attr self Unit

-- | Determines whether to show a progress dialog during the print
--   operation.
--   
--   Default value: False
--   
--   Since 2.10
printOperationShowProgress :: PrintOperationClass self => Attr self Bool

-- | Determines whether the print operation may run asynchronously or not.
--   
--   Some systems don't support asynchronous printing, but those that do
--   will return 'PrintOperationResultInProgress' as the status,
--   and emit the "done" signal when the operation is actually done.
--   
--   The Windows port does not support asynchronous operation at all (this
--   is unlikely to change). On other platforms, all actions except for
--   'PrintOperationActionExport' support asynchronous operation.
--   
--   Default value: False
--   
--   Since 2.10
printOperationAllowAsync :: PrintOperationClass self => Attr self Bool

-- | The name of a file to generate instead of showing the print dialog.
--   Currently, PDF is the only supported format.
--   
--   The intended use of this property is for implementing "Export to PDF"
--   actions.
--   
--   "Print to PDF" support is independent of this and is done by letting
--   the user pick the "Print to PDF" item from the list of printers in the
--   print dialog.
--   
--   Default value: Nothing
--   
--   Since 2.10
printOperationExportFilename :: (PrintOperationClass self, GlibString string) => Attr self string

-- | The status of the print operation.
--   
--   Default value: 'PrintStatusInitial'
--   
--   Since 2.10
printOperationStatus :: PrintOperationClass self => ReadAttr self PrintStatus

-- | A string representation of the status of the print operation. The
--   string is translated and suitable for displaying the print status e.g.
--   in a Statusbar.
--   
--   See the printOperationStatus property for a status value that
--   is suitable for programmatic use.
--   
--   Default value: ""
--   
--   Since 2.10
printOperationStatusString :: (PrintOperationClass self, GlibString string) => ReadAttr self string

-- | Used as the label of the tab containing custom widgets. Note that this
--   property may be ignored on some platforms.
--   
--   If this is Nothing, GTK+ uses a default label.
--   
--   Default value: Nothing
--   
--   Since 2.10
printOperationCustomTabLabel :: (PrintOperationClass self, GlibString string) => Attr self string

-- | If True, the print operation will support print of selection.
--   This allows the print dialog to show a Selection button.
--   
--   Default value: False
--   
--   Since 2.18
printOperationSupportSelection :: PrintOperationClass self => Attr self Bool

-- | Determines whether there is a selection in your application. This can
--   allow your application to print the selection. This is typically used
--   to make a Selection button sensitive.
--   
--   Default value: False
--   
--   Since 2.18
printOperationHasSelection :: PrintOperationClass self => Attr self Bool

-- | If True, page size combo box and orientation combo box are
--   embedded into page setup page.
--   
--   Default value: False
--   
--   Since 2.18
printOperationEmbedPageSetup :: PrintOperationClass self => Attr self Bool

-- | The number of pages that will be printed.
--   
--   Note that this value is set during print preparation phase
--   ('PrintStatusPreparing'), so this value should never be get
--   before the data generation phase
--   ('PrintStatusGeneratingData'). You can connect to the
--   statusChanged signal and call
--   printOperationGetNPagesToPrint when print status is
--   'PrintStatusGeneratingData'. This is typically used to track
--   the progress of print operation.
--   
--   Allowed values: >= GMaxulong
--   
--   Default value: -1
--   
--   Since 2.18
printOperationNPagesToPrint :: PrintOperationClass self => ReadAttr self Int

-- | Emitted when the print operation run has finished doing everything
--   required for printing.
--   
--   result gives you information about what happened during the
--   run. If result is PrintOperationResultError then you
--   can call printOperationGetError for more information.
--   
--   If you enabled print status tracking then
--   printOperationIsFinished may still return False after
--   done was emitted.
printOptDone :: PrintOperationClass self => Signal self (PrintOperationResult -> IO ())

-- | Emitted after the user has finished changing print settings in the
--   dialog, before the actual rendering starts.
--   
--   A typical use for 'begin-print' is to use the parameters from the
--   PrintContext and paginate the document accordingly, and then
--   set the number of pages with printOperationSetNPages.
printOptBeginPrint :: PrintOperationClass self => Signal self (PrintContext -> IO ())

-- | Emitted after the beginPrint signal, but before the actual
--   rendering starts. It keeps getting emitted until a connected signal
--   handler returns True.
--   
--   The paginate signal is intended to be used for paginating a
--   document in small chunks, to avoid blocking the user interface for a
--   long time. The signal handler should update the number of pages using
--   printOperationSetNPages, and return True if the
--   document has been completely paginated.
--   
--   If you don't need to do pagination in chunks, you can simply do it all
--   in the 'begin-print handler', and set the number of pages from there.
printOptPaginate :: PrintOperationClass self => Signal self (PrintContext -> IO Bool)

-- | Emitted once for every page that is printed, to give the application a
--   chance to modify the page setup. Any changes done to setup
--   will be in force only for printing this page.
printOptRequestPageSetup :: PrintOperationClass self => Signal self (PrintContext -> Int -> PageSetup -> IO ())

-- | Emitted for every page that is printed. The signal handler must render
--   the pageNr's page onto the cairo context obtained from
--   context using printContextGetCairoContext.
--   
--   Use printOperationSetUseFullPage and
--   printOperationSetUnit before starting the print operation to
--   set up the transformation of the cairo context according to your
--   needs.
printOptDrawPage :: PrintOperationClass self => Signal self (PrintContext -> Int -> IO ())

-- | Emitted after all pages have been rendered. A handler for this signal
--   can clean up any resources that have been allocated in the
--   beginPrint handler.
printOptEndPrint :: PrintOperationClass self => Signal self (PrintContext -> IO ())

-- | Emitted at between the various phases of the print operation. See
--   PrintStatus for the phases that are being discriminated. Use
--   printOperationGetStatus to find out the current status.
printOptStatusChanged :: PrintOperationClass self => Signal self (IO ())

-- | Emitted when displaying the print dialog. If you return a widget in a
--   handler for this signal it will be added to a custom tab in the print
--   dialog. You typically return a container widget with multiple widgets
--   in it.
--   
--   The print dialog owns the returned widget, and its lifetime is not
--   controlled by the application. However, the widget is guaranteed to
--   stay around until the customWidgetApply signal is emitted on
--   the operation. Then you can read out any information you need from the
--   widgets.
printOptCreateCustomWidget :: PrintOperationClass self => Signal self (IO Widget)

-- | Emitted after change of selected printer. The actual page setup and
--   print settings are passed to the custom widget, which can actualize
--   itself according to this change.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
printOptUpdateCustomWidget :: PrintOperationClass self => Signal self (Widget -> PageSetup -> PrintSettings -> IO ())

-- | Emitted right before beginPrint if you added a custom widget
--   in the createCustomWidtet handler. When you get this signal
--   you should read the information from the custom widgets, as the
--   widgets are not guaraneed to be around at a later time.
printOptCustomWidgetApply :: PrintOperationClass self => Signal self (Widget -> IO ())

-- | Gets emitted when a preview is requested from the native dialog.
--   
--   The default handler for this signal uses an external viewer
--   application to preview.
--   
--   To implement a custom print preview, an application must return
--   True from its handler for this signal. In order to use the
--   provided context for the preview implementation, it must be
--   given a suitable cairo context with
--   printContextSetCairoContext.
--   
--   The custom preview implementation can use
--   printOperationPreviewIsSelected and
--   printOperationPreviewRenderPage to find pages which are
--   selected for print and render them. The preview must be finished by
--   calling printOperationPreviewEndPreview (typically in response
--   to the user clicking a close button).
printOptPreview :: PrintOperationClass self => Signal self (PrintOperationPreview -> PrintContext -> Window -> IO Bool)

-- | The ready signal gets emitted once per preview operation,
--   before the first page is rendered.
--   
--   A handler for this signal can be used for setup tasks.
printOptReady :: PrintOperationPreviewClass self => Signal self (PrintContext -> IO ())

-- | The gotPageSize signal is emitted once for each page that
--   gets rendered to the preview.
--   
--   A handler for this signal should update the context according to
--   pageSetup and set up a suitable cairo context, using
--   printContextSetCairoContext.
printOptGotPageSize :: PrintOperationPreviewClass self => Signal self (PrintContext -> PageSetup -> IO ())
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintOperation.PrintError
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationAction
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationResult
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Printing.PrintOperation.PrintStatus
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintOperation.PrintError
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationAction
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationResult
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Printing.PrintOperation.PrintStatus
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintOperation.PrintError
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationAction
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationResult
instance GHC.Classes.Eq Graphics.UI.Gtk.Printing.PrintOperation.PrintStatus
instance Graphics.UI.Gtk.Types.PrintOperationPreviewClass Graphics.UI.Gtk.Types.PrintOperation
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintOperation.PrintError
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationAction
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintOperation.PrintOperationResult
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Printing.PrintOperation.PrintStatus

-- | Encapsulates context for drawing pages
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Printing.PrintContext
data PrintContext
class GObjectClass o => PrintContextClass o
castToPrintContext :: GObjectClass obj => obj -> PrintContext
toPrintContext :: PrintContextClass o => o -> PrintContext

-- | Obtains the cairo context that is associated with the
--   PrintContext.
printContextGetCairoContext :: PrintContextClass self => self -> IO Cairo

-- | Sets a new cairo context on a print context.
--   
--   This function is intended to be used when implementing an internal
--   print preview, it is not needed for printing, since Gtk+ itself
--   creates a suitable cairo context in that case.
printContextSetCairoContext :: PrintContextClass self => self -> Cairo -> Double -> Double -> IO ()

-- | Obtains the PageSetup that determines the page dimensions of
--   the PrintContext.
printContextGetPageSetup :: PrintContextClass self => self -> IO PageSetup

-- | Obtains the width of the PrintContext, in pixels.
printContextGetWidth :: PrintContextClass self => self -> IO Double

-- | Obtains the height of the PrintContext, in pixels.
printContextGetHeight :: PrintContextClass self => self -> IO Double

-- | Obtains the horizontal resolution of the PrintContext, in dots
--   per inch.
printContextGetDpiX :: PrintContextClass self => self -> IO Double

-- | Obtains the vertical resolution of the PrintContext, in dots
--   per inch.
printContextGetDpiY :: PrintContextClass self => self -> IO Double

-- | Returns a FontMap that is suitable for use with the
--   PrintContext.
printContextGetPangoFontmap :: PrintContextClass self => self -> IO FontMap

-- | Creates a new Context that can be used with the
--   PrintContext.
printContextCreatePangoContext :: PrintContextClass self => self -> IO PangoContext

-- | Creates a new PangoLayout that is suitable for use with the
--   PrintContext.
printContextCreatePangoLayout :: PrintContextClass self => self -> IO PangoLayout
printContextGetHardMargins :: PrintContextClass self => self -> IO (Maybe (Double, Double, Double, Double))

-- | Stores page setup information
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Printing.PageSetup
data PageSetup
class GObjectClass o => PageSetupClass o
castToPageSetup :: GObjectClass obj => obj -> PageSetup
toPageSetup :: PageSetupClass o => o -> PageSetup

-- | Creates a new PageSetup.
pageSetupNew :: IO PageSetup

-- | Reads the page setup from the file fileName. Returns a new
--   PageSetup object with the restored page setup.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
pageSetupNewFromFile :: GlibString string => string -> IO PageSetup

-- | Copies a PageSetup.
pageSetupCopy :: PageSetupClass self => self -> IO PageSetup

-- | Gets the top margin in units of unit.
pageSetupGetTopMargin :: PageSetupClass self => self -> Unit -> IO Double

-- | Sets the top margin of the PageSetup.
pageSetupSetTopMargin :: PageSetupClass self => self -> Double -> Unit -> IO ()

-- | Gets the bottom margin in units of unit.
pageSetupGetBottomMargin :: PageSetupClass self => self -> Unit -> IO Double

-- | Sets the bottom margin of the PageSetup.
pageSetupSetBottomMargin :: PageSetupClass self => self -> Double -> Unit -> IO ()

-- | Gets the left margin in units of unit.
pageSetupGetLeftMargin :: PageSetupClass self => self -> Unit -> IO Double

-- | Sets the left margin of the PageSetup.
pageSetupSetLeftMargin :: PageSetupClass self => self -> Double -> Unit -> IO ()

-- | Gets the right margin in units of unit.
pageSetupGetRightMargin :: PageSetupClass self => self -> Unit -> IO Double

-- | Sets the right margin of the PageSetup.
pageSetupSetRightMargin :: PageSetupClass self => self -> Double -> Unit -> IO ()

-- | Sets the paper size of the PageSetup and modifies the margins
--   according to the new paper size.
pageSetupSetPaperSizeAndDefaultMargins :: PageSetupClass self => self -> PaperSize -> IO ()

-- | Returns the paper width in units of unit.
--   
--   Note that this function takes orientation, but not margins into
--   consideration. See pageSetupGetPageWidth.
pageSetupGetPaperWidth :: PageSetupClass self => self -> Unit -> IO Double

-- | Returns the paper height in units of unit.
--   
--   Note that this function takes orientation, but not margins into
--   consideration. See pageSetupGetPageHeight.
pageSetupGetPaperHeight :: PageSetupClass self => self -> Unit -> IO Double

-- | Returns the page width in units of unit.
--   
--   Note that this function takes orientation and margins into
--   consideration. See pageSetupGetPaperWidth.
pageSetupGetPageWidth :: PageSetupClass self => self -> Unit -> IO Double

-- | Returns the page height in units of unit.
--   
--   Note that this function takes orientation and margins into
--   consideration. See pageSetupGetPaperHeight.
pageSetupGetPageHeight :: PageSetupClass self => self -> Unit -> IO Double

-- | Reads the page setup from the file fileName. See
--   pageSetupToFile.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
pageSetupLoadFile :: (PageSetupClass self, GlibString string) => self -> string -> IO Bool

-- | This function saves the information from setup to
--   fileName.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
pageSetupToFile :: (PageSetupClass self, GlibString string) => self -> string -> IO Bool

-- | The page orientation of the PageSetup.
pageSetupOrientation :: PageSetupClass self => Attr self PageOrientation

-- | The paper size of the PageSetup.
pageSetupPaperSize :: PageSetupClass self => Attr self PaperSize

-- | Collection of tags that can be used together
module Graphics.UI.Gtk.Multiline.TextTagTable
data TextTagTable
class GObjectClass o => TextTagTableClass o
castToTextTagTable :: GObjectClass obj => obj -> TextTagTable
gTypeTextTagTable :: GType
toTextTagTable :: TextTagTableClass o => o -> TextTagTable

-- | Creates a new TextTagTable. The table contains no tags by
--   default.
textTagTableNew :: IO TextTagTable

-- | Add a tag to the table. The tag is assigned the highest priority in
--   the table.
--   
--   The tag must not be in a tag table already, and may not have the same
--   name as an already-added tag.
textTagTableAdd :: (TextTagTableClass self, TextTagClass tag) => self -> tag -> IO ()

-- | Remove a tag from the table.
textTagTableRemove :: (TextTagTableClass self, TextTagClass tag) => self -> tag -> IO ()

-- | Look up a named tag.
textTagTableLookup :: (TextTagTableClass self, GlibString string) => self -> string -> IO (Maybe TextTag)

-- | Maps over each tag in the table.
textTagTableForeach :: TextTagTableClass self => self -> (TextTag -> IO ()) -> IO ()

-- | Returns the size of the table (the number of tags).
textTagTableGetSize :: TextTagTableClass self => self -> IO Int

-- | A position in the buffer preserved across buffer modifications
module Graphics.UI.Gtk.Multiline.TextMark
data TextMark
class GObjectClass o => TextMarkClass o
castToTextMark :: GObjectClass obj => obj -> TextMark
gTypeTextMark :: GType
toTextMark :: TextMarkClass o => o -> TextMark

-- | The name of a mark.
type MarkName = DefaultGlibString

-- | Creates a text mark. Add it to a buffer using
--   textBufferAddMark. If name is Nothing, the
--   mark is anonymous; otherwise, the mark can be retrieved by this name
--   using textBufferGetMark. If a mark has left gravity, and text
--   is inserted at the mark's current location, the mark will be moved to
--   the left of the newly-inserted text. If the mark has right gravity
--   (leftGravity = False), the mark will end up on the
--   right of newly-inserted text. The standard left-to-right cursor is a
--   mark with right gravity (when you type, the cursor stays on the right
--   side of the text you're typing).
--   
--   
--   
- Available since Gtk+ version 2.12
--   
textMarkNew :: Maybe MarkName -> Bool -> IO TextMark

-- | Sets the visibility of mark; the insertion point is normally
--   visible, i.e. you can see it as a vertical bar. Also, the text widget
--   uses a visible mark to indicate where a drop will occur when
--   dragging-and-dropping text. Most other marks are not visible. Marks
--   are not visible by default.
textMarkSetVisible :: TextMarkClass self => self -> Bool -> IO ()

-- | Returns True if the mark is visible (i.e. a cursor is
--   displayed for it)
textMarkGetVisible :: TextMarkClass self => self -> IO Bool

-- | Returns True if the mark has been removed from its buffer
--   with textBufferDeleteMark. Marks can't be used once deleted.
textMarkGetDeleted :: TextMarkClass self => self -> IO Bool

-- | Returns the mark name; returns Nothing for anonymous marks.
textMarkGetName :: TextMarkClass self => self -> IO (Maybe MarkName)

-- | Gets the buffer this mark is located inside, or Nothing if
--   the mark is deleted.
textMarkGetBuffer :: TextMarkClass self => self -> IO (Maybe TextBuffer)

-- | Determines whether the mark has left gravity.
--   
--   The name is misleading as Arabic, Hebrew and some other languages have
--   the beginning of a line towards the right.
textMarkGetLeftGravity :: TextMarkClass self => self -> IO Bool

-- | Retrieves the name of a mark.
textMarkName :: TextMarkClass self => ReadAttr self (Maybe MarkName)

-- | The 'visible' property. See textMarkGetVisible and
--   textMarkSetVisible
textMarkVisible :: TextMarkClass self => Attr self Bool

-- | Determines whether the mark keeps to the left when text is inserted at
--   its position.
textMarkLeftGravity :: TextMarkClass self => ReadAttr self Bool

-- | A persistent index into a tree model.
module Graphics.UI.Gtk.ModelView.TreeRowReference

-- | Tree Row Reference : like a TreePath it points to a subtree or
--   node, but it is persistent. It identifies the same node (so long as it
--   exists) even when items are added, removed, or reordered.
data TreeRowReference

-- | Creates a row reference based on a path. This reference will keep
--   pointing to the node pointed to by the given path, so long as it
--   exists. Returns Nothing if there is no node at the given
--   path.
treeRowReferenceNew :: TreeModelClass self => self -> TreePath -> IO (Maybe TreeRowReference)

-- | Returns a path that the row reference currently points to.
--   
--   
--   
- The returned path may be the empty list if the reference was
--   invalid.
--   
treeRowReferenceGetPath :: TreeRowReference -> IO TreePath

-- | Returns True if the reference refers to a current valid path.
treeRowReferenceValid :: TreeRowReference -> IO Bool

-- | An object for rendering a cell in a list, icon or combo box widget.
module Graphics.UI.Gtk.ModelView.CellRenderer
data CellRenderer
class GObjectClass o => CellRendererClass o
castToCellRenderer :: GObjectClass obj => obj -> CellRenderer
gTypeCellRenderer :: GType
toCellRenderer :: CellRendererClass o => o -> CellRenderer
data CellRendererMode
CellRendererModeInert :: CellRendererMode
CellRendererModeActivatable :: CellRendererMode
CellRendererModeEditable :: CellRendererMode

-- | Informs the cell renderer that the editing is stopped. If
--   canceled is True, the cell renderer will emit the
--   editingCanceled signal.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
cellRendererStopEditing :: CellRendererClass self => self -> Bool -> IO ()

-- | Returns (width, height) denoting the size of the fixed size
--   of cell. If no fixed size is set, returns -1 for
--   that value.
cellRendererGetFixedSize :: CellRendererClass self => self -> IO (Int, Int)

-- | Sets the renderer size to be explicit, independent of the properties
--   set.
cellRendererSetFixedSize :: CellRendererClass self => self -> Int -> Int -> IO ()

-- | Editable mode of the CellRenderer.
--   
--   Default value: CellRendererModeInert
cellMode :: CellRendererClass self => Attr self CellRendererMode

-- | Display the cell.
--   
--   Default value: True
cellVisible :: CellRendererClass self => Attr self Bool

-- | Display the cell sensitive.
--   
--   Default value: True
cellSensitive :: CellRendererClass self => Attr self Bool

-- | The x-align.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
cellXAlign :: CellRendererClass self => Attr self Float

-- | The y-align.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
cellYAlign :: CellRendererClass self => Attr self Float

-- | The xpad.
--   
--   Default value: 0
cellXPad :: CellRendererClass self => Attr self Int

-- | The ypad.
--   
--   Default value: 0
cellYPad :: CellRendererClass self => Attr self Int

-- | The fixed width.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
cellWidth :: CellRendererClass self => Attr self Int

-- | The fixed height.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
cellHeight :: CellRendererClass self => Attr self Int

-- | Row has children.
--   
--   Default value: False
cellIsExpander :: CellRendererClass self => Attr self Bool

-- | Row is an expander row, and is expanded.
--   
--   Default value: False
cellIsExpanded :: CellRendererClass self => Attr self Bool

-- | Cell background color as a string.
--   
--   Default value: ""
cellBackground :: (CellRendererClass self, GlibString string) => WriteAttr self string

-- | Whether the cellBackground / cellBackgroundColor
--   attribute is set.
--   
--   You can use this to reset the attribute to its default.
--   
--   Default value: False
cellBackgroundSet :: CellRendererClass self => Attr self Bool

-- | This signal gets emitted when a cell starts to be edited. The intended
--   use of this signal is to do special setup on editable, e.g.
--   adding a EntryCompletion or setting up additional columns in a
--   ComboBox.
--   
--   
--   
- The widget that is passed to the handler contains the widget that
--   is used by the CellRenderer to interact with the user. The
--   widget must be casted to the appropriate widget. For instance, a
--   CellRendererText uses an Entry widget, while a
--   CellRendererCombo uses a ComboBox (if
--   cellComboHasEntry is False) or a ComboBoxEntry
--   (if cellComboHasEntry is True).
--   
- Available since Gtk+ version 2.6
--   
editingStarted :: CellRendererClass self => Signal self (Widget -> TreePath -> IO ())

-- | This signal gets emitted when the user cancels the process of editing
--   a cell. For example, an editable cell renderer could be written to
--   cancel editing when the user presses Escape.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
editingCanceled :: CellRendererClass self => Signal self (IO ())
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.ModelView.CellRenderer.CellRendererMode
instance GHC.Classes.Eq Graphics.UI.Gtk.ModelView.CellRenderer.CellRendererMode

-- | Grouping widgets so they request the same size
module Graphics.UI.Gtk.Misc.SizeGroup
data SizeGroup
class GObjectClass o => SizeGroupClass o
castToSizeGroup :: GObjectClass obj => obj -> SizeGroup
gTypeSizeGroup :: GType
toSizeGroup :: SizeGroupClass o => o -> SizeGroup

-- | Create a new SizeGroup.
sizeGroupNew :: SizeGroupMode -> IO SizeGroup
data SizeGroupMode
SizeGroupNone :: SizeGroupMode
SizeGroupHorizontal :: SizeGroupMode
SizeGroupVertical :: SizeGroupMode
SizeGroupBoth :: SizeGroupMode

-- | Sets the SizeGroupMode of the size group. The mode of the size
--   group determines whether the widgets in the size group should all have
--   the same horizontal requisition SizeGroupHorizontal all have
--   the same vertical requisition SizeGroupVertical, or should all
--   have the same requisition in both directions SizeGroupBoth.
sizeGroupSetMode :: SizeGroupClass self => self -> SizeGroupMode -> IO ()

-- | Gets the current mode of the size group. See sizeGroupSetMode.
sizeGroupGetMode :: SizeGroupClass self => self -> IO SizeGroupMode

-- | Adds a widget to a SizeGroup. In the future, the requisition of
--   the widget will be determined as the maximum of its requisition and
--   the requisition of the other widgets in the size group. Whether this
--   applies horizontally, vertically, or in both directions depends on the
--   mode of the size group. See sizeGroupSetMode.
sizeGroupAddWidget :: (SizeGroupClass self, WidgetClass widget) => self -> widget -> IO ()

-- | Removes a widget from a SizeGroup.
sizeGroupRemoveWidget :: (SizeGroupClass self, WidgetClass widget) => self -> widget -> IO ()

-- | Sets whether invisible widgets should be ignored when calculating the
--   size.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
sizeGroupSetIgnoreHidden :: SizeGroupClass self => self -> Bool -> IO ()

-- | Returns if invisible widgets are ignored when calculating the size.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
sizeGroupGetIgnoreHidden :: SizeGroupClass self => self -> IO Bool

-- | The directions in which the size group affects the requested sizes of
--   its component widgets.
--   
--   Default value: SizeGroupHorizontal
sizeGroupMode :: SizeGroupClass self => Attr self SizeGroupMode

-- | If True, hidden widgets are ignored when determining the size
--   of the group.
--   
--   Default value: False
sizeGroupIgnoreHidden :: SizeGroupClass self => Attr self Bool
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Misc.SizeGroup.SizeGroupMode

-- | An input method context supporting multiple, loadable input methods
module Graphics.UI.Gtk.Misc.IMMulticontext
data IMMulticontext
class IMContextClass o => IMMulticontextClass o
castToIMMulticontext :: GObjectClass obj => obj -> IMMulticontext
gTypeIMMulticontext :: GType
toIMMulticontext :: IMMulticontextClass o => o -> IMMulticontext

-- | Creates a new IMMulticontext.
imMulticontextNew :: IO IMContext

-- | Add menuitems for various available input methods to a menu; the
--   menuitems, when selected, will switch the input method for the context
--   and the global default input method.
imMulticontextAppendMenuitems :: (IMMulticontextClass self, MenuShellClass menushell) => self -> menushell -> IO ()

-- | An input method context supporting table-based input methods
module Graphics.UI.Gtk.Misc.IMContextSimple
data IMContextSimple
class IMContextClass o => IMContextSimpleClass o
castToIMContextSimple :: GObjectClass obj => obj -> IMContextSimple
toIMContextSimple :: IMContextSimpleClass o => o -> IMContextSimple

-- | Creates a new IMContextSimple.
imContextSimpleNew :: IO IMContextSimple

-- | Adds an additional table to search to the input context. Each row of
--   the table consists of maxSeqLen key symbols followed by two
--   Int interpreted as the high and low words of a gunicode value.
--   Tables are searched starting from the last added.
--   
--   The table must be sorted in dictionary order on the numeric value of
--   the key symbol fields. (Values beyond the length of the sequence
--   should be zero.)
imContextSimpleAddTable :: (IMContextSimpleClass self, GlibString string) => self -> Map string string -> Int -> Int -> IO ()

-- | A base class for menu objects
module Graphics.UI.Gtk.MenuComboToolbar.MenuShell
data MenuShell
class ContainerClass o => MenuShellClass o
castToMenuShell :: GObjectClass obj => obj -> MenuShell
gTypeMenuShell :: GType
toMenuShell :: MenuShellClass o => o -> MenuShell

-- | Adds a new MenuItem to the end of the menu shell's item list.
menuShellAppend :: (MenuShellClass self, MenuItemClass child) => self -> child -> IO ()

-- | Adds a new MenuItem to the beginning of the menu shell's item
--   list.
menuShellPrepend :: (MenuShellClass self, MenuItemClass child) => self -> child -> IO ()

-- | Adds a new MenuItem to the menu shell's item list at the
--   position indicated by position.
menuShellInsert :: (MenuShellClass self, MenuItemClass child) => self -> child -> Int -> IO ()

-- | Deactivates the menu shell. Typically this results in the menu shell
--   being erased from the screen.
menuShellDeactivate :: MenuShellClass self => self -> IO ()

-- | Activates the menu item within the menu shell. If the menu was
--   deactivated and forceDeactivate is set, the previously
--   deactivated menu is reactivated.
menuShellActivateItem :: (MenuShellClass self, MenuItemClass menuItem) => self -> menuItem -> Bool -> IO ()

-- | Selects the menu item from the menu shell.
menuShellSelectItem :: (MenuShellClass self, MenuItemClass menuItem) => self -> menuItem -> IO ()

-- | Deselects the currently selected item from the menu shell, if any.
menuShellDeselect :: MenuShellClass self => self -> IO ()

-- | Select the first visible or selectable child of the menu shell; don't
--   select tearoff items unless the only item is a tearoff item.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
menuShellSelectFirst :: MenuShellClass self => self -> Bool -> IO ()

-- | Cancels the selection within the menu shell.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
menuShellCancel :: MenuShellClass self => self -> IO ()

-- | If takeFocus is True (the default) the menu shell
--   will take the keyboard focus so that it will receive all keyboard
--   events which is needed to enable keyboard navigation in menus.
--   
--   Setting takeFocus to False is useful only for
--   special applications like virtual keyboard implementations which
--   should not take keyboard focus.
--   
--   The takeFocus state of a menu or menu bar is automatically
--   propagated to submenus whenever a submenu is popped up, so you don't
--   have to worry about recursively setting it for your entire menu
--   hierarchy. Only when programmatically picking a submenu and popping it
--   up manually, the takeFocus property of the submenu needs to
--   be set explicitly.
--   
--   Note that setting it to False has side-effects:
--   
--   If the focus is in some other app, it keeps the focus and keynav in
--   the menu doesn't work. Consequently, keynav on the menu will only work
--   if the focus is on some toplevel owned by the onscreen keyboard.
--   
--   To avoid confusing the user, menus with takeFocus set to
--   False should not display mnemonics or accelerators, since it
--   cannot be guaranteed that they will work.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
menuShellSetTakeFocus :: MenuShellClass self => self -> Bool -> IO ()

-- | Returns True if the menu shell will take the keyboard focus
--   on popup.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
menuShellGetTakeFocus :: MenuShellClass self => self -> IO Bool

-- | A boolean that determines whether the menu and its submenus grab the
--   keyboard focus. See menuShellSetTakeFocus and
--   menuShellGetTakeFocus.
--   
--   Default value: True
menuShellTakeFocus :: MenuShellClass self => Attr self Bool

-- | This signal is called if an item is activated. The boolean flag
--   hide is True whenever the menu will behidden after this
--   action.
onActivateCurrent :: MenuShellClass self => self -> (Bool -> IO ()) -> IO (ConnectId self)

-- | This signal is called if an item is activated. The boolean flag
--   hide is True whenever the menu will behidden after this
--   action.
afterActivateCurrent :: MenuShellClass self => self -> (Bool -> IO ()) -> IO (ConnectId self)

-- | This signal will be emitted when a selection is aborted and thus does
--   not lead to an activation. This is in contrast to the
--   selection done signal which is always emitted.
onCancel :: MenuShellClass self => self -> IO () -> IO (ConnectId self)

-- | This signal will be emitted when a selection is aborted and thus does
--   not lead to an activation. This is in contrast to the
--   selection done signal which is always emitted.
afterCancel :: MenuShellClass self => self -> IO () -> IO (ConnectId self)

-- | This signal is sent whenever the menu shell is deactivated (hidden).
onDeactivated :: MenuShellClass self => self -> IO () -> IO (ConnectId self)

-- | This signal is sent whenever the menu shell is deactivated (hidden).
afterDeactivated :: MenuShellClass self => self -> IO () -> IO (ConnectId self)

-- | From where was a menu item entered?
data MenuDirectionType
MenuDirParent :: MenuDirectionType
MenuDirChild :: MenuDirectionType
MenuDirNext :: MenuDirectionType
MenuDirPrev :: MenuDirectionType

-- | This signal is emitted for each move the cursor makes.
onMoveCurrent :: MenuShellClass self => self -> (MenuDirectionType -> IO ()) -> IO (ConnectId self)

-- | This signal is emitted for each move the cursor makes.
afterMoveCurrent :: MenuShellClass self => self -> (MenuDirectionType -> IO ()) -> IO (ConnectId self)

-- | This signal is emitted when the user finished using the menu. Note
--   that this signal is emitted even if no menu item was activated.
onSelectionDone :: MenuShellClass self => self -> IO () -> IO (ConnectId self)

-- | This signal is emitted when the user finished using the menu. Note
--   that this signal is emitted even if no menu item was activated.
afterSelectionDone :: MenuShellClass self => self -> IO () -> IO (ConnectId self)

-- | Interface to provide style information to StyleContext
module Graphics.UI.Gtk.General.StyleProvider
data StyleProvider
class GObjectClass o => StyleProviderClass o
castToStyleProvider :: GObjectClass obj => obj -> StyleProvider
gTypeStyleProvider :: GType
toStyleProvider :: StyleProviderClass o => o -> StyleProvider

-- | Rendering UI elements
module Graphics.UI.Gtk.General.StyleContext
data StyleContext
class GObjectClass o => StyleContextClass o
castToStyleContext :: GObjectClass obj => obj -> StyleContext
gTypeStyleContext :: GType
toStyleContext :: StyleContextClass o => o -> StyleContext

-- | Creates a standalone StyleContext, this style context won't
--   be attached to any widget, so you may want to call
--   styleContextSetPath yourself.
--   
--   Note : This function is only useful when using the theming layer
--   separated from GTK+, if you are using StyleContext to theme
--   Widgets, use widgetGetStyleContext in order to get a
--   style context ready to theme the widget.
styleContextNew :: IO StyleContext

-- | Adds a style provider to context, to be used in style
--   construction. Note that a style provider added by this function only
--   affects the style of the widget to which context belongs. If
--   you want to affect the style of all widgets, use
--   styleContextAddProviderForScreen.
--   
--   Note : If both priorities are the same, A StyleProvider added
--   through this function takes precedence over another added through
--   @styleContextAddProviderForScreen.
styleContextAddProvider :: (StyleContextClass context, StyleProviderClass provider) => context -> provider -> Int -> IO ()

-- | Adds a global style provider to screen, which will be used in
--   style construction for all StyleContexts under
--   screen.
--   
--   GTK+ uses this to make styling information from Settings
--   available.
--   
--   Note : If both priorities are the same, A StyleProvider added
--   through styleContextAddProvider takes precedence over another
--   added through this function.
styleContextAddProviderForScreen :: (ScreenClass screen, StyleProviderClass provider) => screen -> provider -> Int -> IO ()

-- | Adds a style class to context , so posterior calls to
--   gtk_style_context_get() or any of the gtk_render_*() functions will
--   make use of this new class for styling.
--   
--   In the CSS file format, a GtkEntry defining an “entry” class, would be
--   matched by:
--   
--   
--   GtkEntry.entry { ... }
--   
--   
--   While any widget defining an “entry” class would be matched by:
--   
--   
--   .entry { ... }
--   
styleContextAddClass :: (StyleContextClass context, GlibString string) => context -> string -> IO ()

-- | Removes className from context.
styleContextRemoveClass :: (StyleContextClass context, GlibString string) => context -> string -> IO ()

-- | Returns True if context currently has defined the given class
--   name
styleContextHasClass :: (StyleContextClass context, GlibString string) => context -> string -> IO Bool

-- | Returns the list of classes currently defined in context.
styleContextListClasses :: (StyleContextClass context, GlibString string) => context -> IO [string]

-- | Storing data on clipboards
module Graphics.UI.Gtk.General.Settings
data Settings
class GObjectClass o => SettingsClass o
castToSettings :: GObjectClass obj => obj -> Settings
gTypeSettings :: GType
toSettings :: SettingsClass o => o -> Settings

-- | Gets the Settings object for the default GDK screen, creating it if
--   necessary. See settingsGetForScreen.
settingsGetDefault :: IO (Maybe Settings)

-- | Gets the Settings object for screen, creating it if necessary.
settingsGetForScreen :: ScreenClass screen => screen -> IO Settings
settingsSetLongProperty :: (SettingsClass settings, GlibString string) => settings -> string -> Int -> string -> IO ()
settingsSetStringProperty :: (SettingsClass settings, GlibString string) => settings -> string -> string -> string -> IO ()

-- | Routines for handling resource files
module Graphics.UI.Gtk.General.RcStyle
data RcStyle
class GObjectClass o => RcStyleClass o
castToRcStyle :: GObjectClass obj => obj -> RcStyle
gTypeRcStyle :: GType
toRcStyle :: RcStyleClass o => o -> RcStyle

-- | Creates a new RcStyle with no fields set. The RcStyle
--   structure is used to represent a set of information about the
--   appearance of a widget. This can later be composited together with
--   other RcStyle structures to form a Style.
rcStyleNew :: IO RcStyle

-- | Makes a copy of the specified RcStyle. This function will
--   correctly copy an RC style that is a member of a class derived from
--   RcStyle.
rcStyleCopy :: RcStyleClass self => self -> IO RcStyle

-- | Adds a file to the list of files to be parsed at the end of
--   initGUI.
rcAddDefaultFile :: GlibString string => string -> IO ()

-- | etrieves the current list of RC files that will be parsed at the end
--   of initGUI.
rcGetDefaultFiles :: GlibString string => IO [string]

-- | Obtains the path to the IM modules file. See the documentation of the
--   GTK_IM_MODULE_FILE environment variable for more details.
rcGetImModuleFile :: GlibString string => IO string

-- | Returns a directory in which GTK+ looks for theme engines.
rcGetModuleDir :: GlibString string => IO string

-- | Finds all matching RC styles for a given widget, composites them
--   together, and then creates a GtkStyle representing the composite
--   appearance. (GTK+ actually keeps a cache of previously created styles,
--   so a new style may not be created.)
rcGetStyle :: WidgetClass widget => widget -> IO Style

-- | Creates up a Style from styles defined in a RC file by
--   providing the raw components used in matching. This function may be
--   useful when creating pseudo-widgets that should be themed like widgets
--   but don't actually have corresponding GTK+ widgets.
rcGetStyleByPaths :: GlibString string => Settings -> Maybe string -> Maybe string -> GType -> IO Style

-- | Returns the standard directory in which themes should be installed.
--   (GTK+ does not actually use this directory itself.)
rcGetThemeDir :: GlibString string => IO string

-- | Parses a given resource file.
rcParse :: GlibString string => string -> IO ()

-- | Parses resource information directly from a string.
rcParseString :: GlibString string => string -> IO ()

-- | If the modification time on any previously read file for the default
--   Settings has changed, discard all style information and then
--   reread all previously read RC files.
rcReparseAll :: IO Bool

-- | f the modification time on any previously read file for the given
--   Settings has changed, discard all style information and then
--   reread all previously read RC files.
rcReparseAllForSettings :: Settings -> Bool -> IO Bool

-- | This function recomputes the styles for all widgets that use a
--   particular Settings object. (There is one Settings
--   object per Screen, see settingsGetForScreen.) It is
--   useful when some global parameter has changed that affects the
--   appearance of all widgets, because when a widget gets a new style, it
--   will both redraw and recompute any cached information about its
--   appearance. As an example, it is used when the default font size set
--   by the operating system changes. Note that this function doesn't
--   affect widgets that have a style set explicitly on them with
--   widgetSetStyle.
rcResetStyles :: Settings -> IO ()

-- | Sets the list of files that GTK+ will read at the end of
--   initGUI.
rcSetDefaultFiles :: GlibString string => [string] -> IO ()

-- | Interfaces for drag-and-drop support in TreeView.
module Graphics.UI.Gtk.ModelView.TreeDrag
treeModelEqual :: (TreeModelClass tm1, TreeModelClass tm2) => tm1 -> tm2 -> Bool

-- | The SelectionTag, TargetTag and
--   SelectionTypeTag of the DND mechanism of ListStore and
--   TreeStore. This tag is used by treeGetRowDragData and
--   treeSetRowDragData to store a store and a TreePath in a
--   SelectionDataM. This target should be added to a
--   TargetList using TargetSameWidget flag and an
--   InfoId of 0.
targetTreeModelRow :: TargetTag

-- | Obtains a TreeModel and a path from SelectionDataM
--   whenever the target is targetTreeModelRow. Normally called from
--   a treeDragDestDragDataReceived handler.
treeGetRowDragData :: SelectionDataM (Maybe (TreeModel, TreePath))

-- | Sets selection data with the target targetTreeModelRow,
--   consisting of a TreeModel and a TreePath. Normally used
--   in a treeDragSourceDragDataGet handler.
--   
--   
--   
- Returns True if setting the data was successful.
--   
treeSetRowDragData :: TreeModelClass treeModel => treeModel -> TreePath -> SelectionDataM Bool

-- | Allows a custom data structure to be used with the TreeView and
--   other widgets that follow the model-view-controller paradigm. The two
--   models ListStore and TreeStore are based on the
--   CustomStore. Even if no application-specific tree model should
--   be implemented, this module is relevant in that it provides the
--   functions customStoreSetColumn and customStoreGetRow
--   functions.
module Graphics.UI.Gtk.ModelView.CustomStore

-- | A CustomStore is an instance of a Gtk+ TreeModel and can
--   thus be used for any widget that stores data in a TreeModel.
--   The user may either create an instance of a CustomStore or use
--   one of the pre-defined models ListStore or TreeStore.
data CustomStore private row

-- | These flags indicate various properties of a TreeModel.
--   
--   
--   
- If a model has TreeModelItersPersist set, iterators remain
--   valid after a TreeModel signal was emitted.
--   
- The TreeModelListOnly flag is set if the rows are arranged
--   in a simple flat list. This is set in the ListStore
--   implementation.
--   
data TreeModelFlags
TreeModelItersPersist :: TreeModelFlags
TreeModelListOnly :: TreeModelFlags

-- | The TreeModelIface structure contains all functions that are
--   required to implement an application-specific TreeModel.
data TreeModelIface row
TreeModelIface :: IO [TreeModelFlags] -> (TreePath -> IO (Maybe TreeIter)) -> (TreeIter -> IO TreePath) -> (TreeIter -> IO row) -> (TreeIter -> IO (Maybe TreeIter)) -> (Maybe TreeIter -> IO (Maybe TreeIter)) -> (TreeIter -> IO Bool) -> (Maybe TreeIter -> IO Int) -> (Maybe TreeIter -> Int -> IO (Maybe TreeIter)) -> (TreeIter -> IO (Maybe TreeIter)) -> (TreeIter -> IO ()) -> (TreeIter -> IO ()) -> TreeModelIface row

-- | Return the flags that are valid for this model.
[treeModelIfaceGetFlags] :: TreeModelIface row -> IO [TreeModelFlags]

-- | Convert an path into the tree into a more concise TreeIter.
--   Return Nothing if the path does not exit.
[treeModelIfaceGetIter] :: TreeModelIface row -> TreePath -> IO (Maybe TreeIter)

-- | Convert an iterator to a path. The iterator will always be valid.
[treeModelIfaceGetPath] :: TreeModelIface row -> TreeIter -> IO TreePath

-- | Retrieve a row at the given iterator.
[treeModelIfaceGetRow] :: TreeModelIface row -> TreeIter -> IO row

-- | Advance the given iterator to the next node at the same level. Return
--   Nothing if there is no next node at this level.
[treeModelIfaceIterNext] :: TreeModelIface row -> TreeIter -> IO (Maybe TreeIter)

-- | Advance the given iterator to the first child of this iterator. Return
--   Notihing if the node at this iterator has no children.
[treeModelIfaceIterChildren] :: TreeModelIface row -> Maybe TreeIter -> IO (Maybe TreeIter)

-- | Check if the node at the given iterator has children.
[treeModelIfaceIterHasChild] :: TreeModelIface row -> TreeIter -> IO Bool

-- | Query the number of children the the node at the given iteratore has.
[treeModelIfaceIterNChildren] :: TreeModelIface row -> Maybe TreeIter -> IO Int

-- | Ask for an iterator to the nth child. Return Nothing
--   if no such child exists.
[treeModelIfaceIterNthChild] :: TreeModelIface row -> Maybe TreeIter -> Int -> IO (Maybe TreeIter)

-- | Ask for an iterator to the parent of the node.
[treeModelIfaceIterParent] :: TreeModelIface row -> TreeIter -> IO (Maybe TreeIter)

-- | Increase a reference count for this node. A positive reference count
--   indicates that the node is used (that is, most likely it is visible)
--   in at least one widget. Tracking reference counts for nodes is
--   optional but may be useful to infer when a given row can be discarded
--   if it was retrieved from an external source.
[treeModelIfaceRefNode] :: TreeModelIface row -> TreeIter -> IO ()

-- | Decrement the reference count of the given node.
[treeModelIfaceUnrefNode] :: TreeModelIface row -> TreeIter -> IO ()

-- | A structure containing functions that enable this widget to be used as
--   a source in drag-and-drop.
data DragSourceIface (model :: Type -> Type) row
DragSourceIface :: (model row -> TreePath -> IO Bool) -> (model row -> TreePath -> SelectionDataM Bool) -> (model row -> TreePath -> IO Bool) -> DragSourceIface (model :: Type -> Type) row

-- | Determine if the row at the given path is draggable. Return
--   False if for some reason this row should not be dragged by
--   the user.
[treeDragSourceRowDraggable] :: DragSourceIface (model :: Type -> Type) row -> model row -> TreePath -> IO Bool

-- | Fill in the SelectionDataM structure with information on the
--   given node using selectionDataSet.
[treeDragSourceDragDataGet] :: DragSourceIface (model :: Type -> Type) row -> model row -> TreePath -> SelectionDataM Bool

-- | The widget is informed that the row at the given path should be
--   deleted as the result of this drag.
[treeDragSourceDragDataDelete] :: DragSourceIface (model :: Type -> Type) row -> model row -> TreePath -> IO Bool

-- | A structure containing functions that enable this widget to be used as
--   a target in drag-and-drop.
data DragDestIface (model :: Type -> Type) row
DragDestIface :: (model row -> TreePath -> SelectionDataM Bool) -> (model row -> TreePath -> SelectionDataM Bool) -> DragDestIface (model :: Type -> Type) row

-- | Tell the drag-and-drop mechanism if the row can be dropped at the
--   given path.
[treeDragDestRowDropPossible] :: DragDestIface (model :: Type -> Type) row -> model row -> TreePath -> SelectionDataM Bool

-- | The data in the SelectionDataM structure should be read using
--   selectionDataGet and its information be used to insert a new
--   row at the given path.
[treeDragDestDragDataReceived] :: DragDestIface (model :: Type -> Type) row -> model row -> TreePath -> SelectionDataM Bool

-- | Create a new store that implements the TreeModelIface interface
--   and optionally the DragSourceIface and the
--   DragDestIface. If the latter two are set to Nothing a
--   dummy interface is substituted that rejects every drag and drop.
customStoreNew :: (TreeModelClass (model row), TypedTreeModelClass model) => private -> (CustomStore private row -> model row) -> TreeModelIface row -> Maybe (DragSourceIface model row) -> Maybe (DragDestIface model row) -> IO (model row)

-- | Extract a row of the given model at the given TreeIter.
customStoreGetRow :: TypedTreeModelClass model => model row -> TreeIter -> IO row

-- | Set or update a column mapping. This function should be used before
--   the model is installed into a widget since the number of defined
--   columns are only checked once by widgets.
customStoreSetColumn :: TypedTreeModelClass model => model row -> ColumnId row ty -> (row -> ty) -> IO ()

-- | Return the private data stored in this CustomStore. The private
--   data is meant as a container for the data stored in this model.
customStoreGetPrivate :: CustomStore private row -> private

-- | Query the current value of the stamp that is used to create
--   TreeIter iterators. The stamp is compared each time a view
--   accesses this store. If the stamp doesn't match, a warning is emitted.
--   The stamp should be updated each time a the data in the model changes.
--   The rationale is that a view should never use a stale TreeIter,
--   i.e., one that refers to an old model.
customStoreGetStamp :: CustomStore private row -> IO CInt

-- | Create a new stamp. See customStoreGetStamp.
customStoreInvalidateIters :: CustomStore private row -> IO ()
treeModelGetRow :: TypedTreeModelClass model => model row -> TreeIter -> IO row
treeModelSetColumn :: TypedTreeModelClass model => model row -> ColumnId row ty -> (row -> ty) -> IO ()
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.ModelView.CustomStore.TreeModelFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.ModelView.CustomStore.TreeModelFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.ModelView.CustomStore.TreeModelFlags
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.CustomStore.CustomStore private row)
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.CustomStore.CustomStore private row)

-- | The tree interface used by TreeView.
module Graphics.UI.Gtk.ModelView.TreeModel
data TreeModel
class GObjectClass o => TreeModelClass o
castToTreeModel :: GObjectClass obj => obj -> TreeModel
gTypeTreeModel :: GType
toTreeModel :: TreeModelClass o => o -> TreeModel
data TypedTreeModel row
class TypedTreeModelClass (model :: Type -> Type)
toTypedTreeModel :: TypedTreeModelClass model => model row -> TypedTreeModel row

-- | Tree Iterator: a pointer to an entry in a TreeModel. The
--   constructor of this structure is public for the sake of creating
--   custom tree models. The first value is a time stamp that is handled by
--   the functions that interface with Gtk. The time stamps are used to
--   print warnings if programmers use an iter to a model that has changed
--   meanwhile. The other three fields are used by the custom model
--   implementation to implement an indexing scheme. The precise use of the
--   three words is therefore implementation specific. See also
--   TreePath.
data TreeIter
TreeIter :: {-# UNPACK #-} !CInt -> !Word32 -> !Word32 -> !Word32 -> TreeIter

-- | TreePath : a list of indices to specify a subtree or node in a
--   TreeModel. The node that correspond to a given TreePath
--   might change if nodes are removed or added and a TreePath may
--   refer to a different or even non-existent node after a modification of
--   the model. In contrast, a TreeIter is a more compact
--   representation of a TreePath which becomes invalid after each
--   modification of the underlying model. An intelligent index that is
--   adjusted with each update of the model to point to the same node
--   (whenever possible) is TreeRowReference.
type TreePath = [Int]

-- | The type of a tree column.
data ColumnId row ty

-- | Create a ColumnId to extract an integer.
makeColumnIdInt :: Int -> ColumnId row Int

-- | Create a ColumnId to extract an Boolean.
makeColumnIdBool :: Int -> ColumnId row Bool

-- | Create a ColumnId to extract an string.
makeColumnIdString :: GlibString string => Int -> ColumnId row string

-- | Create a ColumnId to extract an Pixbuf.
makeColumnIdPixbuf :: Int -> ColumnId row Pixbuf

-- | The invalid ColumnId. Widgets use this value if no column id
--   has been set.
invalidColumnId :: ColumnId row ty

-- | Convert a ColumnId to a bare number.
columnIdToNumber :: ColumnId row ty -> Int

-- | Convert a comma or colon separated string into a TreePath. Any
--   non-digit characters are assumed to separate indices, thus, the
--   function always is always successful.
stringToTreePath :: DefaultGlibString -> TreePath

-- | Returns a set of flags supported by this interface.
--   
--   The flags supported should not change during the lifecycle of the
--   tree_model.
treeModelGetFlags :: TreeModelClass self => self -> IO [TreeModelFlags]

-- | Turn a TreePath into a TreeIter.
--   
--   Returns Nothing if the given TreePath was invalid. The
--   empty list is always invalid. The root node of a tree can be accessed
--   by passing [0] as path.
treeModelGetIter :: TreeModelClass self => self -> TreePath -> IO (Maybe TreeIter)

-- | Turn a String into a TreeIter.
--   
--   
--   
- Returns Nothing if the string is not a colon separated
--   list of numbers that references a valid node.
--   
treeModelGetIterFromString :: (TreeModelClass self, GlibString string) => self -> string -> IO (Maybe TreeIter)

-- | Retrieves an TreeIter to the first entry.
--   
--   Returns Nothing if the table is empty.
treeModelGetIterFirst :: TreeModelClass self => self -> IO (Maybe TreeIter)

-- | Turn an abstract TreeIter into a TreePath.
--   
--   In case the given TreeIter was invalid, an empty list is
--   returned.
treeModelGetPath :: TreeModelClass self => self -> TreeIter -> IO TreePath

-- | Read the value of at a specific column and TreeIter.
treeModelGetValue :: TreeModelClass self => self -> TreeIter -> ColumnId row ty -> IO ty

-- | Retrieve an iterator to the node following it at the current level. If
--   there is no next node, Nothing is returned.
treeModelIterNext :: TreeModelClass self => self -> TreeIter -> IO (Maybe TreeIter)

-- | Retrieve an iterator to the first child of parent. If
--   parent has no children, Nothing.
treeModelIterChildren :: TreeModelClass self => self -> TreeIter -> IO (Maybe TreeIter)

-- | Returns True if iter has children, False
--   otherwise.
treeModelIterHasChild :: TreeModelClass self => self -> TreeIter -> IO Bool

-- | Returns the number of children that iter has. As a special
--   case, if iter is Nothing, then the number of
--   toplevel nodes is returned.
treeModelIterNChildren :: TreeModelClass self => self -> Maybe TreeIter -> IO Int

-- | Retrieve the nth child of parent, counting from
--   zero. If n is too big or parent has no children,
--   Nothing is returned. If Nothing is specified for the
--   parent argument, the function will return the nth
--   root node.
treeModelIterNthChild :: TreeModelClass self => self -> Maybe TreeIter -> Int -> IO (Maybe TreeIter)

-- | Retrieve the parent of this iterator.
treeModelIterParent :: TreeModelClass self => self -> TreeIter -> IO (Maybe TreeIter)

-- | Maps a function over each node in model in a depth-first fashion. If
--   it returns True, then the tree ceases to be walked, and
--   treeModelForeach returns.
treeModelForeach :: TreeModelClass self => self -> (TreeIter -> IO Bool) -> IO ()

-- | Generates a string representation of the iter. This string is a ':'
--   separated list of numbers. For example, "4:10:0:3" would be an
--   acceptable return value for this string.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
treeModelGetStringFromIter :: (TreeModelClass self, GlibString string) => self -> TreeIter -> IO string

-- | Lets the tree ref the node. This is an optional method for models to
--   implement. To be more specific, models may ignore this call as it
--   exists primarily for performance reasons.
--   
--   This function is primarily meant as a way for views to let caching
--   model know when nodes are being displayed (and hence, whether or not
--   to cache that node.) For example, a file-system based model would not
--   want to keep the entire file-hierarchy in memory, just the sections
--   that are currently being displayed by every current view.
--   
--   A model should be expected to be able to get an iter independent of
--   its reffed state.
treeModelRefNode :: TreeModelClass self => self -> TreeIter -> IO ()

-- | Lets the tree unref the node. This is an optional method for models to
--   implement. To be more specific, models may ignore this call as it
--   exists primarily for performance reasons.
--   
--   For more information on what this means, see treeModelRefNode.
--   Please note that nodes that are deleted are not unreffed.
treeModelUnrefNode :: TreeModelClass self => self -> TreeIter -> IO ()

-- | Emits the rowChanged signal on the model.
--   
--   
--   
- This function is only necessary to implement a custom tree model.
--   When using ListStore or TreeStore, this function is
--   called automatically.
--   
treeModelRowChanged :: TreeModelClass self => self -> TreePath -> TreeIter -> IO ()

-- | Emits the rowInserted signal on the model.
--   
--   
--   
- This function is only necessary to implement a custom tree model.
--   When using ListStore or TreeStore, this function is
--   called automatically.
--   
treeModelRowInserted :: TreeModelClass self => self -> TreePath -> TreeIter -> IO ()

-- | Emits the rowHasChildToggled signal on the model. This should
--   be called by models after the child state of a node changes.
--   
--   
--   
- This function is only necessary to implement a custom tree model.
--   When using ListStore or TreeStore, this function is
--   called automatically.
--   
treeModelRowHasChildToggled :: TreeModelClass self => self -> TreePath -> TreeIter -> IO ()

-- | Emits the rowDeleted signal on the model. This should be called
--   by models after a row has been removed. The location pointed to by
--   path should be the location that the row previously was at.
--   It may not be a valid location anymore.
--   
--   
--   
- This function is only necessary to implement a custom tree model.
--   When using ListStore or TreeStore, this function is
--   called automatically.
--   
treeModelRowDeleted :: TreeModelClass self => self -> TreePath -> IO ()

-- | Emits the rowsReordered signal on the model. This should be
--   called by models when their rows have been reordered. The length of
--   newOrder must be equal to the value returned by
--   treeModelIterNChildren self iter.
--   
--   
--   
- This function is only necessary to implement a custom tree model.
--   When using ListStore or TreeStore, this function is
--   called automatically.
--   
treeModelRowsReordered :: TreeModelClass self => self -> TreePath -> Maybe TreeIter -> [Int] -> IO ()

-- | This signal is emitted when a row in the model has changed.
rowChanged :: TreeModelClass self => Signal self (TreePath -> TreeIter -> IO ())

-- | This signal is emitted when a new row has been inserted in the model.
rowInserted :: TreeModelClass self => Signal self (TreePath -> TreeIter -> IO ())

-- | This signal is emitted when a row has gotten the first child row or
--   lost its last child row.
rowHasChildToggled :: TreeModelClass self => Signal self (TreePath -> TreeIter -> IO ())

-- | This signal is emitted when a row has been deleted.
--   
--   Note that no iterator is passed to the signal handler, since the row
--   is already deleted.
--   
--   Implementations of TreeModel must emit row-deleted
--   before removing the node from its internal data structures.
--   This is because models and views which access and monitor this model
--   might have references on the node which need to be released in the
--   rowDeleted handler.
rowDeleted :: TreeModelClass self => Signal self (TreePath -> IO ())

-- | This signal is emitted when the children of a node in the
--   TreeModel have been reordered. See
--   treeModelRowsReordered for more information about the
--   parameters that this signal carries.
--   
--   Note that this signal is not emitted when rows are reordered by
--   DND, since this is implemented by removing and then reinserting the
--   row.
rowsReordered :: TreeModelClass self => Signal self (TreePath -> Maybe TreeIter -> [Int] -> IO ())
instance GHC.Classes.Eq (Graphics.UI.Gtk.ModelView.Types.ColumnId row ty)
instance GHC.Internal.Show.Show (Graphics.UI.Gtk.ModelView.Types.ColumnId row ty)

-- | Standard model to store hierarchical data.
module Graphics.UI.Gtk.ModelView.TreeStore

-- | A store for hierarchical data.
data TreeStore a

-- | Create a new list store.
--   
--   
--   
- The given rose tree determines the initial content and may be the
--   empty list. Each Tree in the forest corresponds to one
--   top-level node.
--   
- The TreeStore maintains the initially given Forest and aligns the
--   TreePath bits to fit in 96-bit length TreeIter
--   storage.
--   
- Additionally, a cache is used to achieve higher performance if
--   operating on recently used TreePaths.
--   
- Note: due to the limited amount of bits available in
--   TreeIter storage, only limited depth forests can be used with this
--   implementation, the result of too deep Forests is an undefined
--   behaviour while trying to retrieve the deeply nested nodes. For
--   example: assuming the average requiement is 8 bits per tree level (max
--   number of children at the level is 255), then we can only use 12
--   levels deep trees (96/8) - any further levels in a TreePath will not
--   be encoded in the corresponding TreeIter storage.
--   
treeStoreNew :: Forest a -> IO (TreeStore a)

-- | Create a new list store.
--   
--   
--   
- In addition to treeStoreNew, this function takes an two
--   interfaces to implement user-defined drag-and-drop functionality.
--   
treeStoreNewDND :: Forest a -> Maybe (DragSourceIface TreeStore a) -> Maybe (DragDestIface TreeStore a) -> IO (TreeStore a)

-- | Default drag functions for TreeStore. These functions allow the
--   rows of the model to serve as drag source. Any row is allowed to be
--   dragged and the data set in the SelectionDataM object is set
--   with treeSetRowDragData, i.e. it contains the model and the
--   TreePath to the row.
treeStoreDefaultDragSourceIface :: DragSourceIface TreeStore row

-- | Default drop functions for TreeStore. These functions accept a
--   row and insert the row into the new location if it is dragged into a
--   tree view that uses the same model.
treeStoreDefaultDragDestIface :: DragDestIface TreeStore row

-- | Extract one node from the current model. Fails if the given
--   TreePath refers to a non-existent node.
treeStoreGetValue :: TreeStore a -> TreePath -> IO a

-- | Extract a subtree from the current model. Fails if the given
--   TreePath refers to a non-existent node.
treeStoreGetTree :: TreeStore a -> TreePath -> IO (Tree a)

-- | Extract a subtree from the current model. Like treeStoreGetTree
--   but returns Nothing if the path refers to a non-existent
--   node.
treeStoreLookup :: TreeStore a -> TreePath -> IO (Maybe (Tree a))

-- | Set a node in the store.
treeStoreSetValue :: TreeStore a -> TreePath -> a -> IO ()

-- | Insert a single node into the store.
--   
--   
--   
- This function inserts a single node without children into the
--   tree. Its arguments are similar to those of
--   treeStoreInsert.
--   
treeStoreInsert :: TreeStore a -> TreePath -> Int -> a -> IO ()

-- | Insert a node into the store.
treeStoreInsertTree :: TreeStore a -> TreePath -> Int -> Tree a -> IO ()

-- | Insert nodes into the store.
--   
--   
--   
- The given list of nodes is inserted into given parent at
--   pos. If the parent existed, the function returns Just
--   path where path is the position of the newly inserted
--   elements. If pos is negative or greater or equal to the
--   number of children of the node at path, the new nodes are
--   appended to the list.
--   
treeStoreInsertForest :: TreeStore a -> TreePath -> Int -> Forest a -> IO ()

-- | Remove a node from the store.
--   
--   
--   
- The node denoted by the path is removed, along with all its
--   children. The function returns True if the given node was
--   found.
--   
treeStoreRemove :: TreeStore a -> TreePath -> IO Bool
treeStoreClear :: TreeStore a -> IO ()

-- | Change a node in the store.
--   
--   
--   
- Returns True if the node was found. For a monadic
--   version, see treeStoreChangeM.
--   
treeStoreChange :: TreeStore a -> TreePath -> (a -> a) -> IO Bool

-- | Change a node in the store.
--   
--   
--   
- Returns True if the node was found. For a purely
--   functional version, see treeStoreChange.
--   
treeStoreChangeM :: TreeStore a -> TreePath -> (a -> IO a) -> IO Bool
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.TreeStore.TreeStore a)
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.TreeStore.TreeStore a)
instance Graphics.UI.Gtk.ModelView.Types.TypedTreeModelClass Graphics.UI.Gtk.ModelView.TreeStore.TreeStore

-- | A TreeModel which makes an underlying tree model sortable
module Graphics.UI.Gtk.ModelView.TreeModelSort
data TreeModelSort
class GObjectClass o => TreeModelSortClass o
castToTreeModelSort :: GObjectClass obj => obj -> TreeModelSort
gTypeTreeModelSort :: GType
toTreeModelSort :: TreeModelSortClass o => o -> TreeModelSort
data TypedTreeModelSort row

-- | Creates a new TreeModelSort, that will be a sorted view of the
--   given model.
treeModelSortNewWithModel :: (TreeModelClass (childModel row), TypedTreeModelClass childModel) => childModel row -> IO (TypedTreeModelSort row)

-- | Returns the underlying model the TreeModelSort is sorting.
treeModelSortGetModel :: TreeModelSortClass self => self -> IO TreeModel

-- | Converts the given path to a path relative to the given sorted model.
--   
--   
--   
- The given path points to a row in the child model. The returned
--   path will point to the same row in the sorted model.
--   
treeModelSortConvertChildPathToPath :: TreeModelSortClass self => self -> TreePath -> IO TreePath

-- | Converts path in the sorted model to a path on the unsorted model on
--   which the given TreeModelSort is based. That is, the given path
--   points to a location in the given TreeModelSort. The returned
--   path will point to the same location in the underlying unsorted model.
treeModelSortConvertPathToChildPath :: TreeModelSortClass self => self -> TreePath -> IO TreePath

-- | Return an iterator in the sorted model that points to the row pointed
--   to by the given iter from the unsorted model.
treeModelSortConvertChildIterToIter :: TreeModelSortClass self => self -> TreeIter -> IO TreeIter

-- | Return an iterator in the unsorted model that points to the row
--   pointed to by the given iter from the sorted model.
treeModelSortConvertIterToChildIter :: TreeModelSortClass self => self -> TreeIter -> IO TreeIter

-- | This resets the default sort function. As a consequence, the order of
--   this model will be the same order as that of the child model.
treeModelSortResetDefaultSortFunc :: TreeModelSortClass self => self -> IO ()

-- | Clear the cache of unref'd iterators.
--   
--   
--   
- This function should almost never be called. It clears the
--   TreeModelSort of any cached iterators that haven't been reffed
--   with treeModelRefNode. This might be useful if the child model
--   being sorted is static (and doesn't change often) and there has been a
--   lot of unreffed access to nodes. As a side effect of this function,
--   all unreffed iters will be invalid.
--   
treeModelSortClearCache :: TreeModelSortClass self => self -> IO ()

-- | Checks if the given iter is a valid iter for this
--   TreeModelSort.
--   
--   
--   
- WARNING: This function is slow. Only use it for debugging and/or
--   testing purposes.
--   
- Available since Gtk+ version 2.2
--   
treeModelSortIterIsValid :: TreeModelSortClass self => self -> TreeIter -> IO Bool
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelSort a)
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelSort a)
instance Graphics.UI.Gtk.Types.TreeModelSortClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelSort a)
instance Graphics.UI.Gtk.Types.TreeSortableClass Graphics.UI.Gtk.Types.TreeModelSort
instance Graphics.UI.Gtk.Types.TreeSortableClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelSort row)

-- | A TreeModel which hides parts of an underlying tree model
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.ModelView.TreeModelFilter
data TreeModelFilter
data TypedTreeModelFilter row
class GObjectClass o => TreeModelFilterClass o
castToTreeModelFilter :: GObjectClass obj => obj -> TreeModelFilter
gTypeTreeModelFilter :: GType
toTreeModelFilter :: TreeModelFilterClass o => o -> TreeModelFilter

-- | Creates a new TreeModel, with childModel as the child
--   model and root as the virtual root.
treeModelFilterNew :: (TreeModelClass (childModel row), TypedTreeModelClass childModel) => childModel row -> TreePath -> IO (TypedTreeModelFilter row)

-- | Sets the visible function used when filtering the rows to be
--   func. The function should return True if the given
--   row should be visible and False otherwise. The passed-in
--   iterator is an iterator of the child model, not of the
--   TreeModelFilter model that is passed in as the first argument
--   to this function.
--   
--   If the condition calculated by the function changes over time (e.g.
--   because it depends on some global parameters), you must call
--   treeModelFilterRefilter to keep the visibility information of
--   the model up to date.
treeModelFilterSetVisibleFunc :: TreeModelFilterClass self => self -> (TreeIter -> IO Bool) -> IO ()

-- | Sets column of the child model to be the column where the
--   filter model should look for visibility information. A row containing
--   True means that this row should be shown.
treeModelFilterSetVisibleColumn :: (TreeModelFilterClass (self row), TypedTreeModelClass self) => self row -> ColumnId row Bool -> IO ()

-- | Returns a pointer to the child model of filter.
treeModelFilterGetModel :: TreeModelFilterClass self => self -> IO (Maybe TreeModel)

-- | Return an iterator in the sorted model that points to the row pointed
--   to by the given iter from the unfiltered model.
treeModelFilterConvertChildIterToIter :: TreeModelFilterClass self => self -> TreeIter -> IO TreeIter

-- | Return an iterator in the unfiltered model that points to the row
--   pointed to by the given iter from the filtered model.
treeModelFilterConvertIterToChildIter :: TreeModelFilterClass self => self -> TreeIter -> IO TreeIter

-- | Converts the given path to a path relative to the given filtered
--   model.
--   
--   
--   
- The given path points to a row in the child model. The returned
--   path will point to the same row in the filtered model.
--   
treeModelFilterConvertChildPathToPath :: TreeModelFilterClass self => self -> TreePath -> IO TreePath

-- | Converts path in the filtered model to a path on the unfiltered model
--   on which the given TreeModelFilter is based. That is, the given
--   path points to a location in the given TreeModelFilter. The
--   returned path will point to the same location in the underlying
--   unfiltered model.
treeModelFilterConvertPathToChildPath :: TreeModelFilterClass self => self -> TreePath -> IO TreePath

-- | Emits rowChanged for each row in the child model, which causes
--   the filter to re-evaluate whether a row is visible or not.
treeModelFilterRefilter :: TreeModelFilterClass self => self -> IO ()

-- | This function should almost never be called. It clears the
--   filter of any cached iterators that haven't been reffed with
--   treeModelRefNode. This might be useful if the child model being
--   filtered is static (and doesn't change often) and there has been a lot
--   of unreffed access to nodes. As a side effect of this function, all
--   unreffed iters will be invalid.
treeModelFilterClearCache :: TreeModelFilterClass self => self -> IO ()

-- | The model for the filtermodel to filter.
treeModelFilterChildModel :: TreeModelFilterClass self => ReadAttr self TreeModel

-- | The virtual root (relative to the child model) for this filtermodel.
treeModelFilterVirtualRoot :: TreeModelFilterClass self => ReadAttr self TreePath
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelFilter a)
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelFilter a)
instance Graphics.UI.Gtk.Types.TreeModelFilterClass (Graphics.UI.Gtk.ModelView.Types.TypedTreeModelFilter a)

-- | Standard model to store list data.
module Graphics.UI.Gtk.ModelView.ListStore
data ListStore a

-- | Create a new TreeModel that contains a list of elements.
listStoreNew :: [a] -> IO (ListStore a)

-- | Create a new TreeModel that contains a list of elements. In
--   addition, specify two interfaces for drag and drop.
listStoreNewDND :: [a] -> Maybe (DragSourceIface ListStore a) -> Maybe (DragDestIface ListStore a) -> IO (ListStore a)

-- | Default drag functions for ListStore. These functions allow the
--   rows of the model to serve as drag source. Any row is allowed to be
--   dragged and the data set in the SelectionDataM object is set
--   with treeSetRowDragData, i.e. it contains the model and the
--   TreePath to the row.
listStoreDefaultDragSourceIface :: DragSourceIface ListStore row

-- | Default drop functions for ListStore. These functions accept a
--   row and insert the row into the new location if it is dragged into a
--   tree view that uses the same model.
listStoreDefaultDragDestIface :: DragDestIface ListStore row

-- | Convert a TreeIter to an an index into the ListStore.
--   Note that this function merely extracts the second element of the
--   TreeIter.
listStoreIterToIndex :: TreeIter -> Int

-- | Extract the value at the given index.
listStoreGetValue :: ListStore a -> Int -> IO a

-- | Extract the value at the given index.
listStoreSafeGetValue :: ListStore a -> Int -> IO (Maybe a)

-- | Update the value at the given index. The index must exist.
listStoreSetValue :: ListStore a -> Int -> a -> IO ()

-- | Extract all data from the store.
listStoreToList :: ListStore a -> IO [a]

-- | Query the number of elements in the store.
listStoreGetSize :: ListStore a -> IO Int

-- | Insert an element in front of the given element. The element is
--   appended if the index is greater or equal to the size of the list.
listStoreInsert :: ListStore a -> Int -> a -> IO ()

-- | Prepend the element to the store.
listStorePrepend :: ListStore a -> a -> IO ()

-- | Append an element to the store. Returns the index of the inserted
--   element.
listStoreAppend :: ListStore a -> a -> IO Int

-- | Remove the element at the given index.
listStoreRemove :: ListStore a -> Int -> IO ()

-- | Empty the store.
listStoreClear :: ListStore a -> IO ()
instance System.Glib.Types.GObjectClass (Graphics.UI.Gtk.ModelView.ListStore.ListStore a)
instance Graphics.UI.Gtk.Types.TreeModelClass (Graphics.UI.Gtk.ModelView.ListStore.ListStore a)
instance Graphics.UI.Gtk.ModelView.Types.TypedTreeModelClass Graphics.UI.Gtk.ModelView.ListStore.ListStore

-- | An interface for packing cells
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.ModelView.CellLayout
class GObjectClass o => CellLayoutClass o
toCellLayout :: CellLayoutClass o => o -> CellLayout

-- | Packs the cell into the beginning of the cell layout. If
--   expand is False, then the cell is allocated
--   no more space than it needs. Any unused space is divided evenly
--   between cells for which expand is True.
--   
--   Note that reusing the same cell renderer is not supported.
cellLayoutPackStart :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Bool -> IO ()

-- | Adds the cell to the end of cellLayout. If
--   expand is False, then the cell is allocated
--   no more space than it needs. Any unused space is divided evenly
--   between cells for which expand is True.
--   
--   Note that reusing the same cell renderer is not supported.
cellLayoutPackEnd :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Bool -> IO ()

-- | Re-inserts cell at position. Note that cell
--   has already to be packed into cellLayout for this to function
--   properly.
cellLayoutReorder :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> Int -> IO ()

-- | Remove all renderers from the cell layout.
cellLayoutClear :: CellLayoutClass self => self -> IO ()

-- | Clears all existing attributes previously set with
--   cellLayoutSetAttributes.
cellLayoutClearAttributes :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> IO ()

-- | Returns the cell renderers which have been added to
--   cellLayout.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
cellLayoutGetCells :: CellLayoutClass self => self -> IO [CellRenderer]

-- | Adds an attribute mapping to the renderer cell. The
--   column is the ColumnId of the model to get a value
--   from, and the attribute is the parameter on cell to
--   be set from the value. So for example if column 2 of the model
--   contains strings, you could have the "text" attribute of a
--   CellRendererText get its values from column 2.
cellLayoutAddColumnAttribute :: (CellLayoutClass self, CellRendererClass cell) => self -> cell -> ReadWriteAttr cell a v -> ColumnId row v -> IO ()

-- | Specify how a row of the model defines the attributes of the
--   CellRenderer cell. This is a convenience wrapper
--   around cellLayoutSetAttributeFunc in that it sets the cells of
--   the cell with the data retrieved from the model.
--   
--   
--   
- Note on using TreeModelSort and TreeModelFilter:
--   These two models wrap another model, the so-called child model,
--   instead of storing their own data. This raises the problem that the
--   data of cell renderers must be set using the child model, while the
--   TreeIters that the view works with refer to the model that
--   encapsulates the child model. For convenience, this function
--   transparently translates an iterator to the child model before
--   extracting the data using e.g.
--   treeModelSortConvertIterToChildIter. Hence, it is possible to
--   install the encapsulating model in the view and to pass the child
--   model to this function.
--   
cellLayoutSetAttributes :: (CellLayoutClass self, CellRendererClass cell, TreeModelClass (model row), TypedTreeModelClass model) => self -> cell -> model row -> (row -> [AttrOp cell]) -> IO ()

-- | Install a function that looks up a row in the model and sets the
--   attributes of the CellRenderer cell using the row's
--   content.
cellLayoutSetAttributeFunc :: (CellLayoutClass self, CellRendererClass cell, TreeModelClass model) => self -> cell -> model -> (TreeIter -> IO ()) -> IO ()
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.CellView
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.ComboBox
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.EntryCompletion
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.IconView
instance Graphics.UI.Gtk.Types.CellLayoutClass Graphics.UI.Gtk.Types.TreeViewColumn

-- | CSS-like styling for widgets.
module Graphics.UI.Gtk.General.CssProvider
data CssProvider
class GObjectClass o => CssProviderClass o
castToCssProvider :: GObjectClass obj => obj -> CssProvider
gTypeCssProvider :: GType
toCssProvider :: CssProviderClass o => o -> CssProvider
data CssProviderError
CssProviderErrorFailed :: CssProviderError
CssProviderErrorSyntax :: CssProviderError
CssProviderErrorImport :: CssProviderError
CssProviderErrorName :: CssProviderError
CssProviderErrorDeprecated :: CssProviderError
CssProviderErrorUnknownValue :: CssProviderError

-- | Returns a newly created CssProvider
cssProviderNew :: IO CssProvider

-- | Returns the provider containing the style settings used as a fallback
--   for all widgets.
cssProviderGetDefault :: IO CssProvider

-- | Loads a theme from the usual theme paths
cssProviderGetNamed :: GlibString string => string -> Maybe string -> IO (Maybe CssProvider)

-- | Loads _data into cssProvider, making it clear any
--   previously loaded information.
cssProviderLoadFromData :: CssProviderClass cssProvider => cssProvider -> Ptr CChar -> Int -> IO ()

-- | Loads css into cssProvider, making it clear any
--   previously loaded information.
cssProviderLoadFromString :: (CssProviderClass cssProvider, GlibString string) => cssProvider -> string -> IO ()

-- | Loads the data contained in path into cssProvider,
--   making it clear any previously loaded information
cssProviderLoadFromPath :: (CssProviderClass cssProvider, GlibFilePath fp) => cssProvider -> fp -> IO ()

-- | Convertes the provider into a string representation in CSS
--   format.
--   
--   Using cssProviderLoadFromString with the return value from
--   this function on a new provider created with cssProviderNew
--   will basically create a duplicate of this provider.
cssProviderToString :: (CssProviderClass cssProvider, GlibString string) => cssProvider -> IO string
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.CssProvider.CssProviderError
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.CssProvider.CssProviderError
instance GHC.Classes.Eq Graphics.UI.Gtk.General.CssProvider.CssProviderError
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.CssProvider.CssProviderError
instance Graphics.UI.Gtk.Types.StyleProviderClass Graphics.UI.Gtk.Types.CssProvider

module Graphics.UI.Gtk.Gdk.PixbufAnimation
data PixbufAnimation
class GObjectClass o => PixbufAnimationClass o
castToPixbufAnimation :: GObjectClass obj => obj -> PixbufAnimation
gTypePixbufAnimation :: GType
toPixbufAnimation :: PixbufAnimationClass o => o -> PixbufAnimation
data PixbufAnimationIter
class GObjectClass o => PixbufAnimationIterClass o
castToPixbufAnimationIter :: GObjectClass obj => obj -> PixbufAnimationIter
gTypePixbufAnimationIter :: GType
toPixbufAnimationIter :: PixbufAnimationIterClass o => o -> PixbufAnimationIter
data PixbufSimpleAnim
class PixbufAnimationClass o => PixbufSimpleAnimClass o
castToPixbufSimpleAnim :: GObjectClass obj => obj -> PixbufSimpleAnim
gTypePixbufSimpleAnim :: GType
toPixbufSimpleAnim :: PixbufSimpleAnimClass o => o -> PixbufSimpleAnim

-- | Creates a new animation by loading it from a file. The file format is
--   detected automatically. If the file's format does not support
--   multi-frame images, then an animation with a single frame will be
--   created. Possible errors are in the PixbufError and
--   GFileError domains.
--   
--   Any of several error conditions may occur: the file could not be
--   opened, there was no loader for the file's format, there was not
--   enough memory to allocate the image buffer, or the image file
--   contained invalid data.
--   
--   
--   
- If an error occurs, the function will throw an exception that can
--   be caught using e.g. catchGErrorJust and one of the error codes
--   in PixbufError or GFileError
--   
pixbufAnimationNewFromFile :: GlibFilePath fp => fp -> IO PixbufAnimation

-- | Creates a new, empty animation.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
pixbufSimpleAnimNew :: Int -> Int -> Float -> IO PixbufSimpleAnim

-- | Queries the width of the bounding box of a pixbuf animation.
pixbufAnimationGetWidth :: PixbufAnimation -> IO Int

-- | Queries the height of the bounding box of a pixbuf animation.
pixbufAnimationGetHeight :: PixbufAnimation -> IO Int

-- | Get an iterator for displaying an animation. The iterator provides the
--   frames that should be displayed at a given time. The start time would
--   normally come from gGetCurrentTime, and marks the beginning of
--   animation playback. After creating an iterator, you should immediately
--   display the pixbuf returned by pixbufAnimationIterGetPixbuf.
--   Then, you should install a timeout (with timeoutAdd) or by
--   some other mechanism ensure that you'll update the image after
--   pixbufAnimationIterGetDelayTime milliseconds. Each time the
--   image is updated, you should reinstall the timeout with the new,
--   possibly-changed delay time.
--   
--   As a shortcut, if start_time is Nothing, the result of
--   gGetCurrentTime will be used automatically.
--   
--   To update the image (i.e. possibly change the result of
--   pixbufAnimationIterGetPixbuf to a new frame of the animation),
--   call pixbufAnimationIterAdvance.
--   
--   If you're using PixbufLoader, in addition to updating the
--   image after the delay time, you should also update it whenever you
--   receive the area_updated signal and
--   pixbufAnimationIterOnCurrentlyLoadingFrame returns
--   True. In this case, the frame currently being fed into the
--   loader has received new data, so needs to be refreshed. The delay time
--   for a frame may also be modified after an area_updated signal, for
--   example if the delay time for a frame is encoded in the data after the
--   frame itself. So your timeout should be reinstalled after any
--   area_updated signal.
--   
--   A delay time of -1 is possible, indicating "infinite."
pixbufAnimationGetIter :: PixbufAnimation -> Maybe GTimeVal -> IO PixbufAnimationIter

-- | If you load a file with pixbufAnimationNewFromFile and it turns
--   out to be a plain, unanimated image, then this function will return
--   True. Use pixbufAnimationGetStaticImage to retrieve
--   the image.
pixbufAnimationIsStaticImage :: PixbufAnimation -> IO Bool

-- | If an animation is really just a plain image (has only one frame),
--   this function returns that image. If the animation is an animation,
--   this function returns a reasonable thing to display as a static
--   unanimated image, which might be the first frame, or something more
--   sophisticated. If an animation hasn't loaded any frames yet, this
--   function will return Nothing.
pixbufAnimationGetStaticImage :: PixbufAnimation -> IO (Maybe Pixbuf)

-- | Possibly advances an animation to a new frame. Chooses the frame based
--   on the start time passed to pixbufAnimationGetIter.
--   
--   current_time would normally come from gGetCurrentTime, and must
--   be greater than or equal to the time passed to
--   pixbufAnimationGetIter, and must increase or remain unchanged
--   each time pixbufAnimationIterGetPixbuf is called. That is, you
--   can't go backward in time; animations only play forward.
--   
--   As a shortcut, pass Nothing for the current time and
--   gGetCurrentTime will be invoked on your behalf. So you only
--   need to explicitly pass current_time if you're doing something odd
--   like playing the animation at double speed.
--   
--   If this function returns False, there's no need to update the
--   animation display, assuming the display had been rendered prior to
--   advancing; if True, you need to call
--   animationIterGetPixbuf and update the display with the new
--   pixbuf.
pixbufAnimationIterAdvance :: PixbufAnimationIter -> Maybe GTimeVal -> IO Bool

-- | Gets the number of milliseconds the current pixbuf should be
--   displayed, or -1 if the current pixbuf should be displayed forever.
--   timeoutAdd conveniently takes a timeout in milliseconds, so
--   you can use a timeout to schedule the next update.
pixbufAnimationIterGetDelayTime :: PixbufAnimationIter -> IO Int

-- | Used to determine how to respond to the area_updated signal on
--   PixbufLoader when loading an animation. area_updated is
--   emitted for an area of the frame currently streaming in to the loader.
--   So if you're on the currently loading frame, you need to redraw the
--   screen for the updated area.
pixbufAnimationIterOnCurrentlyLoadingFrame :: PixbufAnimationIter -> IO Bool

-- | Gets the current pixbuf which should be displayed; the pixbuf will be
--   the same size as the animation itself (pixbufAnimationGetWidth,
--   pixbufAnimationGetHeight). This pixbuf should be displayed for
--   pixbufAnimationIterGetDelayTime milliseconds. The caller of
--   this function does not own a reference to the returned pixbuf; the
--   returned pixbuf will become invalid when the iterator advances to the
--   next frame, which may happen anytime you call
--   pixbufAnimationIterAdvance. Copy the pixbuf to keep it (don't
--   just add a reference), as it may get recycled as you advance the
--   iterator.
pixbufAnimationIterGetPixbuf :: PixbufAnimationIter -> IO Pixbuf

-- | Adds a new frame to animation. The pixbuf must have the dimensions
--   specified when the animation was constructed.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
pixbufSimpleAnimAddFrame :: PixbufSimpleAnim -> Pixbuf -> IO ()

-- | Sets whether animation should loop indefinitely when it reaches the
--   end.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
pixbufSimpleAnimSetLoop :: PixbufSimpleAnim -> Bool -> IO ()

-- | Gets whether animation should loop indefinitely when it reaches the
--   end.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
pixbufSimpleAnimGetLoop :: PixbufSimpleAnim -> IO Bool

-- | Pixbufs are bitmap images in memory.
--   
--   
--   
- A Pixbuf is used to represent images. It contains information
--   about the image's pixel data, its color space, bits per sample, width
--   and height, and the rowstride or number of bytes between rows.
--   
- This module contains functions to scale and crop Pixbufs
--   and to scale and crop a Pixbuf and compose the result with an
--   existing image.
--   
- Pixbufs can be displayed on screen by either creating an
--   Image that from the Pixbuf or by rendering (part of) the
--   Pixbuf into a vanilla widget like DrawWindow using
--   drawPixbuf.
--   
module Graphics.UI.Gtk.Gdk.Pixbuf
data Pixbuf
class GObjectClass o => PixbufClass o
castToPixbuf :: GObjectClass obj => obj -> Pixbuf
gTypePixbuf :: GType
toPixbuf :: PixbufClass o => o -> Pixbuf

-- | Error codes for loading image files.
data PixbufError
PixbufErrorCorruptImage :: PixbufError
PixbufErrorInsufficientMemory :: PixbufError
PixbufErrorBadOption :: PixbufError
PixbufErrorUnknownType :: PixbufError
PixbufErrorUnsupportedOperation :: PixbufError
PixbufErrorFailed :: PixbufError
PixbufErrorIncompleteAnimation :: PixbufError

-- | Enumerate all supported color spaces.
--   
--   
--   
- Only RGB is supported right now.
--   
data Colorspace
ColorspaceRgb :: Colorspace

-- | Create a new image in memory.
--   
--   
--   
- Creates a new pixbuf structure and allocates a buffer for it. Note
--   that the buffer is not cleared initially.
--   
- The boolean flag is true if the pixbuf should have an alpha
--   (transparency) channel. The next integer denotes the bits per color
--   sample, e.g. 8 bits per color for 2^24 colors. The last two integers
--   denote the width and height, respectively.
--   
pixbufNew :: Colorspace -> Bool -> Int -> Int -> Int -> IO Pixbuf
pixbufNewFromData :: Ptr CUChar -> Colorspace -> Bool -> Int -> Int -> Int -> Int -> IO Pixbuf

-- | Load an image synchonously.
--   
--   
--   
- Use this function to load only small images as this call will
--   block.
--   
- If an error occurs, the function will throw an exception that can
--   be caught using e.g. catchGErrorJust and one of the error codes
--   in PixbufError.
--   
pixbufNewFromFile :: GlibFilePath fp => fp -> IO Pixbuf

-- | Creates a new pixbuf by loading an image from a file. The file format
--   is detected automatically. The image will be scaled to fit in the
--   requested size, preserving the image's aspect ratio.
--   
--   
--   
- If an error occurs, the function will throw an exception that can
--   be caught using e.g. catchGErrorJust and one of the error codes
--   in PixbufError.
--   
- Available since Gtk+ version 2.4
--   
pixbufNewFromFileAtSize :: GlibString string => string -> Int -> Int -> IO Pixbuf

-- | Creates a new pixbuf by loading an image from a file. The file format
--   is detected automatically. The image will be scaled to fit in the
--   requested size, optionally preserving the image's aspect ratio.
--   
--   When preserving the aspect ratio, a width of -1 will cause the image
--   to be scaled to the exact given height, and a height of -1 will cause
--   the image to be scaled to the exact given width. When not preserving
--   aspect ratio, a width or height of -1 means to not scale the image at
--   all in that dimension. Negative values for width and height are
--   allowed since Gtk+ 2.8.
--   
--   
--   
- If an error occurs, the function will throw an exception that can
--   be caught using e.g. catchGErrorJust and one of the error codes
--   in PixbufError.
--   
- Available since Gtk+ version 2.6
--   
pixbufNewFromFileAtScale :: GlibString string => string -> Int -> Int -> Bool -> IO Pixbuf

-- | Creates a new pixbuf from a cairo Surface.
--   
--   Transfers image data from a cairo Surface and converts it to an RGB(A)
--   representation inside a Pixbuf. This allows you to efficiently read
--   individual pixels from cairo surfaces. For GdkWindows, use
--   gdk_pixbuf_get_from_window() instead.
--   
--   This function will create an RGB pixbuf with 8 bits per channel. The
--   pixbuf will contain an alpha channel if the surface contains one.
pixbufNewFromSurface :: Surface -> Int -> Int -> Int -> Int -> IO Pixbuf

-- | Creates a new pixbuf from a GDK window.
--   
--   Transfers image data from a GdkWindow and converts it to an RGB(A)
--   representation inside a GdkPixbuf. In other words, copies image data
--   from a server-side drawable to a client-side RGB(A) buffer. This
--   allows you to efficiently read individual pixels on the client side.
--   
--   This function will create an RGB pixbuf with 8 bits per channel with
--   the size specified by the width and height arguments scaled by the
--   scale factor of window. The pixbuf will contain an alpha channel if
--   the window contains one.
pixbufNewFromWindow :: DrawWindowClass self => self -> Int -> Int -> Int -> Int -> IO Pixbuf

-- | Create a new image from a static pointer.
--   
--   
--   
- Like pixbufNewFromXPMData, this function allows to include
--   images in the final binary program. The method used by this function
--   uses a binary representation and therefore needs less space in the
--   final executable. Save the image you want to include as png
--   and run:
--   
--   
--   
--   @echo #include "my_image.h" > my_image.c
--   gdk-pixbuf-csource --raw --extern --name=my_image myimage.png >> my_image.c
--   
--   
--   on it. Write a header file my_image.h containing:
--   
--   
--   #include <gdk/gdk.h>
--   extern guint8 my_image[];
--   
--   
--   and save it in the current directory. The created file can be compiled
--   with:
--   
--   
--   cc -c my_image.c `pkg-config --cflags gdk-2.0`
--   
--   
--   into an object file which must be linked into your Haskell program by
--   specifying my_image.o and "-#include my_image.h" on
--   the command line of GHC. Within you application you declare a pointer
--   to this image:
--   
--   
--   foreign label "my_image" myImage :: Ptr InlineImage
--   
--   
--   Calling pixbufNewFromInline with this pointer will return the
--   image in the object file. Creating the C file with the --raw
--   flag will result in a non-compressed image in the object file. The
--   advantage is that the picture will not be copied when this function is
--   called.
pixbufNewFromInline :: Ptr InlineImage -> IO Pixbuf

-- | A dymmy type for inline picture data.
--   
--   
--   
- This dummy type is used to declare pointers to image data that is
--   embedded in the executable. See pixbufNewFromInline for an
--   example.
--   
data InlineImage

-- | Create a restricted view of an image.
--   
--   
--   
- This function returns a Pixbuf object which shares the
--   image of the original one but only shows a part of it. Modifying
--   either buffer will affect the other.
--   
- This function throw an exception if the requested bounds are
--   invalid.
--   
pixbufNewSubpixbuf :: Pixbuf -> Int -> Int -> Int -> Int -> IO Pixbuf

-- | Create a new image from a string.
--   
--   
--   
- Creates a new pixbuf from a string description.
--   
pixbufNewFromXPMData :: GlibString string => [string] -> IO Pixbuf

-- | Queries the color space of a pixbuf.
pixbufGetColorSpace :: Pixbuf -> IO Colorspace

-- | Queries the number of colors for each pixel.
--   
--   
--   
- This function returns 3 for an RGB image without alpha
--   (transparency) channel, 4 for an RGB image with alpha channel.
--   
pixbufGetNChannels :: Pixbuf -> IO Int

-- | Query if the image has an alpha channel.
--   
--   
--   
- The alpha channel determines the opaqueness of the pixel.
--   
pixbufGetHasAlpha :: Pixbuf -> IO Bool

-- | Queries the number of bits for each color.
--   
--   
--   
- Each pixel is has a number of cannels for each pixel, each channel
--   has this many bits.
--   
pixbufGetBitsPerSample :: Pixbuf -> IO Int

-- | An array that stored the raw pixel data of a Pixbuf.
--   
--   
--   
- See pixbufGetPixels.
--   
data PixbufData i e

-- | Retrieve the internal array of raw image data.
--   
--   
--   
- Image data in a pixbuf is stored in memory in uncompressed, packed
--   format. Rows in the image are stored top to bottom, and in each row
--   pixels are stored from left to right. There may be padding at the end
--   of a row. The "rowstride" value of a pixbuf, as returned by
--   pixbufGetRowstride, indicates the number of bytes between
--   rows.
--   
- The returned array is a flat representation of a three dimensional
--   array: x-coordinate, y-coordinate and several channels for each color.
--   The number of channels is usually 3 for plain RGB data or 4 for RGB
--   data with an alpha channel. To read or write a specific pixel use the
--   formula: p = y * rowstride + x * nChannels for the pixel. If
--   the array contains bytes (or Word8s), p+0 is the red
--   value, p+1 green, p+2 blue and p+3 the
--   alpha (transparency) channel if present. If the alpha channel is
--   present, the array can accessed as an array over Word32 to
--   modify a whole pixel at a time. See also pixbufGetBitsPerSample
--   and pixbufGetNChannels.
--   
- Calling this function without explicitly giving it a type will
--   often lead to a compiler error since the type parameter e is
--   underspecified. If this happens the function can be explicitly typed:
--   pbData <- (pixbufGetPixels pb :: IO (PixbufData Int
--   Word8))
--   
- If modifying an image through Haskell's array interface is not
--   fast enough, it is possible to use unsafeRead and
--   unsafeWrite which have the same type signatures as
--   readArray and writeArray. Note that these are
--   internal functions that might change with GHC.
--   
pixbufGetPixels :: Storable e => Pixbuf -> IO (PixbufData Int e)

-- | Queries the width of this image.
pixbufGetWidth :: Pixbuf -> IO Int

-- | Queries the height of this image.
pixbufGetHeight :: Pixbuf -> IO Int

-- | Queries the rowstride of this image.
--   
--   
--   
- Queries the rowstride of a pixbuf, which is the number of bytes
--   between rows. Use this value to calculate the offset to a certain
--   row.
--   
pixbufGetRowstride :: Pixbuf -> IO Int

-- | Returns an attribute of an image.
--   
--   
--   
- Looks up if some information was stored under the key
--   when this image was saved.
--   
pixbufGetOption :: GlibString string => Pixbuf -> string -> IO (Maybe string)

-- | A string representing an image file format.
type ImageFormat = DefaultGlibString
pixbufGetFormats :: [ImageFormat]

-- | Save an image to disk.
--   
--   
--   
- The function takes a list of key - value pairs to specify either
--   how an image is saved or to actually save this additional data with
--   the image. JPEG images can be saved with a "quality" parameter; its
--   value should be in the range [0,100]. Text chunks can be attached to
--   PNG images by specifying parameters of the form "tEXt::key", where key
--   is an ASCII string of length 1-79. The values are Unicode
--   strings.
--   
- If an error occurs, the function will throw an exception that can
--   be caught using e.g. catchGErrorJust and one of the error codes
--   in PixbufError.
--   
pixbufSave :: (GlibString string, GlibFilePath fp) => Pixbuf -> fp -> ImageFormat -> [(string, string)] -> IO ()

-- | Create a deep copy of an image.
pixbufCopy :: Pixbuf -> IO Pixbuf

-- | How an image is scaled.
--   
--   
--   
- InterpNearest Nearest neighbor sampling; this is
--   the fastest and lowest quality mode. Quality is normally unacceptable
--   when scaling down, but may be OK when scaling up.
--   
- InterpTiles This is an accurate simulation of the
--   PostScript image operator without any interpolation enabled. Each
--   pixel is rendered as a tiny parallelogram of solid color, the edges of
--   which are implemented with antialiasing. It resembles nearest neighbor
--   for enlargement, and bilinear for reduction.
--   
- InterpBilinear Best quality/speed balance; use
--   this mode by default. Bilinear interpolation. For enlargement, it is
--   equivalent to point-sampling the ideal bilinear-interpolated image.
--   For reduction, it is equivalent to laying down small tiles and
--   integrating over the coverage area.
--   
- InterpHyper This is the slowest and highest
--   quality reconstruction function. It is derived from the hyperbolic
--   filters in Wolberg's "Digital Image Warping", and is formally defined
--   as the hyperbolic-filter sampling the ideal hyperbolic-filter
--   interpolated image (the filter is designed to be idempotent for 1:1
--   pixel mapping).
--   
data InterpType
InterpNearest :: InterpType
InterpTiles :: InterpType
InterpBilinear :: InterpType
InterpHyper :: InterpType

-- | Scale an image.
--   
--   
--   
- Creates a new Pixbuf containing a copy of src
--   scaled to the given measures. Leaves src unaffected.
--   
- interp affects the quality and speed of the scaling
--   function. InterpNearest is the fastest option but yields very
--   poor quality when scaling down. InterpBilinear is a good
--   trade-off between speed and quality and should thus be used as a
--   default.
--   
pixbufScaleSimple :: Pixbuf -> Int -> Int -> InterpType -> IO Pixbuf

-- | Copy a scaled image part to another image.
--   
--   
--   
- This function is the generic version of pixbufScaleSimple.
--   It scales src by scaleX and scaleY and
--   translate the image by offsetX and offsetY. Whatever
--   is in the intersection with the rectangle destX,
--   destY, destWidth, destHeight will be
--   rendered into dest.
--   
- The rectangle in the destination is simply overwritten. Use
--   pixbufComposite if you need to blend the source image onto the
--   destination.
--   
pixbufScale :: Pixbuf -> Pixbuf -> Int -> Int -> Int -> Int -> Double -> Double -> Double -> Double -> InterpType -> IO ()

-- | Blend a scaled image part onto another image.
--   
--   
--   
- This function is similar to pixbufScale but allows the
--   original image to "shine through". The alpha value determines
--   how opaque the source image is. Passing 0 is equivalent to
--   not calling this function at all, passing 255 has the same
--   effect as calling pixbufScale.
--   
pixbufComposite :: Pixbuf -> Pixbuf -> Int -> Int -> Int -> Int -> Double -> Double -> Double -> Double -> InterpType -> Word8 -> IO ()

-- | Flips a pixbuf horizontally and returns the result in a new pixbuf.
pixbufFlipHorizontally :: Pixbuf -> IO Pixbuf
pixbufFlipHorazontally :: Pixbuf -> IO Pixbuf

-- | Flips a pixbuf vertically and returns the result in a new pixbuf.
pixbufFlipVertically :: Pixbuf -> IO Pixbuf

-- | Rotates a pixbuf by a multiple of 90 degrees, and returns the result
--   in a new pixbuf.
pixbufRotateSimple :: Pixbuf -> PixbufRotation -> IO Pixbuf

-- | The possible rotations which can be passed to
--   pixbufRotateSimple.
--   
--   To make them easier to use, their numerical values are the actual
--   degrees.
data PixbufRotation
PixbufRotateNone :: PixbufRotation
PixbufRotateCounterclockwise :: PixbufRotation
PixbufRotateUpsidedown :: PixbufRotation
PixbufRotateClockwise :: PixbufRotation
pixbufAddAlpha :: Pixbuf -> Maybe (Word8, Word8, Word8) -> IO Pixbuf

-- | Copy a rectangular portion into another Pixbuf.
--   
--   The source Pixbuf remains unchanged. Conversion between
--   different formats is done automatically.
pixbufCopyArea :: Pixbuf -> Int -> Int -> Int -> Int -> Pixbuf -> Int -> Int -> IO ()

-- | Fills a Pixbuf with a color.
--   
--   
--   
- The passed-in color is a quadruple consisting of the red, green,
--   blue and alpha component of the pixel. If the Pixbuf does not
--   have an alpha channel, the alpha value is ignored.
--   
pixbufFill :: Pixbuf -> Word8 -> Word8 -> Word8 -> Word8 -> IO ()
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Gdk.Pixbuf.Colorspace
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Gdk.Pixbuf.InterpType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Gdk.Pixbuf.PixbufError
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Gdk.Pixbuf.PixbufRotation
instance System.Glib.GError.GErrorClass Graphics.UI.Gtk.Gdk.Pixbuf.PixbufError

-- | Maintains a list of all open GdkDisplays
--   
--   
--   
- Module available since Gdk version 2.2
--   
module Graphics.UI.Gtk.Gdk.DisplayManager
data DisplayManager
class GObjectClass o => DisplayManagerClass o
castToDisplayManager :: GObjectClass obj => obj -> DisplayManager
toDisplayManager :: DisplayManagerClass o => o -> DisplayManager

-- | Returns the global DisplayManager singleton;
--   parsePargs, init, or initCheck must have been
--   called first.
displayManagerGet :: IO DisplayManager

-- | List all currently open displays.
displayManagerListDisplays :: DisplayManagerClass self => self -> IO [Display]

-- | The default display.
displayManagerDefaultDisplay :: DisplayManagerClass self => Attr self Display

-- | The displayManagerOpened signal is emitted when a display is
--   opened.
displayManagerOpened :: DisplayManagerClass self => Signal self (Display -> IO ())

-- | Cursors | Standard and pixmap cursors.
module Graphics.UI.Gtk.Gdk.Cursor
newtype Cursor
Cursor :: ForeignPtr Cursor -> Cursor

-- | Cursor types.
data CursorType
XCursor :: CursorType
Arrow :: CursorType
BasedArrowDown :: CursorType
BasedArrowUp :: CursorType
Boat :: CursorType
Bogosity :: CursorType
BottomLeftCorner :: CursorType
BottomRightCorner :: CursorType
BottomSide :: CursorType
BottomTee :: CursorType
BoxSpiral :: CursorType
CenterPtr :: CursorType
Circle :: CursorType
Clock :: CursorType
CoffeeMug :: CursorType
Cross :: CursorType
CrossReverse :: CursorType
Crosshair :: CursorType
DiamondCross :: CursorType
Dot :: CursorType
Dotbox :: CursorType
DoubleArrow :: CursorType
DraftLarge :: CursorType
DraftSmall :: CursorType
DrapedBox :: CursorType
Exchange :: CursorType
Fleur :: CursorType
Gobbler :: CursorType
Gumby :: CursorType
Hand1 :: CursorType
Hand2 :: CursorType
Heart :: CursorType
Icon :: CursorType
IronCross :: CursorType
LeftPtr :: CursorType
LeftSide :: CursorType
LeftTee :: CursorType
Leftbutton :: CursorType
LlAngle :: CursorType
LrAngle :: CursorType
Man :: CursorType
Middlebutton :: CursorType
Mouse :: CursorType
Pencil :: CursorType
Pirate :: CursorType
Plus :: CursorType
QuestionArrow :: CursorType
RightPtr :: CursorType
RightSide :: CursorType
RightTee :: CursorType
Rightbutton :: CursorType
RtlLogo :: CursorType
Sailboat :: CursorType
SbDownArrow :: CursorType
SbHDoubleArrow :: CursorType
SbLeftArrow :: CursorType
SbRightArrow :: CursorType
SbUpArrow :: CursorType
SbVDoubleArrow :: CursorType
Shuttle :: CursorType
Sizing :: CursorType
Spider :: CursorType
Spraycan :: CursorType
Star :: CursorType
Target :: CursorType
Tcross :: CursorType
TopLeftArrow :: CursorType
TopLeftCorner :: CursorType
TopRightCorner :: CursorType
TopSide :: CursorType
TopTee :: CursorType
Trek :: CursorType
UlAngle :: CursorType
Umbrella :: CursorType
UrAngle :: CursorType
Watch :: CursorType
Xterm :: CursorType
LastCursor :: CursorType
BlankCursor :: CursorType
CursorIsPixmap :: CursorType

-- | Creates a new cursor from the set of builtin cursors for the default
--   display. See cursorNewForDisplay. To make the cursor invisible,
--   use BlankCursor.
cursorNew :: CursorType -> IO Cursor

-- | Creates a new cursor from a pixbuf. Not all GDK backends support RGBA
--   cursors. If they are not supported, a monochrome approximation will be
--   displayed. The functions displaySupportsCursorAlpha and
--   displaySupportsCursorColor can be used to determine whether
--   RGBA cursors are supported; displayGetDefaultCursorSize and
--   displayGetMaximalCursorSize give information about cursor
--   sizes.
--   
--   On the X backend, support for RGBA cursors requires a sufficiently new
--   version of the X Render extension.
cursorNewFromPixbuf :: Display -> Pixbuf -> Int -> Int -> IO Cursor

-- | Creates a new cursor by looking up name in the current cursor theme.
cursorNewFromName :: GlibString string => Display -> string -> IO (Maybe Cursor)

-- | Creates a new cursor from the set of builtin cursors.
cursorNewForDisplay :: Display -> CursorType -> IO Cursor

-- | Returns the display on which the GdkCursor is defined.
cursorGetDisplay :: Cursor -> IO Display

-- | Returns a Pixbuf with the image used to display the cursor.
--   Note that depending on the capabilities of the windowing system and on
--   the cursor, GDK may not be able to obtain the image data. In this
--   case, Nothing is returned.
cursorGetImage :: Cursor -> IO (Maybe Pixbuf)
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Gdk.Cursor.CursorType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Gdk.Cursor.CursorType
instance GHC.Classes.Eq Graphics.UI.Gtk.Gdk.Cursor.CursorType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Gdk.Cursor.CursorType

-- | Text buffer for Entry
--   
--   
--   
- Module available since Gtk+ version 2.18
--   
module Graphics.UI.Gtk.Entry.EntryBuffer
data EntryBuffer
class GObjectClass o => EntryBufferClass o
castToEntryBuffer :: GObjectClass obj => obj -> EntryBuffer
toEntryBuffer :: EntryBufferClass o => o -> EntryBuffer

-- | Create a new EntryBuffer object.
--   
--   Optionally, specify initial text to set in the buffer.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferNew :: GlibString string => Maybe string -> IO EntryBuffer

-- | Retrieves the length in bytes of the buffer. See
--   entryBufferGetLength.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferGetBytes :: EntryBufferClass self => self -> IO Int

-- | Inserts chars into the contents of the buffer, at position
--   position.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferInsertText :: (EntryBufferClass self, GlibString string) => self -> Int -> string -> IO Int

-- | Deletes a sequence of characters from the buffer. nChars
--   characters are deleted starting at position. If
--   nChars is negative, then all characters until the end of the
--   text are deleted.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferDeleteText :: EntryBufferClass self => self -> Int -> Int -> IO Int

-- | Used when subclassing EntryBuffer
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferEmitDeletedText :: EntryBufferClass self => self -> Int -> Int -> IO ()

-- | Used when subclassing EntryBuffer
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferEmitInsertedText :: (EntryBufferClass self, GlibString string) => self -> Int -> string -> Int -> IO ()

-- | The contents of the buffer.
--   
--   Default value: ""
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferText :: (EntryBufferClass self, GlibString string) => Attr self string

-- | The length of the text in buffer.
--   
--   Allowed values: <= 65535
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferLength :: EntryBufferClass self => ReadAttr self Int

-- | The maximum length of the text in the buffer.
--   
--   Allowed values: [0,65535]
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.18
--   
entryBufferMaxLength :: EntryBufferClass self => Attr self Int

-- | 
--   
- Available since Gtk+ version 2.18
--   
entryBufferInsertedText :: (EntryBufferClass self, GlibString string) => Signal self (Int -> string -> Int -> IO ())

-- | 
--   
- Available since Gtk+ version 2.18
--   
entryBufferDeletedText :: EntryBufferClass self => Signal self (Int -> Int -> IO ())

-- | Interface for text-editing widgets
module Graphics.UI.Gtk.Entry.Editable
data Editable
class GObjectClass o => EditableClass o
castToEditable :: GObjectClass obj => obj -> Editable
gTypeEditable :: GType
toEditable :: EditableClass o => o -> Editable

-- | Selects a region of text. The characters that are selected are those
--   characters at positions from startPos up to, but not
--   including endPos. If endPos is negative, then the
--   the characters selected will be those characters from
--   startPos to the end of the text.
--   
--   Calling this function with start=1 and end=4 it will
--   mark "ask" in the string "Haskell".
editableSelectRegion :: EditableClass self => self -> Int -> Int -> IO ()

-- | Gets the current selection bounds, if there is a selection.
editableGetSelectionBounds :: EditableClass self => self -> IO (Int, Int)

-- | Inserts text at a given position.
editableInsertText :: (EditableClass self, GlibString string) => self -> string -> Int -> IO Int

-- | Deletes a sequence of characters. The characters that are deleted are
--   those characters at positions from startPos up to, but not
--   including endPos. If endPos is negative, then the
--   the characters deleted will be those characters from startPos
--   to the end of the text.
editableDeleteText :: EditableClass self => self -> Int -> Int -> IO ()

-- | Retrieves a sequence of characters. The characters that are retrieved
--   are those characters at positions from startPos up to, but
--   not including endPos. If endPos is negative, then
--   the the characters retrieved will be those characters from
--   startPos to the end of the text.
editableGetChars :: (EditableClass self, GlibString string) => self -> Int -> Int -> IO string

-- | Causes the characters in the current selection to be copied to the
--   clipboard and then deleted from the widget.
editableCutClipboard :: EditableClass self => self -> IO ()

-- | Causes the characters in the current selection to be copied to the
--   clipboard.
editableCopyClipboard :: EditableClass self => self -> IO ()

-- | Causes the contents of the clipboard to be pasted into the given
--   widget at the current cursor position.
editablePasteClipboard :: EditableClass self => self -> IO ()

-- | Deletes the current contents of the widgets selection and disclaims
--   the selection.
editableDeleteSelection :: EditableClass self => self -> IO ()

-- | Determines if the user can edit the text in the editable widget or
--   not.
editableSetEditable :: EditableClass self => self -> Bool -> IO ()

-- | Retrieves whether the text is editable. See
--   editableSetEditable.
editableGetEditable :: EditableClass self => self -> IO Bool

-- | Sets the cursor position.
editableSetPosition :: EditableClass self => self -> Int -> IO ()

-- | Retrieves the current cursor position.
editableGetPosition :: EditableClass self => self -> IO Int

-- | 'position' property. See editableGetPosition and
--   editableSetPosition
editablePosition :: EditableClass self => Attr self Int

-- | 'editable' property. See editableGetEditable and
--   editableSetEditable
editableEditable :: EditableClass self => Attr self Bool

-- | The editableChanged signal is emitted at the end of a single
--   user-visible operation on the contents of the Editable.
--   
--   
--   
- For instance, a paste operation that replaces the contents of the
--   selection will cause only one signal emission (even though it is
--   implemented by first deleting the selection, then inserting the new
--   content, and may cause multiple insertText signals to be
--   emitted).
--   
editableChanged :: EditableClass ec => Signal ec (IO ())

-- | Emitted when a piece of text is deleted from the Editable
--   widget.
--   
--   
--   
- See insertText for information on how to use this
--   signal.
--   
deleteText :: EditableClass self => Signal self (Int -> Int -> IO ())

-- | Emitted when a piece of text is inserted into the Editable
--   widget.
--   
--   
--   
- The connected signal receives the text that is inserted, together
--   with the position in the entry widget. The return value should be the
--   position in the entry widget that lies past the recently inserted text
--   (i.e. you should return the given position plus the length of the
--   string).
--   
- To modify the text that the user inserts, you need to connect to
--   this signal, modify the text the way you want and then call
--   editableInsertText. To avoid that this signal handler is called
--   recursively, you need to temporarily block it using
--   signalBlock. After the default signal handler has inserted your
--   modified text, it is important that you prevent the default handler
--   from being executed again when this signal handler returns. To stop
--   the current signal, use stopInsertText. The following code is
--   an example of how to turn all input into uppercase:
--   
--   
--   
--   idRef <- newIORef undefined
--   id <- entry `on` insertText $ \str pos -> do
--   id <- readIORef idRef
--   signalBlock id
--   pos' <- editableInsertText entry (map toUpper str) pos
--   signalUnblock id
--   stopInsertText id
--   return pos'
--   writeIORef idRef id
--   
--   
--   Note that binding insertText using after is not very
--   useful, except to track editing actions.
insertText :: (EditableClass self, GlibString string) => Signal self (string -> Int -> IO Int)

-- | Stop the current signal that deletes text.
stopDeleteText :: EditableClass self => ConnectId self -> IO ()

-- | Stop the current signal that inserts text.
stopInsertText :: EditableClass self => ConnectId self -> IO ()

-- | Build an interface from an XML UI definition
--   
--   All functions in this module are only available in Gtk 2.12 or higher.
module Graphics.UI.Gtk.Builder
data Builder
class GObjectClass o => BuilderClass o
castToBuilder :: GObjectClass obj => obj -> Builder
gTypeBuilder :: GType
toBuilder :: BuilderClass o => o -> Builder
data BuilderError
BuilderErrorInvalidTypeFunction :: BuilderError
BuilderErrorUnhandledTag :: BuilderError
BuilderErrorMissingAttribute :: BuilderError
BuilderErrorInvalidAttribute :: BuilderError
BuilderErrorInvalidTag :: BuilderError
BuilderErrorMissingPropertyValue :: BuilderError
BuilderErrorInvalidValue :: BuilderError
BuilderErrorVersionMismatch :: BuilderError
BuilderErrorDuplicateId :: BuilderError
BuilderErrorObjectTypeRefused :: BuilderError
BuilderErrorTemplateMismatch :: BuilderError
BuilderErrorInvalidProperty :: BuilderError
BuilderErrorInvalidSignal :: BuilderError
BuilderErrorInvalidId :: BuilderError

-- | Creates a new Builder object.
builderNew :: IO Builder

-- | Parses a file containing a GtkBuilder UI definition and merges it with
--   the current contents of the Builder.
--   
--   
--   
- If an error occurs, the computation will throw an exception that
--   can be caught using e.g. catchGErrorJust and one of the error
--   codes in BuilderError.
--   
builderAddFromFile :: GlibFilePath fp => Builder -> fp -> IO ()

-- | Parses a string containing a GtkBuilder UI definition and merges it
--   with the current contents of the Builder.
--   
--   
--   
- If an error occurs, the computation will throw an exception that
--   can be caught using e.g. catchGErrorJust and one of the error
--   codes in BuilderError.
--   
builderAddFromString :: GlibString string => Builder -> string -> IO ()

-- | Parses a file containing a GtkBuilder UI definition building only the
--   requested objects and merges them with the current contents of the
--   Builder.
--   
--   
--   
- If an error occurs, the computation will throw an exception that
--   can be caught using e.g. catchGErrorJust and one of the error
--   codes in BuilderError.
--   
builderAddObjectsFromFile :: (GlibString string, GlibFilePath fp) => Builder -> fp -> [string] -> IO ()

-- | Parses a string containing a GtkBuilder UI definition building only
--   the requested objects and merges them with the current contents of the
--   Builder.
--   
--   
--   
- If an error occurs, the computation will throw an exception that
--   can be caught using e.g. catchGErrorJust and one of the error
--   codes in BuilderError.
--   
builderAddObjectsFromString :: GlibString string => Builder -> string -> [string] -> IO ()

-- | Gets the object with the given name, with a conversion function. Note
--   that this computation does not increment the reference count of the
--   returned object.
--   
--   If the object with the given ID is not of the requested type, an
--   exception will be thrown.
builderGetObject :: (GObjectClass cls, GlibString string) => Builder -> (GObject -> cls) -> string -> IO cls

-- | Gets all objects that have been constructed by builder. Note that this
--   computation does not increment the reference counts of the returned
--   objects.
builderGetObjects :: Builder -> IO [GObject]

-- | Gets the object with the given name. Note that this computation does
--   not increment the reference count of the returned object.
builderGetObjectRaw :: GlibString string => Builder -> string -> IO (Maybe GObject)

-- | Sets the translation domain of the Builder.
builderSetTranslationDomain :: GlibString string => Builder -> Maybe string -> IO ()

-- | Gets the translation domain of the Builder.
builderGetTranslationDomain :: GlibString string => Builder -> IO (Maybe string)
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Builder.BuilderError
instance GHC.Classes.Eq Graphics.UI.Gtk.Builder.BuilderError
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Builder.BuilderError

-- | An action of which represents a list of recently used files
--   
--   
--   
- Module available since Gtk+ version 2.12
--   
module Graphics.UI.Gtk.ActionMenuToolbar.RecentAction
data RecentAction
class ActionClass o => RecentActionClass o
castToRecentAction :: GObjectClass obj => obj -> RecentAction
toRecentAction :: RecentActionClass o => o -> RecentAction

-- | Creates a new RecentAction object. To add the action to a
--   ActionGroup and set the accelerator for the action, call
--   actionGroupAddActionWithAccel.
recentActionNew :: GlibString string => string -> Maybe string -> Maybe string -> Maybe string -> IO RecentAction

-- | Creates a new RecentAction object. To add the action to a
--   ActionGroup and set the accelerator for the action, call
--   actionGroupAddActionWithAccel.
recentActionNewForManager :: (RecentManagerClass manager, GlibString string) => string -> Maybe string -> Maybe string -> Maybe string -> Maybe manager -> IO RecentAction

-- | If recent items should be shown with numbers next to them.
recentActionShowNumbers :: RecentActionClass self => Attr self Bool

-- | Base class for HSeparator and VSeparator.
module Graphics.UI.Gtk.Abstract.Separator
data Separator
class WidgetClass o => SeparatorClass o
castToSeparator :: GObjectClass obj => obj -> Separator
gTypeSeparator :: GType
toSeparator :: SeparatorClass o => o -> Separator

-- | Base class for HScrollbar and VScrollbar
module Graphics.UI.Gtk.Abstract.Scrollbar
data Scrollbar
class RangeClass o => ScrollbarClass o
castToScrollbar :: GObjectClass obj => obj -> Scrollbar
gTypeScrollbar :: GType
toScrollbar :: ScrollbarClass o => o -> Scrollbar

-- | Base class for HScale and VScale
module Graphics.UI.Gtk.Abstract.Scale
data Scale
class RangeClass o => ScaleClass o
castToScale :: GObjectClass obj => obj -> Scale
gTypeScale :: GType
toScale :: ScaleClass o => o -> Scale

-- | Sets the number of decimal places that are displayed in the value.
--   Also causes the value of the adjustment to be rounded off to this
--   number of digits, so the retrieved value matches the value the user
--   saw.
scaleSetDigits :: ScaleClass self => self -> Int -> IO ()

-- | Gets the number of decimal places that are displayed in the value.
scaleGetDigits :: ScaleClass self => self -> IO Int

-- | Specifies whether the current value is displayed as a string next to
--   the slider.
scaleSetDrawValue :: ScaleClass self => self -> Bool -> IO ()

-- | Returns whether the current value is displayed as a string next to the
--   slider.
scaleGetDrawValue :: ScaleClass self => self -> IO Bool

-- | Position a scale's value is drawn relative to the through
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType

-- | Sets the position in which the current value is displayed.
scaleSetValuePos :: ScaleClass self => self -> PositionType -> IO ()

-- | Gets the position in which the current value is displayed.
scaleGetValuePos :: ScaleClass self => self -> IO PositionType

-- | The number of decimal places that are displayed in the value.
--   
--   Allowed values: [-1,64]
--   
--   Default value: 1
scaleDigits :: ScaleClass self => Attr self Int

-- | Whether the current value is displayed as a string next to the slider.
--   
--   Default value: True
scaleDrawValue :: ScaleClass self => Attr self Bool

-- | The position in which the current value is displayed.
--   
--   Default value: PosTop
scaleValuePos :: ScaleClass self => Attr self PositionType

-- | The base class of the Gtk+ type hierarchy.
--   
--   
--   
- Each widget is a represented as a purely abstract data type. It
--   can only be accessed through and the special access functions that are
--   defined in each widget file.
--   
module Graphics.UI.Gtk.Abstract.Object
makeNewObject :: GObjectClass obj => (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
type GWeakNotify = FunPtr Ptr () -> Ptr GObject -> IO ()

-- | Attach a callback that will be called after the destroy hooks have
--   been called
objectWeakref :: GObjectClass o => o -> IO () -> IO GWeakNotify

-- | Detach a weak destroy callback function
objectWeakunref :: GObjectClass o => o -> GWeakNotify -> IO ()

-- | Signals that all holders of a reference to the Object should
--   release the reference that they hold. May result in finalization of
--   the object if all references are released.
objectDestroy :: WidgetClass self => Signal self (IO ())

-- | Register a notify callback that is triggered when the given property
--   has been modified.
--   
--   
--   
- Note that this callback is triggered even if the actual value of
--   the property has not changed.
--   
- Not all attributes are properties. A warning will be generated at
--   runtime if the passed-in attribute is not a property of the class with
--   which it was registered.
--   
notifyProperty :: GObjectClass self => ReadWriteAttr self a b -> Signal self (IO ())

-- | A 'color wheel' widget
--   
--   
--   
- Module available since Gtk+ version 2.14
--   
module Graphics.UI.Gtk.Selectors.HSV
data HSV
class WidgetClass o => HSVClass o
castToHSV :: GObjectClass obj => obj -> HSV
toHSV :: HSVClass o => o -> HSV

-- | Creates a new HSV color selector.
--   
--   
--   
- Available since 2.14
--   
hsvNew :: IO HSV

-- | An HSV color selector can be said to be adjusting if multiple
--   rapid changes are being made to its value, for example, when the user
--   is adjusting the value with the mouse. This function queries whether
--   the HSV color selector is being adjusted or not.
hsvIsAdjusting :: HSVClass self => self -> IO Bool

-- | Converts a color from HSV space to RGB. Input values must be in
--   the [0.0, 1.0] range; output values will be in the same range.
hsvToRgb :: (Double, Double, Double) -> (Double, Double, Double)

-- | Converts a color from RGB space to HSV. Input values must be in
--   the [0.0, 1.0] range; output values will be in the same range.
rgbToHsv :: (Double, Double, Double) -> (Double, Double, Double)

-- | Color in an HSV color selector. Color component values must be
--   in the [0.0, 1.0] range.
hsvColor :: HSVClass self => Attr self (Double, Double, Double)

-- | The size and ring width of an HSV color selector.
hsvMetrics :: HSVClass self => Attr self (Int, Int)
hsvChanged :: HSVClass self => Signal self (IO ())
hsvMove :: HSVClass self => Signal self (DirectionType -> IO ())

-- | A dialog box for selecting fonts
module Graphics.UI.Gtk.Selectors.FontSelectionDialog
data FontSelectionDialog
class DialogClass o => FontSelectionDialogClass o
castToFontSelectionDialog :: GObjectClass obj => obj -> FontSelectionDialog
gTypeFontSelectionDialog :: GType
toFontSelectionDialog :: FontSelectionDialogClass o => o -> FontSelectionDialog

-- | Creates a new FontSelectionDialog.
fontSelectionDialogNew :: GlibString string => string -> IO FontSelectionDialog

-- | Gets the currently-selected font name.
fontSelectionDialogGetFontName :: (FontSelectionDialogClass self, GlibString string) => self -> IO (Maybe string)

-- | Sets the currently-selected font.
fontSelectionDialogSetFontName :: (FontSelectionDialogClass self, GlibString string) => self -> string -> IO Bool

-- | Gets the text displayed in the preview area.
fontSelectionDialogGetPreviewText :: (FontSelectionDialogClass self, GlibString string) => self -> IO string

-- | Sets the text displayed in the preview area.
fontSelectionDialogSetPreviewText :: (FontSelectionDialogClass self, GlibString string) => self -> string -> IO ()

-- | Gets the Cancel button.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
fontSelectionDialogGetCancelButton :: FontSelectionDialogClass self => self -> IO Widget

-- | Gets the OK button.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
fontSelectionDialogGetOkButton :: FontSelectionDialogClass self => self -> IO Widget

-- | Retrieves the FontSelection widget embedded in the dialog.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
fontSelectionDialogGetFontSelection :: FontSelectionDialogClass self => self -> IO FontSelection

-- | 'previewText' property. See fontSelectionDialogGetPreviewText
--   and fontSelectionDialogSetPreviewText
fontSelectionDialogPreviewText :: (FontSelectionDialogClass self, GlibString string) => Attr self string

-- | A widget for selecting fonts
module Graphics.UI.Gtk.Selectors.FontSelection
data FontSelection
class VBoxClass o => FontSelectionClass o
castToFontSelection :: GObjectClass obj => obj -> FontSelection
gTypeFontSelection :: GType
toFontSelection :: FontSelectionClass o => o -> FontSelection

-- | Creates a new FontSelection.
fontSelectionNew :: IO FontSelection

-- | Gets the currently-selected font name.
fontSelectionGetFontName :: (FontSelectionClass self, GlibString string) => self -> IO (Maybe string)

-- | Sets the currently-selected font.
fontSelectionSetFontName :: (FontSelectionClass self, GlibString string) => self -> string -> IO Bool

-- | Gets the text displayed in the preview area.
fontSelectionGetPreviewText :: (FontSelectionClass self, GlibString string) => self -> IO string

-- | Sets the text displayed in the preview area.
fontSelectionSetPreviewText :: (FontSelectionClass self, GlibString string) => self -> string -> IO ()

-- | The X string that represents this font.
--   
--   Default value: ""
fontSelectionFontName :: (FontSelectionClass self, GlibString string) => Attr self string

-- | The text to display in order to demonstrate the selected font.
--   
--   Default value: "abcdefghijk ABCDEFGHIJK"
fontSelectionPreviewText :: (FontSelectionClass self, GlibString string) => Attr self string

-- | A button to launch a font selection dialog
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.Selectors.FontButton
data FontButton
class ButtonClass o => FontButtonClass o
castToFontButton :: GObjectClass obj => obj -> FontButton
gTypeFontButton :: GType
toFontButton :: FontButtonClass o => o -> FontButton

-- | Creates a new font picker widget.
fontButtonNew :: IO FontButton

-- | Creates a new font picker widget.
fontButtonNewWithFont :: GlibString string => string -> IO FontButton

-- | Sets or updates the currently-displayed font in font picker dialog.
fontButtonSetFontName :: (FontButtonClass self, GlibString string) => self -> string -> IO Bool

-- | Retrieves the name of the currently selected font.
fontButtonGetFontName :: (FontButtonClass self, GlibString string) => self -> IO string

-- | If showStyle is True, the font style will be
--   displayed along with name of the selected font.
fontButtonSetShowStyle :: FontButtonClass self => self -> Bool -> IO ()

-- | Returns whether the name of the font style will be shown in the label.
fontButtonGetShowStyle :: FontButtonClass self => self -> IO Bool

-- | If showSize is True, the font size will be displayed
--   along with the name of the selected font.
fontButtonSetShowSize :: FontButtonClass self => self -> Bool -> IO ()

-- | Returns whether the font size will be shown in the label.
fontButtonGetShowSize :: FontButtonClass self => self -> IO Bool

-- | If useFont is True, the font name will be written
--   using the selected font.
fontButtonSetUseFont :: FontButtonClass self => self -> Bool -> IO ()

-- | Returns whether the selected font is used in the label.
fontButtonGetUseFont :: FontButtonClass self => self -> IO Bool

-- | If useSize is True, the font name will be written
--   using the selected size.
fontButtonSetUseSize :: FontButtonClass self => self -> Bool -> IO ()

-- | Returns whether the selected size is used in the label.
fontButtonGetUseSize :: FontButtonClass self => self -> IO Bool

-- | Sets the title for the font selection dialog.
fontButtonSetTitle :: (FontButtonClass self, GlibString string) => self -> string -> IO ()

-- | Retrieves the title of the font selection dialog.
fontButtonGetTitle :: (FontButtonClass self, GlibString string) => self -> IO string

-- | The title of the font selection dialog.
--   
--   Default value: "Pick a Font"
fontButtonTitle :: (FontButtonClass self, GlibString string) => Attr self string

-- | The name of the currently selected font.
--   
--   Default value: "Sans 12"
fontButtonFontName :: (FontButtonClass self, GlibString string) => Attr self string

-- | If this property is set to True, the label will be drawn in
--   the selected font.
--   
--   Default value: False
fontButtonUseFont :: FontButtonClass self => Attr self Bool

-- | If this property is set to True, the label will be drawn with
--   the selected font size.
--   
--   Default value: False
fontButtonUseSize :: FontButtonClass self => Attr self Bool

-- | If this property is set to True, the name of the selected
--   font style will be shown in the label. For a more WYSIWIG way to show
--   the selected style, see the ::use-font property.
--   
--   Default value: True
fontButtonShowStyle :: FontButtonClass self => Attr self Bool

-- | If this property is set to True, the selected font size will
--   be shown in the label. For a more WYSIWIG way to show the selected
--   size, see the ::use-size property.
--   
--   Default value: True
fontButtonShowSize :: FontButtonClass self => Attr self Bool

-- | The fontSet signal is emitted when the user selects a font.
--   When handling this signal, use fontButtonGetFontName to find
--   out which font was just selected.
onFontSet :: FontButtonClass self => self -> IO () -> IO (ConnectId self)

-- | The fontSet signal is emitted when the user selects a font.
--   When handling this signal, use fontButtonGetFontName to find
--   out which font was just selected.
afterFontSet :: FontButtonClass self => self -> IO () -> IO (ConnectId self)

-- | A filter for selecting a file subset
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.Selectors.FileFilter
data FileFilter
class GObjectClass o => FileFilterClass o
castToFileFilter :: GObjectClass obj => obj -> FileFilter
gTypeFileFilter :: GType
toFileFilter :: FileFilterClass o => o -> FileFilter
data FileFilterFlags
FileFilterFilename :: FileFilterFlags
FileFilterUri :: FileFilterFlags
FileFilterDisplayName :: FileFilterFlags
FileFilterMimeType :: FileFilterFlags

-- | Creates a new FileFilter with no rules added to it. Such a
--   filter doesn't accept any files, so is not particularly useful until
--   you add rules with fileFilterAddMimeType,
--   fileFilterAddPattern, or fileFilterAddCustom.
fileFilterNew :: IO FileFilter

-- | Sets the human-readable name of the filter; this is the string that
--   will be displayed in the file selector user interface if there is a
--   selectable list of filters.
fileFilterSetName :: GlibString string => FileFilter -> string -> IO ()

-- | Gets the human-readable name for the filter. See
--   fileFilterSetName.
fileFilterGetName :: GlibString string => FileFilter -> IO string

-- | Adds a rule allowing a given mime type to filter.
fileFilterAddMimeType :: GlibString string => FileFilter -> string -> IO ()

-- | Adds a rule allowing a shell style glob to a filter.
fileFilterAddPattern :: GlibString string => FileFilter -> string -> IO ()

-- | Adds rule to a filter that allows files based on a custom callback
--   function. The list of flags needed which is passed in
--   provides information about what sorts of information that the filter
--   function needs; this allows Gtk+ to avoid retrieving expensive
--   information when it isn't needed by the filter.
fileFilterAddCustom :: GlibString string => FileFilter -> [FileFilterFlags] -> (Maybe string -> Maybe string -> Maybe string -> Maybe string -> IO Bool) -> IO ()

-- | Adds a rule allowing image files in the formats supported by
--   Pixbuf.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
fileFilterAddPixbufFormats :: FileFilter -> IO ()

-- | 'name' property. See fileFilterGetName and
--   fileFilterSetName
fileFilterName :: GlibString string => Attr FileFilter string
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
instance System.Glib.Flags.Flags Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Selectors.FileFilter.FileFilterFlags

-- | File chooser interface used by FileChooserWidget and
--   FileChooserDialog
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.Selectors.FileChooser
data FileChooser
class GObjectClass o => FileChooserClass o
castToFileChooser :: GObjectClass obj => obj -> FileChooser
gTypeFileChooser :: GType
toFileChooser :: FileChooserClass o => o -> FileChooser

-- | Describes whether a FileChooser is being used to open existing
--   files or to save to a possibly new file.
data FileChooserAction
FileChooserActionOpen :: FileChooserAction
FileChooserActionSave :: FileChooserAction
FileChooserActionSelectFolder :: FileChooserAction
FileChooserActionCreateFolder :: FileChooserAction

-- | These identify the various errors that can occur while calling
--   FileChooser functions.
data FileChooserError
FileChooserErrorNonexistent :: FileChooserError
FileChooserErrorBadFilename :: FileChooserError
FileChooserErrorAlreadyExists :: FileChooserError
FileChooserErrorIncompleteHostname :: FileChooserError

-- | Used as a return value of handlers for the onConfirmOverwrite
--   signal of a FileChooser.
--   
--   
--   
- This value determines whether the file chooser will present the
--   stock confirmation dialog, accept the user's choice of a filename, or
--   let the user choose another filename.
--   
--   
--   Since Gtk 2.8.
data FileChooserConfirmation
FileChooserConfirmationConfirm :: FileChooserConfirmation
FileChooserConfirmationAcceptFilename :: FileChooserConfirmation
FileChooserConfirmationSelectAgain :: FileChooserConfirmation

-- | Sets the type of operation that the chooser is performing; the user
--   interface is adapted to suit the selected action. For example, an
--   option to create a new folder might be shown if the action is
--   FileChooserActionSave but not if the action is
--   FileChooserActionOpen.
fileChooserSetAction :: FileChooserClass self => self -> FileChooserAction -> IO ()

-- | Gets the type of operation that the file chooser is performing; see
--   fileChooserSetAction.
fileChooserGetAction :: FileChooserClass self => self -> IO FileChooserAction

-- | Sets whether only local files can be selected in the file selector. If
--   localOnly is True (the default), then the selected
--   file are files are guaranteed to be accessible through the operating
--   systems native file file system and therefore the application only
--   needs to worry about the filename functions in FileChooser,
--   like fileChooserGetFilename, rather than the URI functions like
--   fileChooserGetURI,
fileChooserSetLocalOnly :: FileChooserClass self => self -> Bool -> IO ()

-- | Gets whether only local files can be selected in the file selector.
--   See fileChooserSetLocalOnly
fileChooserGetLocalOnly :: FileChooserClass self => self -> IO Bool

-- | Sets whether multiple files can be selected in the file selector. This
--   is only relevant if the action is set to be
--   FileChooserActionOpen or FileChooserActionSave. It
--   cannot be set with either of the folder actions.
fileChooserSetSelectMultiple :: FileChooserClass self => self -> Bool -> IO ()

-- | Gets whether multiple files can be selected in the file selector. See
--   fileChooserSetSelectMultiple.
fileChooserGetSelectMultiple :: FileChooserClass self => self -> IO Bool

-- | Sets the current name in the file selector, as if entered by the user.
--   Note that the name passed in here is a Unicode string rather than a
--   filename. This function is meant for such uses as a suggested name in
--   a "Save As..." dialog.
--   
--   If you want to preselect a particular existing file, you should use
--   fileChooserSetFilename or fileChooserSetURI instead.
--   Please see the documentation for those functions for an example of
--   using fileChooserSetCurrentName as well.
fileChooserSetCurrentName :: (FileChooserClass self, GlibFilePath fp) => self -> fp -> IO ()

-- | Gets the filename for the currently selected file in the file
--   selector. If multiple files are selected, one of the filenames will be
--   returned at random.
--   
--   If the file chooser is in folder mode, this function returns the
--   selected folder.
fileChooserGetFilename :: (FileChooserClass self, GlibFilePath fp) => self -> IO (Maybe fp)

-- | Sets filename as the current filename for the file chooser,
--   by changing to the file's parent folder and actually selecting the
--   file in list. If the chooser is in
--   FileChooserActionSave mode, the file's base name will also
--   appear in the dialog's file name entry.
--   
--   If the file name isn't in the current folder of chooser, then
--   the current folder of chooser will be changed to the folder
--   containing filename. This is equivalent to a sequence of
--   fileChooserUnselectAll followed by
--   fileChooserSelectFilename.
--   
--   Note that the file must exist, or nothing will be done except for the
--   directory change.
--   
--   If you are implementing a File/Save As... dialog, you should use this
--   function if you already have a file name to which the user may save;
--   for example, when the user opens an existing file and then does
--   File/Save As... on it. If you don't have a file name already — for
--   example, if the user just created a new file and is saving it for the
--   first time, do not call this function. Instead, use something similar
--   to this:
--   
--   
--   if documentIsNew
--   then do -- the user just created a new document
--   fileChooserSetCurrentFolder chooser defaultFolderForSaving
--   fileChooserSetCurrentName chooser "Untitled document"
--   else do --the user edited an existing document
--   fileChooserSetFilename chooser existingFilename
--   
fileChooserSetFilename :: FileChooserClass self => self -> FilePath -> IO Bool

-- | Selects a filename. If the file name isn't in the current folder of
--   the chooser, then the current folder of the chooser will be changed to
--   the folder containing filename.
fileChooserSelectFilename :: FileChooserClass self => self -> FilePath -> IO Bool

-- | Unselects a currently selected filename. If the filename is not in the
--   current directory, does not exist, or is otherwise not currently
--   selected, does nothing.
fileChooserUnselectFilename :: FileChooserClass self => self -> FilePath -> IO ()

-- | Selects all the files in the current folder of a file chooser.
fileChooserSelectAll :: FileChooserClass self => self -> IO ()

-- | Unselects all the files in the current folder of a file chooser.
fileChooserUnselectAll :: FileChooserClass self => self -> IO ()

-- | Lists all the selected files and subfolders in the current folder of
--   the chooser. The returned names are full absolute paths. If files in
--   the current folder cannot be represented as local filenames they will
--   be ignored. (See fileChooserGetURIs)
fileChooserGetFilenames :: FileChooserClass self => self -> IO [FilePath]

-- | Sets the current folder for the chooser from a local filename. The
--   user will be shown the full contents of the current folder, plus user
--   interface elements for navigating to other folders.
fileChooserSetCurrentFolder :: FileChooserClass self => self -> FilePath -> IO Bool

-- | Gets the current folder of the chooser as a local filename. See
--   fileChooserSetCurrentFolder.
fileChooserGetCurrentFolder :: FileChooserClass self => self -> IO (Maybe FilePath)

-- | Gets the URI for the currently selected file in the file selector. If
--   multiple files are selected, one of the filenames will be returned at
--   random.
--   
--   If the file chooser is in folder mode, this function returns the
--   selected folder.
fileChooserGetURI :: FileChooserClass self => self -> IO (Maybe String)

-- | Sets the file referred to by uri as the current file for the
--   file chooser, by changing to the URI's parent folder and actually
--   selecting the URI in the list. If the chooser is
--   FileChooserActionSave mode, the URI's base name will also
--   appear in the dialog's file name entry.
--   
--   If the URI isn't in the current folder of chooser, then the
--   current folder of chooser will be changed to the folder
--   containing uri. This is equivalent to a sequence of
--   fileChooserUnselectAll followed by fileChooserSelectURI.
--   
--   Note that the URI must exist, or nothing will be done except for the
--   directory change. If you are implementing a File/Save As... dialog,
--   you should use this function if you already have a file name to which
--   the user may save; for example, when the user opens an existing file
--   and then does File/Save As... on it. If you don't have a file name
--   already — for example, if the user just created a new file and is
--   saving it for the first time, do not call this function. Instead, use
--   something similar to this:
--   
--   
--   if documentIsNew
--   then do -- the user just created a new document
--   fileChooserSetCurrentFolderURI chooser defaultFolderForSaving
--   fileChooserSetCurrentName chooser "Untitled document"
--   else do --the user edited an existing document
--   fileChooserSetURI chooser existingURI
--   
fileChooserSetURI :: FileChooserClass self => self -> String -> IO Bool

-- | Selects the file to by uri. If the URI doesn't refer to a
--   file in the current folder of the chooser, then the current folder of
--   the chooser will be changed to the folder containing
--   filename.
fileChooserSelectURI :: FileChooserClass self => self -> String -> IO Bool

-- | Unselects the file referred to by uri. If the file is not in
--   the current directory, does not exist, or is otherwise not currently
--   selected, does nothing.
fileChooserUnselectURI :: FileChooserClass self => self -> String -> IO ()

-- | Lists all the selected files and subfolders in the current folder of
--   the chooser. The returned names are full absolute URIs.
fileChooserGetURIs :: FileChooserClass self => self -> IO [String]

-- | Sets the current folder for the chooser from an URI. The user will be
--   shown the full contents of the current folder, plus user interface
--   elements for navigating to other folders.
fileChooserSetCurrentFolderURI :: FileChooserClass self => self -> String -> IO Bool

-- | Gets the current folder of the chooser as an URI. See
--   fileChooserSetCurrentFolderURI.
fileChooserGetCurrentFolderURI :: FileChooserClass self => self -> IO String

-- | Sets an application-supplied widget to use to display a custom preview
--   of the currently selected file. To implement a preview, after setting
--   the preview widget, you connect to the UpdatePreview signal, and call
--   fileChooserGetPreviewFilename or
--   fileChooserGetPreviewURI on each change. If you can display a
--   preview of the new file, update your widget and set the preview active
--   using fileChooserSetPreviewWidgetActive. Otherwise, set the
--   preview inactive.
--   
--   When there is no application-supplied preview widget, or the
--   application-supplied preview widget is not active, the file chooser
--   may display an internally generated preview of the current file or it
--   may display no preview at all.
fileChooserSetPreviewWidget :: (FileChooserClass self, WidgetClass previewWidget) => self -> previewWidget -> IO ()

-- | Gets the current preview widget; see
--   fileChooserSetPreviewWidget.
fileChooserGetPreviewWidget :: FileChooserClass self => self -> IO (Maybe Widget)

-- | Sets whether the preview widget set by
--   fileChooserSetPreviewWidget should be shown for the current
--   filename. When active is set to false, the file chooser may
--   display an internally generated preview of the current file or it may
--   display no preview at all. See fileChooserSetPreviewWidget for
--   more details.
fileChooserSetPreviewWidgetActive :: FileChooserClass self => self -> Bool -> IO ()

-- | Gets whether the preview widget set by
--   fileChooserSetPreviewWidget should be shown for the current
--   filename. See fileChooserSetPreviewWidgetActive.
fileChooserGetPreviewWidgetActive :: FileChooserClass self => self -> IO Bool

-- | Sets whether the file chooser should display a stock label with the
--   name of the file that is being previewed; the default is
--   True. Applications that want to draw the whole preview area
--   themselves should set this to False and display the name
--   themselves in their preview widget.
--   
--   See also: fileChooserSetPreviewWidget
fileChooserSetUsePreviewLabel :: FileChooserClass self => self -> Bool -> IO ()

-- | Gets whether a stock label should be drawn with the name of the
--   previewed file. See fileChooserSetUsePreviewLabel.
fileChooserGetUsePreviewLabel :: FileChooserClass self => self -> IO Bool

-- | Gets the filename that should be previewed in a custom preview widget.
--   See fileChooserSetPreviewWidget.
fileChooserGetPreviewFilename :: FileChooserClass self => self -> IO (Maybe FilePath)

-- | Gets the URI that should be previewed in a custom preview widget. See
--   fileChooserSetPreviewWidget.
fileChooserGetPreviewURI :: FileChooserClass self => self -> IO (Maybe String)

-- | Sets an application-supplied widget to provide extra options to the
--   user.
fileChooserSetExtraWidget :: (FileChooserClass self, WidgetClass extraWidget) => self -> extraWidget -> IO ()

-- | Gets the current preview widget; see fileChooserSetExtraWidget.
fileChooserGetExtraWidget :: FileChooserClass self => self -> IO (Maybe Widget)

-- | Adds the filter to the list of filters that the user can select
--   between. When a filter is selected, only files that are passed by that
--   filter are displayed.
fileChooserAddFilter :: FileChooserClass self => self -> FileFilter -> IO ()

-- | Removes the filter from the list of filters that the user can select
--   between.
fileChooserRemoveFilter :: FileChooserClass self => self -> FileFilter -> IO ()

-- | Lists the current set of user-selectable filters; see
--   fileChooserAddFilter, fileChooserRemoveFilter.
fileChooserListFilters :: FileChooserClass self => self -> IO [FileFilter]

-- | Sets the current filter; only the files that pass the filter will be
--   displayed. If the user-selectable list of filters is non-empty, then
--   the filter should be one of the filters in that list. Setting the
--   current filter when the list of filters is empty is useful if you want
--   to restrict the displayed set of files without letting the user change
--   it.
fileChooserSetFilter :: FileChooserClass self => self -> FileFilter -> IO ()

-- | Gets the current filter; see fileChooserSetFilter.
fileChooserGetFilter :: FileChooserClass self => self -> IO (Maybe FileFilter)

-- | Adds a folder to be displayed with the shortcut folders in a file
--   chooser. Note that shortcut folders do not get saved, as they are
--   provided by the application. For example, you can use this to add a
--   "/usr/share/mydrawprogram/Clipart" folder to the volume list.
--   
--   If the folder can not be added successfully an exception will be
--   thrown.
fileChooserAddShortcutFolder :: FileChooserClass self => self -> FilePath -> IO ()

-- | Removes a folder from a file chooser's list of shortcut folders.
--   
--   If the folder can not be removed successfully an exception will be
--   thrown.
fileChooserRemoveShortcutFolder :: FileChooserClass self => self -> FilePath -> IO ()

-- | Queries the list of shortcut folders in the file chooser, as set by
--   fileChooserAddShortcutFolder.
fileChooserListShortcutFolders :: FileChooserClass self => self -> IO [String]

-- | Adds a folder URI to be displayed with the shortcut folders in a file
--   chooser. Note that shortcut folders do not get saved, as they are
--   provided by the application. For example, you can use this to add a
--   "file:///usr/share/mydrawprogram/Clipart" folder to the volume list.
--   
--   If the folder can not be added successfully an exception will be
--   thrown.
fileChooserAddShortcutFolderURI :: FileChooserClass self => self -> String -> IO ()

-- | Removes a folder URI from a file chooser's list of shortcut folders.
fileChooserRemoveShortcutFolderURI :: FileChooserClass self => self -> String -> IO ()

-- | Queries the list of shortcut folders in the file chooser, as set by
--   fileChooserAddShortcutFolderURI.
fileChooserListShortcutFolderURIs :: FileChooserClass self => self -> IO [String]
fileChooserErrorDomain :: GErrorDomain

-- | Sets whether hidden files and folders are displayed in the file
--   selector.
--   
--   Available since Gtk+ version 2.6
fileChooserSetShowHidden :: FileChooserClass self => self -> Bool -> IO ()

-- | Gets whether hidden files and folders are displayed in the file
--   selector. See fileChooserSetShowHidden.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
fileChooserGetShowHidden :: FileChooserClass self => self -> IO Bool

-- | Sets whether a file chooser in FileChooserActionSave mode will
--   present a confirmation dialog if the user types a file name that
--   already exists. This is False by default.
--   
--   Regardless of this setting, the chooser will emit the
--   "confirm-overwrite" signal when appropriate.
--   
--   If all you need is the stock confirmation dialog, set this property to
--   True. You can override the way confirmation is done by
--   actually handling the "confirm-overwrite" signal; please refer to its
--   documentation for the details.
--   
--   Available since Gtk+ version 2.8
fileChooserSetDoOverwriteConfirmation :: FileChooserClass self => self -> Bool -> IO ()

-- | Queries whether a file chooser is set to confirm for overwriting when
--   the user types a file name that already exists.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
fileChooserGetDoOverwriteConfirmation :: FileChooserClass self => self -> IO Bool

-- | 'usePreviewLabel' property. See fileChooserGetUsePreviewLabel
--   and fileChooserSetUsePreviewLabel
fileChooserUsePreviewLabel :: FileChooserClass self => Attr self Bool

-- | 'showHidden' property. See fileChooserGetShowHidden and
--   fileChooserSetShowHidden
--   
--   Since Gtk 2.6.
fileChooserShowHidden :: FileChooserClass self => Attr self Bool

-- | 'selectMultiple' property. See fileChooserGetSelectMultiple and
--   fileChooserSetSelectMultiple
fileChooserSelectMultiple :: FileChooserClass self => Attr self Bool

-- | 'previewWidgetActive' property. See
--   fileChooserGetPreviewWidgetActive and
--   fileChooserSetPreviewWidgetActive
fileChooserPreviewWidgetActive :: FileChooserClass self => Attr self Bool

-- | 'previewWidget' property. See fileChooserGetPreviewWidget and
--   fileChooserSetPreviewWidget
fileChooserPreviewWidget :: (FileChooserClass self, WidgetClass previewWidget) => ReadWriteAttr self (Maybe Widget) previewWidget

-- | 'localOnly' property. See fileChooserGetLocalOnly and
--   fileChooserSetLocalOnly
fileChooserLocalOnly :: FileChooserClass self => Attr self Bool

-- | 'filter' property. See fileChooserGetFilter and
--   fileChooserSetFilter
fileChooserFilter :: FileChooserClass self => ReadWriteAttr self (Maybe FileFilter) FileFilter

-- | 'extraWidget' property. See fileChooserGetExtraWidget and
--   fileChooserSetExtraWidget
fileChooserExtraWidget :: (FileChooserClass self, WidgetClass extraWidget) => ReadWriteAttr self (Maybe Widget) extraWidget

-- | 'doOverwriteConfirmation' property. See
--   fileChooserGetDoOverwriteConfirmation and
--   fileChooserSetDoOverwriteConfirmation
fileChooserDoOverwriteConfirmation :: FileChooserClass self => Attr self Bool

-- | 'action' property. See fileChooserGetAction and
--   fileChooserSetAction
fileChooserAction :: FileChooserClass self => Attr self FileChooserAction

-- | This signal is emitted when the current folder in a FileChooser
--   changes. This can happen due to the user performing some action that
--   changes folders, such as selecting a bookmark or visiting a folder on
--   the file list. It can also happen as a result of calling a function to
--   explicitly change the current folder in a file chooser.
--   
--   Normally you do not need to connect to this signal, unless you need to
--   keep track of which folder a file chooser is showing.
--   
--   See also: fileChooserSetCurrentFolder,
--   fileChooserGetCurrentFolder,
--   fileChooserSetCurrentFolderURI,
--   fileChooserGetCurrentFolderURI.
currentFolderChanged :: FileChooserClass self => Signal self (IO ())

-- | This signal is emitted when the user "activates" a file in the file
--   chooser. This can happen by double-clicking on a file in the file
--   list, or by pressing Enter.
--   
--   Normally you do not need to connect to this signal. It is used
--   internally by FileChooserDialog to know when to activate the
--   default button in the dialog.
--   
--   See also: fileChooserGetFilename,
--   fileChooserGetFilenames, fileChooserGetURI,
--   fileChooserGetURIs.
fileActivated :: FileChooserClass self => Signal self (IO ())

-- | This signal is emitted when there is a change in the set of selected
--   files in a FileChooser. This can happen when the user modifies
--   the selection with the mouse or the keyboard, or when explicitly
--   calling functions to change the selection.
--   
--   Normally you do not need to connect to this signal, as it is easier to
--   wait for the file chooser to finish running, and then to get the list
--   of selected files using the functions mentioned below.
--   
--   See also: fileChooserSelectFilename,
--   fileChooserUnselectFilename, fileChooserGetFilename,
--   fileChooserGetFilenames, fileChooserSelectURI,
--   fileChooserUnselectURI, fileChooserGetURI,
--   fileChooserGetURIs.
fileSelectionChanged :: FileChooserClass self => Signal self (IO ())

-- | This signal is emitted when the preview in a file chooser should be
--   regenerated. For example, this can happen when the currently selected
--   file changes. You should use this signal if you want your file chooser
--   to have a preview widget.
--   
--   Once you have installed a preview widget with
--   fileChooserSetPreviewWidget, you should update it when this
--   signal is emitted. You can use the functions
--   fileChooserGetPreviewFilename or
--   fileChooserGetPreviewURI to get the name of the file to
--   preview. Your widget may not be able to preview all kinds of files;
--   your callback must call fileChooserSetPreviewWidgetActive to
--   inform the file chooser about whether the preview was generated
--   successfully or not.
--   
--   See also: fileChooserSetPreviewWidget,
--   fileChooserSetPreviewWidgetActive,
--   fileChooserSetUsePreviewLabel,
--   fileChooserGetPreviewFilename, fileChooserGetPreviewURI.
updatePreview :: FileChooserClass self => Signal self (IO ())

-- | This signal gets emitted whenever it is appropriate to present a
--   confirmation dialog when the user has selected a file name that
--   already exists. The signal only gets emitted when the file chooser is
--   in FileChooserActionSave mode.
--   
--   Most applications just need to turn on the do-overwrite-confirmation
--   property (or call the fileChooserSetDoOverwriteConfirmation
--   function), and they will automatically get a stock confirmation
--   dialog. Applications which need to customize this behavior should do
--   that, and also connect to the confirmOverwrite signal.
--   
--   A signal handler for this signal must return a
--   FileChooserConfirmation value, which indicates the action to
--   take. If the handler determines that the user wants to select a
--   different filename, it should return
--   FileChooserConfirmationSelectAgain. If it determines that the
--   user is satisfied with his choice of file name, it should return
--   FileChooserConfirmationAcceptFilename. On the other hand, if it
--   determines that the stock confirmation dialog should be used, it
--   should return FileChooserConfirmationConfirm.
--   
--   Since Gtk 2.8.
confirmOverwrite :: FileChooserClass self => Signal self (IO FileChooserConfirmation)
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Selectors.FileChooser.FileChooserAction
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Selectors.FileChooser.FileChooserConfirmation
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Selectors.FileChooser.FileChooserError
instance System.Glib.GError.GErrorClass Graphics.UI.Gtk.Selectors.FileChooser.FileChooserError

-- | File chooser widget that can be embedded in other widgets
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.Selectors.FileChooserWidget
data FileChooserWidget
class VBoxClass o => FileChooserWidgetClass o
castToFileChooserWidget :: GObjectClass obj => obj -> FileChooserWidget
gTypeFileChooserWidget :: GType
toFileChooserWidget :: FileChooserWidgetClass o => o -> FileChooserWidget

-- | Describes whether a FileChooser is being used to open existing
--   files or to save to a possibly new file.
data FileChooserAction

-- | Creates a new FileChooserWidget. This is a file chooser widget
--   that can be embedded in custom windows, and it is the same widget that
--   is used by FileChooserDialog.
fileChooserWidgetNew :: FileChooserAction -> IO FileChooserWidget
instance Graphics.UI.Gtk.Types.FileChooserClass Graphics.UI.Gtk.Types.FileChooserWidget

-- | A button to launch a file selection dialog
--   
--   
--   
- Module available since Gtk+ version 2.6
--   
module Graphics.UI.Gtk.Selectors.FileChooserButton
data FileChooserButton
class HBoxClass o => FileChooserButtonClass o
castToFileChooserButton :: GObjectClass obj => obj -> FileChooserButton
gTypeFileChooserButton :: GType
toFileChooserButton :: FileChooserButtonClass o => o -> FileChooserButton

-- | Creates a new file-selecting button widget.
fileChooserButtonNew :: GlibString string => string -> FileChooserAction -> IO FileChooserButton

-- | Creates a FileChooserButton widget which uses dialog
--   as it's file-picking window.
fileChooserButtonNewWithDialog :: FileChooserDialogClass dialog => dialog -> IO FileChooserButton

-- | Retrieves the title of the browse dialog used by the button.
fileChooserButtonGetTitle :: (FileChooserButtonClass self, GlibString string) => self -> IO string

-- | Modifies the title of the browse dialog used by the button.
fileChooserButtonSetTitle :: (FileChooserButtonClass self, GlibString string) => self -> string -> IO ()

-- | Retrieves the width in characters of the button widget's
--   entry and/or label.
fileChooserButtonGetWidthChars :: FileChooserButtonClass self => self -> IO Int

-- | Sets the width (in characters) that the button will use to
--   nChars.
fileChooserButtonSetWidthChars :: FileChooserButtonClass self => self -> Int -> IO ()

-- | Instance of the FileChooserDialog associated with the button.
fileChooserButtonDialog :: (FileChooserButtonClass self, FileChooserDialogClass fileChooserDialog) => WriteAttr self fileChooserDialog

-- | Title to put on the FileChooserDialog associated with the
--   button.
--   
--   Default value: "Select A File"
fileChooserButtonTitle :: (FileChooserButtonClass self, GlibString string) => Attr self string
fileChooserButtonWidthChars :: FileChooserButtonClass self => Attr self Int

-- | Emitted when the user selects a file.
fileChooserButtonFileSet :: FileChooserButtonClass self => Signal self (IO ())
instance Graphics.UI.Gtk.Types.FileChooserClass Graphics.UI.Gtk.Types.FileChooserButton

-- | A standard dialog box for selecting a color
module Graphics.UI.Gtk.Selectors.ColorSelectionDialog
data ColorSelectionDialog
class DialogClass o => ColorSelectionDialogClass o
castToColorSelectionDialog :: GObjectClass obj => obj -> ColorSelectionDialog
gTypeColorSelectionDialog :: GType
toColorSelectionDialog :: ColorSelectionDialogClass o => o -> ColorSelectionDialog

-- | Creates a new ColorSelectionDialog.
colorSelectionDialogNew :: GlibString string => string -> IO ColorSelectionDialog

-- | A vertical scrollbar
module Graphics.UI.Gtk.Scrolling.VScrollbar
data VScrollbar
class ScrollbarClass o => VScrollbarClass o
castToVScrollbar :: GObjectClass obj => obj -> VScrollbar
gTypeVScrollbar :: GType
toVScrollbar :: VScrollbarClass o => o -> VScrollbar

-- | Creates a new vertical scrollbar.
vScrollbarNew :: Adjustment -> IO VScrollbar

-- | Create a new HScrollbar without specifying an existing
--   Adjustment. A new one will be created instead.
vScrollbarNewDefaults :: IO VScrollbar

-- | Adds scrollbars to its child widget
module Graphics.UI.Gtk.Scrolling.ScrolledWindow
data ScrolledWindow
class BinClass o => ScrolledWindowClass o
castToScrolledWindow :: GObjectClass obj => obj -> ScrolledWindow
gTypeScrolledWindow :: GType
toScrolledWindow :: ScrolledWindowClass o => o -> ScrolledWindow

-- | Creates a new scrolled window. The two arguments are the scrolled
--   window's adjustments; these will be shared with the scrollbars and the
--   child widget to keep the bars in sync with the child. Usually you want
--   to pass Nothing for the adjustments, which will cause the
--   scrolled window to create them for you.
scrolledWindowNew :: Maybe Adjustment -> Maybe Adjustment -> IO ScrolledWindow

-- | Returns the horizontal scrollbar's adjustment, used to connect the
--   horizontal scrollbar to the child widget's horizontal scroll
--   functionality.
scrolledWindowGetHAdjustment :: ScrolledWindowClass self => self -> IO Adjustment

-- | Returns the vertical scrollbar's adjustment, used to connect the
--   vertical scrollbar to the child widget's vertical scroll
--   functionality.
scrolledWindowGetVAdjustment :: ScrolledWindowClass self => self -> IO Adjustment
data PolicyType
PolicyAlways :: PolicyType
PolicyAutomatic :: PolicyType
PolicyNever :: PolicyType
PolicyExternal :: PolicyType

-- | Sets the scrollbar policy for the horizontal and vertical scrollbars.
--   The policy determines when the scrollbar should appear; it is a value
--   from the PolicyType enumeration. If PolicyAlways, the
--   scrollbar is always present; if PolicyNever, the scrollbar is
--   never present; if PolicyAutomatic, the scrollbar is present
--   only if needed (that is, if the slider part of the bar would be
--   smaller than the through - the display is larger than the page size).
scrolledWindowSetPolicy :: ScrolledWindowClass self => self -> PolicyType -> PolicyType -> IO ()

-- | Retrieves the current policy values for the horizontal and vertical
--   scrollbars. See scrolledWindowSetPolicy.
scrolledWindowGetPolicy :: ScrolledWindowClass self => self -> IO (PolicyType, PolicyType)

-- | Used to add children without native scrolling capabilities. This is
--   simply a convenience function; it is equivalent to adding the
--   unscrollable child to a viewport, then adding the viewport to the
--   scrolled window. If a child has native scrolling, use
--   containerAdd instead of this function.
--   
--   The viewport scrolls the child by moving its DrawWindow, and
--   takes the size of the child to be the size of its toplevel
--   DrawWindow. This will be very wrong for most widgets that
--   support native scrolling; for example, if you add a widget such as
--   TreeView with a viewport, the whole widget will scroll,
--   including the column headings. Thus, widgets with native scrolling
--   support should not be used with the Viewport proxy.
scrolledWindowAddWithViewport :: (ScrolledWindowClass self, WidgetClass child) => self -> child -> IO ()

-- | Specifies in which corner a child widget should be placed
data CornerType
CornerTopLeft :: CornerType
CornerBottomLeft :: CornerType
CornerTopRight :: CornerType
CornerBottomRight :: CornerType

-- | Determines the location of the child widget with respect to the
--   scrollbars. The default is CornerTopLeft, meaning the child is
--   in the top left, with the scrollbars underneath and to the right.
--   Other values in CornerType are CornerTopRight,
--   CornerBottomLeft, and CornerBottomRight.
scrolledWindowSetPlacement :: ScrolledWindowClass self => self -> CornerType -> IO ()

-- | Gets the placement of the scrollbars for the scrolled window. See
--   scrolledWindowSetPlacement.
scrolledWindowGetPlacement :: ScrolledWindowClass self => self -> IO CornerType

-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType

-- | Changes the type of shadow drawn around the contents of
--   scrolledWindow.
scrolledWindowSetShadowType :: ScrolledWindowClass self => self -> ShadowType -> IO ()

-- | Gets the shadow type of the scrolled window. See
--   scrolledWindowSetShadowType.
scrolledWindowGetShadowType :: ScrolledWindowClass self => self -> IO ShadowType

-- | Sets the minimum width that scrolledWindow should keep
--   visible. Note that this can and (usually will) be smaller than the
--   minimum size of the content.
scrolledWindowSetMinContentWidth :: ScrolledWindowClass self => self -> Int -> IO ()

-- | Gets the minimum content width of scrolledWindow, or -1 if
--   not set.
scrolledWindowGetMinContentWidth :: ScrolledWindowClass self => self -> IO Int

-- | Sets the minimum height that scrolledWindow should keep
--   visible. Note that this can and (usually will) be smaller than the
--   minimum size of the content.
scrolledWindowSetMinContentHeight :: ScrolledWindowClass self => self -> Int -> IO ()

-- | Gets the minimum content height of scrolledWindow, or -1 if
--   not set.
scrolledWindowGetMinContentHeight :: ScrolledWindowClass self => self -> IO Int

-- | Sets the Adjustment for the horizontal scrollbar.
scrolledWindowSetHAdjustment :: ScrolledWindowClass self => self -> Adjustment -> IO ()

-- | Sets the Adjustment for the vertical scrollbar.
scrolledWindowSetVAdjustment :: ScrolledWindowClass self => self -> Adjustment -> IO ()

-- | Returns the horizontal scrollbar of scrolledWindow.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
scrolledWindowGetHScrollbar :: ScrolledWindowClass self => self -> IO (Maybe HScrollbar)

-- | Returns the vertical scrollbar of scrolledWindow.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
scrolledWindowGetVScrollbar :: ScrolledWindowClass self => self -> IO (Maybe VScrollbar)

-- | Turns kinetic scrolling on or off. Kinetic scrolling only applies to
--   devices with source GDK_SOURCE_TOUCHSCREEN.
scrolledWindowSetKineticScrolling :: ScrolledWindowClass self => self -> Bool -> IO ()

-- | Returns the specified kinetic scrolling behavior.
scrolledWindowGetKineticScrolling :: ScrolledWindowClass self => self -> IO Bool

-- | Changes the behaviour of scrolledWindow wrt. to the initial
--   event that possibly starts kinetic scrolling. When
--   captureButtonPress is set to True, the event is captured by
--   the scrolled window, and then later replayed if it is meant to go to
--   the child widget.
--   
--   This should be enabled if any child widgets perform non-reversible
--   actions on "button-press-event". If they don't, and handle
--   additionally handle "grab-broken-event", it might be better to set
--   captureButtonPress to False.
--   
--   This setting only has an effect if kinetic scrolling is enabled.
scrolledWindowSetCaptureButtonPress :: ScrolledWindowClass self => self -> Bool -> IO ()

-- | Return whether button presses are captured during kinetic scrolling.
--   See scrolledWindowSetCaptureButtonPress.
scrolledWindowGetCaptureButtonPress :: ScrolledWindowClass self => self -> IO Bool

-- | The Adjustment for the horizontal position.
scrolledWindowHAdjustment :: ScrolledWindowClass self => Attr self Adjustment

-- | The Adjustment for the vertical position.
scrolledWindowVAdjustment :: ScrolledWindowClass self => Attr self Adjustment

-- | When the horizontal scrollbar is displayed.
--   
--   Default value: PolicyAlways
scrolledWindowHscrollbarPolicy :: ScrolledWindowClass self => Attr self PolicyType

-- | When the vertical scrollbar is displayed.
--   
--   Default value: PolicyAlways
scrolledWindowVscrollbarPolicy :: ScrolledWindowClass self => Attr self PolicyType

-- | Where the contents are located with respect to the scrollbars.
--   
--   Default value: CornerTopLeft
scrolledWindowWindowPlacement :: ScrolledWindowClass self => Attr self CornerType

-- | Style of bevel around the contents.
--   
--   Default value: ShadowNone
scrolledWindowShadowType :: ScrolledWindowClass self => Attr self ShadowType

-- | Minimum width that scrolledWindow should keep visible.
--   
--   Default value: -1
scrolledWindowMinContentWidth :: ScrolledWindowClass self => Attr self Int

-- | Minimum height that scrolledWindow should keep visible.
--   
--   Default value: -1
scrolledWindowMinContentHeight :: ScrolledWindowClass self => Attr self Int

-- | 'placement' property. See scrolledWindowGetPlacement and
--   scrolledWindowSetPlacement
scrolledWindowPlacement :: ScrolledWindowClass self => Attr self CornerType

-- | The kinetic scrolling behavior flags. Kinetic scrolling only applies
--   to devices with source GDK_SOURCE_TOUCHSCREEN
scrolledWindowKineticScrolling :: ScrolledWindowClass self => Attr self Bool

-- | A horizontal scrollbar
module Graphics.UI.Gtk.Scrolling.HScrollbar
data HScrollbar
class ScrollbarClass o => HScrollbarClass o
castToHScrollbar :: GObjectClass obj => obj -> HScrollbar
gTypeHScrollbar :: GType
toHScrollbar :: HScrollbarClass o => o -> HScrollbar

-- | Creates a new horizontal scrollbar.
hScrollbarNew :: Adjustment -> IO HScrollbar

-- | Create a new HScrollbar without specifying an existing
--   Adjustment. A new one will be created instead.
hScrollbarNewDefaults :: IO HScrollbar

-- | A filter for selecting a subset of recently used files
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Recent.RecentFilter
data RecentFilter
class GObjectClass o => RecentFilterClass o
castToRecentFilter :: GObjectClass obj => obj -> RecentFilter
toRecentFilter :: RecentFilterClass o => o -> RecentFilter

-- | These flags indicate what parts of a RecentFilterInfo struct
--   are filled or need to be filled.
data RecentFilterFlags
RecentFilterUri :: RecentFilterFlags
RecentFilterDisplayName :: RecentFilterFlags
RecentFilterMimeType :: RecentFilterFlags
RecentFilterApplication :: RecentFilterFlags
RecentFilterGroup :: RecentFilterFlags
RecentFilterAge :: RecentFilterFlags
recentFilterNew :: IO RecentFilter

-- | Gets the human-readable name for the filter. See
--   recentFilterSetName.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentFilterGetName :: (RecentFilterClass self, GlibString string) => self -> IO string

-- | Sets the human-readable name of the filter; this is the string that
--   will be displayed in the recently used resources selector user
--   interface if there is a selectable list of filters.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentFilterSetName :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()

-- | Adds a rule that allows resources based on their registered MIME type.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentFilterAddMimeType :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()

-- | Adds a rule that allows resources based on a pattern matching their
--   display name.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentFilterAddPattern :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()

-- | Adds a rule allowing image files in the formats supported by
--   Pixbuf.
recentFilterAddPixbufFormats :: RecentFilterClass self => self -> IO ()

-- | Adds a rule that allows resources based on the name of the application
--   that has registered them.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentFilterAddApplication :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()

-- | Adds a rule that allows resources based on the name of the group to
--   which they belong
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentFilterAddGroup :: (RecentFilterClass self, GlibString string) => self -> string -> IO ()

-- | Adds a rule that allows resources based on their age - that is, the
--   number of days elapsed since they were last modified.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentFilterAddAge :: RecentFilterClass self => self -> Int -> IO ()
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Recent.RecentFilter.RecentFilterFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Recent.RecentFilter.RecentFilterFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.Recent.RecentFilter.RecentFilterFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Recent.RecentFilter.RecentFilterFlags

-- | Displays recently used files
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Recent.RecentChooserWidget
data RecentChooserWidget
class VBoxClass o => RecentChooserWidgetClass o
castToRecentChooserWidget :: GObjectClass obj => obj -> RecentChooserWidget
toRecentChooserWidget :: RecentChooserWidgetClass o => o -> RecentChooserWidget

-- | Creates a new RecentChooserWidget object. This is an embeddable
--   widget used to access the recently used resources list.
recentChooserWidgetNew :: IO RecentChooserWidget

-- | Creates a new RecentChooserWidget with a specified recent
--   manager.
--   
--   This is useful if you have implemented your own recent manager, or if
--   you have a customized instance of a RecentManager object.
recentChooserWidgetNewForManager :: RecentManagerClass manager => manager -> IO RecentChooserWidget

-- | Displays recently used files in a menu
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Recent.RecentChooserMenu
data RecentChooserMenu
class MenuClass o => RecentChooserMenuClass o
castToRecentChooserMenu :: GObjectClass obj => obj -> RecentChooserMenu
toRecentChooserMenu :: RecentChooserMenuClass o => o -> RecentChooserMenu

-- | Creates a new RecentChooserMenu widget.
--   
--   This kind of widget shows the list of recently used resources as a
--   menu, each item as a menu item. Each item inside the menu might have
--   an icon, representing its MIME type, and a number, for mnemonic
--   access.
--   
--   This widget implements the RecentChooser interface.
--   
--   This widget creates its own RecentManager object. See the
--   recentChooserMenuNewForManager function to know how to create a
--   RecentChooserMenu widget bound to another RecentManager
--   object.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserMenuNew :: IO RecentChooserMenu

-- | Creates a new RecentChooserMenu widget using manager
--   as the underlying recently used resources manager.
--   
--   This is useful if you have implemented your own recent manager, or if
--   you have a customized instance of a RecentManager object or if
--   you wish to share a common RecentManager object among multiple
--   RecentChooser widgets.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserMenuNewForManager :: RecentManagerClass manager => manager -> IO RecentChooserMenu

-- | Whether the first ten items in the menu should be prepended by a
--   number acting as a unique mnemonic.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserMenuShowNumbers :: RecentChooserMenuClass self => Attr self Bool

-- | Interface implemented by widgets displaying recently used files
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Recent.RecentChooser
data RecentChooser
class GObjectClass o => RecentChooserClass o
castToRecentChooser :: GObjectClass obj => obj -> RecentChooser
toRecentChooser :: RecentChooserClass o => o -> RecentChooser

-- | These identify the various errors that can occur while calling
--   RecentChooser functions.
data RecentChooserError
RecentChooserErrorNotFound :: RecentChooserError
RecentChooserErrorInvalidUri :: RecentChooserError

-- | Used to specify the sorting method to be applied to the recently used
--   resource list.
data RecentSortType
RecentSortNone :: RecentSortType
RecentSortMru :: RecentSortType
RecentSortLru :: RecentSortType
RecentSortCustom :: RecentSortType
recentChooserSetSortFunc :: RecentChooserClass self => self -> Maybe (RecentInfo -> IO Int) -> IO ()

-- | Sets uri as the current URI for chooser.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserSetCurrentURI :: (RecentChooserClass self, GlibString string) => self -> string -> IO Bool

-- | Gets the URI currently selected by chooser.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserGetCurrentURI :: (RecentChooserClass self, GlibString string) => self -> IO string

-- | Gets the RecentInfo currently selected by chooser.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserGetCurrentItem :: RecentChooserClass self => self -> IO RecentInfo

-- | Selects uri inside chooser.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserSelectURI :: (RecentChooserClass self, GlibString string) => self -> string -> IO Bool

-- | Unselects uri inside chooser.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserUnselectURI :: (RecentChooserClass self, GlibString string) => self -> string -> IO ()

-- | Selects all the items inside chooser, if the chooser
--   supports multiple selection.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserSelectAll :: RecentChooserClass self => self -> IO ()

-- | Unselects all the items inside chooser.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserUnselectAll :: RecentChooserClass self => self -> IO ()

-- | Gets the list of recently used resources in form of RecentInfo
--   
--   The return value of this function is affected by the "sort-type" and
--   "limit" properties of chooser.
recentChooserGetItems :: RecentChooserClass self => self -> IO [RecentInfo]

-- | Gets the URI of the recently used resources.
--   
--   The return value of this function is affected by the "sort-type" and
--   "limit" properties of chooser.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserGetURIs :: (RecentChooserClass self, GlibString string) => self -> IO [string]

-- | Adds filter to the list of RecentFilter objects held
--   by chooser.
--   
--   If no previous filter objects were defined, this function will call
--   recentChooserSetFilter.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserAddFilter :: (RecentChooserClass self, RecentFilterClass filter) => self -> filter -> IO ()

-- | Removes filter from the list of RecentFilter objects
--   held by chooser.
recentChooserRemoveFilter :: (RecentChooserClass self, RecentFilterClass filter) => self -> filter -> IO ()

-- | Gets the RecentFilter objects held by chooser.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserListFilters :: RecentChooserClass self => self -> IO [RecentFilter]

-- | Whether the private items should be displayed.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserShowPrivate :: RecentChooserClass self => Attr self Bool

-- | Whether this RecentChooser should display a tooltip containing
--   the full path of the recently used resources.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserShowTips :: RecentChooserClass self => Attr self Bool

-- | Whether this RecentChooser should display an icon near the
--   item.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserShowIcons :: RecentChooserClass self => Attr self Bool

-- | Whether this RecentChooser should display the recently used
--   resources even if not present anymore. Setting this to False
--   will perform a potentially expensive check on every local resource
--   (every remote resource will always be displayed).
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserShowNotFound :: RecentChooserClass self => Attr self Bool

-- | Allow the user to select multiple resources.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserSelectMultiple :: RecentChooserClass self => Attr self Bool

-- | Whether this RecentChooser should display only local (file:)
--   resources.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserLocalOnly :: RecentChooserClass self => Attr self Bool

-- | The maximum number of recently used resources to be displayed, or -1
--   to display all items. By default, the
--   Setting:gtk-recent-files-limit setting is respected: you can
--   override that limit on a particular instance of RecentChooser
--   by setting this property.
--   
--   Allowed values: >= GMaxulong
--   
--   Default value: -1
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserLimit :: RecentChooserClass self => Attr self Int

-- | Sorting order to be used when displaying the recently used resources.
--   
--   Default value: 'RecentSortNone'
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserSortType :: RecentChooserClass self => Attr self RecentSortType

-- | The RecentFilter object to be used when displaying the recently
--   used resources.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserFilter :: (RecentChooserClass self, RecentFilterClass recentFilter) => ReadWriteAttr self RecentFilter recentFilter

-- | This signal is emitted when there is a change in the set of selected
--   recently used resources. This can happen when a user modifies the
--   selection with the mouse or the keyboard, or when explicitly calling
--   functions to change the selection.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserSelectionChanged :: RecentChooserClass self => Signal self (IO ())

-- | This signal is emitted when the user "activates" a recent item in the
--   recent chooser. This can happen by double-clicking on an item in the
--   recently used resources list, or by pressing Enter.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
recentChooserItemActivated :: RecentChooserClass self => Signal self (IO ())
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Recent.RecentChooser.RecentChooserError
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Recent.RecentChooser.RecentSortType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Recent.RecentChooser.RecentChooserError
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Recent.RecentChooser.RecentSortType
instance GHC.Classes.Eq Graphics.UI.Gtk.Recent.RecentChooser.RecentChooserError
instance GHC.Classes.Eq Graphics.UI.Gtk.Recent.RecentChooser.RecentSortType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Recent.RecentChooser.RecentChooserError
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Recent.RecentChooser.RecentSortType

-- | A vertical separator
module Graphics.UI.Gtk.Ornaments.VSeparator
data VSeparator
class SeparatorClass o => VSeparatorClass o
castToVSeparator :: GObjectClass obj => obj -> VSeparator
gTypeVSeparator :: GType
toVSeparator :: VSeparatorClass o => o -> VSeparator

-- | Creates a new VSeparator.
vSeparatorNew :: IO VSeparator

-- | A horizontal separator
module Graphics.UI.Gtk.Ornaments.HSeparator
data HSeparator
class SeparatorClass o => HSeparatorClass o
castToHSeparator :: GObjectClass obj => obj -> HSeparator
gTypeHSeparator :: GType
toHSeparator :: HSeparatorClass o => o -> HSeparator

-- | Creates a new HSeparator.
hSeparatorNew :: IO HSeparator

-- | A bin with a decorative frame and optional label
module Graphics.UI.Gtk.Ornaments.Frame
data Frame
class BinClass o => FrameClass o
castToFrame :: GObjectClass obj => obj -> Frame
gTypeFrame :: GType
toFrame :: FrameClass o => o -> Frame

-- | Creates a new Frame without a label.
--   
--   
--   
- A label can later be set by calling frameSetLabel.
--   
frameNew :: IO Frame

-- | Sets the text of the label.
frameSetLabel :: (FrameClass self, GlibString string) => self -> string -> IO ()

-- | If the frame's label widget is a Label, returns the text in the
--   label widget.
frameGetLabel :: (FrameClass self, GlibString string) => self -> IO string

-- | Sets the label widget for the frame. This is the widget that will
--   appear embedded in the top edge of the frame as a title.
frameSetLabelWidget :: (FrameClass self, WidgetClass labelWidget) => self -> labelWidget -> IO ()

-- | Retrieves the label widget for the frame. See
--   frameSetLabelWidget.
frameGetLabelWidget :: FrameClass self => self -> IO (Maybe Widget)

-- | Sets the alignment of the frame widget's label. The default values for
--   a newly created frame are 0.0 and 0.5.
frameSetLabelAlign :: FrameClass self => self -> Float -> Float -> IO ()

-- | Retrieves the X and Y alignment of the frame's label. See
--   frameSetLabelAlign.
frameGetLabelAlign :: FrameClass self => self -> IO (Float, Float)

-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType

-- | Sets the shadow type of the frame.
frameSetShadowType :: FrameClass self => self -> ShadowType -> IO ()

-- | Retrieves the shadow type of the frame. See frameSetShadowType.
frameGetShadowType :: FrameClass self => self -> IO ShadowType

-- | Text of the frame's label.
frameLabel :: (FrameClass self, GlibString string) => Attr self string

-- | The horizontal alignment of the label.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
frameLabelXAlign :: FrameClass self => Attr self Float

-- | The vertical alignment of the label.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
frameLabelYAlign :: FrameClass self => Attr self Float

-- | Appearance of the frame border.
--   
--   Default value: ShadowEtchedIn
frameShadowType :: FrameClass self => Attr self ShadowType

-- | A widget to display in place of the usual frame label.
frameLabelWidget :: (FrameClass self, WidgetClass labelWidget) => ReadWriteAttr self (Maybe Widget) labelWidget

-- | The selection object for TreeView
module Graphics.UI.Gtk.ModelView.TreeSelection
data TreeSelection
class GObjectClass o => TreeSelectionClass o
castToTreeSelection :: GObjectClass obj => obj -> TreeSelection
gTypeTreeSelection :: GType
toTreeSelection :: TreeSelectionClass o => o -> TreeSelection

-- | 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 SelectionMode
SelectionNone :: SelectionMode
SelectionSingle :: SelectionMode
SelectionBrowse :: SelectionMode
SelectionMultiple :: SelectionMode

-- | Callback type for a function that is called every time the selection
--   changes. This function is set with
--   treeSelectionSetSelectFunction.
type TreeSelectionCB = TreePath -> IO Bool

-- | Callback function type for treeSelectionSelectedForeach.
type TreeSelectionForeachCB = TreeIter -> IO ()

-- | Set single or multiple choice.
treeSelectionSetMode :: TreeSelectionClass self => self -> SelectionMode -> IO ()

-- | Gets the selection mode.
treeSelectionGetMode :: TreeSelectionClass self => self -> IO SelectionMode

-- | Set a callback function if selection changes.
--   
--   
--   
- If set, this function is called before any node is selected or
--   unselected, giving some control over which nodes are selected. The
--   select function should return True if the state of the node
--   may be toggled, and False if the state of the node should be
--   left unchanged.
--   
treeSelectionSetSelectFunction :: TreeSelectionClass self => self -> TreeSelectionCB -> IO ()

-- | Retrieve the TreeView widget that this TreeSelection
--   works on.
treeSelectionGetTreeView :: TreeSelectionClass self => self -> IO TreeView

-- | Retrieves the selection of a single choice TreeSelection.
treeSelectionGetSelected :: TreeSelectionClass self => self -> IO (Maybe TreeIter)

-- | Execute a function for each selected node.
--   
--   
--   
- Note that you cannot modify the tree or selection from within this
--   function. Hence, treeSelectionGetSelectedRows might be more
--   useful.
--   
treeSelectionSelectedForeach :: TreeSelectionClass self => self -> TreeSelectionForeachCB -> IO ()

-- | Creates a list of paths of all selected rows.
--   
--   
--   
- Additionally, if you are planning on modifying the model after
--   calling this function, you may want to convert the returned list into
--   a list of TreeRowReferences. To do this, you can use
--   treeRowReferenceNew.
--   
- Available since Gtk+ version 2.2
--   
treeSelectionGetSelectedRows :: TreeSelectionClass self => self -> IO [TreePath]

-- | Returns the number of rows that are selected.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
treeSelectionCountSelectedRows :: TreeSelectionClass self => self -> IO Int

-- | Select a specific item by TreePath.
treeSelectionSelectPath :: TreeSelectionClass self => self -> TreePath -> IO ()

-- | Deselect a specific item by TreePath.
treeSelectionUnselectPath :: TreeSelectionClass self => self -> TreePath -> IO ()

-- | Returns True if the row at the given path is currently selected.
treeSelectionPathIsSelected :: TreeSelectionClass self => self -> TreePath -> IO Bool

-- | Select a specific item by TreeIter.
treeSelectionSelectIter :: TreeSelectionClass self => self -> TreeIter -> IO ()

-- | Deselect a specific item by TreeIter.
treeSelectionUnselectIter :: TreeSelectionClass self => self -> TreeIter -> IO ()

-- | Returns True if the row at the given iter is currently selected.
treeSelectionIterIsSelected :: TreeSelectionClass self => self -> TreeIter -> IO Bool

-- | Selects all the nodes. The tree selection must be set to
--   SelectionMultiple mode.
treeSelectionSelectAll :: TreeSelectionClass self => self -> IO ()

-- | Unselects all the nodes.
treeSelectionUnselectAll :: TreeSelectionClass self => self -> IO ()

-- | Selects a range of nodes, determined by startPath and
--   endPath inclusive. selection must be set to
--   SelectionMultiple mode.
treeSelectionSelectRange :: TreeSelectionClass self => self -> TreePath -> TreePath -> IO ()

-- | Unselects a range of nodes, determined by startPath and
--   endPath inclusive.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
treeSelectionUnselectRange :: TreeSelectionClass self => self -> TreePath -> TreePath -> IO ()

-- | 'mode' property. See treeSelectionGetMode and
--   treeSelectionSetMode
treeSelectionMode :: TreeSelectionClass self => Attr self SelectionMode

-- | Emitted whenever the selection has (possibly) changed. Please note
--   that this signal is mostly a hint. It may only be emitted once when a
--   range of rows are selected, and it may occasionally be emitted when
--   nothing has happened.
treeSelectionSelectionChanged :: TreeSelectionClass self => Signal self (IO ())

-- | Renders a toggle button in a cell
module Graphics.UI.Gtk.ModelView.CellRendererToggle
data CellRendererToggle
class CellRendererClass o => CellRendererToggleClass o
castToCellRendererToggle :: GObjectClass obj => obj -> CellRendererToggle
gTypeCellRendererToggle :: GType
toCellRendererToggle :: CellRendererToggleClass o => o -> CellRendererToggle

-- | Creates a new CellRendererToggle. Adjust rendering parameters
--   using object properties. Object properties can be set globally (with
--   set). Also, within a TreeViewColumn, you can bind a
--   property to a value in a TreeModel using
--   cellLayoutSetAttributes. For example, you can bind the
--   cellToggleActive property on the cell renderer to a boolean
--   value in the model, thus causing the check button to reflect the state
--   of the model.
cellRendererToggleNew :: IO CellRendererToggle

-- | Returns whether we're rendering radio toggles rather than checkboxes.
cellRendererToggleGetRadio :: CellRendererToggleClass self => self -> IO Bool

-- | If radio is True, the cell renderer renders a radio
--   toggle (i.e. a toggle in a group of mutually-exclusive toggles). If
--   False, it renders a check toggle (a standalone boolean
--   option). This can be set globally for the cell renderer, or changed
--   just before rendering each cell in the model (for TreeView, you
--   set up a per-row setting using TreeViewColumn to associate
--   model columns with cell renderer properties).
cellRendererToggleSetRadio :: CellRendererToggleClass self => self -> Bool -> IO ()

-- | Returns whether the cell renderer is active. See
--   cellRendererToggleSetActive.
cellRendererToggleGetActive :: CellRendererToggleClass self => self -> IO Bool

-- | Activates or deactivates a cell renderer.
cellRendererToggleSetActive :: CellRendererToggleClass self => self -> Bool -> IO ()

-- | The toggle state of the button.
--   
--   Default value: False
cellToggleActive :: CellRendererToggleClass self => Attr self Bool

-- | The inconsistent state of the button.
--   
--   Default value: False
cellToggleInconsistent :: CellRendererToggleClass self => Attr self Bool

-- | The toggle button can be activated.
--   
--   Default value: True
cellToggleActivatable :: CellRendererToggleClass self => Attr self Bool

-- | Draw the toggle button as a radio button.
--   
--   Default value: False
cellToggleRadio :: CellRendererToggleClass self => Attr self Bool

-- | Size of check or radio indicator.
--   
--   Allowed values: >= 0
--   
--   Default value: 12
cellToggleIndicatorSize :: CellRendererToggleClass self => Attr self Int

-- | The cellToggled signal is emitted when the cell is toggled. The
--   string represents a TreePath into the model and can be
--   converted using stringToTreePath.
cellToggled :: (CellRendererToggleClass self, GlibString string) => Signal self (string -> IO ())

-- | Renders a spin button in a cell
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.ModelView.CellRendererSpin
data CellRendererSpin
class CellRendererTextClass o => CellRendererSpinClass o
castToCellRendererSpin :: GObjectClass obj => obj -> CellRendererSpin
toCellRendererSpin :: CellRendererSpinClass o => o -> CellRendererSpin

-- | Creates a new CellRendererSpin.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererSpinNew :: IO CellRendererSpin

-- | The adjustment that holds the value of the spinbutton.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererSpinAdjustment :: CellRendererSpinClass self => Attr self Adjustment

-- | The acceleration rate when you hold down a button.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererSpinClimbRate :: CellRendererSpinClass self => Attr self Double

-- | The number of decimal places to display.
--   
--   Allowed values: <= 20
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererSpinDigits :: CellRendererSpinClass self => Attr self Int

-- | Renders numbers as progress bars
--   
--   
--   
- Module available since Gtk+ version 2.6
--   
module Graphics.UI.Gtk.ModelView.CellRendererProgress
data CellRendererProgress
class CellRendererClass o => CellRendererProgressClass o
castToCellRendererProgress :: GObjectClass obj => obj -> CellRendererProgress
gTypeCellRendererProgress :: GType
toCellRendererProgress :: CellRendererProgressClass o => o -> CellRendererProgress

-- | Creates a new CellRendererProgress.
cellRendererProgressNew :: IO CellRendererProgress

-- | The "value" property determines the percentage to which the progress
--   bar will be "filled in".
--   
--   Allowed values: [0,100]
--   
--   Default value: 0
cellProgressValue :: CellRendererProgressClass self => Attr self Int

-- | The cellProgressText attribute determines the label which will
--   be drawn over the progress bar. Setting this property to
--   Nothing causes the default label to be displayed. Setting
--   this property to an empty string causes no label to be displayed.
--   
--   Default value: Nothing
cellProgressText :: (CellRendererProgressClass self, GlibString string) => Attr self (Maybe string)

-- | Renders a pixbuf in a cell
module Graphics.UI.Gtk.ModelView.CellRendererPixbuf
data CellRendererPixbuf
class CellRendererClass o => CellRendererPixbufClass o
castToCellRendererPixbuf :: GObjectClass obj => obj -> CellRendererPixbuf
gTypeCellRendererPixbuf :: GType
toCellRendererPixbuf :: CellRendererPixbufClass o => o -> CellRendererPixbuf

-- | Create a new CellRendererPixbuf object.
cellRendererPixbufNew :: IO CellRendererPixbuf

-- | The pixbuf to render.
cellPixbuf :: CellRendererPixbufClass self => Attr self Pixbuf

-- | Pixbuf for open expander.
cellPixbufExpanderOpen :: CellRendererPixbufClass self => Attr self Pixbuf

-- | Pixbuf for closed expander.
cellPixbufExpanderClosed :: CellRendererPixbufClass self => Attr self Pixbuf

-- | The stock ID of the stock icon to render.
--   
--   Default value: ""
cellPixbufStockId :: (CellRendererPixbufClass self, GlibString string) => Attr self string

-- | The IconSize value that specifies the size of the rendered
--   icon.
--   
--   Default value: 1
cellPixbufStockSize :: CellRendererPixbufClass self => Attr self Int

-- | Render detail to pass to the theme engine.
--   
--   Default value: ""
cellPixbufStockDetail :: (CellRendererPixbufClass self, GlibString string) => Attr self string

-- | The name of the themed icon to display. This property only has an
--   effect if not overridden by cellPixbufStockId or
--   cellPixbuf attributes.
--   
--   Default value: ""
cellPixbufIconName :: (CellRendererPixbufClass self, GlibString string) => Attr self string

-- | Specifies whether the rendered pixbuf should be colorized according to
--   the CellRendererState.
--   
--   Default value: False
cellPixbufFollowState :: CellRendererPixbufClass self => Attr self Bool

-- | Renders a combo box in a cell
--   
--   
--   
- Module available since Gtk+ version 2.6
--   
module Graphics.UI.Gtk.ModelView.CellRendererCombo
data CellRendererCombo
class CellRendererTextClass o => CellRendererComboClass o
castToCellRendererCombo :: GObjectClass obj => obj -> CellRendererCombo
gTypeCellRendererCombo :: GType
toCellRendererCombo :: CellRendererComboClass o => o -> CellRendererCombo

-- | Creates a new CellRendererCombo. This Renderer allows
--   for displaying a fixed set of options the user can choose from.
cellRendererComboNew :: IO CellRendererCombo

-- | If True, the cell renderer will allow the user to enter
--   values other than the ones in the popup list.
--   
--   Default value: True
cellComboHasEntry :: CellRendererComboClass self => Attr self Bool

-- | The tuple containing a model and a column in this model that determine
--   the possible strings that can be shown in the combo box. Note that
--   this tree model can be a datum in the tree model that is used to
--   populate the view in which the CellRendererCombo is part of. In
--   other words, it is possible that every CellRendererCombo can
--   show a different set of options on each row.
cellComboTextModel :: (TreeModelClass (model row), TypedTreeModelClass model, CellRendererComboClass self, GlibString string) => WriteAttr self (model row, ColumnId row string)

-- | Renders a keyboard accelerator in a cell
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.ModelView.CellRendererAccel
data CellRendererAccel
class CellRendererTextClass o => CellRendererAccelClass o
castToCellRendererAccel :: GObjectClass obj => obj -> CellRendererAccel
toCellRendererAccel :: CellRendererAccelClass o => o -> CellRendererAccel
data CellRendererAccelMode
CellRendererAccelModeGtk :: CellRendererAccelMode
CellRendererAccelModeOther :: CellRendererAccelMode
CellRendererAccelModeModifierTap :: CellRendererAccelMode

-- | Creates a new CellRendererAccel.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererAccelNew :: IO CellRendererAccel

-- | The keyval of the accelerator.
--   
--   Allowed values: <= GMaxint
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererAccelAccelKey :: CellRendererAccelClass self => Attr self Int

-- | The modifier mask of the accelerator.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererAccelAccelMods :: CellRendererAccelClass self => Attr self [Modifier]

-- | The hardware keycode of the accelerator. Note that the hardware
--   keycode is only relevant if the key does not have a keyval. Normally,
--   the keyboard configuration should assign keyvals to all keys.
--   
--   Allowed values: <= GMaxint
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererAccelKeycode :: CellRendererAccelClass self => Attr self Int

-- | Determines if the edited accelerators are GTK+ accelerators. If they
--   are, consumed modifiers are suppressed, only accelerators accepted by
--   GTK+ are allowed, and the accelerators are rendered in the same way as
--   they are in menus.
--   
--   Default value: CellRendererAccelModeGtk
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellRendererAccelAccelMode :: CellRendererAccelClass self => Attr self CellRendererAccelMode

-- | Gets emitted when the user has selected a new accelerator.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
accelEdited :: (CellRendererAccelClass self, GlibString string) => Signal self (string -> KeyVal -> Modifier -> KeyCode -> IO ())

-- | Gets emitted when the user has removed the accelerator.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
accelCleared :: (CellRendererAccelClass self, GlibString string) => Signal self (string -> IO ())
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.ModelView.CellRendererAccel.CellRendererAccelMode
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.ModelView.CellRendererAccel.CellRendererAccelMode
instance GHC.Classes.Eq Graphics.UI.Gtk.ModelView.CellRendererAccel.CellRendererAccelMode
instance GHC.Internal.Show.Show Graphics.UI.Gtk.ModelView.CellRendererAccel.CellRendererAccelMode

-- | An adapter which makes widgets scrollable
module Graphics.UI.Gtk.Misc.Viewport
data Viewport
class BinClass o => ViewportClass o

-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType
castToViewport :: GObjectClass obj => obj -> Viewport
gTypeViewport :: GType
toViewport :: ViewportClass o => o -> Viewport

-- | Creates a new Viewport with the given adjustments.
viewportNew :: Maybe Adjustment -> Maybe Adjustment -> IO Viewport

-- | Returns the horizontal adjustment of the viewport.
viewportGetHAdjustment :: ViewportClass self => self -> IO Adjustment

-- | Returns the vertical adjustment of the viewport.
viewportGetVAdjustment :: ViewportClass self => self -> IO Adjustment

-- | Sets the horizontal adjustment of the viewport.
viewportSetHAdjustment :: ViewportClass self => self -> Adjustment -> IO ()

-- | Sets the vertical adjustment of the viewport.
viewportSetVAdjustment :: ViewportClass self => self -> Adjustment -> IO ()

-- | Sets the shadow type of the viewport.
viewportSetShadowType :: ViewportClass self => self -> ShadowType -> IO ()

-- | Gets the shadow type of the Viewport. See
--   viewportSetShadowType.
viewportGetShadowType :: ViewportClass self => self -> IO ShadowType

-- | Gets the bin window of the Viewport.
--   
--   
--   
- Available since Gtk version 2.20
--   
viewportGetBinWindow :: ViewportClass self => self -> IO DrawWindow

-- | Gets the view window of the Viewport.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
viewportGetViewWindow :: ViewportClass self => self -> IO DrawWindow

-- | The Adjustment that determines the values of the horizontal
--   position for this viewport.
viewportHAdjustment :: ViewportClass self => Attr self Adjustment

-- | The Adjustment that determines the values of the vertical
--   position for this viewport.
viewportVAdjustment :: ViewportClass self => Attr self Adjustment

-- | Determines how the shadowed box around the viewport is drawn.
--   
--   Default value: ShadowIn
viewportShadowType :: ViewportClass self => Attr self ShadowType

-- | A "light switch" style toggle
module Graphics.UI.Gtk.Misc.Switch
data Switch
castToSwitch :: GObjectClass obj => obj -> Switch
gTypeSwitch :: GType
toSwitch :: SwitchClass o => o -> Switch

-- | Creates a new Switch.
switchNew :: IO Switch

-- | Changes the state of control to the desired one. See
--   switchGetActive.
switchSetActive :: SwitchClass self => self -> Bool -> IO ()

-- | Gets whether the GtkSwitch is in its on or off state.
switchGetActive :: SwitchClass self => self -> IO Bool

-- | Sets the underlying state of the GtkSwitch. Normally, this is the same
--   as switchActive, unless the switch is set up for delayed state
--   changes. This function is typically called from a stateSet
--   signal handler.
--   
--   See stateSet for details.
switchSetState :: SwitchClass self => self -> Bool -> IO ()

-- | Gets the underlying state of the GtkSwitch. Set switchSetState.
switchGetState :: SwitchClass self => self -> IO Bool

-- | Whether the switch is in its on or off state.
--   
--   Default value: False
switchActive :: SwitchClass self => Attr self Bool

-- | The backend state that is controlled by the switch. See
--   stateSet for details.
--   
--   Default value: False
switchState :: SwitchClass self => Attr self Bool

-- | This signal on GtkSwitch is an action signal and emitting it causes
--   the switch to animate. Applications should never connect to this
--   signal, but use the notify::active signal.
switchActivate :: SwitchClass self => Signal self (IO ())

-- | This signal on GtkSwitch is emitted to change the underlying state. It
--   is emitted when the user changes the switch position. The default
--   handler keeps the state in sync with the switchActive property.
--   
--   To implement delayed state change, applications can connect to this
--   signal, initiate the change of the underlying state, and call
--   switchSetState when the underlying state change is complete.
--   The signal handler should return True to prevent the default
--   handler from running.
--   
--   Visually, the underlying state is represented by the through color of
--   the switch, while the switchActive property is represented by
--   the position of the switch.
stateSet :: SwitchClass self => Signal self (Bool -> IO Bool)

-- | a widget for detachable window portions
module Graphics.UI.Gtk.Misc.HandleBox
data HandleBox
class BinClass o => HandleBoxClass o
castToHandleBox :: GObjectClass obj => obj -> HandleBox
gTypeHandleBox :: GType
toHandleBox :: HandleBoxClass o => o -> HandleBox

-- | Create a new handle box.
handleBoxNew :: IO HandleBox

-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType

-- | Sets the type of shadow to be drawn around the border of the handle
--   box.
handleBoxSetShadowType :: HandleBoxClass self => self -> ShadowType -> IO ()

-- | Gets the type of shadow drawn around the handle box. See
--   handleBoxSetShadowType.
handleBoxGetShadowType :: HandleBoxClass self => self -> IO ShadowType

-- | Position a scale's value is drawn relative to the through
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType

-- | Sets the side of the handlebox where the handle is drawn.
handleBoxSetHandlePosition :: HandleBoxClass self => self -> PositionType -> IO ()

-- | Gets the handle position of the handle box. See
--   handleBoxSetHandlePosition.
handleBoxGetHandlePosition :: HandleBoxClass self => self -> IO PositionType

-- | Sets the snap edge of the HandleBox. The snap edge is the edge of the
--   detached child that must be aligned with the corresponding edge of the
--   "ghost" left behind when the child was detached to reattach the
--   torn-off window. Usually, the snap edge should be chosen so that it
--   stays in the same place on the screen when the handlebox is torn off.
--   
--   If the snap edge is not set, then an appropriate value will be guessed
--   from the handle position. If the handle position is PosRight or
--   PosLeft, then the snap edge will be PosTop, otherwise it
--   will be PosLeft.
handleBoxSetSnapEdge :: HandleBoxClass self => self -> PositionType -> IO ()

-- | Gets the edge used for determining reattachment of the handle box. See
--   handleBoxSetSnapEdge.
handleBoxGetSnapEdge :: HandleBoxClass self => self -> IO PositionType

-- | Appearance of the shadow that surrounds the container.
--   
--   Default value: ShadowEtchedOut
handleBoxShadowType :: HandleBoxClass self => Attr self ShadowType

-- | Position of the handle relative to the child widget.
--   
--   Default value: PosLeft
handleBoxHandlePosition :: HandleBoxClass self => Attr self PositionType

-- | Side of the handlebox that's lined up with the docking point to dock
--   the handlebox.
--   
--   Default value: PosTop
handleBoxSnapEdge :: HandleBoxClass self => Attr self PositionType

-- | Whether to use the value from the snap_edge property or a value
--   derived from handle_position.
--   
--   Default value: False
handleBoxSnapEdgeSet :: HandleBoxClass self => Attr self Bool

-- | This signal is emitted when the contents of the handlebox are
--   reattached to the main window.
onChildAttached :: HandleBoxClass self => self -> IO () -> IO (ConnectId self)

-- | This signal is emitted when the contents of the handlebox are
--   reattached to the main window.
afterChildAttached :: HandleBoxClass self => self -> IO () -> IO (ConnectId self)

-- | This signal is emitted when the contents of the handlebox are detached
--   from the main window.
onChildDetached :: HandleBoxClass self => self -> IO () -> IO (ConnectId self)

-- | This signal is emitted when the contents of the handlebox are detached
--   from the main window.
afterChildDetached :: HandleBoxClass self => self -> IO () -> IO (ConnectId self)

-- | A widget used to catch events for widgets which do not have their own
--   window
module Graphics.UI.Gtk.Misc.EventBox
data EventBox
class BinClass o => EventBoxClass o
castToEventBox :: GObjectClass obj => obj -> EventBox
gTypeEventBox :: GType
toEventBox :: EventBoxClass o => o -> EventBox

-- | Creates a new EventBox.
eventBoxNew :: IO EventBox

-- | Set whether the event box uses a visible or invisible child window.
--   The default is to use visible windows.
--   
--   In an invisible window event box, the window that that the event box
--   creates is a "input only" window, which means that it is invisible and
--   only serves to receive events.
--   
--   A visible window event box creates a visible ("input output") window
--   that acts as the parent window for all the widgets contained in the
--   event box.
--   
--   You should generally make your event box invisible if you just want to
--   trap events. Creating a visible window may cause artifacts that are
--   visible to the user, especially if the user is using a theme with
--   gradients or pixmaps.
--   
--   The main reason to create a non input-only event box is if you want to
--   set the background to a different color or draw on it.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
eventBoxSetVisibleWindow :: EventBox -> Bool -> IO ()

-- | Returns whether the event box has a visible window. See
--   eventBoxSetVisibleWindow for details.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
eventBoxGetVisibleWindow :: EventBox -> IO Bool

-- | Set whether the event box window is positioned above the windows of
--   its child, as opposed to below it. If the window is above, all events
--   inside the event box will go to the event box. If the window is below,
--   events in windows of child widgets will first got to that widget, and
--   then to its parents.
--   
--   The default is to keep the window below the child.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
eventBoxSetAboveChild :: EventBox -> Bool -> IO ()

-- | Returns whether the event box window is above or below the windows of
--   its child. See eventBoxSetAboveChild for details.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
eventBoxGetAboveChild :: EventBox -> IO Bool

-- | Whether the event box is visible, as opposed to invisible and only
--   used to trap events.
--   
--   Default value: True
eventBoxVisibleWindow :: Attr EventBox Bool

-- | Whether the event-trapping window of the eventbox is above the window
--   of the child widget as opposed to below it.
--   
--   Default value: False
eventBoxAboveChild :: Attr EventBox Bool

-- | A widget for custom user interface elements
module Graphics.UI.Gtk.Misc.DrawingArea
data DrawingArea
class WidgetClass o => DrawingAreaClass o
castToDrawingArea :: GObjectClass obj => obj -> DrawingArea
gTypeDrawingArea :: GType
toDrawingArea :: DrawingAreaClass o => o -> DrawingArea

-- | Creates a new drawing area.
drawingAreaNew :: IO DrawingArea

-- | Displays a calendar and allows the user to select a date
module Graphics.UI.Gtk.Misc.Calendar
data Calendar
class WidgetClass o => CalendarClass o
castToCalendar :: GObjectClass obj => obj -> Calendar
gTypeCalendar :: GType
toCalendar :: CalendarClass o => o -> Calendar

-- | Specify which items of a calendar should be displayed.
data CalendarDisplayOptions
CalendarShowHeading :: CalendarDisplayOptions
CalendarShowDayNames :: CalendarDisplayOptions
CalendarNoMonthChange :: CalendarDisplayOptions
CalendarShowWeekNumbers :: CalendarDisplayOptions
CalendarShowDetails :: CalendarDisplayOptions

-- | Creates a new calendar, with the current date being selected.
calendarNew :: IO Calendar

-- | Shifts the calendar to a different month.
calendarSelectMonth :: CalendarClass self => self -> Int -> Int -> IO ()

-- | Selects a day from the current month.
calendarSelectDay :: CalendarClass self => self -> Int -> IO ()

-- | Places a visual marker on a particular day.
calendarMarkDay :: CalendarClass self => self -> Int -> IO ()

-- | Removes the visual marker from a particular day.
calendarUnmarkDay :: CalendarClass self => self -> Int -> IO ()

-- | Remove all visual markers.
calendarClearMarks :: CalendarClass self => self -> IO ()

-- | Sets display options (whether to display the heading and the month
--   headings).
--   
--   
--   
- Available since Gtk+ version 2.4
--   
calendarSetDisplayOptions :: CalendarClass self => self -> [CalendarDisplayOptions] -> IO ()

-- | Returns the current display options for the calendar.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
calendarGetDisplayOptions :: CalendarClass self => self -> IO [CalendarDisplayOptions]

-- | Retrieve the currently selected date.
calendarGetDate :: CalendarClass self => self -> IO (Int, Int, Int)

-- | The selected year.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
calendarYear :: CalendarClass self => Attr self Int

-- | The selected month (as a number between 0 and 11).
--   
--   Allowed values: [0,11]
--   
--   Default value: 0
calendarMonth :: CalendarClass self => Attr self Int

-- | The selected day (as a number between 1 and 31, or 0 to unselect the
--   currently selected day).
--   
--   Allowed values: [0,31]
--   
--   Default value: 0
calendarDay :: CalendarClass self => Attr self Int

-- | Determines whether a heading is displayed.
--   
--   Default value: True
calendarShowHeading :: CalendarClass self => Attr self Bool

-- | Determines whether day names are displayed.
--   
--   Default value: True
calendarShowDayNames :: CalendarClass self => Attr self Bool

-- | Determines whether the selected month can be changed.
--   
--   Default value: False
calendarNoMonthChange :: CalendarClass self => Attr self Bool

-- | Determines whether week numbers are displayed.
--   
--   Default value: False
calendarShowWeekNumbers :: CalendarClass self => Attr self Bool

-- | 'displayOptions' property. See calendarGetDisplayOptions and
--   calendarSetDisplayOptions
--   
--   calendarDisplayOptions :: CalendarClass self => Attr self
--   [CalendarDisplayOptions] calendarDisplayOptions = newAttr
--   calendarGetDisplayOptions calendarSetDisplayOptions
--   
--   Emitted when a day was selected.
onDaySelected :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | 'displayOptions' property. See calendarGetDisplayOptions and
--   calendarSetDisplayOptions
--   
--   calendarDisplayOptions :: CalendarClass self => Attr self
--   [CalendarDisplayOptions] calendarDisplayOptions = newAttr
--   calendarGetDisplayOptions calendarSetDisplayOptions
--   
--   Emitted when a day was selected.
afterDaySelected :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | Emitted when a day received a double click.
onDaySelectedDoubleClick :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | Emitted when a day received a double click.
afterDaySelectedDoubleClick :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The month changed.
onMonthChanged :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The month changed.
afterMonthChanged :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The next month was selected.
onNextMonth :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The next month was selected.
afterNextMonth :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The next year was selected.
onNextYear :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The next year was selected.
afterNextYear :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The previous month was selected.
onPrevMonth :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The previous month was selected.
afterPrevMonth :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The previous year was selected.
onPrevYear :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | The previous year was selected.
afterPrevYear :: CalendarClass self => self -> IO () -> IO (ConnectId self)

-- | Displays an arrow
module Graphics.UI.Gtk.Misc.Arrow
data Arrow
class MiscClass o => ArrowClass o
castToArrow :: GObjectClass obj => obj -> Arrow
gTypeArrow :: GType
toArrow :: ArrowClass o => o -> Arrow

-- | Arrow directions for the arrow widget
data ArrowType
ArrowUp :: ArrowType
ArrowDown :: ArrowType
ArrowLeft :: ArrowType
ArrowRight :: ArrowType
ArrowNone :: ArrowType

-- | Shadow types
data ShadowType
ShadowNone :: ShadowType
ShadowIn :: ShadowType
ShadowOut :: ShadowType
ShadowEtchedIn :: ShadowType
ShadowEtchedOut :: ShadowType

-- | Creates a new arrow widget.
arrowNew :: ArrowType -> ShadowType -> IO Arrow

-- | Sets the direction and style of the Arrow.
arrowSet :: ArrowClass self => self -> ArrowType -> ShadowType -> IO ()

-- | The direction the arrow should point.
--   
--   Default value: ArrowRight
arrowArrowType :: ArrowClass self => Attr self ArrowType

-- | Appearance of the shadow surrounding the arrow.
--   
--   Default value: ShadowOut
arrowShadowType :: ArrowClass self => Attr self ShadowType

-- | A Object representing an adjustable bounded value
module Graphics.UI.Gtk.Misc.Adjustment
data Adjustment
class GObjectClass o => AdjustmentClass o
castToAdjustment :: GObjectClass obj => obj -> Adjustment
gTypeAdjustment :: GType
toAdjustment :: AdjustmentClass o => o -> Adjustment

-- | Creates a new Adjustment.
--   
--   The creation function take every value that is contained in the
--   object: value is the initial value and should be between the
--   upper and lower bounds of the slider. Clicking on
--   the arrows increases this value by stepIncrement. Clicking in
--   the slider advances by pageIncrement. The pageSize
--   is needed to determine if the end of the slider is still in the range.
adjustmentNew :: Double -> Double -> Double -> Double -> Double -> Double -> IO Adjustment

-- | Set the lower value.
adjustmentSetLower :: Adjustment -> Double -> IO ()

-- | Retrieve the lower value.
adjustmentGetLower :: Adjustment -> IO Double

-- | Set the page increment value.
adjustmentSetPageIncrement :: Adjustment -> Double -> IO ()

-- | Retrieve the pageincrement value.
adjustmentGetPageIncrement :: Adjustment -> IO Double

-- | Set the page size value.
adjustmentSetPageSize :: Adjustment -> Double -> IO ()

-- | Retrieve the page size value.
adjustmentGetPageSize :: Adjustment -> IO Double

-- | Set the step-increment value.
adjustmentSetStepIncrement :: Adjustment -> Double -> IO ()

-- | Retrieve the step-increment value.
adjustmentGetStepIncrement :: Adjustment -> IO Double

-- | Set the upper value.
adjustmentSetUpper :: Adjustment -> Double -> IO ()

-- | Retrieve the upper value.
adjustmentGetUpper :: Adjustment -> IO Double

-- | Sets the current value of the Adjustment object. The value is clamped
--   to lie between the adjustment's lower and upper
--   values. See adjustmentNew for details of these properties.
--   
--   Note that for adjustments which are used in a Scrollbar, the
--   effective range of allowed values goes from lower to
--   upper - page_size.
adjustmentSetValue :: Adjustment -> Double -> IO ()

-- | Gets the current value of the adjustment. See
--   adjustmentSetValue.
adjustmentGetValue :: Adjustment -> IO Double

-- | Updates the Adjustment value to ensure that the range
--   between lower and upper is in the current page (i.e.
--   between value and value + pageSize). If the range is
--   larger than the page size, then only the start of it will be in the
--   current page. A "changed" signal will be emitted if the value is
--   changed.
adjustmentClampPage :: Adjustment -> Double -> Double -> IO ()

-- | Emit the onAdjChanged signal.
adjustmentAdjChanged :: Adjustment -> IO ()

-- | Emit the onValueChanged signal.
--   
--   
--   
- When adjusting the or bounds, this function can be called to
--   enforce a visual update of the containing widget.
--   
adjustmentValueChanged :: Adjustment -> IO ()

-- | The value of the adjustment.
--   
--   Default value: 0
adjustmentValue :: Attr Adjustment Double

-- | The minimum value of the adjustment.
--   
--   Default value: 0
adjustmentLower :: Attr Adjustment Double

-- | The maximum value of the adjustment. Note that values will be
--   restricted by upper - page-size if the page-size property is
--   nonzero.
--   
--   Default value: 0
adjustmentUpper :: Attr Adjustment Double

-- | The step increment of the adjustment.
--   
--   Default value: 0
adjustmentStepIncrement :: Attr Adjustment Double

-- | The page increment of the adjustment.
--   
--   Default value: 0
adjustmentPageIncrement :: Attr Adjustment Double

-- | The page size of the adjustment. Note that the page-size is irrelevant
--   and should be set to zero if the adjustment is used for a simple
--   scalar value, e.g. in a SpinButton.
--   
--   Default value: 0
adjustmentPageSize :: Attr Adjustment Double

-- | Emitted when one or more of the Adjustment fields have been
--   changed, other than the value field.
onAdjChanged :: Adjustment -> IO () -> IO (ConnectId Adjustment)

-- | Emitted when one or more of the Adjustment fields have been
--   changed, other than the value field.
afterAdjChanged :: Adjustment -> IO () -> IO (ConnectId Adjustment)

-- | Emitted when the Adjustment value field has been changed.
onValueChanged :: Adjustment -> IO () -> IO (ConnectId Adjustment)

-- | Emitted when the Adjustment value field has been changed.
afterValueChanged :: Adjustment -> IO () -> IO (ConnectId Adjustment)

-- | A Object representing an adjustable bounded value
module Graphics.UI.Gtk.Misc.Accessible
data Accessible
class AtkObjectClass o => AccessibleClass o
castToAccessible :: GObjectClass obj => obj -> Accessible
gTypeAccessible :: GType
toAccessible :: AccessibleClass o => o -> Accessible

-- | Gets the Widget corresponding to the Accessible.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
accessibleGetWidget :: AccessibleClass self => self -> IO (Maybe Widget)

-- | Sets the Widget corresponding to the Accessible.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
accessibleSetWidget :: (AccessibleClass self, WidgetClass widget) => self -> widget -> IO ()

-- | A sub container used in a tool palette
--   
--   
--   
- Module available since Gtk+ version 2.20
--   
module Graphics.UI.Gtk.MenuComboToolbar.ToolItemGroup
data ToolItemGroup
class ContainerClass o => ToolItemGroupClass o
castToToolItemGroup :: GObjectClass obj => obj -> ToolItemGroup
toToolItemGroup :: ToolItemGroupClass o => o -> ToolItemGroup

-- | Creates a new tool item group with label label.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupNew :: GlibString string => string -> IO ToolItemGroup

-- | Gets the tool item at position (x, y).
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupGetDropItem :: ToolItemGroupClass self => self -> (Int, Int) -> IO ToolItem

-- | Gets the position of item in group as index.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupGetItemPosition :: (ToolItemGroupClass group, ToolItemClass item) => group -> item -> IO Int

-- | Gets the number of tool items in group.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupGetNItems :: ToolItemGroupClass group => group -> IO Int

-- | Gets the tool item at index in group.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupGetNthItem :: ToolItemGroupClass group => group -> Int -> IO ToolItem

-- | Inserts item at position in the list of children of group.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupInsert :: (ToolItemGroupClass group, ToolItemClass item) => group -> item -> Int -> IO ()

-- | Sets the position of item in the list of children of group.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupSetItemPosition :: (ToolItemGroupClass group, ToolItemClass item) => group -> item -> Int -> IO ()

-- | Whether the group has been collapsed and items are hidden.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupCollapsed :: ToolItemGroupClass group => Attr group Bool

-- | Ellipsize for item group headers.
--   
--   Default value: EllipsizeNone
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupEllipsize :: ToolItemGroupClass group => Attr group EllipsizeMode

-- | Relief of the group header button.
--   
--   Default value: ReliefNormal
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupHeaderRelief :: ToolItemGroupClass group => Attr group ReliefStyle

-- | The human-readable title of this item group.
--   
--   Default value: ""
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupLabel :: (GlibString string, ToolItemGroupClass group) => Attr group string

-- | A widget to display in place of the usual label.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupLabelWidget :: ToolItemGroupClass group => Attr group Widget

-- | Whether the item should receive extra space when the group grows.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupChildExpand :: ToolItemGroupClass group => Attr group Bool

-- | Whether the item should fill the available space.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupChildFill :: ToolItemGroupClass group => Attr group Bool

-- | Whether the item should be the same size as other homogeneous items.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupChildHomogeneous :: ToolItemGroupClass group => Attr group Bool

-- | Whether the item should start a new row.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupChildNewRow :: ToolItemGroupClass group => Attr group Bool

-- | Position of the item within this group.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGroupChildPosition :: ToolItemGroupClass group => Attr group Int

-- | A menu item used to tear off and reattach its menu
module Graphics.UI.Gtk.MenuComboToolbar.TearoffMenuItem
data TearoffMenuItem
class MenuItemClass o => TearoffMenuItemClass o
castToTearoffMenuItem :: GObjectClass obj => obj -> TearoffMenuItem
gTypeTearoffMenuItem :: GType
toTearoffMenuItem :: TearoffMenuItemClass o => o -> TearoffMenuItem

-- | Creates a new TearoffMenuItem.
tearoffMenuItemNew :: IO TearoffMenuItem

-- | A toolbar item that separates groups of other toolbar items
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.MenuComboToolbar.SeparatorToolItem
data SeparatorToolItem
class ToolItemClass o => SeparatorToolItemClass o
castToSeparatorToolItem :: GObjectClass obj => obj -> SeparatorToolItem
gTypeSeparatorToolItem :: GType
toSeparatorToolItem :: SeparatorToolItemClass o => o -> SeparatorToolItem

-- | Create a new SeparatorToolItem
separatorToolItemNew :: IO SeparatorToolItem

-- | Whether the separator tool item is drawn as a vertical line, or just
--   blank. Setting this False along with toolItemSetExpand
--   is useful to create an item that forces following items to the end of
--   the toolbar.
separatorToolItemSetDraw :: SeparatorToolItemClass self => self -> Bool -> IO ()

-- | Returns whether the separator tool item is drawn as a line, or just
--   blank. See separatorToolItemSetDraw.
separatorToolItemGetDraw :: SeparatorToolItemClass self => self -> IO Bool

-- | Whether the separator is drawn, or just blank.
--   
--   Default value: True
separatorToolItemDraw :: SeparatorToolItemClass self => Attr self Bool

-- | A separator used in menus
module Graphics.UI.Gtk.MenuComboToolbar.SeparatorMenuItem
data SeparatorMenuItem
class MenuItemClass o => SeparatorMenuItemClass o
castToSeparatorMenuItem :: GObjectClass obj => obj -> SeparatorMenuItem
gTypeSeparatorMenuItem :: GType
toSeparatorMenuItem :: SeparatorMenuItemClass o => o -> SeparatorMenuItem

-- | Creates a new SeparatorMenuItem.
separatorMenuItemNew :: IO SeparatorMenuItem

-- | A choice from multiple check menu items
module Graphics.UI.Gtk.MenuComboToolbar.RadioMenuItem
data RadioMenuItem
class CheckMenuItemClass o => RadioMenuItemClass o
castToRadioMenuItem :: GObjectClass obj => obj -> RadioMenuItem
gTypeRadioMenuItem :: GType
toRadioMenuItem :: RadioMenuItemClass o => o -> RadioMenuItem

-- | Creates a new RadioMenuItem.
radioMenuItemNew :: IO RadioMenuItem

-- | Creates a new RadioMenuItem whose child is a simple
--   Label.
radioMenuItemNewWithLabel :: GlibString string => string -> IO RadioMenuItem

-- | Creates a new RadioMenuItem containing a label. The label will
--   be created using labelNewWithMnemonic, so underscores in
--   label indicate the mnemonic for the menu item.
radioMenuItemNewWithMnemonic :: GlibString string => string -> IO RadioMenuItem

-- | Create a new radio button, adding it to the same group as the group to
--   which groupMember belongs.
radioMenuItemNewFromWidget :: RadioMenuItem -> IO RadioMenuItem

-- | Create a new radio button with a label, adding it to the same group as
--   the group to which groupMember belongs.
radioMenuItemNewWithLabelFromWidget :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem

-- | Create a new radio button with a label and attach it to the group of
--   another radio button. Underscores in the label string indicate the
--   mnemonic for the menu item.
radioMenuItemNewWithMnemonicFromWidget :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem

-- | Alias for radioMenuItemNewFromWidget.
radioMenuItemNewJoinGroup :: RadioMenuItem -> IO RadioMenuItem

-- | Alias for radioMenuItemNewWithLabelFromWidget.
radioMenuItemNewJoinGroupWithLabel :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem

-- | Alias for radioMenuItemNewWithMnemonicFromWidget.
radioMenuItemNewJoinGroupWithMnemonic :: GlibString string => RadioMenuItem -> string -> IO RadioMenuItem

-- | The widget used for item in menus
module Graphics.UI.Gtk.MenuComboToolbar.MenuItem
data MenuItem
class BinClass o => MenuItemClass o
castToMenuItem :: GObjectClass obj => obj -> MenuItem
gTypeMenuItem :: GType
toMenuItem :: MenuItemClass o => o -> MenuItem

-- | Creates a new MenuItem.
menuItemNew :: IO MenuItem

-- | Creates a new MenuItem whose child is a Label.
menuItemNewWithLabel :: GlibString string => string -> IO MenuItem

-- | Creates a new MenuItem containing a label. The label will be
--   created using labelNewWithMnemonic, so underscores in
--   label indicate the mnemonic for the menu item.
menuItemNewWithMnemonic :: GlibString string => string -> IO MenuItem

-- | Sets text on the MenuItem label
menuItemSetLabel :: (MenuItemClass self, GlibString string) => self -> string -> IO ()

-- | Gets text on the MenuItem label
menuItemGetLabel :: (MenuItemClass self, GlibString string) => self -> IO string

-- | If True, an underline in the text indicates the next character should
--   be used for the mnemonic accelerator key.
menuItemSetUseUnderline :: MenuItemClass self => self -> Bool -> IO ()

-- | Checks if an underline in the text indicates the next character should
--   be used for the mnemonic accelerator key.
menuItemGetUseUnderline :: MenuItemClass self => self -> IO Bool

-- | Sets the item's submenu, or changes it.
menuItemSetSubmenu :: (MenuItemClass self, MenuClass submenu) => self -> submenu -> IO ()

-- | Gets the submenu underneath this menu item, if any. See
--   menuItemSetSubmenu.
menuItemGetSubmenu :: MenuItemClass self => self -> IO (Maybe Widget)

-- | Removes the item's submenu.
menuItemRemoveSubmenu :: MenuItemClass self => self -> IO ()

-- | Select the menu item. Emits the "select" signal on the item.
menuItemEmitSelect :: MenuItemClass self => self -> IO ()

-- | Deselect the menu item. Emits the "deselect" signal on the item.
menuItemEmitDeselect :: MenuItemClass self => self -> IO ()

-- | Simulate a click on the menu item. Emits the "activate" signal on the
--   item.
menuItemEmitActivate :: MenuItemClass self => self -> IO ()

-- | Sets whether the menu item appears justified at the right side of a
--   menu bar. This was traditionally done for "Help" menu items, but is
--   now considered a bad idea. (If the widget layout is reversed for a
--   right-to-left language like Hebrew or Arabic,
--   right-justified-menu-items appear at the left.)
menuItemSetRightJustified :: MenuItemClass self => self -> Bool -> IO ()

-- | Gets whether the menu item appears justified at the right side of the
--   menu bar.
menuItemGetRightJustified :: MenuItemClass self => self -> IO Bool

-- | Set the accelerator path on the menu item, through which runtime
--   changes of the menu item's accelerator caused by the user can be
--   identified and saved to persistent storage (see accelMapSave
--   on this). To setup a default accelerator for this menu item, call
--   accelMapAddEntry with the same accel path. See also
--   accelMapAddEntry on the specifics of accelerator paths, and
--   menuSetAccelPath for a more convenient variant of this
--   function.
--   
--   This function is basically a convenience wrapper that handles calling
--   widgetSetAccelPath with the appropriate accelerator group for
--   the menu item.
--   
--   Note that you do need to set an accelerator on the parent menu with
--   menuSetAccelGroup for this to work.
menuItemSetAccelPath :: (MenuItemClass self, GlibString string) => self -> Maybe string -> IO ()

-- | 'submenu' property. See menuItemGetSubmenu and
--   menuItemSetSubmenu
menuItemSubmenu :: (MenuItemClass self, MenuClass submenu) => ReadWriteAttr self (Maybe Widget) submenu

-- | 'rightJustified' property. See menuItemGetRightJustified and
--   menuItemSetRightJustified
menuItemRightJustified :: MenuItemClass self => Attr self Bool

-- | 'label' property. See menuItemSetLabel and
--   menuItemGetLabel
menuItemLabel :: (MenuItemClass self, GlibString string) => Attr self string

-- | 'useUnderline' property. See menuItemSetUseUnderline and
--   menuItemGetUseEUnderline
menuItemUseUnderline :: MenuItemClass self => Attr self Bool

-- | Emitted when the user chooses a menu item that has a submenu.
--   
--   
--   
- This signal is not emitted if the menu item does not have a
--   submenu.
--   
menuItemActivatedItem :: MenuItemClass self => Signal self (IO ())

-- | The user has chosen the menu item.
--   
--   
--   
- This is the only function applications normally connect to. It is
--   not emitted if the item has a submenu.
--   
menuItemActivated :: MenuItemClass self => Signal self (IO ())

-- | Deprecated. See menuItemActivatedItem.
menuItemActivateItem :: MenuItemClass self => Signal self (IO ())

-- | Deprecated. See menuItemActivated.
menuItemActivate :: MenuItemClass self => Signal self (IO ())

-- | This signal is emitted when the item is selected.
menuItemSelect :: MenuItemClass i => Signal i (IO ())

-- | This signal is emitted when the item is deselected.
menuItemDeselect :: MenuItemClass i => Signal i (IO ())

-- | This signal is emitted when the item is toggled.
menuItemToggle :: MenuItemClass i => Signal i (IO ())

-- | A subclass widget for MenuShell which holds MenuItem
--   widgets
module Graphics.UI.Gtk.MenuComboToolbar.MenuBar
data MenuBar
class MenuShellClass o => MenuBarClass o
castToMenuBar :: GObjectClass obj => obj -> MenuBar
gTypeMenuBar :: GType
toMenuBar :: MenuBarClass o => o -> MenuBar

-- | Determines how to pack a menu bar: left-to-right, right-to-left,
--   top-to-bottom or bottom-to-top.
data PackDirection
PackDirectionLtr :: PackDirection
PackDirectionRtl :: PackDirection
PackDirectionTtb :: PackDirection
PackDirectionBtt :: PackDirection

-- | Creates the new MenuBar
menuBarNew :: IO MenuBar

-- | Sets how items should be packed inside a menubar.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
menuBarSetPackDirection :: MenuBarClass self => self -> PackDirection -> IO ()

-- | Retrieves the current pack direction of the menubar. See
--   menuBarSetPackDirection.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
menuBarGetPackDirection :: MenuBarClass self => self -> IO PackDirection

-- | Sets how widgets should be packed inside the children of a menubar.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
menuBarSetChildPackDirection :: MenuBarClass self => self -> PackDirection -> IO ()

-- | Retrieves the current child pack direction of the menubar. See
--   menuBarSetChildPackDirection.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
menuBarGetChildPackDirection :: MenuBarClass self => self -> IO PackDirection

-- | The pack direction of the menubar. It determines how menuitems are
--   arranged in the menubar.
--   
--   Default value: PackDirectionLtr
menuBarPackDirection :: MenuBarClass self => Attr self PackDirection

-- | The pack direction of the menubar. It determines how the widgets
--   contained in child menuitems are arranged.
--   
--   Default value: PackDirectionLtr
menuBarChildPackDirection :: MenuBarClass self => Attr self PackDirection
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.MenuComboToolbar.MenuBar.PackDirection

-- | A menu item with a check box
module Graphics.UI.Gtk.MenuComboToolbar.CheckMenuItem
data CheckMenuItem
class MenuItemClass o => CheckMenuItemClass o
castToCheckMenuItem :: GObjectClass obj => obj -> CheckMenuItem
gTypeCheckMenuItem :: GType
toCheckMenuItem :: CheckMenuItemClass o => o -> CheckMenuItem

-- | Creates a new CheckMenuItem.
checkMenuItemNew :: IO CheckMenuItem

-- | Creates a new CheckMenuItem with a label.
checkMenuItemNewWithLabel :: GlibString string => string -> IO CheckMenuItem

-- | Creates a new CheckMenuItem containing a label. The label will
--   be created using labelNewWithMnemonic, so underscores in
--   label indicate the mnemonic for the menu item.
checkMenuItemNewWithMnemonic :: GlibString string => string -> IO CheckMenuItem

-- | Sets the active state of the menu item's check box.
checkMenuItemSetActive :: CheckMenuItemClass self => self -> Bool -> IO ()

-- | Returns whether the check menu item is active. See
--   checkMenuItemSetActive.
checkMenuItemGetActive :: CheckMenuItemClass self => self -> IO Bool

-- | Emits the toggled signal.
checkMenuItemEmitToggled :: CheckMenuItemClass self => self -> IO ()

-- | If the user has selected a range of elements (such as some text or
--   spreadsheet cells) that are affected by a boolean setting, and the
--   current values in that range are inconsistent, you may want to display
--   the check in an "in between" state. This function turns on "in
--   between" display. Normally you would turn off the inconsistent state
--   again if the user explicitly selects a setting. This has to be done
--   manually, checkMenuItemSetInconsistent only affects visual
--   appearance, it doesn't affect the semantics of the widget.
checkMenuItemSetInconsistent :: CheckMenuItemClass self => self -> Bool -> IO ()

-- | Query if the menu check is drawn as inconsistent (in between). See
--   checkMenuItemSetInconsistent.
checkMenuItemGetInconsistent :: CheckMenuItemClass self => self -> IO Bool

-- | Returns whether the menu item is drawn like a RadioMenuItem.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
checkMenuItemGetDrawAsRadio :: CheckMenuItemClass self => self -> IO Bool

-- | Sets whether the menu item is drawn like a RadioMenuItem.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
checkMenuItemSetDrawAsRadio :: CheckMenuItemClass self => self -> Bool -> IO ()

-- | Whether the menu item is checked.
--   
--   Default value: False
checkMenuItemActive :: CheckMenuItemClass self => Attr self Bool

-- | Whether to display an "inconsistent" state.
--   
--   Default value: False
checkMenuItemInconsistent :: CheckMenuItemClass self => Attr self Bool

-- | Whether the menu item looks like a radio menu item.
--   
--   Default value: False
checkMenuItemDrawAsRadio :: CheckMenuItemClass self => Attr self Bool

-- | This signal is emitted when the state of the check box is changed.
checkMenuItemToggled :: CheckMenuItemClass self => Signal self (IO ())

-- | A container with two panes arranged vertically
module Graphics.UI.Gtk.Layout.VPaned
data VPaned
class PanedClass o => VPanedClass o
castToVPaned :: GObjectClass obj => obj -> VPaned
gTypeVPaned :: GType
toVPaned :: VPanedClass o => o -> VPaned

-- | Create a new VPaned
vPanedNew :: IO VPaned

-- | A container for arranging buttons vertically
module Graphics.UI.Gtk.Layout.VButtonBox
data VButtonBox
class ButtonBoxClass o => VButtonBoxClass o
castToVButtonBox :: GObjectClass obj => obj -> VButtonBox
gTypeVButtonBox :: GType
toVButtonBox :: VButtonBoxClass o => o -> VButtonBox

-- | Creates a new vertical button box.
vButtonBoxNew :: IO VButtonBox

-- | A vertical container box
module Graphics.UI.Gtk.Layout.VBox
data VBox
class BoxClass o => VBoxClass o
castToVBox :: GObjectClass obj => obj -> VBox
gTypeVBox :: GType
toVBox :: VBoxClass o => o -> VBox

-- | Creates a new VBox.
vBoxNew :: Bool -> Int -> IO VBox

-- | A widget which controls the alignment and size of its child
module Graphics.UI.Gtk.Layout.StackSwitcher
data StackSwitcher
castToStackSwitcher :: GObjectClass obj => obj -> StackSwitcher
gTypeStackSwitcher :: GType
toStackSwitcher :: StackSwitcherClass o => o -> StackSwitcher

-- | Creates a new StackSwitcher.
stackSwitcherNew :: IO StackSwitcher

-- | Sets the stack to control.
stackSwitcherSetStack :: (StackSwitcherClass self, StackClass stack) => self -> stack -> IO ()

-- | Retrieves the stack.
stackSwitcherGetStack :: StackSwitcherClass self => self -> IO (Maybe Stack)

-- | Use the "icon-size" property to change the size of the image displayed
--   when a GtkStackSwitcher is displaying icons.
--   
--   Default value: 1
stackSwitcherIconSize :: StackSwitcherClass self => Attr self Int

-- | The Stack controlled by this StackSwitcher.
stackSwitcherStack :: (StackSwitcherClass self, StackClass stack) => ReadWriteAttr self (Maybe Stack) (Maybe stack)

-- | A widget which controls the alignment and size of its child
module Graphics.UI.Gtk.Layout.Stack
data Stack
castToStack :: GObjectClass obj => obj -> Stack
gTypeStack :: GType
toStack :: StackClass o => o -> Stack
data StackTransitionType
StackTransitionTypeNone :: StackTransitionType
StackTransitionTypeCrossfade :: StackTransitionType
StackTransitionTypeSlideRight :: StackTransitionType
StackTransitionTypeSlideLeft :: StackTransitionType
StackTransitionTypeSlideUp :: StackTransitionType
StackTransitionTypeSlideDown :: StackTransitionType
StackTransitionTypeSlideLeftRight :: StackTransitionType
StackTransitionTypeSlideUpDown :: StackTransitionType
StackTransitionTypeOverUp :: StackTransitionType
StackTransitionTypeOverDown :: StackTransitionType
StackTransitionTypeOverLeft :: StackTransitionType
StackTransitionTypeOverRight :: StackTransitionType
StackTransitionTypeUnderUp :: StackTransitionType
StackTransitionTypeUnderDown :: StackTransitionType
StackTransitionTypeUnderLeft :: StackTransitionType
StackTransitionTypeUnderRight :: StackTransitionType
StackTransitionTypeOverUpDown :: StackTransitionType
StackTransitionTypeOverDownUp :: StackTransitionType
StackTransitionTypeOverLeftRight :: StackTransitionType
StackTransitionTypeOverRightLeft :: StackTransitionType

-- | Creates a new Stack container.
stackNew :: IO Stack

-- | Adds a child to stack . The child is identified by the name.
stackAddNamed :: (StackClass self, WidgetClass child, GlibString name) => self -> child -> name -> IO ()

-- | Adds a child to stack. The child is identified by the name. The title
--   will be used by StackSwitcher to represent child in a tab bar,
--   so it should be short.
stackAddTitled :: (StackClass self, WidgetClass child, GlibString name, GlibString title) => self -> child -> name -> title -> IO ()

-- | Gets the type of animation that will be used for transitions between
--   pages in stack.
stackGetTransitionType :: StackClass self => self -> IO StackTransitionType

-- | Sets the type of animation that will be used for transitions between
--   pages in stack . Available types include various kinds of fades and
--   slides. The transition type can be changed without problems at
--   runtime, so it is possible to change the animation based on the page
--   that is about to become current.
stackSetTransitionType :: StackClass self => self -> StackTransitionType -> IO ()

-- | Sets the duration that transitions between pages in stack will take.
stackSetTransitionDuration :: StackClass self => self -> Int -> IO ()

-- | Returns the amount of time (in milliseconds) that transitions between
--   pages in stack will take.
stackGetTransitionDuration :: StackClass self => self -> IO Int

-- | Finds the child of the GtkStack with the name given as the argument.
--   Returns Nothing if there is no child with this name.
stackGetChildByName :: (StackClass self, GlibString name) => self -> name -> IO Widget

-- | Makes child the visible child of stack. If child is different from the
--   currently visible child, the transition between the two will be
--   animated with the current transition type of stack. Note that the
--   child widget has to be visible itself (see widgetShow) in
--   order to become the visible child of stack.
stackSetVisibleChild :: (StackClass self, WidgetClass child) => self -> child -> IO ()

-- | Makes the child with the given name visible. If child is different
--   from the currently visible child, the transition between the two will
--   be animated with the current transition type of stack. Note that the
--   child widget has to be visible itself (see widgetShow) in
--   order to become the visible child of stack.
stackSetVisibleChildName :: (StackClass self, GlibString name) => self -> name -> IO ()

-- | Returns the name of the currently visible child of stack, or Nothing
--   if there is no visible child.
stackGetVisibleChildName :: (StackClass self, GlibString name) => self -> IO (Maybe name)

-- | Makes the child with the given name visible. Note that the child
--   widget has to be visible itself (see widgetShow) in order to
--   become the visible child of stack .
stackSetVisibleChildFull :: (StackClass self, GlibString name) => self -> name -> StackTransitionType -> IO ()

-- | Sets the stack to be homogeneous or not. If it is homogeneous, the
--   stack will request the same size for all its children. If it isn't,
--   the stack may change size when a different child becomes visible.
stackSetHomogeneous :: StackClass self => self -> Bool -> IO ()

-- | Gets whether stack is homogeneous. See stackSetHomogeneous.
stackGetHomogeneous :: StackClass self => self -> IO Bool

-- | Sets the stack to be horizontally homogeneous or not. If it is
--   homogeneous, the stack will request the same width for all its
--   children. If it isn't, the stack may change width when a different
--   child becomes visible.
stackSetHhomogeneous :: StackClass self => self -> Bool -> IO ()

-- | Gets whether stack is horizontally homogeneous. See
--   stackSetHhomogeneous.
stackGetHhomogeneous :: StackClass self => self -> IO Bool

-- | Sets the stack to be vertically homogeneous or not. If it is
--   homogeneous, the stack will request the same height for all its
--   children. If it isn't, the stack may change height when a different
--   child becomes visible.
stackSetVhomogeneous :: StackClass self => self -> Bool -> IO ()

-- | Gets whether stack is vertically homogeneous. See
--   stackSetVhomogeneous.
stackGetVhomogeneous :: StackClass self => self -> IO Bool

-- | Returns whether the stack is currently in a transition from one page
--   to another.
stackGetTransitionRunning :: StackClass self => self -> IO Bool

-- | Sets whether or not the stack will interpolate its size when changing
--   the visible child. If the 'interpolate-size' property is set to True,
--   stack will interpolate its size between the current one and the one
--   it'll take after changing the visible child, according to the set
--   transition duration.
stackSetInterpolateSize :: StackClass self => self -> Bool -> IO ()

-- | Returns whether the stack is set up to interpolate between the sizes
--   of children on page switch.
stackGetInterpolateSize :: StackClass self => self -> IO Bool

-- | True if the stack allocates the same width for all children.
stackHhomogeneous :: StackClass self => Attr self Bool

-- | Homogeneous sizing.
stackHomogeneous :: StackClass self => Attr self Bool

-- | Whether or not the size should smoothly change when changing between
--   differently sized children.
stackInterpolateSize :: StackClass self => Attr self Bool

-- | The animation duration, in milliseconds.
stackTransitionDuration :: StackClass self => Attr self Int

-- | Whether or not the transition is currently running.
stackTransitionRunning :: StackClass self => ReadAttr self Bool

-- | The type of animation used to transition.
stackTransitionType :: StackClass self => Attr self StackTransitionType

-- | True if the stack allocates the same height for all children.
stackVhomogeneous :: StackClass self => Attr self Bool

-- | The widget currently visible in the stack.
stackVisibleChild :: StackClass self => ReadWriteAttr self (Maybe Widget) Widget

-- | The name of the widget currently visible in the stack.
stackVisibleChildName :: StackClass self => ReadWriteAttr self (Maybe String) String

-- | A simple container that can display overlaid widgets
module Graphics.UI.Gtk.Layout.Overlay
data Overlay
class BinClass o => OverlayClass o
castToOverlay :: GObjectClass obj => obj -> Overlay
gTypeOverlay :: GType
toOverlay :: OverlayClass o => o -> Overlay

-- | Create a new Overlay
overlayNew :: IO Overlay
overlayAdd :: (OverlayClass self, WidgetClass widget) => self -> widget -> IO ()

-- | A container with two panes arranged horizontally
module Graphics.UI.Gtk.Layout.HPaned
data HPaned
class PanedClass o => HPanedClass o
castToHPaned :: GObjectClass obj => obj -> HPaned
gTypeHPaned :: GType
toHPaned :: HPanedClass o => o -> HPaned

-- | Create a new HPaned
hPanedNew :: IO HPaned

-- | A container for arranging buttons horizontally
module Graphics.UI.Gtk.Layout.HButtonBox
data HButtonBox
class ButtonBoxClass o => HButtonBoxClass o
castToHButtonBox :: GObjectClass obj => obj -> HButtonBox
gTypeHButtonBox :: GType
toHButtonBox :: HButtonBoxClass o => o -> HButtonBox

-- | Creates a new horizontal button box.
hButtonBoxNew :: IO HButtonBox

-- | A horizontal container box
module Graphics.UI.Gtk.Layout.HBox
data HBox
class BoxClass o => HBoxClass o
castToHBox :: GObjectClass obj => obj -> HBox
gTypeHBox :: GType
toHBox :: HBoxClass o => o -> HBox

-- | Creates a new HBox.
hBoxNew :: Bool -> Int -> IO HBox

-- | A widget which controls the alignment and size of its child
module Graphics.UI.Gtk.Layout.Grid
data Grid
class ContainerClass o => GridClass o
castToGrid :: GObjectClass obj => obj -> Grid
gTypeGrid :: GType
toGrid :: GridClass o => o -> Grid

-- | Creates a new grid widget.
gridNew :: IO Grid

-- | Adds a widget to the grid. The position of child is determined by left
--   and top. the number of "cells" that child will occupy is determined by
--   width and height.
gridAttach :: (GridClass self, WidgetClass child) => self -> child -> Int -> Int -> Int -> Int -> IO ()

-- | Adds a widget to the grid. The widget is placed next to sibling , on
--   the side determined by side . When sibling is Nothing, the widget is
--   placed in row (for left or right placement) or column 0 (for top or
--   bottom placement), at the end indicated by side.
--   
--   Attaching widgets labeled [1], [2], [3] with sibling == Nothing and
--   side == GTK_POS_LEFT yields a layout of 3[1].
gridAttachNextTo :: (GridClass self, WidgetClass child, WidgetClass sibling) => self -> child -> Maybe sibling -> PositionType -> Int -> Int -> IO ()

-- | Sets whether all rows of grid will have the same height.
gridSetRowHomogeneous :: GridClass self => self -> Bool -> IO ()

-- | Returns whether all rows of grid have the same height.
gridGetRowHomogeneous :: GridClass self => self -> IO Bool

-- | Sets the amount of space between rows of grid.
gridSetRowSpacing :: GridClass self => self -> Int -> IO ()

-- | Returns the amount of space between the rows of grid.
gridGetRowSpacing :: GridClass self => self -> IO Int

-- | Sets whether all columns of grid will have the same width.
gridSetColumnHomogeneous :: GridClass self => self -> Bool -> IO ()

-- | Returns whether all columns of grid have the same width.
gridGetColumnHomogeneous :: GridClass self => self -> IO Bool

-- | Sets the amount of space between columns of grid.
gridSetColumnSpacing :: GridClass self => self -> Int -> IO ()

-- | Returns the amount of space between the columns of grid.
gridGetColumnSpacing :: GridClass self => self -> IO Int

-- | Gets the child of grid whose area covers the grid cell whose upper
--   left corner is at left , top .
gridGetChildAt :: GridClass self => self -> Int -> Int -> IO (Maybe Widget)

-- | Inserts a row at the specified position. Children which are attached
--   at or below this position are moved one row down. Children which span
--   across this position are grown to span the new row.
gridInsertRow :: GridClass self => self -> Int -> IO ()

-- | Inserts a column at the specified position. Children which are
--   attached at or to the right of this position are moved one column to
--   the right. Children which span across this position are grown to span
--   the new column
gridInsertColumn :: GridClass self => self -> Int -> IO ()

-- | Inserts a row or column at the specified position. The new row or
--   column is placed next to sibling , on the side determined by side. If
--   side is GTK_POS_TOP or GTK_POS_BOTTOM, a row is inserted. If side is
--   GTK_POS_LEFT of GTK_POS_RIGHT, a column is inserted.
gridInsertNextTo :: (GridClass self, WidgetClass sibling) => self -> sibling -> PositionType -> IO ()

-- | Removes a row from the grid. Children that are placed in this row are
--   removed, spanning children that overlap this row have their height
--   reduced by one, and children below the row are moved up.
gridRemoveRow :: GridClass self => self -> Int -> IO ()

-- | Removes a column from the grid. Children that are placed in this
--   column are removed, spanning children that overlap this column have
--   their width reduced by one, and children after the column are moved to
--   the left.
gridRemoveColumn :: GridClass self => self -> Int -> IO ()

-- | Returns which row defines the global baseline of grid.
gridGetBaselineRow :: GridClass self => self -> IO Int

-- | Sets which row defines the global baseline for the entire grid. Each
--   row in the grid can have its own local baseline, but only one of those
--   is global, meaning it will be the baseline in the parent of the grid.
gridSetBaselineRow :: GridClass self => self -> Int -> IO ()

-- | Returns the baseline position of row as set by
--   gridSetRowBaselinePosition or the default value
--   BASELINE_POSITION_CENTER
gridGetRowBaselinePosition :: GridClass self => self -> Int -> IO BaselinePosition

-- | Sets how the baseline should be positioned on row of the grid, in case
--   that row is assigned more space than is requested.
gridSetRowBaselinePosition :: GridClass self => self -> Int -> BaselinePosition -> IO ()

-- | A container which can hide its child
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.Layout.Expander
data Expander
class BinClass o => ExpanderClass o
castToExpander :: GObjectClass obj => obj -> Expander
gTypeExpander :: GType
toExpander :: ExpanderClass o => o -> Expander

-- | Creates a new expander using the given string as the text of the
--   label.
expanderNew :: GlibString string => string -> IO Expander

-- | Creates a new expander using label as the text of the label.
--   If characters in label are preceded by an underscore, they
--   are underlined. If you need a literal underscore character in a label,
--   use '__' (two underscores). The first underlined character represents
--   a keyboard accelerator called a mnemonic. Pressing Alt and that key
--   activates the button.
expanderNewWithMnemonic :: GlibString string => string -> IO Expander

-- | Sets the state of the expander. Set to True, if you want the
--   child widget to be revealed, and False if you want the child
--   widget to be hidden.
expanderSetExpanded :: Expander -> Bool -> IO ()

-- | Queries a Expander and returns its current state. Returns
--   True if the child widget is revealed.
--   
--   See expanderSetExpanded.
expanderGetExpanded :: Expander -> IO Bool

-- | Sets the spacing field of expander, which is the number of
--   pixels to place between expander and the child.
expanderSetSpacing :: Expander -> Int -> IO ()

-- | Gets the value set by expanderSetSpacing.
expanderGetSpacing :: Expander -> IO Int

-- | Sets the text of the label of the expander to label.
--   
--   This will also clear any previously set labels.
expanderSetLabel :: GlibString string => Expander -> string -> IO ()

-- | Fetches the text from the label of the expander, as set by
--   expanderSetLabel.
expanderGetLabel :: GlibString string => Expander -> IO string

-- | If true, an underline in the text of the expander label indicates the
--   next character should be used for the mnemonic accelerator key.
expanderSetUseUnderline :: Expander -> Bool -> IO ()

-- | Returns whether an embedded underline in the expander label indicates
--   a mnemonic. See expanderSetUseUnderline.
expanderGetUseUnderline :: Expander -> IO Bool

-- | Sets whether the text of the label contains markup in Pango's text
--   markup language. See labelSetMarkup.
expanderSetUseMarkup :: Expander -> Bool -> IO ()

-- | Returns whether the label's text is interpreted as marked up with the
--   Pango text markup language. See expanderSetUseMarkup.
expanderGetUseMarkup :: Expander -> IO Bool

-- | Set the label widget for the expander. This is the widget that will
--   appear embedded alongside the expander arrow.
expanderSetLabelWidget :: WidgetClass labelWidget => Expander -> labelWidget -> IO ()

-- | Retrieves the label widget for the frame. See
--   expanderSetLabelWidget.
expanderGetLabelWidget :: Expander -> IO Widget

-- | Whether the expander has been opened to reveal the child widget.
--   
--   Default value: False
expanderExpanded :: Attr Expander Bool

-- | Text of the expander's label.
expanderLabel :: GlibString string => Attr Expander string

-- | If set, an underline in the text indicates the next character should
--   be used for the mnemonic accelerator key.
--   
--   Default value: False
expanderUseUnderline :: Attr Expander Bool

-- | The text of the label includes XML markup. See pango_parse_markup().
--   
--   Default value: False
expanderUseMarkup :: Attr Expander Bool

-- | Space to put between the label and the child.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
expanderSpacing :: Attr Expander Int

-- | A widget to display in place of the usual expander label.
expanderLabelWidget :: WidgetClass labelWidget => ReadWriteAttr Expander Widget labelWidget

-- | Whether the label widget should fill all available horizontal space.
--   
--   Default value: False
expanderLabelFill :: Attr Expander Bool
onActivate :: Expander -> IO () -> IO (ConnectId Expander)
afterActivate :: Expander -> IO () -> IO (ConnectId Expander)

-- | A frame that constrains its child to a particular aspect ratio
module Graphics.UI.Gtk.Layout.AspectFrame
data AspectFrame
class FrameClass o => AspectFrameClass o
castToAspectFrame :: GObjectClass obj => obj -> AspectFrame
gTypeAspectFrame :: GType
toAspectFrame :: AspectFrameClass o => o -> AspectFrame

-- | Create a new AspectFrame.
--   
--   The frame may be augmented with a label which can be set by
--   frameSetLabel.
aspectFrameNew :: Float -> Float -> Maybe Float -> IO AspectFrame

-- | Set parameters for an existing AspectFrame.
aspectFrameSet :: AspectFrameClass self => self -> Float -> Float -> Maybe Float -> IO ()

-- | X alignment of the child.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
aspectFrameXAlign :: AspectFrameClass self => Attr self Float

-- | Y alignment of the child.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
aspectFrameYAlign :: AspectFrameClass self => Attr self Float

-- | Aspect ratio if obey_child is False.
--   
--   Allowed values: [1e-04,10000]
--   
--   Default value: 0.5
aspectFrameRatio :: AspectFrameClass self => Attr self Float

-- | Force aspect ratio to match that of the frame's child.
--   
--   Default value: True
aspectFrameObeyChild :: AspectFrameClass self => Attr self Bool

-- | A widget which controls the alignment and size of its child
module Graphics.UI.Gtk.Layout.Alignment
data Alignment
class BinClass o => AlignmentClass o
castToAlignment :: GObjectClass obj => obj -> Alignment
gTypeAlignment :: GType
toAlignment :: AlignmentClass o => o -> Alignment

-- | Creates a new Alignment.
alignmentNew :: Float -> Float -> Float -> Float -> IO Alignment

-- | Sets the Alignment values.
alignmentSet :: AlignmentClass self => self -> Float -> Float -> Float -> Float -> IO ()

-- | Sets the padding on the different sides of the widget. The padding
--   adds blank space to the sides of the widget. For instance, this can be
--   used to indent the child widget towards the right by adding padding on
--   the left.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
alignmentSetPadding :: AlignmentClass self => self -> Int -> Int -> Int -> Int -> IO ()

-- | Gets the padding on the different sides of the widget. See
--   alignmentSetPadding.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
alignmentGetPadding :: AlignmentClass self => self -> IO (Int, Int, Int, Int)

-- | Horizontal position of child in available space. 0.0 is left aligned,
--   1.0 is right aligned.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
alignmentXAlign :: AlignmentClass self => Attr self Float

-- | Vertical position of child in available space. 0.0 is top aligned, 1.0
--   is bottom aligned.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
alignmentYAlign :: AlignmentClass self => Attr self Float

-- | If available horizontal space is bigger than needed for the child, how
--   much of it to use for the child. 0.0 means none, 1.0 means all.
--   
--   Allowed values: [0,1]
--   
--   Default value: 1
alignmentXScale :: AlignmentClass self => Attr self Float

-- | If available vertical space is bigger than needed for the child, how
--   much of it to use for the child. 0.0 means none, 1.0 means all.
--   
--   Allowed values: [0,1]
--   
--   Default value: 1
alignmentYScale :: AlignmentClass self => Attr self Float

-- | The padding to insert at the top of the widget.
--   
--   Allowed values: <= (maxBound :: Int)
--   
--   Default value: 0
alignmentTopPadding :: AlignmentClass self => Attr self Int

-- | The padding to insert at the bottom of the widget.
--   
--   Allowed values: <= (maxBound :: Int)
--   
--   Default value: 0
alignmentBottomPadding :: AlignmentClass self => Attr self Int

-- | The padding to insert at the left of the widget.
--   
--   Allowed values: <= (maxBound :: Int)
--   
--   Default value: 0
alignmentLeftPadding :: AlignmentClass self => Attr self Int

-- | The padding to insert at the right of the widget.
--   
--   Allowed values: <= (maxBound :: Int)
--   
--   Default value: 0
alignmentRightPadding :: AlignmentClass self => Attr self Int

-- | A widget used to select a color
module Graphics.UI.Gtk.Selectors.ColorSelection
data ColorSelection
class VBoxClass o => ColorSelectionClass o
castToColorSelection :: GObjectClass obj => obj -> ColorSelection
gTypeColorSelection :: GType
toColorSelection :: ColorSelectionClass o => o -> ColorSelection

-- | Creates a new ColorSelection.
colorSelectionNew :: IO ColorSelection

-- | Returns the current alpha value.
colorSelectionGetCurrentAlpha :: ColorSelectionClass self => self -> IO Int

-- | Sets the current opacity to be alpha. The first time this is
--   called, it will also set the original opacity to be alpha
--   too.
colorSelectionSetCurrentAlpha :: ColorSelectionClass self => self -> Int -> IO ()

-- | Gets the current color in the ColorSelection widget.
colorSelectionGetCurrentColor :: ColorSelectionClass self => self -> IO Color

-- | Sets the current color to be color. The first time this is
--   called, it will also set the original color to be color too.
colorSelectionSetCurrentColor :: ColorSelectionClass self => self -> Color -> IO ()

-- | Determines whether the ColorSelection widget has an opacity
--   control.
colorSelectionGetHasOpacityControl :: ColorSelectionClass self => self -> IO Bool

-- | Sets the ColorSelection widget to use or not use opacity.
colorSelectionSetHasOpacityControl :: ColorSelectionClass self => self -> Bool -> IO ()

-- | Determines whether the color selector has a color palette.
colorSelectionGetHasPalette :: ColorSelectionClass self => self -> IO Bool

-- | Sets whether to show or hide the palette.
colorSelectionSetHasPalette :: ColorSelectionClass self => self -> Bool -> IO ()

-- | Returns the previous alpha value.
colorSelectionGetPreviousAlpha :: ColorSelectionClass self => self -> IO Int

-- | Sets the 'previous' alpha to be alpha. This function should
--   be called with some hesitations, as it might seem confusing to have
--   that alpha change.
colorSelectionSetPreviousAlpha :: ColorSelectionClass self => self -> Int -> IO ()

-- | Returns the original color value.
colorSelectionGetPreviousColor :: ColorSelectionClass self => self -> IO Color

-- | Sets the 'previous' color to be color. This function should
--   be called with some hesitations, as it might seem confusing to have
--   that color change. Calling colorSelectionSetCurrentColor will
--   also set this color the first time it is called.
colorSelectionSetPreviousColor :: ColorSelectionClass self => self -> Color -> IO ()

-- | Gets the current state of the widget. Returns True if the user is
--   currently dragging a color around, and False if the selection has
--   stopped.
colorSelectionIsAdjusting :: ColorSelectionClass self => self -> IO Bool

-- | Whether the color selector should allow setting opacity.
--   
--   Default value: False
colorSelectionHasOpacityControl :: ColorSelectionClass self => Attr self Bool

-- | Whether a palette should be used.
--   
--   Default value: False
colorSelectionHasPalette :: ColorSelectionClass self => Attr self Bool

-- | The current opacity value (0 fully transparent, 65535 fully opaque).
--   
--   Allowed values: <= 65535
--   
--   Default value: 65535
colorSelectionCurrentAlpha :: ColorSelectionClass self => Attr self Int

-- | 'previousAlpha' property. See colorSelectionGetPreviousAlpha
--   and colorSelectionSetPreviousAlpha
colorSelectionPreviousAlpha :: ColorSelectionClass self => Attr self Int

-- | A button to launch a color selection dialog
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.Selectors.ColorButton
data ColorButton
class ButtonClass o => ColorButtonClass o
castToColorButton :: GObjectClass obj => obj -> ColorButton
gTypeColorButton :: GType
toColorButton :: ColorButtonClass o => o -> ColorButton

-- | Creates a new color button. This returns a widget in the form of a
--   small button containing a swatch representing the current selected
--   color. When the button is clicked, a color-selection dialog will open,
--   allowing the user to select a color. The swatch will be updated to
--   reflect the new color when the user finishes.
colorButtonNew :: IO ColorButton

-- | Creates a new color button.
colorButtonNewWithColor :: Color -> IO ColorButton

-- | Sets the current color to be color.
colorButtonSetColor :: ColorButtonClass self => self -> Color -> IO ()

-- | Returns the current color value.
colorButtonGetColor :: ColorButtonClass self => self -> IO Color

-- | Sets the current opacity to be alpha.
colorButtonSetAlpha :: ColorButtonClass self => self -> Word16 -> IO ()

-- | Returns the current alpha value.
colorButtonGetAlpha :: ColorButtonClass self => self -> IO Word16

-- | Sets whether or not the color button should use the alpha channel.
colorButtonSetUseAlpha :: ColorButtonClass self => self -> Bool -> IO ()

-- | Does the color selection dialog use the alpha channel?
colorButtonGetUseAlpha :: ColorButtonClass self => self -> IO Bool

-- | Sets the title for the color selection dialog.
colorButtonSetTitle :: (ColorButtonClass self, GlibString string) => self -> string -> IO ()

-- | Gets the title of the color selection dialog.
colorButtonGetTitle :: (ColorButtonClass self, GlibString string) => self -> IO string

-- | If this property is set to True, the color swatch on the
--   button is rendered against a checkerboard background to show its
--   opacity and the opacity slider is displayed in the color selection
--   dialog.
--   
--   Default value: False
colorButtonUseAlpha :: ColorButtonClass self => Attr self Bool

-- | The title of the color selection dialog
--   
--   Default value: "Pick a Color"
colorButtonTitle :: (ColorButtonClass self, GlibString string) => Attr self string

-- | The selected opacity value (0 fully transparent, 65535 fully opaque).
--   
--   Allowed values: <= 65535
--   
--   Default value: 65535
colorButtonAlpha :: ColorButtonClass self => Attr self Word16

-- | The colorSet signal is emitted when the user selects a color.
--   When handling this signal, use colorButtonGetColor and
--   colorButtonGetAlpha to find out which color was just selected.
onColorSet :: ColorButtonClass self => self -> IO () -> IO (ConnectId self)

-- | The colorSet signal is emitted when the user selects a color.
--   When handling this signal, use colorButtonGetColor and
--   colorButtonGetAlpha to find out which color was just selected.
afterColorSet :: ColorButtonClass self => self -> IO () -> IO (ConnectId self)

-- | A visible column in a TreeView widget
module Graphics.UI.Gtk.ModelView.TreeViewColumn
data TreeViewColumn
class GObjectClass o => TreeViewColumnClass o
castToTreeViewColumn :: GObjectClass obj => obj -> TreeViewColumn
gTypeTreeViewColumn :: GType
toTreeViewColumn :: TreeViewColumnClass o => o -> TreeViewColumn

-- | Generate a new TreeViewColumn widget.
treeViewColumnNew :: IO TreeViewColumn

-- | Add a cell renderer at the beginning of a column.
--   
--   
--   
- Excess space is divided equally among all renderers which have
--   expand set to True.
--   
treeViewColumnPackStart :: CellRendererClass cell => TreeViewColumn -> cell -> Bool -> IO ()

-- | Add a cell renderer at the end of a column.
--   
--   
--   
- Excess space is divided equally among all renderers which have
--   expand set to True.
--   
treeViewColumnPackEnd :: CellRendererClass cell => TreeViewColumn -> cell -> Bool -> IO ()

-- | Remove the associations of attributes to a store for all
--   CellRenderers.
treeViewColumnClear :: TreeViewColumn -> IO ()

-- | Set the number of pixels between two cell renderers.
treeViewColumnSetSpacing :: TreeViewColumn -> Int -> IO ()

-- | Get the number of pixels between two cell renderers.
treeViewColumnGetSpacing :: TreeViewColumn -> IO Int

-- | Set the visibility of a given column.
treeViewColumnSetVisible :: TreeViewColumn -> Bool -> IO ()

-- | Get the visibility of a given column.
treeViewColumnGetVisible :: TreeViewColumn -> IO Bool

-- | Set if a given column is resizable by the user.
treeViewColumnSetResizable :: TreeViewColumn -> Bool -> IO ()

-- | Get if a given column is resizable by the user.
treeViewColumnGetResizable :: TreeViewColumn -> IO Bool

-- | Whether columns of a tree or list widget can be resized.
data TreeViewColumnSizing
TreeViewColumnGrowOnly :: TreeViewColumnSizing
TreeViewColumnAutosize :: TreeViewColumnSizing
TreeViewColumnFixed :: TreeViewColumnSizing

-- | Set whether the column can be resized.
treeViewColumnSetSizing :: TreeViewColumn -> TreeViewColumnSizing -> IO ()

-- | Return the resizing type of the column.
treeViewColumnGetSizing :: TreeViewColumn -> IO TreeViewColumnSizing

-- | Query the current width of the column.
treeViewColumnGetWidth :: TreeViewColumn -> IO Int

-- | Set the width of the column.
--   
--   
--   
- This is meaningful only if the sizing type is
--   TreeViewColumnFixed.
--   
treeViewColumnSetFixedWidth :: TreeViewColumn -> Int -> IO ()

-- | Gets the fixed width of the column.
--   
--   
--   
- This is meaningful only if the sizing type is
--   TreeViewColumnFixed.
--   
- This value is only meaning may not be the actual width of the
--   column on the screen, just what is requested.
--   
treeViewColumnGetFixedWidth :: TreeViewColumn -> IO Int

-- | Set minimum width of the column.
treeViewColumnSetMinWidth :: TreeViewColumn -> Int -> IO ()

-- | Get the minimum width of a column. Returns -1 if this width was not
--   set.
treeViewColumnGetMinWidth :: TreeViewColumn -> IO Int

-- | Set maximum width of the column.
treeViewColumnSetMaxWidth :: TreeViewColumn -> Int -> IO ()

-- | Get the maximum width of a column. Returns -1 if this width was not
--   set.
treeViewColumnGetMaxWidth :: TreeViewColumn -> IO Int

-- | Emit the clicked signal on the column.
treeViewColumnClicked :: TreeViewColumn -> IO ()

-- | Set the widget's title if a custom widget has not been set.
treeViewColumnSetTitle :: GlibString string => TreeViewColumn -> string -> IO ()

-- | Get the widget's title.
treeViewColumnGetTitle :: GlibString string => TreeViewColumn -> IO (Maybe string)

-- | Set if the column should be sensitive to mouse clicks.
treeViewColumnSetClickable :: TreeViewColumn -> Bool -> IO ()

-- | Returns True if the user can click on the header for the column.
treeViewColumnGetClickable :: TreeViewColumn -> IO Bool

-- | Set the column's title to this widget.
treeViewColumnSetWidget :: WidgetClass widget => TreeViewColumn -> Maybe widget -> IO ()

-- | Retrieve the widget responsible for showing the column title. In case
--   only a text title was set this will be a Alignment widget with
--   a Label inside.
treeViewColumnGetWidget :: TreeViewColumn -> IO (Maybe Widget)

-- | Sets the alignment of the title or custom widget inside the column
--   header. The alignment determines its location inside the button -- 0.0
--   for left, 0.5 for center, 1.0 for right.
treeViewColumnSetAlignment :: TreeViewColumn -> Float -> IO ()

-- | Returns the current x alignment of the tree column. This value can
--   range between 0.0 and 1.0.
treeViewColumnGetAlignment :: TreeViewColumn -> IO Float

-- | Set if the column can be reordered by the end user dragging the
--   header.
treeViewColumnSetReorderable :: TreeViewColumn -> Bool -> IO ()

-- | Returns whether the column can be reordered by the user.
treeViewColumnGetReorderable :: TreeViewColumn -> IO Bool

-- | Set the column by which to sort.
--   
--   
--   
- Sets the logical columnId that this column sorts on when
--   this column is selected for sorting. The selected column's header will
--   be clickable after this call. Logical refers to the
--   SortColumnId for which a comparison function was set.
--   
treeViewColumnSetSortColumnId :: TreeViewColumn -> SortColumnId -> IO ()

-- | Get the column by which to sort.
--   
--   
--   
- Retrieves the logical columnId that the model sorts on
--   when this column is selected for sorting.
--   
- Returns treeSortableDefaultSortColumnId if this tree view
--   column has no SortColumnId associated with it.
--   
treeViewColumnGetSortColumnId :: TreeViewColumn -> IO SortColumnId

-- | Set if a given column has sorting arrows in its heading.
treeViewColumnSetSortIndicator :: TreeViewColumn -> Bool -> IO ()

-- | Query if a given column has sorting arrows in its heading.
treeViewColumnGetSortIndicator :: TreeViewColumn -> IO Bool

-- | Set if a given column is sorted in ascending or descending order.
--   
--   
--   
- In order for sorting to work, it is necessary to either use
--   automatic sorting via treeViewColumnSetSortColumnId or to use a
--   user defined sorting on the elements in a TreeModel.
--   
treeViewColumnSetSortOrder :: TreeViewColumn -> SortType -> IO ()

-- | Query if a given column is sorted in ascending or descending order.
treeViewColumnGetSortOrder :: TreeViewColumn -> IO SortType
data SortType
SortAscending :: SortType
SortDescending :: SortType

-- | Sets the column to take available extra space. This space is shared
--   equally amongst all columns that have the expand set to True.
--   If no column has this option set, then the last column gets all extra
--   space. By default, every column is created with this False.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
treeViewColumnSetExpand :: TreeViewColumn -> Bool -> IO ()

-- | Return True if the column expands to take any available
--   space.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
treeViewColumnGetExpand :: TreeViewColumn -> IO Bool

-- | Returns True if any of the cells packed into the
--   treeColumn are visible. For this to be meaningful, you must
--   first initialize the cells with treeViewColumnCellSetCellData
treeViewColumnCellIsVisible :: TreeViewColumn -> IO Bool

-- | Sets the current keyboard focus to be at cell, if the column
--   contains 2 or more editable and activatable cells.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
treeViewColumnFocusCell :: CellRendererClass cell => TreeViewColumn -> cell -> IO ()

-- | Flags the column, and the cell renderers added to this column, to have
--   their sizes renegotiated.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
treeViewColumnQueueResize :: TreeViewColumn -> IO ()

-- | Whether to display the column.
--   
--   Default value: True
treeViewColumnVisible :: Attr TreeViewColumn Bool

-- | Column is user-resizable.
--   
--   Default value: False
treeViewColumnResizable :: Attr TreeViewColumn Bool

-- | Current width of the column.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
treeViewColumnWidth :: ReadAttr TreeViewColumn Int

-- | Space which is inserted between cells.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
treeViewColumnSpacing :: Attr TreeViewColumn Int

-- | Resize mode of the column.
--   
--   Default value: TreeViewColumnGrowOnly
treeViewColumnSizing :: Attr TreeViewColumn TreeViewColumnSizing

-- | Current fixed width of the column.
--   
--   Allowed values: >= 1
--   
--   Default value: 1
treeViewColumnFixedWidth :: Attr TreeViewColumn Int

-- | Minimum allowed width of the column.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
treeViewColumnMinWidth :: Attr TreeViewColumn Int

-- | Maximum allowed width of the column.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
treeViewColumnMaxWidth :: Attr TreeViewColumn Int

-- | Title to appear in column header.
--   
--   Default value: ""
treeViewColumnTitle :: GlibString string => ReadWriteAttr TreeViewColumn (Maybe string) string

-- | Column gets share of extra width allocated to the widget.
--   
--   Default value: False
treeViewColumnExpand :: Attr TreeViewColumn Bool

-- | Whether the header can be clicked.
--   
--   Default value: False
treeViewColumnClickable :: Attr TreeViewColumn Bool

-- | Widget to put in column header button instead of column title.
treeViewColumnWidget :: WidgetClass widget => ReadWriteAttr TreeViewColumn (Maybe Widget) (Maybe widget)

-- | X Alignment of the column header text or widget.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0
treeViewColumnAlignment :: Attr TreeViewColumn Float

-- | Whether the column can be reordered around the headers.
--   
--   Default value: False
treeViewColumnReorderable :: Attr TreeViewColumn Bool

-- | Whether to show a sort indicator.
--   
--   Default value: False
treeViewColumnSortIndicator :: Attr TreeViewColumn Bool

-- | Sort direction the sort indicator should indicate.
--   
--   Default value: SortAscending
treeViewColumnSortOrder :: Attr TreeViewColumn SortType

-- | 'sortColumnId' property. See treeViewColumnGetSortColumnId and
--   treeViewColumnSetSortColumnId
treeViewColumnSortColumnId :: Attr TreeViewColumn SortColumnId

-- | Emitted when the header of this column has been clicked on.
onColClicked :: TreeViewColumnClass self => self -> IO () -> IO (ConnectId self)

-- | Emitted when the header of this column has been clicked on.
afterColClicked :: TreeViewColumnClass self => self -> IO () -> IO (ConnectId self)

-- | The interface for sortable models used by TreeView
module Graphics.UI.Gtk.ModelView.TreeSortable
data TreeSortable
class GObjectClass o => TreeSortableClass o
castToTreeSortable :: GObjectClass obj => obj -> TreeSortable
gTypeTreeSortable :: GType
toTreeSortable :: TreeSortableClass o => o -> TreeSortable

-- | ID number of a sort column.
--   
--   
--   
- A SortColumnId is a logical number to which a sorting
--   function can be associated. The number does not have to coincide with
--   any column number.
--   
type SortColumnId = Int

-- | A special SortColumnId to indicated that the default sorting
--   function is used.
treeSortableDefaultSortColumnId :: SortColumnId

-- | Query the sort column id that is currently in use. The return value
--   may be the special constant treeSortableDefaultSortColumnId in
--   which case the returned Boolean flag is False.
treeSortableGetSortColumnId :: TreeSortableClass self => self -> IO (SortType, Bool, SortColumnId)

-- | Sets the current sort column to be sortColumnId. The
--   sortable will resort itself to reflect this change, after
--   emitting a sortColumnChanged signal. If sortColumnId
--   is treeSortableDefaultSortColumnId, then the default sort
--   function will be used, if it is set. Note that this function is mainly
--   used by the view and that the user program should simply set the
--   SortColumnId of the TreeViewColumns.
treeSortableSetSortColumnId :: TreeSortableClass self => self -> SortColumnId -> SortType -> IO ()

-- | Sets the comparison function used when sorting to be
--   sortFunc. If the current sort column id of self is
--   the same as sortColumnId, then the model will sort using this
--   function.
treeSortableSetSortFunc :: TreeSortableClass self => self -> SortColumnId -> (TreeIter -> TreeIter -> IO Ordering) -> IO ()

-- | Sets the default comparison function used when sorting to be
--   sortFunc. If the current sort column id of self is
--   treeSortableDefaultSortColumnId then the model will sort using
--   this function.
--   
--   | If sortFunc is Nothing, then there will be no
--   default comparison function. This means that once the model has been
--   sorted, it can't go back to the default state. In this case, when the
--   current sort column id of sortable is
--   TreeSortableDefaultSortColumnId, the model will be unsorted.
treeSortableSetDefaultSortFunc :: TreeSortableClass self => self -> Maybe (TreeIter -> TreeIter -> IO Ordering) -> IO ()

-- | Returns True if the model has a default sort function. This
--   is used primarily by TreeViewColumns in order to determine if a
--   model has a default ordering or if the entries are retrieved in the
--   sequence in which they are stored in the model.
treeSortableHasDefaultSortFunc :: TreeSortableClass self => self -> IO Bool

-- | Emits a sortColumnChanged signal on the model.
treeSortableSortColumnChanged :: TreeSortableClass self => self -> IO ()
sortColumnChanged :: TreeSortableClass self => Signal self (IO ())

-- | A widget displaying a single row of a TreeModel
--   
--   
--   
- Module available since Gtk+ version 2.6
--   
module Graphics.UI.Gtk.ModelView.CellView
data CellView
class WidgetClass o => CellViewClass o
castToCellView :: GObjectClass obj => obj -> CellView
gTypeCellView :: GType
toCellView :: CellViewClass o => o -> CellView

-- | Creates a new CellView widget.
cellViewNew :: IO CellView

-- | Creates a new CellView widget, adds a CellRendererText
--   to it, and makes its show markup. The text can be marked up
--   with the Pango text markup language.
cellViewNewWithMarkup :: GlibString string => string -> IO CellView

-- | Creates a new CellView widget, adds a CellRendererPixbuf
--   to it, and makes its show pixbuf.
cellViewNewWithPixbuf :: Pixbuf -> IO CellView

-- | Creates a new CellView widget, adds a CellRendererText
--   to it, and makes its show text.
cellViewNewWithText :: GlibString string => string -> IO CellView

-- | Sets the model for cellView. If cellView already has
--   a model set, it will remove it before setting the new model. If
--   model is Nothing, then it will unset the old model.
cellViewSetModel :: (CellViewClass self, TreeModelClass model) => self -> Maybe model -> IO ()

-- | Returns the size needed by the cell view to display the model row
--   pointed to by path.
cellViewGetSizeOfRow :: CellViewClass self => self -> TreePath -> IO Requisition

-- | Sets the background color of view.
cellViewSetBackgroundColor :: CellViewClass self => self -> Color -> IO ()

-- | Background color as a string.
--   
--   Default value: ""
cellViewBackground :: (CellViewClass self, GlibString string) => WriteAttr self string

-- | A CellRenderer which displays a single-line text.
module Graphics.UI.Gtk.ModelView.CellRendererText
data CellRendererText
class CellRendererClass o => CellRendererTextClass o
castToCellRendererText :: GObjectClass obj => obj -> CellRendererText
gTypeCellRendererText :: GType
toCellRendererText :: CellRendererTextClass o => o -> CellRendererText

-- | Create a new CellRendererText object.
cellRendererTextNew :: IO CellRendererText

-- | Sets the height of a renderer to explicitly be determined by the
--   cellTextFont and cellYPad attribute set on it. Further
--   changes in these properties do not affect the height, so they must be
--   accompanied by a subsequent call to this function. Using this function
--   is inflexible, and should really only be used if calculating the size
--   of a cell is too slow (ie, a massive number of cells displayed). If
--   numberOfRows is -1, then the fixed height is unset, and the
--   height is determined by the properties again.
cellRendererTextSetFixedHeightFromFont :: CellRendererTextClass self => self -> Int -> IO ()

-- | Define the attribute that specifies the text to be rendered. See also
--   cellTextMarkup.
cellText :: (CellRendererTextClass cr, GlibString string) => Attr cr string

-- | Define a markup string instead of a text. See cellText.
cellTextMarkup :: (CellRendererTextClass cr, GlibString string) => WriteAttr cr (Maybe string)

-- | Whether or not to keep all text in a single paragraph.
--   
--   Default value: False
cellTextSingleParagraphMode :: CellRendererTextClass self => Attr self Bool

-- | Text background color as a string.
--   
--   Default value: ""
cellTextBackground :: (CellRendererClass self, GlibString string) => WriteAttr self string

-- | Text background color as a Color.
cellTextBackgroundColor :: CellRendererClass self => Attr self Color

-- | Whether the cellTextBackground/cellTextBackgroundColor
--   attribute is set.
--   
--   Default value: False
cellTextBackgroundSet :: CellRendererClass self => Attr self Bool

-- | Text foreground color as a string.
--   
--   Default value: ""
cellTextForeground :: (CellRendererClass self, GlibString string) => WriteAttr self string

-- | Text foreground color as a Color.
cellTextForegroundColor :: CellRendererClass self => Attr self Color

-- | Whether the cellTextForeground/cellTextForegroundColor
--   attribute is set.
--   
--   Default value: False
cellTextForegroundSet :: CellRendererClass self => Attr self Bool

-- | Whether the text can be modified by the user.
cellTextEditable :: CellRendererTextClass self => Attr self Bool

-- | Whether the cellTextEditable flag affects text editability.
cellTextEditableSet :: CellRendererTextClass self => Attr self Bool

-- | Font description as a string.
cellTextFont :: (CellRendererTextClass self, GlibString string) => Attr self string

-- | Font description as a FontDescription.
cellTextFontDesc :: CellRendererTextClass self => Attr self FontDescription

-- | Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
cellTextFamily :: (CellRendererTextClass self, GlibString string) => Attr self string

-- | Determines if cellTextFamily has an effect.
cellTextFamilySet :: CellRendererTextClass self => Attr self Bool

-- | Font style (e.g. normal or italics).
cellTextStyle :: CellRendererTextClass self => Attr self FontStyle

-- | Whether the cellTextStyle tag is used, default is
--   False.
cellTextStyleSet :: CellRendererTextClass self => Attr self Bool

-- | Font variant (e.g. small caps).
cellTextVariant :: CellRendererTextClass self => Attr self Variant

-- | Whether the cellTextVariant tag is used, default is
--   False.
cellTextVariantSet :: CellRendererTextClass self => Attr self Bool

-- | Font weight, default: 400.
cellTextWeight :: CellRendererTextClass self => Attr self Int

-- | Whether the cellTextWeight tag is used, default is
--   False.
cellTextWeightSet :: CellRendererTextClass self => Attr self Bool

-- | Font stretch.
cellTextStretch :: CellRendererTextClass self => Attr self Stretch

-- | Whether the cellTextStretch tag is used, default is
--   False.
cellTextStretchSet :: CellRendererTextClass self => Attr self Bool

-- | Font size in points.
cellTextSize :: CellRendererTextClass self => Attr self Double

-- | Font size in points.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
cellTextSizePoints :: CellRendererTextClass self => Attr self Double

-- | Whether the cellTextSize tag is used, default is
--   False.
cellTextSizeSet :: CellRendererTextClass self => Attr self Bool

-- | Font scaling factor. Default is 1.
cellTextScale :: CellRendererTextClass self => Attr self Double

-- | Whether the cellTextScale tag is used, default is
--   False.
cellTextScaleSet :: CellRendererTextClass self => Attr self Bool

-- | Offset of text above the baseline (below the baseline if rise is
--   negative).
--   
--   Allowed values: >= -2147483647
--   
--   Default value: 0
cellTextRise :: CellRendererTextClass self => Attr self Int

-- | Whether the cellTextRise tag is used, default is
--   False.
cellTextRiseSet :: CellRendererTextClass self => Attr self Bool

-- | Whether to strike through the text.
cellTextStrikethrough :: CellRendererTextClass self => Attr self Bool

-- | Whether the cellTextStrikethrough tag is used, default is
--   False.
cellTextStrikethroughSet :: CellRendererTextClass self => Attr self Bool

-- | Style of underline for this text.
cellTextUnderline :: CellRendererTextClass self => Attr self Underline

-- | Whether the cellTextUnderline tag is used, default is
--   False.
cellTextUnderlineSet :: CellRendererTextClass self => Attr self Bool

-- | The language this text is in, as an ISO code. Pango can use this as a
--   hint when rendering the text. If you don't understand this parameter,
--   you probably don't need it.
cellTextLanguage :: (CellRendererTextClass self, GlibString string) => Attr self (Maybe string)

-- | Whether the cellTextLanguage tag is used, default is
--   False.
cellTextLanguageSet :: CellRendererTextClass self => Attr self Bool

-- | Specifies the preferred place to ellipsize the string, if the cell
--   renderer does not have enough room to display the entire string.
--   Setting it to EllipsizeNone turns off ellipsizing. See the
--   cellTextWrapWidth property for another way of making the text
--   fit into a given width.
--   
--   
--   
- Available in Gtk 2.6 or higher.
--   
cellTextEllipsize :: CellRendererTextClass self => Attr self EllipsizeMode

-- | Whether the cellTextEllipsize tag affects the ellipsize mode.
--   
--   
--   
- Available in Gtk 2.6 or higher.
--   
cellTextEllipsizeSet :: CellRendererTextClass self => Attr self Bool

-- | The desired width of the cell, in characters. If this property is set
--   to -1, the width will be calculated automatically, otherwise
--   the cell will request either 3 characters or the property value,
--   whichever is greater.
--   
--   
--   
- Available in Gtk 2.6 or higher.
--   
cellTextWidthChars :: CellRendererTextClass self => Attr self Int

-- | Specifies how to break the string into multiple lines, if the cell
--   renderer does not have enough room to display the entire string. This
--   property has no effect unless the cellTextWrapWidth property is
--   set.
--   
--   
--   
- Available in Gtk 2.8 or higher.
--   
cellTextWrapMode :: CellRendererTextClass self => Attr self LayoutWrapMode

-- | Specifies the width at which the text is wrapped. The wrap-mode
--   property can be used to influence at what character positions the line
--   breaks can be placed. Setting wrap-width to -1 turns wrapping
--   off.
--   
--   
--   
- Available in Gtk 2.8 or higher.
--   
cellTextWrapWidth :: CellRendererTextClass self => Attr self Int

-- | Specifies how to align the lines of text with respect to each other.
--   
--   Note that this property describes how to align the lines of text in
--   case there are several of them. The cellXAlign property of
--   CellRenderer, on the other hand, sets the horizontal alignment
--   of the whole text.
--   
--   Default value: AlignLeft
--   
--   
--   
- Available since Gtk+ version 2.10
--   
cellTextAlignment :: CellRendererTextClass self => Attr self LayoutAlignment

-- | Emitted when the user finished editing a cell.
--   
--   Whenever editing is finished successfully, this signal is emitted
--   which indicates that the model should be updated with the supplied
--   value. The value is always a string which matches the cellText
--   attribute of CellRendererText (and its derivates like
--   CellRendererCombo).
--   
--   
--   
- This signal is not emitted when editing is disabled (see
--   cellTextEditable) or when the user aborts editing.
--   
edited :: (CellRendererTextClass self, GlibString string) => Signal self (TreePath -> string -> IO ())

-- | A widget used to choose from a list of items.
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.MenuComboToolbar.ComboBox
data ComboBox
class BinClass o => ComboBoxClass o
castToComboBox :: GObjectClass obj => obj -> ComboBox
gTypeComboBox :: GType
toComboBox :: ComboBoxClass o => o -> ComboBox

-- | Create a combo box that holds strings.
--   
--   This function stores a ListStore with the widget and sets the
--   model to the list store. The widget can contain only strings. The
--   model can be retrieved with comboBoxGetModel. The list store
--   can be retrieved with comboBoxGetModelText. Any existing model
--   or renderers are removed before setting the new text model. Note that
--   the functions comboBoxAppendText, comboBoxInsertText,
--   comboBoxPrependText, comboBoxRemoveText and
--   comboBoxGetActiveText can be called on a combo box only once
--   comboBoxSetModelText is called.
type ComboBoxText = Text

-- | Creates a new empty ComboBox.
comboBoxNew :: IO ComboBox

-- | Creates a new empty ComboBox with an entry.
--   
--   
--   
- Available since Gtk+ version 2.24
--   
comboBoxNewWithEntry :: IO ComboBox

-- | Convenience function which constructs a new text combo box that is a
--   ComboBox just displaying strings. This function internally
--   calls comboBoxSetModelText after creating a new combo box.
comboBoxNewText :: IO ComboBox

-- | Creates a new ComboBox with the model initialized to
--   model.
comboBoxNewWithModel :: TreeModelClass model => model -> IO ComboBox

-- | Creates a new empty ComboBox with an entry and with the model
--   initialized to model.
--   
--   
--   
- Available since Gtk+ version 2.24
--   
comboBoxNewWithModelAndEntry :: TreeModelClass model => model -> IO ComboBox
comboBoxSetModelText :: ComboBoxClass self => self -> IO (ListStore ComboBoxText)

-- | Retrieve the model that was created with comboBoxSetModelText.
comboBoxGetModelText :: ComboBoxClass self => self -> IO (ListStore ComboBoxText)

-- | Appends string to the list of strings stored in
--   comboBox. Note that you can only use this function with combo
--   boxes constructed with comboBoxNewText. Returns the index of
--   the appended text.
comboBoxAppendText :: ComboBoxClass self => self -> ComboBoxText -> IO Int

-- | Inserts string at position in the list of strings
--   stored in comboBox. Note that you can only use this function
--   with combo boxes constructed with comboBoxNewText.
comboBoxInsertText :: ComboBoxClass self => self -> Int -> ComboBoxText -> IO ()

-- | Prepends string to the list of strings stored in
--   comboBox. Note that you can only use this function with combo
--   boxes constructed with comboBoxNewText.
comboBoxPrependText :: ComboBoxClass self => self -> ComboBoxText -> IO ()

-- | Removes the string at position from comboBox. Note
--   that you can only use this function with combo boxes constructed with
--   comboBoxNewText.
comboBoxRemoveText :: ComboBoxClass self => self -> Int -> IO ()

-- | Returns the currently active string in comboBox or
--   Nothing if none is selected. Note that you can only use this
--   function with combo boxes constructed with comboBoxNewText.
comboBoxGetActiveText :: ComboBoxClass self => self -> IO (Maybe ComboBoxText)

-- | Returns the wrap width which is used to determine the number of
--   columns for the popup menu. If the wrap width is larger than 1, the
--   combo box is in table mode.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxGetWrapWidth :: ComboBoxClass self => self -> IO Int

-- | Sets the wrap width of the combo box to be width. The wrap
--   width is basically the preferred number of columns when you want the
--   popup to be laid out in a table.
comboBoxSetWrapWidth :: ComboBoxClass self => self -> Int -> IO ()

-- | Gets the column with row span information for comboBox.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxGetRowSpanColumn :: ComboBoxClass self => self -> IO (ColumnId row Int)

-- | Sets the column with row span information for comboBox to be
--   rowSpan. The row span column contains integers which indicate
--   how many rows an item should span.
comboBoxSetRowSpanColumn :: ComboBoxClass self => self -> ColumnId row Int -> IO ()

-- | Gets the source of the column span information for the combo box.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxGetColumnSpanColumn :: ComboBoxClass self => self -> IO (ColumnId row Int)

-- | Sets the source of the column span information for the combo box. The
--   column span source contains integers which indicate how many columns
--   an item should span.
comboBoxSetColumnSpanColumn :: ComboBoxClass self => self -> ColumnId row Int -> IO ()

-- | Returns the index of the currently active item, or -1 if there is no
--   active item. If the model is a non-flat treemodel, and the active item
--   is not an immediate child of the root of the tree, this function
--   returns treePathGetIndices path !! 0, where
--   path is the TreePath of the active item.
comboBoxGetActive :: ComboBoxClass self => self -> IO Int

-- | Sets the active item of comboBox to be the item at
--   index.
comboBoxSetActive :: ComboBoxClass self => self -> Int -> IO ()

-- | Returns a TreeIter that points to the current active item, if
--   it exists, or Nothing if there is no current active item.
comboBoxGetActiveIter :: ComboBoxClass self => self -> IO (Maybe TreeIter)

-- | Sets the current active item to be the one referenced by
--   iter. iter must correspond to a path of depth one.
comboBoxSetActiveIter :: ComboBoxClass self => self -> TreeIter -> IO ()

-- | Returns the TreeModel which is acting as data source for
--   comboBox.
comboBoxGetModel :: ComboBoxClass self => self -> IO (Maybe TreeModel)

-- | Sets the model used by comboBox to be model. Will
--   unset a previously set model (if applicable). If model is
--   Nothing, then it will unset the model.
--   
--   Note that this function does not clear the cell renderers, you have to
--   call comboBoxCellLayoutClear yourself if you need to set up
--   different cell renderers for the new model.
comboBoxSetModel :: (ComboBoxClass self, TreeModelClass model) => self -> Maybe model -> IO ()

-- | Pops up the menu or dropdown list of the combo box.
--   
--   This function is mostly intended for use by accessibility
--   technologies; applications should have little use for it.
comboBoxPopup :: ComboBoxClass self => self -> IO ()

-- | Hides the menu or dropdown list of comboBox.
--   
--   This function is mostly intended for use by accessibility
--   technologies; applications should have little use for it.
comboBoxPopdown :: ComboBoxClass self => self -> IO ()

-- | Installs a mapping from the model to a row separator flag, which is
--   used to determine whether a row should be drawn as a separator. If the
--   row separator mapping is Nothing, no separators are drawn.
--   This is the default value.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxSetRowSeparatorSource :: (ComboBoxClass self, TreeModelClass (model row), TypedTreeModelClass model) => self -> Maybe (model row, row -> Bool) -> IO ()

-- | Sets whether the popup menu should have a tearoff menu item.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxSetAddTearoffs :: ComboBoxClass self => self -> Bool -> IO ()

-- | Gets the current value of the :add-tearoffs property.
comboBoxGetAddTearoffs :: ComboBoxClass self => self -> IO Bool

-- | Sets the menu's title in tearoff mode.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
comboBoxSetTitle :: (ComboBoxClass self, GlibString string) => self -> string -> IO ()

-- | Gets the current title of the menu in tearoff mode. See
--   comboBoxSetAddTearoffs.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
comboBoxGetTitle :: (ComboBoxClass self, GlibString string) => self -> IO string

-- | Sets whether the combo box will grab focus when it is clicked with the
--   mouse. Making mouse clicks not grab focus is useful in places like
--   toolbars where you don't want the keyboard focus removed from the main
--   area of the application.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxSetFocusOnClick :: ComboBoxClass self => self -> Bool -> IO ()

-- | Returns whether the combo box grabs focus when it is clicked with the
--   mouse. See comboBoxSetFocusOnClick.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxGetFocusOnClick :: ComboBoxClass self => self -> IO Bool

-- | The model from which the combo box takes the values shown in the list.
comboBoxModel :: (ComboBoxClass self, TreeModelClass treeModel) => ReadWriteAttr self TreeModel treeModel

-- | If wrap-width is set to a positive value, the list will be displayed
--   in multiple columns, the number of columns is determined by
--   wrap-width.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
comboBoxWrapWidth :: ComboBoxClass self => Attr self Int

-- | The values of that column are used to determine how many rows a value
--   in the list will span. Therefore, the values in the model column
--   pointed to by this property must be greater than zero and not larger
--   than wrap-width.
--   
--   Default value: invalidColumnId
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxRowSpanColumn :: ComboBoxClass self => Attr self (ColumnId row Int)

-- | The values of that column are used to determine how many columns a
--   value in the list will span.
--   
--   Default value: invalidColumnId
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxColumnSpanColumn :: ComboBoxClass self => Attr self (ColumnId row Int)

-- | The item which is currently active. This value only makes sense for a
--   list model.
comboBoxActive :: ComboBoxClass self => Attr self Int

-- | The add-tearoffs property controls whether generated menus have
--   tearoff menu items.
--   
--   Note that this only affects menu style combo boxes.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxAddTearoffs :: ComboBoxClass self => Attr self Bool

-- | The has-frame property controls whether a frame is drawn around the
--   entry.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.6
--   
comboBoxHasFrame :: ComboBoxClass self => Attr self Bool

-- | Whether the combo box grabs focus when it is clicked with the mouse.
--   
--   Default value: True
comboBoxFocusOnClick :: ComboBoxClass self => Attr self Bool

-- | A title that may be displayed by the window manager when the popup is
--   torn-off.
--   
--   Default value: ""
--   
--   
--   
- Available since Gtk+ version 2.10
--   
comboBoxTearoffTitle :: (ComboBoxClass self, GlibString string) => Attr self string

-- | Whether the combo boxes dropdown is popped up. Note that this property
--   is mainly useful because it allows you to connect to
--   notify::popup-shown.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
comboBoxPopupShown :: ComboBoxClass self => ReadAttr self Bool

-- | 'title' property. See comboBoxGetTitle and
--   comboBoxSetTitle
--   
--   
--   
- Available since Gtk+ version 2.10
--   
comboBoxTitle :: (ComboBoxClass self, GlibString string) => Attr self string

-- | Returns whether the combo box has an entry.
--   
--   
--   
- Available since Gtk+ version 2.24
--   
comboBoxGetHasEntry :: ComboBoxClass self => self -> IO Bool

-- | Sets the model column which combo_box should use to get strings from
--   to be textColumn. The column text_column in the model of
--   comboBox must be of type ComboBoxText.
--   
--   This is only relevant if comboBox has been created with
--   "has-entry" as True.
--   
--   
--   
- Available since Gtk+ version 2.24
--   
comboBoxSetEntryTextColumn :: ComboBoxClass comboBox => comboBox -> ColumnId row ComboBoxText -> IO ()

-- | Returns the column which comboBox is using to get the strings
--   from to display in the internal entry.
--   
--   
--   
- Available since Gtk+ version 2.24
--   
comboBoxGetEntryTextColumn :: ComboBoxClass comboBox => comboBox -> IO (ColumnId row ComboBoxText)

-- | The changed signal is emitted when the active item is changed. The can
--   be due to the user selecting a different item from the list, or due to
--   a call to comboBoxSetActiveIter. It will also be emitted while
--   typing into a ComboBoxEntry, as well as when selecting an
--   item from the ComboBoxEntry's list.
changed :: ComboBoxClass self => Signal self (IO ())

-- | Renders a spinning animation in a cell
--   
--   
--   
- Module available since Gtk+ version 2.20
--   
module Graphics.UI.Gtk.ModelView.CellRendererSpinner
data CellRendererSpinner
class CellRendererClass o => CellRendererSpinnerClass o
castToCellRendererSpinner :: GObjectClass obj => obj -> CellRendererSpinner
toCellRendererSpinner :: CellRendererSpinnerClass o => o -> CellRendererSpinner

-- | Returns a new cell renderer which will show a spinner to indicate
--   activity.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
cellRendererSpinnerNew :: IO CellRendererSpinner

-- | Whether the spinner is active (ie. shown) in the cell.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.20
--   
cellRendererSpinnerActive :: CellRendererSpinnerClass self => Attr self Bool

-- | Pulse of the spinner. Increment this value to draw the next frame of
--   the spinner animation. Usually, you would update this value in a
--   timeout.
--   
--   The Spinner widget draws one full cycle of the animation per
--   second by default. You can learn about the number of frames used by
--   the theme by looking at the numSteps style property and the
--   duration of the cycle by looking at cycleDuration.
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.20
--   
cellRendererSpinnerPulse :: CellRendererSpinnerClass self => Attr self Int

-- | The IconSize value that specifies the size of the rendered
--   spinner.
--   
--   Default value: IconSizeMenu
--   
--   
--   
- Available since Gtk+ version 2.20
--   
cellRendererSpinnerSize :: CellRendererSpinnerClass self => Attr self IconSize

-- | Add tips to your widgets
--   
--   
--   
- Module available since Gtk+ version 2.12
--   
module Graphics.UI.Gtk.Misc.Tooltip
data Tooltip
class GObjectClass o => TooltipClass o
castToTooltip :: GObjectClass obj => obj -> Tooltip
toTooltip :: TooltipClass o => o -> Tooltip

-- | Sets the text of the tooltip to be markup, which is marked up
--   with the Pango text markup language. If markup is
--   Nothing, the label will be hidden.
tooltipSetMarkup :: (TooltipClass self, GlibString markup) => self -> Maybe markup -> IO ()

-- | Sets the text of the tooltip to be text. If text is
--   Nothing the label will be hidden. See also
--   tooltipSetMarkup.
tooltipSetText :: (TooltipClass self, GlibString string) => self -> Maybe string -> IO ()

-- | Sets the icon of the tooltip (which is in front of the text) to be
--   pixbuf. If pixbuf is Nothing the image will
--   be hidden.
tooltipSetIcon :: TooltipClass self => self -> Maybe Pixbuf -> IO ()

-- | Sets the icon of the tooltip (which is in front of the text) to be the
--   stock item indicated by stockId with the size indicated by
--   size. If stockId is Nothing the image will be
--   hidden.
tooltipSetIconFromStock :: (TooltipClass self, GlibString string) => self -> Maybe string -> IconSize -> IO ()

-- | Sets the icon of the tooltip (which is in front of the text) to be the
--   icon indicated by iconName with the size indicated by
--   size. If iconName is Nothing the image will
--   be hidden.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
tooltipSetIconFromIconName :: (TooltipClass self, GlibString string) => self -> Maybe string -> IconSize -> IO ()

-- | Replaces the widget packed into the tooltip with
--   customWidget. customWidget does not get destroyed
--   when the tooltip goes away. By default a box with a Image and
--   Label is embedded in the tooltip, which can be configured using
--   tooltipSetMarkup and tooltipSetIcon.
tooltipSetCustom :: (TooltipClass self, WidgetClass widget) => self -> Maybe widget -> IO ()

-- | Triggers a new tooltip query on display, in order to update
--   the current visible tooltip, or to show/hide the current tooltip. This
--   function is useful to call when, for example, the state of the widget
--   changed by a key press.
tooltipTriggerTooltipQuery :: Display -> IO ()

-- | Sets the area of the widget, where the contents of this tooltip apply,
--   to be rect (in widget coordinates). This is especially useful
--   for properly setting tooltips on TreeView rows and cells,
--   IconView
--   
--   For setting tooltips on TreeView, please refer to the
--   convenience functions for this: treeViewSetTooltipRow and
--   treeViewSetTooltipCell.
tooltipSetTipArea :: TooltipClass self => self -> Rectangle -> IO ()

-- | Sets the icon of the tooltip (which is in front of the text) to be the
--   icon indicated by gicon with the size indicated by size. If gicon is
--   Nothing, the image will be hidden.
tooltipSetIconFromGIcon :: TooltipClass self => self -> Maybe Icon -> IconSize -> IO ()

-- | A tool palette with categories
--   
--   
--   
- Module available since Gtk+ version 2.20
--   
--   
--   TODO:
--   
--   gtk_tool_palette_add_drag_dest gtk_tool_palette_get_drag_item
--   gtk_tool_palette_get_drag_target_group
--   gtk_tool_palette_get_drag_target_item gtk_tool_palette_get_drop_group
--   gtk_tool_palette_get_drop_item
module Graphics.UI.Gtk.MenuComboToolbar.ToolPalette
data ToolPalette
class ContainerClass o => ToolPaletteClass o
castToToolPalette :: GObjectClass obj => obj -> ToolPalette
toToolPalette :: ToolPaletteClass o => o -> ToolPalette

-- | Flags used to specify the supported drag targets.
data ToolPaletteDragTargets
ToolPaletteDragItems :: ToolPaletteDragTargets
ToolPaletteDragGroups :: ToolPaletteDragTargets
toolPaletteNew :: IO ToolPalette

-- | Unsets the tool palette icon size set with
--   toolPaletteSetIconSize, so that user preferences will be used
--   to determine the icon size.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteUnsetIconSize :: ToolPaletteClass self => self -> IO ()

-- | Unsets a toolbar style set with toolPaletteSetStyle, so that
--   user preferences will be used to determine the toolbar style.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteUnsetStyle :: ToolPaletteClass self => self -> IO ()

-- | Gets the horizontal adjustment of the tool palette.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteGetHAdjustment :: ToolPaletteClass self => self -> IO Adjustment

-- | Gets the vertical adjustment of the tool palette.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteGetVAdjustment :: ToolPaletteClass self => self -> IO Adjustment

-- | Sets the position of the group as an index of the tool palette. If
--   position is 0 the group will become the first child, if position is -1
--   it will become the last child.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteSetGroupPosition :: (ToolPaletteClass palette, ToolItemGroupClass group) => palette -> group -> Int -> IO ()

-- | Gets the position of group in palette as index. See
--   toolPaletteSetGroupPosition.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteGetGroupPosition :: (ToolPaletteClass palette, ToolItemGroupClass group) => palette -> group -> IO Int

-- | The size of the icons in a tool palette is normally determined by the
--   toolbarIconSize setting. When this property is set, it
--   overrides the setting.
--   
--   This should only be used for special-purpose tool palettes, normal
--   application tool palettes should respect the user preferences for the
--   size of icons.
--   
--   Default value: IconSizeSmallToolbar
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteIconSize :: ToolPaletteClass self => Attr self IconSize

-- | Is True if the iconSize property has been set.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteIconSizeSet :: ToolPaletteClass self => Attr self Bool

-- | The style of items in the tool palette.
--   
--   Default value: ToolbarIcons
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteToolbarStyle :: ToolPaletteClass self => Attr self ToolbarStyle

-- | Whether the item group should be the only one that is expanded at a
--   given time.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteChildExclusive :: ToolPaletteClass self => Attr self Bool

-- | Whether the item group should receive extra space when the palette
--   grows. at a given time.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteChildExpand :: ToolPaletteClass self => Attr self Bool

-- | Set the scroll adjustments for the viewport. Usually scrolled
--   containers like ScrolledWindow will emit this signal to connect
--   two instances of Scrollbar to the scroll directions of the
--   Toolpalette.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolPaletteSetScrollAdjustments :: ToolPaletteClass self => Signal self (Adjustment -> Adjustment -> IO ())
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.MenuComboToolbar.ToolPalette.ToolPaletteDragTargets
instance GHC.Classes.Eq Graphics.UI.Gtk.MenuComboToolbar.ToolPalette.ToolPaletteDragTargets

-- | The base class of widgets that can be added to Toolbar
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.MenuComboToolbar.ToolItem
data ToolItem
class BinClass o => ToolItemClass o
castToToolItem :: GObjectClass obj => obj -> ToolItem
gTypeToolItem :: GType
toToolItem :: ToolItemClass o => o -> ToolItem

-- | Creates a new ToolItem
toolItemNew :: IO ToolItem

-- | Sets whether the tool item is to be allocated the same size as other
--   homogeneous items. The effect is that all homogeneous items will have
--   the same width as the widest of the items.
toolItemSetHomogeneous :: ToolItemClass self => self -> Bool -> IO ()

-- | Returns whether the tool item is the same size as other homogeneous
--   items. See toolItemSetHomogeneous.
toolItemGetHomogeneous :: ToolItemClass self => self -> IO Bool

-- | Sets whether the tool item is allocated extra space when there is more
--   room on the toolbar then needed for the items. The effect is that the
--   item gets bigger when the toolbar gets bigger and smaller when the
--   toolbar gets smaller.
toolItemSetExpand :: ToolItemClass self => self -> Bool -> IO ()

-- | Returns whether the tool item is allocated extra space. See
--   toolItemSetExpand.
toolItemGetExpand :: ToolItemClass self => self -> IO Bool

-- | Sets whether toolitem has a drag window. When True the tool
--   item can be used as a drag source through dragSourceSet. When
--   the tool item has a drag window it will intercept all events, even
--   those that would otherwise be sent to a child widget.
toolItemSetUseDragWindow :: ToolItemClass self => self -> Bool -> IO ()

-- | Returns whether the tool item has a drag window. See
--   toolItemSetUseDragWindow.
toolItemGetUseDragWindow :: ToolItemClass self => self -> IO Bool

-- | Sets whether the tool item is visible when the toolbar is docked
--   horizontally.
toolItemSetVisibleHorizontal :: ToolItemClass self => self -> Bool -> IO ()

-- | Returns whether the tool item is visible on toolbars that are docked
--   horizontally.
toolItemGetVisibleHorizontal :: ToolItemClass self => self -> IO Bool

-- | Sets whether the tool item is visible when the toolbar is docked
--   vertically. Some tool items, such as text entries, are too wide to be
--   useful on a vertically docked toolbar. If False the tool item
--   will not appear on toolbars that are docked vertically.
toolItemSetVisibleVertical :: ToolItemClass self => self -> Bool -> IO ()

-- | Returns whether the tool item is visible when the toolbar is docked
--   vertically. See toolItemSetVisibleVertical.
toolItemGetVisibleVertical :: ToolItemClass self => self -> IO Bool

-- | Sets whether the tool item should be considered important. The
--   ToolButton class uses this property to determine whether to
--   show or hide its label when the toolbar style is
--   ToolbarBothHoriz. The result is that only tool buttons with the
--   "is important" property set have labels, an effect known as "priority
--   text".
toolItemSetIsImportant :: ToolItemClass self => self -> Bool -> IO ()

-- | Returns whether the tool item is considered important. See
--   toolItemSetIsImportant
toolItemGetIsImportant :: ToolItemClass self => self -> IO Bool

-- | The size of an icon in pixels.
--   
--   
--   
- This enumeration contains one case that is not exported and which
--   is used when new sizes are registered using
--   iconSizeRegister.
--   
- Applying show to this type will reveal the name of the size
--   that is registered with Gtk+.
--   
data IconSize

-- | Returns the icon size used for the tool item.
toolItemGetIconSize :: ToolItemClass self => self -> IO IconSize

-- | Orientation is good
data Orientation
OrientationHorizontal :: Orientation
OrientationVertical :: Orientation

-- | Returns the orientation used for the tool item.
toolItemGetOrientation :: ToolItemClass self => self -> IO Orientation

-- | Where to place the toolbar?
data ToolbarStyle
ToolbarIcons :: ToolbarStyle
ToolbarText :: ToolbarStyle
ToolbarBoth :: ToolbarStyle
ToolbarBothHoriz :: ToolbarStyle

-- | Returns the toolbar style used for the tool item.
--   
--   Possibilities are: [ToolbarBoth] meaning the tool item should
--   show both an icon and a label, stacked vertically
--   [ToolbarIcons] meaning the toolbar shows only icons
--   [ToolbarText] meaning the tool item should only show text
--   [ToolbarBothHoriz] meaning the tool item should show both an
--   icon and a label, arranged horizontally
toolItemGetToolbarStyle :: ToolItemClass self => self -> IO ToolbarStyle

-- | I don't have a clue.
data ReliefStyle
ReliefNormal :: ReliefStyle
ReliefHalf :: ReliefStyle
ReliefNone :: ReliefStyle

-- | Returns the relief style of the tool item. See
--   buttonSetReliefStyle.
toolItemGetReliefStyle :: ToolItemClass self => self -> IO ReliefStyle

-- | Returns the MenuItem that was last set by
--   toolItemSetProxyMenuItem, ie. the MenuItem that is going
--   to appear in the overflow menu.
toolItemRetrieveProxyMenuItem :: ToolItemClass self => self -> IO (Maybe Widget)

-- | If menuItemId matches the string passed to
--   toolItemSetProxyMenuItem return the corresponding
--   MenuItem.
toolItemGetProxyMenuItem :: (ToolItemClass self, GlibString string) => self -> string -> IO (Maybe Widget)

-- | Sets the MenuItem used in the toolbar overflow menu. The
--   menuItemId is used to identify the caller of this function
--   and should also be used with toolItemGetProxyMenuItem.
toolItemSetProxyMenuItem :: (ToolItemClass self, MenuItemClass menuItem, GlibString string) => self -> string -> menuItem -> IO ()

-- | Returns the ellipsize mode used for toolItem. Custom
--   subclasses of ToolItem should call this function to find out
--   how text should be ellipsized.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
toolItemGetEllipsizeMode :: ToolItemClass item => item -> IO EllipsizeMode

-- | Returns the text alignment used for toolItem. Custom
--   subclasses of ToolItem should call this function to find out
--   how text should be aligned.
toolItemGetTextAlignment :: ToolItemClass item => item -> IO Double

-- | Returns the text orientation used for toolItem. Custom
--   subclasses of ToolItem should call this function to find out
--   how text should be orientated.
toolItemGetTextOrientation :: ToolItemClass item => item -> IO Orientation

-- | Returns the size group used for labels in toolItem. Custom
--   subclasses of ToolItem should call this function and use the
--   size group for labels.
toolItemGetTextSizeGroup :: ToolItemClass item => item -> IO SizeGroup

-- | Whether the toolbar item is visible when the toolbar is in a
--   horizontal orientation.
--   
--   Default value: True
toolItemVisibleHorizontal :: ToolItemClass self => Attr self Bool

-- | Whether the toolbar item is visible when the toolbar is in a vertical
--   orientation.
--   
--   Default value: True
toolItemVisibleVertical :: ToolItemClass self => Attr self Bool

-- | Whether the toolbar item is considered important. When True,
--   toolbar buttons show text in ToolbarBothHoriz mode.
--   
--   Default value: False
toolItemIsImportant :: ToolItemClass self => Attr self Bool

-- | 'expand' property. See toolItemGetExpand and
--   toolItemSetExpand
toolItemExpand :: ToolItemClass self => Attr self Bool

-- | 'homogeneous' property. See toolItemGetHomogeneous and
--   toolItemSetHomogeneous
toolItemHomogeneous :: ToolItemClass self => Attr self Bool

-- | 'useDragWindow' property. See toolItemGetUseDragWindow and
--   toolItemSetUseDragWindow
toolItemUseDragWindow :: ToolItemClass self => Attr self Bool

-- | Customization of widgets.
module Graphics.UI.Gtk.General.Style
data Style
class GObjectClass o => StyleClass o
castToStyle :: GObjectClass obj => obj -> Style
gTypeStyle :: GType
toStyle :: StyleClass o => o -> Style

-- | Retrieve the the foreground color.
--   
--   
--   
- The parameter state determines for which widget state
--   (one of StateType) the Color should be retrieved. Use
--   widgetGetState to determine the current state of the
--   widget.
--   
styleGetForeground :: Style -> StateType -> IO Color

-- | Retrieve the background color.
--   
--   
--   
- The parameter state determines for which widget state
--   (one of StateType) the Color should be retrieved. Use
--   widgetGetState to determine the current state of the
--   widget.
--   
styleGetBackground :: Style -> StateType -> IO Color

-- | Retrieve a light color.
--   
--   
--   
- The parameter state determines for which widget state
--   (one of StateType) the Color should be retrieved. Use
--   widgetGetState to determine the current state of the
--   widget.
--   
styleGetLight :: Style -> StateType -> IO Color

-- | Retrieve a middle color.
--   
--   
--   
- The parameter state determines for which widget state
--   (one of StateType) the Color should be retrieved. Use
--   widgetGetState to determine the current state of the
--   widget.
--   
styleGetMiddle :: Style -> StateType -> IO Color

-- | Retrieve a dark color.
--   
--   
--   
- The parameter state determines for which widget state
--   (one of StateType) the Color should be retrieved. Use
--   widgetGetState to determine the current state of the
--   widget.
--   
styleGetDark :: Style -> StateType -> IO Color

-- | Retrieve the text color.
--   
--   
--   
- The parameter state determines for which widget state
--   (one of StateType) the Color should be retrieved. Use
--   widgetGetState to determine the current state of the
--   widget.
--   
styleGetText :: Style -> StateType -> IO Color

-- | Retrieve the base color.
--   
--   
--   
- The base color is the standard text background of a widget.
--   
- The parameter state determines for which widget state
--   (one of StateType) the Color should be retrieved. Use
--   widgetGetState to determine the current state of the
--   widget.
--   
styleGetBase :: Style -> StateType -> IO Color

-- | Retrieve the color for drawing anti-aliased text.
--   
--   
--   
- The anti-aliasing color is the color which is used when the
--   rendering of a character does not make it clear if a certain pixel
--   should be set or not. This color is between the text and the base
--   color.
--   
- The parameter state determines for which widget state
--   (one of StateType) the Color should be retrieved. Use
--   widgetGetState to determine the current state of the
--   widget.
--   
styleGetAntiAliasing :: Style -> StateType -> IO Color

-- | Looking up icons by name
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.General.IconTheme
data IconTheme
class GObjectClass o => IconThemeClass o
castToIconTheme :: GObjectClass obj => obj -> IconTheme
toIconTheme :: IconThemeClass o => o -> IconTheme
data IconInfo
data IconLookupFlags
IconLookupNoSvg :: IconLookupFlags
IconLookupForceSvg :: IconLookupFlags
IconLookupUseBuiltin :: IconLookupFlags
IconLookupGenericFallback :: IconLookupFlags
IconLookupForceSize :: IconLookupFlags
IconLookupForceRegular :: IconLookupFlags
IconLookupForceSymbolic :: IconLookupFlags
IconLookupDirLtr :: IconLookupFlags
IconLookupDirRtl :: IconLookupFlags
data IconThemeError
IconThemeNotFound :: IconThemeError
IconThemeFailed :: IconThemeError
iconThemeNew :: IO IconTheme
iconInfoNewForPixbuf :: IconThemeClass iconTheme => iconTheme -> Pixbuf -> IO IconInfo

-- | Gets the icon theme for the default screen. See
--   iconThemeGetForScreen.
iconThemeGetDefault :: IO IconTheme

-- | Gets the icon theme object associated with screen; if this
--   function has not previously been called for the given screen, a new
--   icon theme object will be created and associated with the screen. Icon
--   theme objects are fairly expensive to create, so using this function
--   is usually a better choice than calling than iconThemeNew and
--   setting the screen yourself; by using this function a single icon
--   theme object will be shared between users.
iconThemeGetForScreen :: Screen -> IO IconTheme

-- | Sets the screen for an icon theme; the screen is used to track the
--   user's currently configured icon theme, which might be different for
--   different screens.
iconThemeSetScreen :: IconThemeClass self => self -> Screen -> IO ()

-- | Sets the search path for the icon theme object. When looking for an
--   icon theme, Gtk+ will search for a subdirectory of one or more of the
--   directories in path with the same name as the icon theme.
--   (Themes from multiple of the path elements are combined to allow
--   themes to be extended by adding icons in the user's home directory.)
--   
--   In addition if an icon found isn't found either in the current icon
--   theme or the default icon theme, and an image file with the right name
--   is found directly in one of the elements of path, then that
--   image will be used for the icon name. (This is legacy feature, and new
--   icons should be put into the default icon theme, which is called
--   DEFAULT_THEME_NAME, rather than directly on the icon path.)
iconThemeSetSearchPath :: (IconThemeClass self, GlibFilePath fp) => self -> [fp] -> Int -> IO ()

-- | Gets the current search path. See iconThemeSetSearchPath.
iconThemeGetSearchPath :: (IconThemeClass self, GlibFilePath fp) => self -> IO ([fp], Int)

-- | Appends a directory to the search path. See
--   iconThemeSetSearchPath.
iconThemeAppendSearchPath :: (IconThemeClass self, GlibFilePath fp) => self -> fp -> IO ()

-- | Prepends a directory to the search path. See
--   iconThemeSetSearchPath.
iconThemePrependSearchPath :: (IconThemeClass self, GlibFilePath fp) => self -> fp -> IO ()

-- | Sets the name of the icon theme that the IconTheme object uses
--   overriding system configuration. This function cannot be called on the
--   icon theme objects returned from iconThemeGetDefault and
--   iconThemeGetForScreen.
iconThemeSetCustomTheme :: (IconThemeClass self, GlibString string) => self -> Maybe string -> IO ()

-- | Checks whether an icon theme includes an icon for a particular name.
iconThemeHasIcon :: (IconThemeClass self, GlibString string) => self -> string -> IO Bool

-- | Looks up a named icon and returns a structure containing information
--   such as the filename of the icon. The icon can then be rendered into a
--   pixbuf using iconInfoLoadIcon. (iconThemeLoadIcon
--   combines these two steps if all you need is the pixbuf.)
iconThemeLookupIcon :: (IconThemeClass self, GlibString string) => self -> string -> Int -> IconLookupFlags -> IO (Maybe IconInfo)

-- | Looks up a named icon and returns a structure containing information
--   such as the filename of the icon. The icon can then be rendered into a
--   pixbuf using iconInfoLoadIcon. (iconThemeLoadIcon
--   combines these two steps if all you need is the pixbuf.)
--   
--   If iconNames contains more than one name, this function tries
--   them all in the given order before falling back to inherited icon
--   themes.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
iconThemeChooseIcon :: (IconThemeClass self, GlibString string) => self -> [string] -> Int -> IconLookupFlags -> IO (Maybe IconInfo)

-- | Looks up an icon and returns a structure containing information such
--   as the filename of the icon. The icon can then be rendered into a
--   pixbuf using iconInfoLoadIcon.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
iconThemeLookupByGIcon :: (IconThemeClass self, IconClass icon) => self -> icon -> Int -> IconLookupFlags -> IO (Maybe IconInfo)

-- | Looks up an icon in an icon theme, scales it to the given size and
--   renders it into a pixbuf. This is a convenience function; if more
--   details about the icon are needed, use iconThemeLookupIcon
--   followed by iconInfoLoadIcon.
--   
--   Note that you probably want to listen for icon theme changes and
--   update the icon. This is usually done by connecting to the
--   Widget::style-set signal. If for some reason you do not want to
--   update the icon when the icon theme changes, you should consider using
--   pixbufCopy to make a private copy of the pixbuf returned by
--   this function. Otherwise Gtk+ may need to keep the old icon theme
--   loaded, which would be a waste of memory.
iconThemeLoadIcon :: (IconThemeClass self, GlibString string) => self -> string -> Int -> IconLookupFlags -> IO (Maybe Pixbuf)

-- | Gets the list of contexts available within the current hierarchy of
--   icon themes
--   
--   
--   
- Available since Gtk+ version 2.12
--   
iconThemeListContexts :: (IconThemeClass self, GlibString string) => self -> IO [string]

-- | Lists the icons in the current icon theme. Only a subset of the icons
--   can be listed by providing a context string. The set of values for the
--   context string is system dependent, but will typically include such
--   values as "Applications" and "MimeTypes".
iconThemeListIcons :: (IconThemeClass self, GlibString string) => self -> Maybe string -> IO [string]

-- | Returns an list of integers describing the sizes at which the icon is
--   available without scaling. A size of -1 means that the icon is
--   available in a scalable format. The list is zero-terminated.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
iconThemeGetIconSizes :: (IconThemeClass self, GlibString string) => self -> string -> IO [Int]

-- | Gets the name of an icon that is representative of the current theme
--   (for instance, to use when presenting a list of themes to the user.)
iconThemeGetExampleIconName :: (IconThemeClass self, GlibString string) => self -> IO (Maybe string)

-- | Checks to see if the icon theme has changed; if it has, any currently
--   cached information is discarded and will be reloaded next time
--   iconTheme is accessed.
iconThemeRescanIfNeeded :: IconThemeClass self => self -> IO Bool

-- | Registers a built-in icon for icon theme lookups. The idea of built-in
--   icons is to allow an application or library that uses themed icons to
--   function requiring files to be present in the file system. For
--   instance, the default images for all of Gtk+'s stock icons are
--   registered as built-icons.
--   
--   In general, if you use iconThemeAddBuiltinIcon you should also
--   install the icon in the icon theme, so that the icon is generally
--   available.
--   
--   This function will generally be used with pixbufs loaded via
--   pixbufNewFromInline.
iconThemeAddBuiltinIcon :: GlibString string => string -> Int -> Pixbuf -> IO ()
iconThemeErrorQuark :: IO Quark
iconInfoCopy :: IconInfo -> IO IconInfo

-- | Fetches the set of attach points for an icon. An attach point is a
--   location in the icon that can be used as anchor points for attaching
--   emblems or overlays to the icon.
iconInfoGetAttachPoints :: IconInfo -> IO (Maybe [Point])

-- | Gets the base size for the icon. The base size is a size for the icon
--   that was specified by the icon theme creator. This may be different
--   than the actual size of image; an example of this is small emblem
--   icons that can be attached to a larger icon. These icons will be given
--   the same base size as the larger icons to which they are attached.
iconInfoGetBaseSize :: IconInfo -> IO Int

-- | Gets the built-in image for this icon, if any. To allow GTK+ to use
--   built in icon images, you must pass the
--   'IconLookupUseBuiltin' to iconThemeLookupIcon.
iconInfoGetBuiltinPixbuf :: IconInfo -> IO (Maybe Pixbuf)

-- | Gets the display name for an icon. A display name is a string to be
--   used in place of the icon name in a user visible context like a list
--   of icons.
iconInfoGetDisplayName :: GlibString string => IconInfo -> IO (Maybe string)

-- | Gets the coordinates of a rectangle within the icon that can be used
--   for display of information such as a preview of the contents of a text
--   file. See iconInfoSetRawCoordinates for further information
--   about the coordinate system.
iconInfoGetEmbeddedRect :: IconInfo -> IO (Maybe Rectangle)

-- | Gets the filename for the icon. If the 'IconLookupUseBuiltin'
--   flag was passed to iconThemeLookupIcon, there may be no
--   filename if a builtin icon is returned; in this case, you should use
--   iconInfoGetBuiltinPixbuf.
iconInfoGetFilename :: GlibString string => IconInfo -> IO (Maybe string)

-- | Looks up an icon in an icon theme, scales it to the given size and
--   renders it into a pixbuf. This is a convenience function; if more
--   details about the icon are needed, use iconThemeLookupIcon
--   followed by iconInfoLoadIcon.
--   
--   Note that you probably want to listen for icon theme changes and
--   update the icon. This is usually done by connecting to the
--   styleSet signal. If for some reason you do not want to update
--   the icon when the icon theme changes, you should consider using
--   pixbufCopy to make a private copy of the pixbuf returned by
--   this function. Otherwise GTK+ may need to keep the old icon theme
--   loaded, which would be a waste of memory.
iconInfoLoadIcon :: IconInfo -> IO Pixbuf

-- | Sets whether the coordinates returned by
--   iconInfoGetEmbeddedRect and iconInfoGetAttachPoints
--   should be returned in their original form as specified in the icon
--   theme, instead of scaled appropriately for the pixbuf returned by
--   iconInfoLoadIcon.
--   
--   Raw coordinates are somewhat strange; they are specified to be with
--   respect to the unscaled pixmap for PNG and XPM icons, but for SVG
--   icons, they are in a 1000x1000 coordinate space that is scaled to the
--   final size of the icon. You can determine if the icon is an SVG icon
--   by using iconInfoGetFilename, and seeing if it is
--   non-Nothing and ends in '.svg'.
--   
--   This function is provided primarily to allow compatibility wrappers
--   for older API's, and is not expected to be useful for applications.
iconInfoSetRawCoordinates :: IconInfo -> Bool -> IO ()

-- | Emitted when the current icon theme is switched or Gtk+ detects that a
--   change has occurred in the contents of the current icon theme.
iconThemeChanged :: IconThemeClass self => Signal self (IO ())
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.IconTheme.IconLookupFlags
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.General.IconTheme.IconThemeError
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.IconTheme.IconLookupFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.General.IconTheme.IconThemeError
instance GHC.Classes.Eq Graphics.UI.Gtk.General.IconTheme.IconLookupFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.General.IconTheme.IconThemeError
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.IconTheme.IconLookupFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.IconTheme.IconThemeError

-- | Object representing a physical screen
--   
--   
--   
- Module available since Gdk version 2.2
--   
module Graphics.UI.Gtk.Gdk.Screen
data Screen
class GObjectClass o => ScreenClass o
castToScreen :: GObjectClass obj => obj -> Screen
gTypeScreen :: GType
toScreen :: ScreenClass o => o -> Screen

-- | Gets the default screen for the default display. (See
--   displayGetDefault).
screenGetDefault :: IO (Maybe Screen)

-- | Get the system's default visual for screen. This is the
--   visual for the root window of the display.
screenGetSystemVisual :: Screen -> IO Visual

-- | Returns whether windows with an RGBA visual can reasonably be expected
--   to have their alpha channel drawn correctly on the screen.
--   
--   On X11 this function returns whether a compositing manager is
--   compositing screen.
--   
--   
--   
- Available since Gdk version 2.10
--   
screenIsComposited :: Screen -> IO Bool

-- | Gets the root window of screen.
screenGetRootWindow :: Screen -> IO DrawWindow

-- | Gets the display to which the screen belongs.
screenGetDisplay :: Screen -> IO Display

-- | Gets the index of screen among the screens in the display to
--   which it belongs. (See screenGetDisplay)
screenGetNumber :: Screen -> IO Int

-- | Gets the width of screen in pixels
screenGetWidth :: Screen -> IO Int

-- | Gets the height of screen in pixels
screenGetHeight :: Screen -> IO Int
screenGetWidthMm :: Screen -> IO Int
screenGetHeightMm :: Screen -> IO Int

-- | Gets the width of screen in millimeters. Note that on some X
--   servers this value will not be correct.
screenGetWidthMM :: Screen -> IO Int

-- | Returns the height of screen in millimeters. Note that on
--   some X servers this value will not be correct.
screenGetHeightMM :: Screen -> IO Int

-- | Lists the available visuals for the specified screen. A
--   visual describes a hardware image data format. For example, a visual
--   might support 24-bit color, or 8-bit color, and might expect pixels to
--   be in a certain format.
screenListVisuals :: Screen -> IO [Visual]

-- | Obtains a list of all toplevel windows known to GDK on the screen
--   screen. A toplevel window is a child of the root window (see
--   getDefaultRootWindow).
screenGetToplevelWindows :: Screen -> IO [DrawWindow]

-- | Determines the name to pass to displayOpen to get a
--   Display with this screen as the default screen.
screenMakeDisplayName :: GlibString string => Screen -> IO string

-- | Returns the number of monitors which screen consists of.
screenGetNMonitors :: Screen -> IO Int

-- | Retrieves the Rectangle representing the size and position of
--   the individual monitor within the entire screen area.
--   
--   Note that the size of the entire screen area can be retrieved via
--   screenGetWidth and screenGetHeight.
screenGetMonitorGeometry :: Screen -> Int -> IO Rectangle

-- | Returns the monitor number in which the point (x,y)
--   is located.
screenGetMonitorAtPoint :: Screen -> Int -> Int -> IO Int

-- | Returns the number of the monitor in which the largest area of the
--   bounding rectangle of window resides.
screenGetMonitorAtWindow :: Screen -> DrawWindow -> IO Int

-- | Gets the height in millimeters of the specified monitor.
--   
--   
--   
- Available since Gdk version 2.14
--   
screenGetMonitorHeightMm :: Screen -> Int -> IO Int

-- | Gets the width in millimeters of the specified monitor, if available.
--   
--   
--   
- Available since Gdk version 2.14
--   
screenGetMonitorWidthMm :: Screen -> Int -> IO Int

-- | Returns the output name of the specified monitor. Usually something
--   like VGA, DVI, or TV, not the actual product name of the display
--   device.
--   
--   
--   
- Available since Gdk version 2.14
--   
screenGetMonitorPlugName :: GlibString string => Screen -> Int -> IO (Maybe string)

-- | Returns the currently active window of this screen.
--   
--   On X11, this is done by inspecting the _NET_ACTIVE_WINDOW property on
--   the root window, as described in the Extended Window Manager Hints. If
--   there is no currently currently active window, or the window manager
--   does not support the _NET_ACTIVE_WINDOW hint, this function returns
--   Nothing.
--   
--   On other platforms, this function may return Nothing,
--   depending on whether it is implementable on that platform.
--   
--   
--   
- Available since Gdk version 2.10
--   
screenGetActiveWindow :: Screen -> IO (Maybe DrawWindow)

-- | Returns a list of DrawWindows representing the current window
--   stack.
--   
--   On X11, this is done by inspecting the _NET_CLIENT_LIST_STACKING
--   property on the root window, as described in the Extended Window
--   Manager Hints. If the window manager does not support the
--   _NET_CLIENT_LIST_STACKING hint, this function returns
--   Nothing.
--   
--   On other platforms, this function may return Nothing,
--   depending on whether it is implementable on that platform.
--   
--   
--   
- Available since Gdk version 2.10
--   
screenGetWindowStack :: Screen -> IO (Maybe [DrawWindow])

-- | The default font options for the screen.
screenFontOptions :: Attr Screen (Maybe FontOptions)

-- | The resolution for fonts on the screen.
--   
--   Default value: -1
screenResolution :: Attr Screen Double

-- | The ::size_changed signal is emitted when the pixel width or height of
--   a screen changes.
screenSizeChanged :: ScreenClass self => Signal self (IO ())

-- | The screenCompositedChanged signal is emitted when the
--   composited status of the screen changes
--   
--   
--   
- Available since Gdk version 2.10
--   
screenCompositedChanged :: ScreenClass self => Signal self (IO ())

-- | The screenMonitorsChanged signal is emitted when the number,
--   size or position of the monitors attached to the screen change.
--   
--   Only for X for now. Future implementations for Win32 and OS X may be a
--   possibility.
--   
--   
--   
- Available since Gdk version 2.14
--   
screenMonitorsChanged :: ScreenClass self => Signal self (IO ())

-- | Functions for manipulating keyboard codes
module Graphics.UI.Gtk.Gdk.Keymap
data Keymap
class GObjectClass o => KeymapClass o
castToKeymap :: GObjectClass obj => obj -> Keymap
toKeymap :: KeymapClass o => o -> Keymap

-- | A KeymapKey is a hardware key that can be mapped to a keyval.
data KeymapKey

-- | Returns the Keymap attached to the default display.
keymapGetDefault :: IO Keymap

-- | Returns the Keymap attached to display.
--   
--   
--   
- Available since Gdk version 2.2
--   
keymapGetForDisplay :: Display -> IO Keymap

-- | Looks up the keyval mapped to a keycode/group/level triplet. If no
--   keyval is bound to key, returns 0. For normal user input, you
--   want to use keymapTranslateKeyboardState instead of this
--   function, since the effective group/level may not be the same as the
--   current keyboard state.
keymapLookupKey :: KeymapClass self => Maybe self -> KeymapKey -> IO Int

-- | Translates the contents of a EventKey into a keyval,
--   effective group, and level. Modifiers that affected the translation
--   and are thus unavailable for application use are returned in
--   consumedModifiers. See keyvalGetKeys for an
--   explanation of groups and levels. The effectiveGroup is the
--   group that was actually used for the translation; some keys such as
--   Enter are not affected by the active keyboard group. The
--   level is derived from state. For convenience,
--   EventKey already contains the translated keyval, so this
--   function isn't as useful as you might think.
keymapTranslateKeyboardState :: KeymapClass self => self -> Int -> Modifier -> Int -> IO (Maybe (Int, Int, Int, Modifier))

-- | Obtains a list of keycode/group/level combinations that will generate
--   keyval. Groups and levels are two kinds of keyboard mode; in
--   general, the level determines whether the top or bottom symbol on a
--   key is used, and the group determines whether the left or right symbol
--   is used. On US keyboards, the shift key changes the keyboard level,
--   and there are no groups. A group switch key might convert a keyboard
--   between Hebrew to English modes, for example. EventKey
--   contains a group field that indicates the active keyboard
--   group. The level is computed from the modifier mask.
keymapGetEntriesForKeyval :: KeymapClass self => self -> KeyVal -> IO (Maybe [KeymapKey])

-- | Returns the keyvals bound to hardwareKeycode. The Nth
--   KeymapKey in keys is bound to the Nth keyval in
--   keyvals. When a keycode is pressed by the user, the keyval
--   from this list of entries is selected by considering the effective
--   keyboard group and level. See keymapTranslateKeyboardState.
keymapGetEntriesForKeycode :: KeymapClass self => self -> Int -> IO (Maybe ([KeymapKey], [KeyVal]))

-- | Returns the direction of effective layout of the keymap.
--   
--   Returns the direction of the keymap.
keymapGetDirection :: KeymapClass self => self -> IO PangoDirection

-- | Determines if keyboard layouts for both right-to-left and
--   left-to-right languages are in use.
--   
--   
--   
- Available since Gdk version 2.12
--   
keymapHaveBidiLayouts :: KeymapClass self => self -> IO Bool

-- | Returns whether the Caps Lock modifier is locked.
--   
--   
--   
- Available since Gdk version 2.16
--   
keymapGetCapsLockState :: KeymapClass self => self -> IO Bool

-- | The keymapDirectionChanged signal gets emitted when the
--   direction of the keymap changes.
--   
--   
--   
- Available since Gdk version 2.0
--   
keymapDirectionChanged :: KeymapClass self => Signal self (IO ())

-- | The keymapKeysChanged signal is emitted when the mapping
--   represented by keymap changes.
--   
--   
--   
- Available since Gdk version 2.2
--   
keymapKeysChanged :: KeymapClass self => Signal self (IO ())

-- | The keymapStateChanged signal is emitted when the state of the
--   keyboard changes, e.g when Caps Lock is turned on or off. See
--   keymapGetCapsLockState.
--   
--   
--   
- Available since Gdk version 2.16
--   
keymapStateChanged :: KeymapClass self => Signal self (IO ())

-- | OpenGL context
module Graphics.UI.Gtk.Gdk.GLContext
data GLContext
class GObjectClass o => GLContextClass o
castToGLContext :: GObjectClass obj => obj -> GLContext
gTypeGLContext :: GType

-- | Retrieves the Display the context is created for.
glContextGetDisplay :: GLContextClass self => self -> IO (Maybe Display)

-- | Retrieves the DrawWindow used by the context.
glContextGetWindow :: GLContextClass self => self -> IO (Maybe DrawWindow)

-- | Retrieves the GLContext that this context share data with.
glContextGetSharedContext :: GLContextClass self => self -> IO (Maybe GLContext)

-- | Retrieves the OpenGL version of the context.
--   
--   The context must be realized prior to calling this function.
glContextGetVersion :: GLContextClass self => self -> IO (Int, Int)

-- | Sets the major and minor version of OpenGL to request.
--   
--   Setting major and minor to zero will use the default values.
--   
--   The GLContext must not be realized or made current prior to
--   calling this function.
glContextSetRequiredVersion :: GLContextClass self => self -> Int -> Int -> IO ()

-- | Retrieves the major and minor version requested by calling
--   glContextSetRequiredVersion.
glContextGetRequiredVersion :: GLContextClass self => self -> IO (Int, Int)

-- | Sets whether the GLContext should perform extra validations and
--   run time checking. This is useful during development, but has
--   additional overhead.
--   
--   The GLContext must not be realized or made current prior to
--   calling this function.
glContextSetDebugEnabled :: GLContextClass self => self -> Bool -> IO ()

-- | Retrieves the value set using glContextSetDebugEnabled.
glContextGetDebugEnabled :: GLContextClass self => self -> IO Bool

-- | Sets whether the GLContext should be forward compatible.
--   
--   Forward compatible contexts must not support OpenGL functionality that
--   has been marked as deprecated in the requested version; non-forward
--   compatible contexts, on the other hand, must support both deprecated
--   and non deprecated functionality.
--   
--   The GLContext must not be realized or made current prior to
--   calling this function.
glContextSetForwardCompatible :: GLContextClass self => self -> Bool -> IO ()

-- | Retrieves the value set using glContextSetForwardCompatible.
glContextGetForwardCompatible :: GLContextClass self => self -> IO Bool

-- | Realizes the given GLContext.
--   
--   It is safe to call this function on a realized GLContext.
glContextRealize :: GLContextClass self => self -> IO Bool

-- | Whether the GLContext is in legacy mode or not.
--   
--   The GLContext must be realized before calling this function.
--   
--   When realizing a GL context, GDK will try to use the OpenGL 3.2 core
--   profile; this profile removes all the OpenGL API that was deprecated
--   prior to the 3.2 version of the specification. If the realization is
--   successful, this function will return False.
--   
--   If the underlying OpenGL implementation does not support core
--   profiles, GDK will fall back to a pre-3.2 compatibility profile, and
--   this function will return True.
--   
--   You can use the value returned by this function to decide which kind
--   of OpenGL API to use, or whether to do extension discovery, or what
--   kind of shader programs to load.
glContextIsLegacy :: GLContextClass self => self -> IO Bool

-- | Makes the context the current one.
glContextMakeCurrent :: GLContextClass self => self -> IO ()

-- | Retrieves the current GLContext.
glContextGetCurrent :: IO (Maybe GLContext)

-- | Clears the current GLContext.
--   
--   Any OpenGL call after this function returns will be ignored until
--   glContextMakeCurrent is called.
glContextClearCurrent :: IO ()

-- | A widget for custom drawing with OpenGL
module Graphics.UI.Gtk.Misc.GLArea
data GLArea
class WidgetClass o => GLAreaClass o
castToGLArea :: GObjectClass obj => obj -> GLArea
gTypeGLArea :: GType
toGLArea :: GLAreaClass o => o -> GLArea

-- | Creates a new GLArea widget.
glAreaNew :: IO GLArea

-- | Retrieves the GLContext used by area.
glAreaGetContext :: GLAreaClass self => self -> IO (Maybe GLContext)

-- | Ensures that the GLContext used by area is associated with the
--   GLArea.
--   
--   This function is automatically called before emitting the
--   glAreaRender signal, and doesn't normally need to be called by
--   application code.
glAreaMakeCurrent :: GLAreaClass self => self -> IO ()

-- | Marks the currently rendered data (if any) as invalid, and queues a
--   redraw of the widget, ensuring that the glAreaRender signal is
--   emitted during the draw.
--   
--   This is only needed when glAreaSetAutoRender has been called
--   with a False value. The default behaviour is to emit
--   glAreaRender on each draw.
glAreaQueueRender :: GLAreaClass self => self -> IO ()

-- | Ensures that the area framebuffer object is made the current draw and
--   read target, and that all the required buffers for the area are
--   created and bound to the framebuffer.
--   
--   This function is automatically called before emitting the
--   glAreaRender signal, and doesn't normally need to be called by
--   application code.
glAreaAttachBuffers :: GLAreaClass self => self -> IO ()

-- | If autoRender is True the glAreaRender signal will be emitted
--   every time the widget draws. This is the default and is useful if
--   drawing the widget is faster.
--   
--   If autoRender is False the data from previous rendering is kept around
--   and will be used for drawing the widget the next time, unless the
--   window is resized. In order to force a rendering
--   glAreaQueueRender must be called. This mode is useful when the
--   scene changes seldomly, but takes a long time to redraw.
glAreaSetAutoRender :: GLAreaClass self => self -> Bool -> IO ()

-- | Returns whether the area is in auto render mode or not.
glAreaGetAutoRender :: GLAreaClass self => self -> IO Bool

-- | If hasAlpha is True the buffer allocated by the widget will have an
--   alpha channel component, and when rendering to the window the result
--   will be composited over whatever is below the widget.
--   
--   If hasAlpha is False there will be no alpha channel, and the buffer
--   will fully replace anything below the widget.
glAreaSetHasAlpha :: GLAreaClass self => self -> Bool -> IO ()

-- | Returns whether the area has an alpha component.
glAreaGetHasAlpha :: GLAreaClass self => self -> IO Bool

-- | If hasDepthBuffer is True the widget will allocate and enable a depth
--   buffer for the target framebuffer. Otherwise there will be none.
glAreaSetHasDepthBuffer :: GLAreaClass self => self -> Bool -> IO ()

-- | Returns whether the area has a depth buffer.
glAreaGetHasDepthBuffer :: GLAreaClass self => self -> IO Bool

-- | If hasStencilBuffer is True the widget will allocate and enable a
--   stencil buffer for the target framebuffer. Otherwise there will be
--   none.
glAreaSetHasStencilBuffer :: GLAreaClass self => self -> Bool -> IO ()

-- | Returns whether the area has a stencil buffer.
glAreaGetHasStencilBuffer :: GLAreaClass self => self -> IO Bool

-- | Retrieves the required version of OpenGL set using
--   glAreaSetRequiredVersion.
glAreaGetRequiredVersion :: GLAreaClass self => self -> IO (Int, Int)

-- | Sets the required version of OpenGL to be used when creating the
--   context for the widget.
--   
--   This function must be called before the area has been realized.
glAreaSetRequiredVersion :: GLAreaClass self => self -> Int -> Int -> IO ()

-- | Gets the current error set on the area.
glAreaGetError :: GLAreaClass self => self -> IO (Maybe GError)

-- | If set to True the glAreaRender signal will be emitted every
--   time the widget draws. This is the default and is useful if drawing
--   the widget is faster.
--   
--   If set to False the data from previous rendering is kept around and
--   will be used for drawing the widget the next time, unless the window
--   is resized. In order to force a rendering glAreaQueueRender
--   must be called. This mode is useful when the scene changes seldomly,
--   but takes a long time to redraw.
--   
--   Default value: True
glAreaAutoRender :: GLAreaClass self => Attr self Bool

-- | The GLContext used by the GLArea widget.
--   
--   The GLArea widget is responsible for creating the GLContext
--   instance. If you need to render with other kinds of buffers (stencil,
--   depth, etc), use render buffers.
glAreaContext :: GLAreaClass self => ReadAttr self (Maybe GLContext)

-- | If set to True the buffer allocated by the widget will have an alpha
--   channel component, and when rendering to the window the result will be
--   composited over whatever is below the widget.
--   
--   If set to False there will be no alpha channel, and the buffer will
--   fully replace anything below the widget.
--   
--   Default value: False
glAreaHasAlpha :: GLAreaClass self => Attr self Bool

-- | If set to True the widget will allocate and enable a depth buffer for
--   the target framebuffer.
--   
--   Default value: False
glAreaHasDepthBuffer :: GLAreaClass self => Attr self Bool

-- | If set to True the widget will allocate and enable a stencil buffer
--   for the target framebuffer.
--   
--   Default value: False
glAreaHasStencilBuffer :: GLAreaClass self => Attr self Bool

-- | The glAreaResize signal is emitted once when the widget is realized,
--   and then each time the widget is changed while realized. This is
--   useful in order to keep GL state up to date with the widget size, like
--   for instance camera properties which may depend on the width/height
--   ratio.
--   
--   The GL context for the area is guaranteed to be current when this
--   signal is emitted.
--   
--   The default handler sets up the GL viewport.
glAreaResize :: GLAreaClass glac => Signal glac (Int -> Int -> IO ())

-- | The glAreaRender signal is emitted every time the contents of the
--   GLArea should be redrawn.
--   
--   The context is bound to the area prior to emitting this function, and
--   the buffers are painted to the window once the emission terminates.
glAreaRender :: GLAreaClass glac => Signal glac (Maybe GLContext -> IO Bool)

-- | Definition of a record that contains event information. Deprecated in
--   favor of EventM and not exported by Gtk.hs.
module Graphics.UI.Gtk.Gdk.Events

-- | Keyboard modifiers that are depressed when the user presses a key or a
--   mouse button.
--   
--   
--   
- This data type is used to build lists of modifiers 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.
--   
data Modifier
Shift :: Modifier
Lock :: Modifier
Control :: Modifier
Alt :: Modifier
Alt2 :: Modifier
Alt3 :: Modifier
Alt4 :: Modifier
Alt5 :: Modifier
Button1 :: Modifier
Button2 :: Modifier
Button3 :: Modifier
Button4 :: Modifier
Button5 :: Modifier
MODIFIER_RESERVED_13_MASK :: Modifier
MODIFIER_RESERVED_14_MASK :: Modifier
MODIFIER_RESERVED_15_MASK :: Modifier
MODIFIER_RESERVED_16_MASK :: Modifier
MODIFIER_RESERVED_17_MASK :: Modifier
MODIFIER_RESERVED_18_MASK :: Modifier
MODIFIER_RESERVED_19_MASK :: Modifier
MODIFIER_RESERVED_20_MASK :: Modifier
MODIFIER_RESERVED_21_MASK :: Modifier
MODIFIER_RESERVED_22_MASK :: Modifier
MODIFIER_RESERVED_23_MASK :: Modifier
MODIFIER_RESERVED_24_MASK :: Modifier
MODIFIER_RESERVED_25_MASK :: Modifier
Super :: Modifier
Hyper :: Modifier
Meta :: Modifier
MODIFIER_RESERVED_29_MASK :: Modifier
Release :: Modifier
ModifierMask :: Modifier

-- | The time (in milliseconds) when an event happened. This is used mostly
--   for ordering events and responses to events.
type TimeStamp = Word32

-- | Represents the current time, and can be used anywhere a time is
--   expected.
currentTime :: TimeStamp

-- | Events that are delivered to a widget.
--   
--   
--   
- Any given signal only emits one of these variants as described in
--   Widget. Many events share common attributes:
--   
- The eventSent attribute is True if the event was
--   not created by the user but by another application.
--   
- The eventTime attribute contains a time in milliseconds
--   when the event happened.
--   
- The eventX and eventY attributes contain the
--   coordinates relative to the DrawWindow associated with this
--   widget. The values can contain sub-pixel information if the input
--   device is a graphics tablet or the like.
--   
- The eventModifier attribute denotes what modifier key was
--   pressed during the event.
--   
data Event

-- | An event that is not in one of the more specific categories below.
--   This includes delete, destroy, map and unmap events. These events have
--   no extra information associated with them.
Event :: Bool -> Event
[eventSent] :: Event -> Bool

-- | The expose event.
--   
--   
--   
- A region of widget that receives this event needs to be redrawn.
--   This event is the result of revealing part or all of a window or by
--   the application calling functions like
--   widgetQueueDrawArea.
--   
Expose :: Bool -> Rectangle -> Int -> Event
[eventSent] :: Event -> Bool

-- | A bounding box denoting what needs to be updated. For a more detailed
--   information on the area that needs redrawing, use the next field.
[eventArea] :: Event -> Rectangle

-- | The number of contiguous Expose events following this one. The
--   only use for this is "exposure compression", i.e. handling all
--   contiguous Expose events in one go, though Gdk performs some
--   exposure compression so this is not normally needed.
[eventCount] :: Event -> Int

-- | Mouse motion.
--   
--   
--   
- Captures the movement of the mouse cursor while it is within the
--   area of the widget.
--   
Motion :: Bool -> TimeStamp -> Double -> Double -> [Modifier] -> Bool -> Double -> Double -> Event
[eventSent] :: Event -> Bool

-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventX] :: Event -> Double
[eventY] :: Event -> Double
[eventModifier] :: Event -> [Modifier]

-- | Indicate if this event is only a hint of the motion.
--   
--   
--   
- If the PointerMotionHintMask is set with
--   widgetAddEvents then mouse positions are only generated each
--   time drawWindowGetPointer is called. In this case
--   eventIsHint is set to True.
--   
[eventIsHint] :: Event -> Bool

-- | The coordinates of the click relative to the screen origin.
[eventXRoot] :: Event -> Double

-- | The coordinates of the click relative to the screen origin.
[eventYRoot] :: Event -> Double

-- | A mouse button was pressed or released.
--   
--   
--   
- This event is triggered if the mouse button was pressed or
--   released while the mouse cursor was within the region of the
--   widget.
--   
Button :: Bool -> Click -> TimeStamp -> Double -> Double -> [Modifier] -> MouseButton -> Double -> Double -> Event
[eventSent] :: Event -> Bool

-- | The kind of button press, see Click. Note that double clicks
--   will trigger this event with eventClick set to
--   SingleClick, ReleaseClick, SingleClick,
--   DoubleClick, ReleaseClick. Triple clicks will produce
--   this sequence followed by SingleClick, DoubleClick,
--   TripleClick, ReleaseClick.
[eventClick] :: Event -> Click

-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventX] :: Event -> Double
[eventY] :: Event -> Double
[eventModifier] :: Event -> [Modifier]

-- | The button that was pressed.
[eventButton] :: Event -> MouseButton

-- | The coordinates of the click relative to the screen origin.
[eventXRoot] :: Event -> Double

-- | The coordinates of the click relative to the screen origin.
[eventYRoot] :: Event -> Double

-- | A key was pressed while the widget had the input focus.
--   
--   
--   
- If the widget has the current input focus (see
--   widgetSetCanFocus) it will receive key pressed events. Certain
--   key combinations are of no interest to a normal widget like Alt-F to
--   access the file menu. For all these keys, the handler must return
--   False to indicate that the key stroke should be propagated to
--   the parent widget. At the top-level widget, keyboard shortcuts like
--   Alt-F are turned into the corresponding signals.
--   
Key :: Bool -> Bool -> TimeStamp -> [Modifier] -> Bool -> Bool -> Bool -> KeyVal -> DefaultGlibString -> Maybe Char -> Event

-- | This flag is set if the key was released. This flag makes it possible
--   to connect the same handler to onKeyPress and
--   onKeyRelease.
[eventRelease] :: Event -> Bool
[eventSent] :: Event -> Bool

-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventModifier] :: Event -> [Modifier]

-- | This flag is True if Caps Lock is on while this key was
--   pressed.
[eventWithCapsLock] :: Event -> Bool

-- | This flag is True if Number Lock is on while this key was
--   pressed.
[eventWithNumLock] :: Event -> Bool

-- | This flag is True if Scroll Lock is on while this key was
--   pressed.
[eventWithScrollLock] :: Event -> Bool

-- | A number representing the key that was pressed or released. A more
--   convenient interface is provided by the next two fields.
[eventKeyVal] :: Event -> KeyVal

-- | A string representing the key that was pressed or released.
--   
--   
--   
- This string contains a description of the key rather than what
--   should appear on screen. For example, pressing "1" on the keypad
--   results in KP_1. Of particular interest are F1 till
--   F12, for a complete list refer to "gdk/gdkkeysyms.h"
--   where all possible values are defined. The corresponding strings are
--   the constants without the GDK_ prefix.
--   
[eventKeyName] :: Event -> DefaultGlibString

-- | A character matching the key that was pressed.
--   
--   
--   
- This entry can be used to build up a whole input string. The
--   character is Nothing if the key does not correspond to a
--   simple unicode character.
--   
[eventKeyChar] :: Event -> Maybe Char

-- | Mouse cursor crossing event.
--   
--   
--   
- This event indicates that the mouse cursor is hovering over this
--   widget. It is used to set a widget into the pre-focus state where some
--   GUI elements like buttons on a toolbar change their appearance.
--   
Crossing :: Bool -> TimeStamp -> Double -> Double -> Double -> Double -> Bool -> CrossingMode -> NotifyType -> [Modifier] -> Event
[eventSent] :: Event -> Bool

-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventX] :: Event -> Double
[eventY] :: Event -> Double

-- | The coordinates of the click relative to the screen origin.
[eventXRoot] :: Event -> Double

-- | The coordinates of the click relative to the screen origin.
[eventYRoot] :: Event -> Double

-- | This flag is false if the widget was entered, it is true when the
--   widget the mouse cursor left the widget.
[eventLeaves] :: Event -> Bool

-- | Kind of enter/leave event.
--   
--   
--   
- The mouse cursor might enter this widget because it grabs the
--   mouse cursor for e.g. a modal dialog box.
--   
[eventCrossingMode] :: Event -> CrossingMode

-- | Information on from what level of the widget hierarchy the mouse
--   cursor came.
--   
--   
--   
- See NotifyType.
--   
[eventNotifyType] :: Event -> NotifyType
[eventModifier] :: Event -> [Modifier]

-- | Gaining or losing input focus.
Focus :: Bool -> Bool -> Event
[eventSent] :: Event -> Bool

-- | This flag is True if the widget receives the focus and
--   False if it just lost the input focus.
[eventInFocus] :: Event -> Bool

-- | The widget's size has changed.
--   
--   
--   
- In response to this event the application can allocate resources
--   that are specific to the size of the widget. It is emitted when the
--   widget is shown the first time and on every resize.
--   
Configure :: Bool -> Int -> Int -> Int -> Int -> Event
[eventSent] :: Event -> Bool

-- | Position within the parent window.
[eventXParent] :: Event -> Int

-- | Position within the parent window.
[eventYParent] :: Event -> Int
[eventWidth] :: Event -> Int
[eventHeight] :: Event -> Int

-- | Change of visibility of a widget.
Visibility :: Bool -> VisibilityState -> Event
[eventSent] :: Event -> Bool

-- | Denote what portions of the widget is visible.
[eventVisible] :: Event -> VisibilityState

-- | Wheel movement of the mouse.
--   
--   
--   
- This action denotes that the content of the widget should be
--   scrolled. The event is triggered by the movement of the mouse wheel.
--   Surrounding scroll bars are independent of this signal. Most mice do
--   not have buttons for horizontal scrolling, hence eventDirection
--   will usually not contain ScrollLeft and ScrollRight.
--   Mice with additional buttons may not work on X since only five buttons
--   are supported (the three main buttons and two for the wheel).
--   
- The handler of this signal should update the scroll bars that
--   surround this widget which in turn tell this widget to update.
--   
Scroll :: Bool -> TimeStamp -> Double -> Double -> ScrollDirection -> Double -> Double -> Event
[eventSent] :: Event -> Bool

-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp
[eventX] :: Event -> Double
[eventY] :: Event -> Double
[eventDirection] :: Event -> ScrollDirection

-- | The coordinates of the click relative to the screen origin.
[eventXRoot] :: Event -> Double

-- | The coordinates of the click relative to the screen origin.
[eventYRoot] :: Event -> Double

-- | Indicate how the appearance of this window has changed.
WindowState :: Bool -> [WindowState] -> [WindowState] -> Event
[eventSent] :: Event -> Bool

-- | The mask indicates which flags have changed.
[eventWindowMask] :: Event -> [WindowState]

-- | The state indicates the current state of the window.
[eventWindowState] :: Event -> [WindowState]

-- | The state of the pen of a graphics tablet pen or touchscreen device.
Proximity :: Bool -> TimeStamp -> Bool -> Event
[eventSent] :: Event -> Bool

-- | The time of the event in milliseconds.
[eventTime] :: Event -> TimeStamp

-- | Whether the stylus has moved in or out of contact with the tablet.
[eventInContact] :: Event -> Bool

-- | An event that contains information on a button press.
type EventButton = Event

-- | An event that contains information on scrolling.
type EventScroll = Event

-- | An event that contains information on the movement of the mouse
--   pointer.
type EventMotion = Event

-- | An area of the DrawWindow needs redrawing.
type EventExpose = Event

-- | An event that contains information about a key press.
type EventKey = Event

-- | An event that contains the new size of a window.
type EventConfigure = Event

-- | Generated when the pointer enters or leaves a window.
type EventCrossing = Event

-- | An event that informs about a change of the input focus.
type EventFocus = Event

-- | An event that indicates a property of the window changed.
type EventProperty = Event

-- | An event that indicates that the pen of a graphics table is touching
--   or not touching the tablet.
type EventProximity = Event

-- | Parts of the window have been exposed or obscured.
type EventVisibility = Event

-- | The window state has changed.
type EventWindowState = Event

-- | A grab has been broken by unusual means.
type EventGrabBroken = Event
marshExposeRect :: Ptr Event -> IO Rectangle
marshalEvent :: Ptr Event -> IO Event

-- | visibility of a window
data VisibilityState
VisibilityUnobscured :: VisibilityState
VisibilityPartialObscured :: VisibilityState
VisibilityFullyObscured :: VisibilityState

-- | How focus is crossing the widget.
data CrossingMode
CrossingNormal :: CrossingMode
CrossingGrab :: CrossingMode
CrossingUngrab :: CrossingMode
CrossingGtkGrab :: CrossingMode
CrossingGtkUngrab :: CrossingMode
CrossingStateChanged :: CrossingMode
CrossingTouchBegin :: CrossingMode
CrossingTouchEnd :: CrossingMode
CrossingDeviceSwitch :: CrossingMode

-- | 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 NotifyType
NotifyAncestor :: NotifyType
NotifyVirtual :: NotifyType
NotifyInferior :: NotifyType
NotifyNonlinear :: NotifyType
NotifyNonlinearVirtual :: NotifyType
NotifyUnknown :: NotifyType

-- | The state a DrawWindow is in.
data WindowState
WindowStateWithdrawn :: WindowState
WindowStateIconified :: WindowState
WindowStateMaximized :: WindowState
WindowStateSticky :: WindowState
WindowStateFullscreen :: WindowState
WindowStateAbove :: WindowState
WindowStateBelow :: WindowState
WindowStateFocused :: WindowState
WindowStateTiled :: WindowState
WindowStateTopTiled :: WindowState
WindowStateTopResizable :: WindowState
WindowStateRightTiled :: WindowState
WindowStateRightResizable :: WindowState
WindowStateBottomTiled :: WindowState
WindowStateBottomResizable :: WindowState
WindowStateLeftTiled :: WindowState
WindowStateLeftResizable :: WindowState

-- | in which direction was scrolled?
data ScrollDirection
ScrollUp :: ScrollDirection
ScrollDown :: ScrollDirection
ScrollLeft :: ScrollDirection
ScrollRight :: ScrollDirection
ScrollSmooth :: ScrollDirection

-- | Mouse buttons.
data MouseButton
LeftButton :: MouseButton
MiddleButton :: MouseButton
RightButton :: MouseButton
OtherButton :: Int -> MouseButton

-- | Type of mouse click
data Click
SingleClick :: Click
DoubleClick :: Click
TripleClick :: Click
ReleaseClick :: Click

-- | Rectangle
--   
--   
--   
- Specifies x, y, width and height
--   
data Rectangle
Rectangle :: Int -> Int -> Int -> Int -> Rectangle
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Gdk.Events.Event

-- | A widget for displaying both trees and lists.
module Graphics.UI.Gtk.ModelView.TreeView
data TreeView
class ContainerClass o => TreeViewClass o
castToTreeView :: GObjectClass obj => obj -> TreeView
gTypeTreeView :: GType
toTreeView :: TreeViewClass o => o -> TreeView

-- | Represents the x and y coordinate of a point.
type Point = (Int, Int)
data DragAction
ActionDefault :: DragAction
ActionCopy :: DragAction
ActionMove :: DragAction
ActionLink :: DragAction
ActionPrivate :: DragAction
ActionAsk :: DragAction

-- | Grid lines.
data TreeViewGridLines
TreeViewGridLinesNone :: TreeViewGridLines
TreeViewGridLinesHorizontal :: TreeViewGridLines
TreeViewGridLinesVertical :: TreeViewGridLines
TreeViewGridLinesBoth :: TreeViewGridLines

-- | Creates a new TreeView widget.
treeViewNew :: IO TreeView

-- | Create a new TreeView widget with model as the storage
--   model.
treeViewNewWithModel :: TreeModelClass model => model -> IO TreeView

-- | Returns the model that supplies the data for this TreeView.
--   Returns Nothing if the model is unset.
treeViewGetModel :: TreeViewClass self => self -> IO (Maybe TreeModel)

-- | Set the TreeModel for the current View.
treeViewSetModel :: (TreeViewClass self, TreeModelClass model) => self -> Maybe model -> IO ()

-- | Retrieve a TreeSelection that holds the current selected nodes
--   of the View.
treeViewGetSelection :: TreeViewClass self => self -> IO TreeSelection

-- | Gets the Adjustment currently being used for the horizontal
--   aspect.
treeViewGetHAdjustment :: TreeViewClass self => self -> IO (Maybe Adjustment)

-- | Sets the Adjustment for the current horizontal aspect.
treeViewSetHAdjustment :: TreeViewClass self => self -> Maybe Adjustment -> IO ()

-- | Gets the Adjustment currently being used for the vertical
--   aspect.
treeViewGetVAdjustment :: TreeViewClass self => self -> IO (Maybe Adjustment)

-- | Sets the Adjustment for the current vertical aspect.
treeViewSetVAdjustment :: TreeViewClass self => self -> Maybe Adjustment -> IO ()

-- | Query if the column headers are visible.
treeViewGetHeadersVisible :: TreeViewClass self => self -> IO Bool

-- | Set the visibility state of the column headers.
treeViewSetHeadersVisible :: TreeViewClass self => self -> Bool -> IO ()

-- | Resize the columns to their optimal size.
treeViewColumnsAutosize :: TreeViewClass self => self -> IO ()

-- | Set whether the columns headers are sensitive to mouse clicks.
treeViewSetHeadersClickable :: TreeViewClass self => self -> Bool -> IO ()

-- | Query if visual aid for wide columns is turned on.
treeViewGetRulesHint :: TreeViewClass self => self -> IO Bool

-- | This function tells Gtk+ that the user interface for your application
--   requires users to read across tree rows and associate cells with one
--   another. By default, Gtk+ will then render the tree with alternating
--   row colors. Do not use it just because you prefer the
--   appearance of the ruled tree; that's a question for the theme. Some
--   themes will draw tree rows in alternating colors even when rules are
--   turned off, and users who prefer that appearance all the time can
--   choose those themes. You should call this function only as a
--   semantic hint to the theme engine that your tree makes
--   alternating colors useful from a functional standpoint (since it has
--   lots of columns, generally).
treeViewSetRulesHint :: TreeViewClass self => self -> Bool -> IO ()

-- | Append a new column to the TreeView. Returns the new number of
--   columns.
treeViewAppendColumn :: TreeViewClass self => self -> TreeViewColumn -> IO Int

-- | Remove column tvc from the TreeView widget. The number
--   of remaining columns is returned.
treeViewRemoveColumn :: TreeViewClass self => self -> TreeViewColumn -> IO Int

-- | Inserts column tvc into the TreeView widget at the
--   position pos. Returns the number of columns after insertion.
--   Specify -1 for pos to insert the column at the end.
treeViewInsertColumn :: TreeViewClass self => self -> TreeViewColumn -> Int -> IO Int

-- | Retrieve a TreeViewColumn.
--   
--   
--   
- Retrieve the pos th columns of TreeView. If the
--   index is out of range Nothing is returned.
--   
treeViewGetColumn :: TreeViewClass self => self -> Int -> IO (Maybe TreeViewColumn)

-- | Return all TreeViewColumns in this TreeView.
treeViewGetColumns :: TreeViewClass self => self -> IO [TreeViewColumn]

-- | Move a specific column.
--   
--   
--   
- Use treeViewMoveColumnToFront if you want to move the
--   column to the left end of the TreeView.
--   
treeViewMoveColumnAfter :: TreeViewClass self => self -> TreeViewColumn -> TreeViewColumn -> IO ()

-- | Move a specific column.
--   
--   
--   
- Use treeViewMoveColumnAfter if you want to move the column
--   somewhere else than to the leftmost position.
--   
treeViewMoveColumnFirst :: TreeViewClass self => self -> TreeViewColumn -> IO ()

-- | Set location of hierarchy controls.
--   
--   
--   
- Sets the column to draw the expander arrow at. If col is
--   Nothing, then the expander arrow is always at the first
--   visible column.
--   
--   
--   If you do not want expander arrow to appear in your tree, set the
--   expander column to a hidden column.
treeViewSetExpanderColumn :: TreeViewClass self => self -> Maybe TreeViewColumn -> IO ()

-- | Get location of hierarchy controls.
--   
--   
--   
- Gets the column to draw the expander arrow at. If col is
--   Nothing, then the expander arrow is always at the first
--   visible column.
--   
treeViewGetExpanderColumn :: TreeViewClass self => self -> IO TreeViewColumn

-- | Specify where a column may be dropped.
--   
--   
--   
- Sets a user function for determining where a column may be dropped
--   when dragged. This function is called on every column pair in turn at
--   the beginning of a column drag to determine where a drop can take
--   place.
--   
- The callback function take the TreeViewColumn to be moved,
--   the second and third arguments are the columns on the left and right
--   side of the new location. At most one of them might be
--   Nothing which indicates that the column is about to be
--   dropped at the left or right end of the TreeView.
--   
- The predicate pred should return True if it is
--   ok to insert the column at this place.
--   
- Use Nothing for the predicate if columns can be inserted
--   anywhere.
--   
treeViewSetColumnDragFunction :: TreeViewClass self => self -> Maybe (TreeViewColumn -> Maybe TreeViewColumn -> Maybe TreeViewColumn -> IO Bool) -> IO ()

-- | Scroll to a coordinate.
--   
--   
--   
- Scrolls the tree view such that the top-left corner of the visible
--   area is treeX, treeY, where treeX and
--   treeY are specified in tree window coordinates. The
--   TreeView must be realized before this function is called. If it
--   isn't, you probably want to use treeViewScrollToCell.
--   
treeViewScrollToPoint :: TreeViewClass self => self -> Int -> Int -> IO ()

-- | Scroll to a cell.
--   
--   Moves the alignments of tree_view to the position specified by
--   mbColumn and mbPath. If mbColumn is Nothing, then no horizontal
--   scrolling occurs. Likewise, if mbPath is Nothing no vertical scrolling
--   occurs. At a minimum, one of mbColumn or mbPath need to be provided.
--   rowAlign determines where the row is placed, and
--   colAlign determines where column is placed. Both are expected
--   to be between 0.0 and 1.0. 0.0 means lefttop alignment, 1.0 means
--   rightbottom alignment, 0.5 means center.
--   
--   If Nothing is passed instead of rowAlign and
--   colAlign, then the tree does the minimum amount of work to
--   scroll the cell onto the screen. This means that the cell will be
--   scrolled to the edge closest to its current position. If the cell is
--   currently visible on the screen, nothing is done.
--   
--   This function only works if the model is set, and path is a valid row
--   on the model. If the model changes before the tree_view is realized,
--   the centered path will be modified to reflect this change.
treeViewScrollToCell :: TreeViewClass self => self -> Maybe TreePath -> Maybe TreeViewColumn -> Maybe (Float, Float) -> IO ()

-- | Selects a specific row.
--   
--   
--   
- Sets the current keyboard focus to be at path, and
--   selects it. This is useful when you want to focus the user's attention
--   on a particular row. If focusColumn is given, then the input
--   focus is given to the column specified by it. Additionally, if
--   focusColumn is specified, and startEditing is
--   True, then editing will be started in the specified cell.
--   This function is often followed by a widgetGrabFocus to the
--   TreeView in order to give keyboard focus to the widget.
--   
treeViewSetCursor :: TreeViewClass self => self -> TreePath -> Maybe (TreeViewColumn, Bool) -> IO ()

-- | Selects a cell in a specific row.
--   
--   
--   
- Similar to treeViewSetCursor but allows a column to contain
--   several CellRenderers.
--   
- Only available in Gtk 2.2 and higher.
--   
treeViewSetCursorOnCell :: (TreeViewClass self, CellRendererClass focusCell) => self -> TreePath -> TreeViewColumn -> focusCell -> Bool -> IO ()

-- | Retrieves the position of the focus.
--   
--   
--   
- Returns a pair (path, column).If the cursor is not
--   currently set, path will be []. If no column is
--   currently selected, column will be Nothing.
--   
treeViewGetCursor :: TreeViewClass self => self -> IO (TreePath, Maybe TreeViewColumn)

-- | Emit the activated signal on a cell.
treeViewRowActivated :: TreeViewClass self => self -> TreePath -> TreeViewColumn -> IO ()

-- | Recursively expands all nodes in the tree view.
treeViewExpandAll :: TreeViewClass self => self -> IO ()

-- | Recursively collapses all visible, expanded nodes in the tree view.
treeViewCollapseAll :: TreeViewClass self => self -> IO ()

-- | Make a certain path visible.
--   
--   
--   
- This will expand all parent rows of tp as necessary.
--   
- Only available in Gtk 2.2 and higher.
--   
treeViewExpandToPath :: TreeViewClass self => self -> TreePath -> IO ()

-- | Opens the row so its children are visible.
treeViewExpandRow :: TreeViewClass self => self -> TreePath -> Bool -> IO Bool

-- | Collapses a row (hides its child rows, if they exist).
treeViewCollapseRow :: TreeViewClass self => self -> TreePath -> IO Bool

-- | Call function for every expanded row.
treeViewMapExpandedRows :: TreeViewClass self => self -> (TreePath -> IO ()) -> IO ()

-- | Check if row is expanded.
treeViewRowExpanded :: TreeViewClass self => self -> TreePath -> IO Bool

-- | Query if rows can be moved around.
--   
--   
--   
- See treeViewSetReorderable.
--   
treeViewGetReorderable :: TreeViewClass self => self -> IO Bool

-- | Check if rows can be moved around.
--   
--   
--   
- Set whether the user can use drag and drop (DND) to reorder the
--   rows in the store. This works on both TreeStore and
--   ListStore models. If ro is True, then the
--   user can reorder the model by dragging and dropping rows. The
--   developer can listen to these changes by connecting to the model's
--   signals. If you need to control which rows may be dragged or where
--   rows may be dropped, you can override the
--   treeDragSourceRowDraggable function in the default DND
--   implementation of the model.
--   
treeViewSetReorderable :: TreeViewClass self => self -> Bool -> IO ()

-- | Map a pixel to the specific cell.
--   
--   
--   
- Finds the path at the Point (x, y). The
--   coordinates x and y are relative to the top left
--   corner of the TreeView drawing window. As such, coordinates in
--   a mouse click event can be used directly to determine the cell which
--   the user clicked on. This function is useful to realize popup
--   menus.
--   
- The returned point is the input point relative to the cell's upper
--   left corner. The whole TreeView is divided between all cells.
--   The returned point is relative to the rectangle this cell occupies
--   within the TreeView.
--   
treeViewGetPathAtPos :: TreeViewClass self => self -> Point -> IO (Maybe (TreePath, TreeViewColumn, Point))

-- | Retrieve the smallest bounding box of a cell.
--   
--   
--   
- Fills the bounding rectangle in tree window coordinates for the
--   cell at the row specified by tp and the column specified by
--   tvc. If path is Nothing or points to a path
--   not currently displayed, the y and height fields of
--   the Rectangle will be filled with 0. The sum of all
--   cell rectangles does not cover the entire tree; there are extra pixels
--   in between rows, for example.
--   
treeViewGetCellArea :: TreeViewClass self => self -> Maybe TreePath -> TreeViewColumn -> IO Rectangle

-- | Retrieve the largest bounding box of a cell.
--   
--   
--   
- Fills the bounding rectangle in tree window coordinates for the
--   cell at the row specified by tp and the column specified by
--   tvc. If path is Nothing or points to a path
--   not currently displayed, the y and height fields of
--   the Rectangle will be filled with 0. The background
--   areas tile the widget's area to cover the entire tree window (except
--   for the area used for header buttons). Contrast this with
--   treeViewGetCellArea.
--   
treeViewGetBackgroundArea :: TreeViewClass self => self -> Maybe TreePath -> TreeViewColumn -> IO Rectangle

-- | Retrieve the currently visible area.
--   
--   
--   
- The returned rectangle gives the visible part of the tree in tree
--   coordinates.
--   
treeViewGetVisibleRect :: TreeViewClass self => self -> IO Rectangle

-- | Converts bin window coordinates to coordinates for the tree (the full
--   scrollable area of the tree).
treeViewConvertBinWindowToTreeCoords :: TreeViewClass self => self -> Point -> IO Point

-- | Converts bin window coordinates (see treeViewGetBinWindow to
--   widget relative coordinates.
treeViewConvertBinWindowToWidgetCoords :: TreeViewClass self => self -> Point -> IO Point

-- | Converts tree coordinates (coordinates in full scrollable area of the
--   tree) to bin window coordinates.
treeViewConvertTreeToBinWindowCoords :: TreeViewClass self => self -> Point -> IO Point

-- | Converts tree coordinates (coordinates in full scrollable area of the
--   tree) to widget coordinates.
treeViewConvertTreeToWidgetCoords :: TreeViewClass self => self -> Point -> IO Point

-- | Converts widget coordinates to coordinates for the window (see
--   treeViewGetBinWindow ).
treeViewConvertWidgetToBinWindowCoords :: TreeViewClass self => self -> Point -> IO Point

-- | Converts widget coordinates to coordinates for the tree (the full
--   scrollable area of the tree).
treeViewConvertWidgetToTreeCoords :: TreeViewClass self => self -> Point -> IO Point

-- | Returns whether or not the tree allows to start interactive searching
--   by typing in text.
--   
--   
--   
- If enabled, the user can type in text which will set the cursor to
--   the first matching entry.
--   
treeViewGetEnableSearch :: TreeViewClass self => self -> IO Bool

-- | If this is set, then the user can type in text to search through the
--   tree interactively (this is sometimes called "typeahead find").
--   
--   Note that even if this is False, the user can still initiate
--   a search using the "start-interactive-search" key binding. In any
--   case, a predicate that compares a row of the model with the text the
--   user has typed must be set using treeViewSetSearchEqualFunc.
treeViewSetEnableSearch :: TreeViewClass self => self -> Bool -> IO ()

-- | Gets the column searched on by the interactive search code.
treeViewGetSearchColumn :: (TreeViewClass self, GlibString string) => self -> IO (ColumnId row string)

-- | Sets column as the column where the interactive search code
--   should search in.
--   
--   If the sort column is set, users can use the
--   "start-interactive-search" key binding to bring up search popup. The
--   enable-search property controls whether simply typing text will also
--   start an interactive search.
--   
--   Note that column refers to a column of the model.
--   Furthermore, the search column is not used if a comparison function is
--   set, see treeViewSetSearchEqualFunc.
treeViewSetSearchColumn :: (TreeViewClass self, GlibString string) => self -> ColumnId row string -> IO ()

-- | Set the predicate to test for equality.
--   
--   
--   
- The predicate must returns True if the text entered by
--   the user and the row of the model match. Calling this function will
--   overwrite the treeViewSearchColumn (which isn't used anyway
--   when a comparison function is installed).
--   
treeViewSetSearchEqualFunc :: (TreeViewClass self, GlibString string) => self -> Maybe (string -> TreeIter -> IO Bool) -> IO ()

-- | Returns whether fixed height mode is turned on for the tree view.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewGetFixedHeightMode :: TreeViewClass self => self -> IO Bool

-- | Enables or disables the fixed height mode of the tree view. Fixed
--   height mode speeds up TreeView by assuming that all rows have
--   the same height. Only enable this option if all rows are the same
--   height and all columns are of type TreeViewColumnFixed.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewSetFixedHeightMode :: TreeViewClass self => self -> Bool -> IO ()

-- | Returns whether hover selection mode is turned on for
--   treeView.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewGetHoverSelection :: TreeViewClass self => self -> IO Bool

-- | Enables of disables the hover selection mode of the tree view. Hover
--   selection makes the selected row follow the pointer. Currently, this
--   works only for the selection modes SelectionSingle and
--   SelectionBrowse.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewSetHoverSelection :: TreeViewClass self => self -> Bool -> IO ()

-- | Returns whether hover expansion mode is turned on for the tree view.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewGetHoverExpand :: TreeViewClass self => self -> IO Bool

-- | Enables of disables the hover expansion mode of the tree view. Hover
--   expansion makes rows expand or collapse if the pointer moves over
--   them.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewSetHoverExpand :: TreeViewClass self => self -> Bool -> IO ()

-- | Returns whether all header columns are clickable.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewGetHeadersClickable :: TreeViewClass self => self -> IO Bool

-- | Return the first and last visible path. Note that there may be
--   invisible paths in between.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
treeViewGetVisibleRange :: TreeViewClass self => self -> IO (TreePath, TreePath)

-- | Turns treeView into a drop destination for automatic DND.
treeViewEnableModelDragDest :: TreeViewClass self => self -> TargetList -> [DragAction] -> IO ()

-- | Turns treeView into a drag source for automatic DND.
treeViewEnableModelDragSource :: TreeViewClass self => self -> [Modifier] -> TargetList -> [DragAction] -> IO ()

-- | Undoes the effect of treeViewEnableModelDragSource.
treeViewUnsetRowsDragSource :: TreeViewClass self => self -> IO ()

-- | Undoes the effect of treeViewEnableModelDragDest.
treeViewUnsetRowsDragDest :: TreeViewClass self => self -> IO ()

-- | Returns the Entry which is currently in use as interactive
--   search entry for treeView. In case the built-in entry is
--   being used, Nothing will be returned.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewGetSearchEntry :: TreeViewClass self => self -> IO (Maybe Entry)

-- | Sets the entry which the interactive search code will use for this
--   treeView. This is useful when you want to provide a search
--   entry in our interface at all time at a fixed position. Passing
--   Nothing for entry will make the interactive search
--   code use the built-in popup entry again.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewSetSearchEntry :: (TreeViewClass self, EntryClass entry) => self -> Maybe entry -> IO ()

-- | Sets the row separator function, which is used to determine whether a
--   row should be drawn as a separator. If the row separator function is
--   Nothing, no separators are drawn. This is the default value.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewSetRowSeparatorFunc :: TreeViewClass self => self -> Maybe (TreeIter -> IO Bool) -> IO ()

-- | Returns whether rubber banding is turned on for treeView. If
--   the selection mode is SelectionMultiple, rubber banding will
--   allow the user to select multiple rows by dragging the mouse.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewGetRubberBanding :: TreeViewClass self => self -> IO Bool

-- | Enables or disables rubber banding in treeView. If the
--   selection mode is SelectionMultiple, rubber banding will
--   allow the user to select multiple rows by dragging the mouse.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewSetRubberBanding :: TreeViewClass self => self -> Bool -> IO ()

-- | Returns whether or not tree lines are drawn in treeView.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewGetEnableTreeLines :: TreeViewClass self => self -> IO Bool

-- | Sets whether to draw lines interconnecting the expanders in
--   treeView. This does not have any visible effects for lists.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewSetEnableTreeLines :: TreeViewClass self => self -> Bool -> IO ()

-- | Returns which grid lines are enabled in treeView.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewGetGridLines :: TreeViewClass self => self -> IO TreeViewGridLines

-- | Sets which grid lines to draw in treeView.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
treeViewSetGridLines :: TreeViewClass self => self -> TreeViewGridLines -> IO ()

-- | Sets the tip area of tooltip to be the area covered by
--   path. See also treeViewTooltipColumn for a simpler
--   alternative. See also tooltipSetTipArea.
treeViewSetTooltipRow :: TreeViewClass self => self -> Tooltip -> TreePath -> IO ()

-- | Sets the tip area of tooltip to the area path, column and cell have in
--   common. For example if path is Nothing and
--   column is set, the tip area will be set to the full area
--   covered by column. See also tooltipSetTipArea. Note that if
--   path is not specified and cell is set and part of a
--   column containing the expander, the tooltip might not show and hide at
--   the correct position. In such cases path must be set to the
--   current node under the mouse cursor for this function to operate
--   correctly. See also treeViewTooltipColumn for a simpler
--   alternative.
treeViewSetTooltipCell :: (TreeViewClass self, TreeViewColumnClass col, CellRendererClass renderer) => self -> Tooltip -> Maybe TreePath -> Maybe col -> Maybe renderer -> IO ()

-- | This function is supposed to be used in a widgetQueryTooltip
--   signal handler for this TreeView. The point value
--   which is received in the signal handler should be passed to this
--   function without modification. A return value of Just iter
--   indicates that there is a tree view row at the given coordinates (if
--   Just (x,y) is passed in, denoting a mouse position), resp.
--   the cursor row (if Nothing is passed in, denoting a keyboard
--   request).
treeViewGetTooltipContext :: TreeViewClass self => self -> Maybe Point -> IO (Maybe TreeIter)

-- | The model for the tree view.
treeViewModel :: TreeViewClass self => Attr self (Maybe TreeModel)

-- | Horizontal Adjustment for the widget.
treeViewHAdjustment :: TreeViewClass self => Attr self (Maybe Adjustment)

-- | Vertical Adjustment for the widget.
treeViewVAdjustment :: TreeViewClass self => Attr self (Maybe Adjustment)

-- | Show the column header buttons.
--   
--   Default value: True
treeViewHeadersVisible :: TreeViewClass self => Attr self Bool

-- | Column headers respond to click events.
--   
--   Default value: False
treeViewHeadersClickable :: TreeViewClass self => Attr self Bool

-- | Set the column for the expander column.
treeViewExpanderColumn :: TreeViewClass self => ReadWriteAttr self TreeViewColumn (Maybe TreeViewColumn)

-- | View is reorderable.
--   
--   Default value: False
treeViewReorderable :: TreeViewClass self => Attr self Bool

-- | Set a hint to the theme engine to draw rows in alternating colors.
--   
--   Default value: False
treeViewRulesHint :: TreeViewClass self => Attr self Bool

-- | View allows user to search through columns interactively.
--   
--   Default value: True
treeViewEnableSearch :: TreeViewClass self => Attr self Bool

-- | Model column to search through when searching through code.
--   
--   Default value: invalidColumnId
treeViewSearchColumn :: (TreeViewClass self, GlibString string) => Attr self (ColumnId row string)

-- | Setting the treeViewFixedHeightMode property to True
--   speeds up TreeView by assuming that all rows have the same
--   height. Only enable this option if all rows are the same height.
--   Please see treeViewSetFixedHeightMode for more information on
--   this option.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.4
--   
treeViewFixedHeightMode :: TreeViewClass self => Attr self Bool

-- | Enables of disables the hover selection mode of treeView.
--   Hover selection makes the selected row follow the pointer. Currently,
--   this works only for the selection modes SelectionSingle and
--   SelectionBrowse.
--   
--   This mode is primarily intended for TreeViews in popups, e.g.
--   in ComboBox or EntryCompletion.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewHoverSelection :: TreeViewClass self => Attr self Bool

-- | Enables of disables the hover expansion mode of treeView.
--   Hover expansion makes rows expand or collapse if the pointer moves
--   over them.
--   
--   This mode is primarily intended for TreeViews in popups, e.g.
--   in ComboBox or EntryCompletion.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.6
--   
treeViewHoverExpand :: TreeViewClass self => Attr self Bool

-- | View has expanders.
--   
--   Default value: True
treeViewShowExpanders :: TreeViewClass self => Attr self Bool

-- | Extra indentation for each level.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
treeViewLevelIndentation :: TreeViewClass self => Attr self Int

-- | Whether to enable selection of multiple items by dragging the mouse
--   pointer.
--   
--   Default value: False
treeViewRubberBanding :: TreeViewClass self => Attr self Bool

-- | Whether grid lines should be drawn in the tree view.
--   
--   Default value: TreeViewGridLinesNone
treeViewEnableGridLines :: TreeViewClass self => Attr self TreeViewGridLines

-- | Whether tree lines should be drawn in the tree view.
--   
--   Default value: False
treeViewEnableTreeLines :: TreeViewClass self => Attr self Bool

-- | 'gridLines' property. See treeViewGetGridLines and
--   treeViewSetGridLines
treeViewGridLines :: TreeViewClass self => Attr self TreeViewGridLines

-- | 'searchEntry' property. See treeViewGetSearchEntry and
--   treeViewSetSearchEntry
treeViewSearchEntry :: (TreeViewClass self, EntryClass entry) => ReadWriteAttr self (Maybe Entry) (Maybe entry)

-- | The column for which to show tooltips.
--   
--   If you only plan to have simple (text-only) tooltips on full rows, you
--   can use this function to have TreeView handle these
--   automatically for you. column should be set to a column in
--   model containing the tooltip texts, or -1 to disable this
--   feature. When enabled, widgetHasTooltip will be set to
--   True and this view will connect to the
--   widgetQueryTooltip signal handler.
--   
--   Note that the signal handler sets the text as Markup, so
--   &, <, etc have to be escaped in the text.
--   
--   Default value: invalidColumnId
treeViewTooltipColumn :: (TreeViewClass self, GlibString string) => Attr self (ColumnId row string)

-- | The number of columns of the treeview has changed.
columnsChanged :: TreeViewClass self => Signal self (IO ())

-- | The position of the cursor (focused cell) has changed.
cursorChanged :: TreeViewClass self => Signal self (IO ())

-- | The given row has been collapsed (child nodes are hidden).
rowCollapsed :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO ())

-- | The given row has been expanded (child nodes are shown).
rowExpanded :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO ())

-- | A row was activated.
--   
--   
--   
- Activation usually means the user has pressed return on a
--   row.
--   
rowActivated :: TreeViewClass self => Signal self (TreePath -> TreeViewColumn -> IO ())

-- | The given row is about to be collapsed (hide its children nodes). Use
--   this signal if you need to control the collapsibility of individual
--   rows.
testCollapseRow :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO Bool)

-- | The given row is about to be expanded (show its children nodes). Use
--   this signal if you need to control the expandability of individual
--   rows.
testExpandRow :: TreeViewClass self => Signal self (TreeIter -> TreePath -> IO Bool)
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.ModelView.TreeView.TreeViewGridLines

-- | A widget which displays a list of icons in a grid
--   
--   
--   
- Module available since Gtk+ version 2.6
--   
module Graphics.UI.Gtk.ModelView.IconView
data IconView
class ContainerClass o => IconViewClass o
castToIconView :: GObjectClass obj => obj -> IconView
gTypeIconView :: GType
toIconView :: IconViewClass o => o -> IconView

-- | Creates a new IconView widget
iconViewNew :: IO IconView

-- | Creates a new IconView widget with the model model and
--   defines how to extract a string and a pixbuf from the model.
iconViewNewWithModel :: TreeModelClass model => model -> IO IconView

-- | Sets the model for a IconView. If the iconView already
--   has a model set, it will remove it before setting the new model. If
--   model is Nothing, then it will unset the old model.
iconViewSetModel :: (IconViewClass self, TreeModelClass model) => self -> Maybe model -> IO ()

-- | Returns the model the IconView is based on. Returns
--   Nothing if the model is unset.
iconViewGetModel :: IconViewClass self => self -> IO (Maybe TreeModel)

-- | Sets the column of the text for entries in the IconView. If a
--   markup source is set using iconViewSetMarkupSource, then the
--   text source is ignored.
iconViewSetTextColumn :: (IconViewClass self, GlibString string) => self -> ColumnId row string -> IO ()

-- | Returns the column with text for iconView.
iconViewGetTextColumn :: (IconViewClass self, GlibString string) => self -> IO (ColumnId row string)

-- | Sets the column of the text for entries in the IconView as a
--   markup string (see Markup). A text source that is set using
--   iconViewSetTextSource is ignored once a markup source is set.
iconViewSetMarkupColumn :: (IconViewClass self, GlibString markup) => self -> ColumnId row markup -> IO ()

-- | Returns the column with markup text for iconView.
iconViewGetMarkupColumn :: (IconViewClass self, GlibString markup) => self -> IO (ColumnId row markup)

-- | Sets the column of the Pixbuf for entries in the
--   IconView.
iconViewSetPixbufColumn :: IconViewClass self => self -> ColumnId row Pixbuf -> IO ()

-- | Returns the column with pixbufs for iconView.
iconViewGetPixbufColumn :: IconViewClass self => self -> IO (ColumnId row Pixbuf)

-- | Finds the path at the point (x, y), relative to
--   widget coordinates. See iconViewGetItemAtPos, if you are also
--   interested in the cell at the specified position.
iconViewGetPathAtPos :: IconViewClass self => self -> Int -> Int -> IO TreePath

-- | Calls a function for each selected icon. Note that the model or
--   selection cannot be modified from within this function.
iconViewSelectedForeach :: IconViewClass self => self -> (TreePath -> IO ()) -> IO ()

-- | Sets the selection mode of the iconView.
iconViewSetSelectionMode :: IconViewClass self => self -> SelectionMode -> IO ()

-- | Gets the selection mode of the iconView.
iconViewGetSelectionMode :: IconViewClass self => self -> IO SelectionMode

-- | Sets the ::columns property which determines in how many columns the
--   icons are arranged. If columns is -1, the number of columns
--   will be chosen automatically to fill the available area.
iconViewSetColumns :: IconViewClass self => self -> Int -> IO ()

-- | Returns the value of the ::columns property.
iconViewGetColumns :: IconViewClass self => self -> IO Int

-- | Sets the ::item-width property which specifies the width to use for
--   each item. If it is set to -1, the icon view will automatically
--   determine a suitable item size.
iconViewSetItemWidth :: IconViewClass self => self -> Int -> IO ()

-- | Returns the value of the ::item-width property.
iconViewGetItemWidth :: IconViewClass self => self -> IO Int

-- | Sets the ::spacing property which specifies the space which is
--   inserted between the cells (i.e. the icon and the text) of an item.
iconViewSetSpacing :: IconViewClass self => self -> Int -> IO ()

-- | Returns the value of the ::spacing property.
iconViewGetSpacing :: IconViewClass self => self -> IO Int

-- | Sets the ::row-spacing property which specifies the space which is
--   inserted between the rows of the icon view.
iconViewSetRowSpacing :: IconViewClass self => self -> Int -> IO ()

-- | Returns the value of the ::row-spacing property.
iconViewGetRowSpacing :: IconViewClass self => self -> IO Int

-- | Sets the ::column-spacing property which specifies the space which is
--   inserted between the columns of the icon view.
iconViewSetColumnSpacing :: IconViewClass self => self -> Int -> IO ()

-- | Returns the value of the ::column-spacing property.
iconViewGetColumnSpacing :: IconViewClass self => self -> IO Int

-- | Sets the ::margin property which specifies the space which is inserted
--   at the top, bottom, left and right of the icon view.
iconViewSetMargin :: IconViewClass self => self -> Int -> IO ()

-- | Returns the value of the ::margin property.
iconViewGetMargin :: IconViewClass self => self -> IO Int

-- | Selects the row at path.
iconViewSelectPath :: IconViewClass self => self -> TreePath -> IO ()

-- | Unselects the row at path.
iconViewUnselectPath :: IconViewClass self => self -> TreePath -> IO ()

-- | Returns True if the icon pointed to by path is
--   currently selected. If icon does not point to a valid
--   location, False is returned.
iconViewPathIsSelected :: IconViewClass self => self -> TreePath -> IO Bool

-- | Creates a list of paths of all selected items. Additionally, if you
--   are planning on modifying the model after calling this function, you
--   may want to convert the returned list into a list of
--   TreeRowReferences. To do this, you can use
--   treeRowReferenceNew.
iconViewGetSelectedItems :: IconViewClass self => self -> IO [TreePath]

-- | Selects all the icons. iconView must has its selection mode
--   set to SelectionMultiple.
iconViewSelectAll :: IconViewClass self => self -> IO ()

-- | Unselects all the icons.
iconViewUnselectAll :: IconViewClass self => self -> IO ()

-- | Activates the item determined by path.
iconViewItemActivated :: IconViewClass self => self -> TreePath -> IO ()

-- | Finds the path at the point (x, y), relative to
--   widget coordinates. In contrast to iconViewGetPathAtPos, this
--   function also obtains the cell at the specified position.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
iconViewGetItemAtPos :: IconViewClass self => self -> Int -> Int -> IO (Maybe (TreePath, CellRenderer))

-- | Given Left path as argument , sets the current keyboard focus
--   to be at path, and selects it. This is useful when you want
--   to focus the user's attention on a particular item. If Right
--   cell is given, then focus is given to the cell specified by it.
--   Additionally, if startEditing is True, then editing
--   should be started in the specified cell.
--   
--   This function is often followed by widgetGrabFocus in order to
--   give keyboard focus to the widget. Please note that editing can only
--   happen when the widget is realized.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
iconViewSetCursor :: (IconViewClass self, CellRendererClass cell) => self -> Either TreePath cell -> Bool -> IO ()

-- | Return a path and a cell with the current cursor
--   path and cell. If the cursor isn't currently set, then []
--   will be returned for the path. If no cell currently has
--   focus, then cell will be Nothing.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
iconViewGetCursor :: IconViewClass self => self -> IO (TreePath, Maybe CellRenderer)

-- | Moves the alignments of iconView to the position specified by
--   path. rowAlign determines where the row is placed,
--   and colAlign determines where column is placed. Both
--   are expected to be between 0.0 and 1.0. 0.0 means left/top alignment,
--   1.0 means right/bottom alignment, 0.5 means center.
--   
--   If useAlign is False, then the alignment arguments
--   are ignored, and the tree does the minimum amount of work to scroll
--   the item onto the screen. This means that the item will be scrolled to
--   the edge closest to its current position. If the item is currently
--   visible on the screen, nothing is done.
--   
--   This function only works if the model is set, and path is a
--   valid row on the model. If the model changes before the
--   iconView is realized, the centered path will be modified to
--   reflect this change.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
iconViewScrollToPath :: IconViewClass self => self -> TreePath -> Bool -> Float -> Float -> IO ()

-- | Retrieve the first and last visible path. Note that there may be
--   invisible paths in between.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
iconViewGetVisibleRange :: IconViewClass self => self -> IO (Maybe (TreePath, TreePath))

-- | Turns iconView into a drag source for automatic DND.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
iconViewEnableModelDragSource :: IconViewClass self => self -> [Modifier] -> TargetList -> [DragAction] -> IO ()

-- | Turns iconView into a drop destination for automatic DND.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
iconViewEnableModelDragDest :: IconViewClass self => self -> TargetList -> [DragAction] -> IO ()

-- | Undoes the effect of iconViewEnableModelDragSource.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
iconViewUnsetModelDragSource :: IconViewClass self => self -> IO ()

-- | Undoes the effect of iconViewEnableModelDragDest.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
iconViewUnsetModelDragDest :: IconViewClass self => self -> IO ()

-- | Check if icons can be moved around.
--   
--   
--   
- Set whether the user can use drag and drop (DND) to reorder the
--   rows in the store. This works on both TreeStore and
--   ListStore models. If ro is True, then the
--   user can reorder the model by dragging and dropping rows. The
--   developer can listen to these changes by connecting to the model's
--   signals. If you need to control which rows may be dragged or where
--   rows may be dropped, you can override the
--   treeDragSourceRowDraggable function in the default DND
--   implementation of the model.
--   
- Available since Gtk+ version 2.8
--   
iconViewSetReorderable :: IconViewClass self => self -> Bool -> IO ()

-- | Retrieves whether the user can reorder the list via drag-and-drop. See
--   iconViewSetReorderable.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
iconViewGetReorderable :: IconViewClass self => self -> IO Bool

-- | Gets the row in which the item path is currently displayed. Row
--   numbers start at 0.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
iconViewGetItemRow :: IconViewClass self => self -> TreePath -> IO Int

-- | Gets the column in which the item path is currently displayed. Column
--   numbers start at 0.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
iconViewGetItemColumn :: IconViewClass self => self -> TreePath -> IO Int

-- | The ::selection-mode property specifies the selection mode of icon
--   view. If the mode is SelectionMultiple, rubberband selection
--   is enabled, for the other modes, only keyboard selection is possible.
--   
--   Default value: SelectionSingle
iconViewSelectionMode :: IconViewClass self => Attr self SelectionMode

-- | The iconViewTextColumn property contains the number of the
--   model column containing the texts which are displayed. If this
--   property and the iconViewMarkupColumn property are both set to
--   invalidColumnId, no texts are displayed.
--   
--   Default value: invalidColumnId
iconViewTextColumn :: (IconViewClass self, GlibString string) => Attr self (ColumnId row string)

-- | The iconViewMarkupColumn property contains the number of the
--   model column containing markup information to be displayed. If this
--   property and the iconViewTextColumn property are both set to
--   column numbers, it overrides the text column. If both are set to
--   invalidColumnId, no texts are displayed.
--   
--   Default value: invalidColumnId
iconViewMarkupColumn :: (IconViewClass self, GlibString markup) => Attr self (ColumnId row markup)

-- | The iconViewPixbufColumn property contains the number of the
--   model column containing the pixbufs which are displayed. Setting this
--   property to invalidColumnId turns off the display of pixbufs.
--   
--   Default value: invalidColumnId
iconViewPixbufColumn :: IconViewClass self => Attr self (ColumnId row Pixbuf)

-- | The model for the icon view.
iconViewModel :: (IconViewClass self, TreeModelClass model) => ReadWriteAttr self (Maybe TreeModel) (Maybe model)

-- | The columns property contains the number of the columns in which the
--   items should be displayed. If it is -1, the number of columns will be
--   chosen automatically to fill the available area.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
iconViewColumns :: IconViewClass self => Attr self Int

-- | The item-width property specifies the width to use for each item. If
--   it is set to -1, the icon view will automatically determine a suitable
--   item size.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
iconViewItemWidth :: IconViewClass self => Attr self Int

-- | The spacing property specifies the space which is inserted between the
--   cells (i.e. the icon and the text) of an item.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
iconViewSpacing :: IconViewClass self => Attr self Int

-- | The row-spacing property specifies the space which is inserted between
--   the rows of the icon view.
--   
--   Allowed values: >= 0
--   
--   Default value: 6
iconViewRowSpacing :: IconViewClass self => Attr self Int

-- | The column-spacing property specifies the space which is inserted
--   between the columns of the icon view.
--   
--   Allowed values: >= 0
--   
--   Default value: 6
iconViewColumnSpacing :: IconViewClass self => Attr self Int

-- | The margin property specifies the space which is inserted at the edges
--   of the icon view.
--   
--   Allowed values: >= 0
--   
--   Default value: 6
iconViewMargin :: IconViewClass self => Attr self Int

-- | The orientation property specifies how the cells (i.e. the icon and
--   the text) of the item are positioned relative to each other.
--   
--   Default value: OrientationVertical
iconViewOrientation :: IconViewClass self => Attr self Orientation

-- | The reorderable property specifies if the items can be reordered by
--   DND.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.8
--   
iconViewReorderable :: IconViewClass self => Attr self Bool

-- | The item-orientation property specifies how the cells (i.e. the icon
--   and the text) of the item are positioned relative to each other.
--   
--   Default value: OrientationVertical
--   
--   
--   
- Available since Gtk+ version 2.22
--   
iconViewItemOrientation :: IconViewClass self => Attr self Orientation

-- | New scroll adjustment have been set for this widget.
setIconViewScrollAdjustments :: IconViewClass self => Signal self (Adjustment -> Adjustment -> IO ())

-- | A specific element has been activated (by pressing enter or double
--   clicking).
itemActivated :: IconViewClass self => Signal self (TreePath -> IO ())

-- | The selected item changed.
selectionChanged :: IconViewClass self => Signal self (IO ())

-- | A StockItem is a resource that is know throughout Gtk.
--   
--   
--   
- Defining you own IconSets as StockItems will make it
--   possible for Gtk to choose the most appropriate sizes and enables
--   themes to override your built in icons. A couple of constants are
--   defined here as well. They are useful in accessing Gtk's predefined
--   items.
--   
module Graphics.UI.Gtk.General.StockItems

-- | The description of a stock item.
data StockItem
StockItem :: StockId -> DefaultGlibString -> [Modifier] -> KeyVal -> DefaultGlibString -> StockItem

-- | A synonym for a standard button or icon.
type StockId = DefaultGlibString
siStockId :: StockItem -> StockId
siLabel :: StockItem -> DefaultGlibString
siModifier :: StockItem -> [Modifier]
siKeyval :: StockItem -> KeyVal
siTransDom :: StockItem -> DefaultGlibString

-- | Add new stock items to Gtk.
stockAddItem :: [StockItem] -> IO ()

-- | Lookup an item in stock.
stockLookupItem :: StockId -> IO (Maybe StockItem)

-- | Produce a list of all known stock identifiers.
--   
--   
--   
- Retrieve a list of all known stock identifiers. These can either
--   be added by stockAddItem or by adding items to a
--   IconFactory.
--   
- The list is sorted alphabetically (sorting is not Unicode
--   aware).
--   
stockListIds :: IO [StockId]

stockAbout :: StockId

stockAdd :: StockId

stockApply :: StockId

stockBold :: StockId

stockCancel :: StockId

stockCapsLockWarning :: StockId

stockCDROM :: StockId

stockClear :: StockId

stockClose :: StockId

stockColorPicker :: StockId

stockConvert :: StockId

stockConnect :: StockId

stockCopy :: StockId

stockCut :: StockId

stockDelete :: StockId

stockDialogAuthentication :: StockId

stockDialogError :: StockId

stockDialogInfo :: StockId

stockDialogQuestion :: StockId

stockDialogWarning :: StockId

stockDirectory :: StockId
stockDiscard :: StockId

stockDisconnect :: StockId

stockDnd :: StockId

stockDndMultiple :: StockId

stockEdit :: StockId

stockExecute :: StockId

stockFile :: StockId

stockFind :: StockId

stockFindAndRelpace :: StockId

stockFloppy :: StockId

stockFullscreen :: StockId

stockGotoBottom :: StockId

stockGotoFirst :: StockId

stockGotoLast :: StockId

stockGotoTop :: StockId

stockGoBack :: StockId

stockGoDown :: StockId

stockGoForward :: StockId

stockGoUp :: StockId

stockHarddisk :: StockId

stockHelp :: StockId

stockHome :: StockId

stockIndent :: StockId

stockIndex :: StockId

stockInfo :: StockId

stockItalic :: StockId

stockJumpTo :: StockId

stockJustifyCenter :: StockId

stockJustifyFill :: StockId

stockJustifyLeft :: StockId

stockJustifyRight :: StockId

stockLeaveFullscreen :: StockId

stockMediaForward :: StockId

stockMediaNext :: StockId

stockMediaPause :: StockId

stockMediaPlay :: StockId

stockMediaPrevious :: StockId

stockMediaRecord :: StockId

stockMediaRewind :: StockId

stockMediaStop :: StockId

stockMissingImage :: StockId

stockNetwork :: StockId

stockNew :: StockId

stockNo :: StockId

stockOk :: StockId

stockOpen :: StockId

stockOrientationLandscape :: StockId

stockOrientationReverseLandscape :: StockId

stockOrientationPortrait :: StockId

stockOrientationReversePortrait :: StockId

stockPageSetup :: StockId

stockPaste :: StockId

stockPreferences :: StockId

stockPrint :: StockId

stockPrintError :: StockId

stockPrintPaused :: StockId

stockPrintReport :: StockId

stockPrintWarning :: StockId

stockPrintPreview :: StockId

stockProperties :: StockId

stockQuit :: StockId

stockRedo :: StockId

stockRefresh :: StockId

stockRemove :: StockId

stockRevertToSaved :: StockId

stockSave :: StockId

stockSaveAs :: StockId

stockSelectAll :: StockId

stockSelectColor :: StockId

stockSelectFont :: StockId

stockSortAscending :: StockId

stockSortDescending :: StockId

stockSpellCheck :: StockId

stockStop :: StockId

stockStrikethrough :: StockId

stockUndelete :: StockId

stockUnderline :: StockId

stockUndo :: StockId

stockUnindent :: StockId

stockYes :: StockId

stockZoom100 :: StockId

stockZoomFit :: StockId

stockZoomIn :: StockId

stockZoomOut :: StockId
instance GHC.Internal.Foreign.Storable.Storable Graphics.UI.Gtk.General.StockItems.StockItem

-- | A ToolItem subclass that displays buttons
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.MenuComboToolbar.ToolButton
data ToolButton
class ToolItemClass o => ToolButtonClass o
castToToolButton :: GObjectClass obj => obj -> ToolButton
gTypeToolButton :: GType
toToolButton :: ToolButtonClass o => o -> ToolButton

-- | Creates a new ToolButton using iconWidget as icon and
--   label as label.
toolButtonNew :: (WidgetClass iconWidget, GlibString string) => Maybe iconWidget -> Maybe string -> IO ToolButton

-- | Creates a new ToolButton containing the image and text from a
--   stock item.
--   
--   It is an error if stockId is not a name of a stock item.
toolButtonNewFromStock :: StockId -> IO ToolButton

-- | Sets label as the label used for the tool button. The "label"
--   property only has an effect if not overridden by a
--   non-Nothing "label_widget" property. If both the
--   "label_widget" and "label" properties are Nothing, the label
--   is determined by the "stock_id" property. If the "stock_id" property
--   is also Nothing, button will not have a label.
toolButtonSetLabel :: (ToolButtonClass self, GlibString string) => self -> Maybe string -> IO ()

-- | Returns the label used by the tool button, or Nothing if the
--   tool button doesn't have a label. or uses a the label from a stock
--   item.
toolButtonGetLabel :: (ToolButtonClass self, GlibString string) => self -> IO (Maybe string)

-- | If set, an underline in the label property indicates that the next
--   character should be used for the mnemonic accelerator key in the
--   overflow menu. For example, if the label property is "_Open" and
--   useUnderline is True, the label on the tool button
--   will be "Open" and the item on the overflow menu will have an
--   underlined 'O'.
--   
--   Labels shown on tool buttons never have mnemonics on them; this
--   property only affects the menu item on the overflow menu.
toolButtonSetUseUnderline :: ToolButtonClass self => self -> Bool -> IO ()

-- | Returns whether underscores in the label property are used as
--   mnemonics on menu items on the overflow menu. See
--   toolButtonSetUseUnderline.
toolButtonGetUseUnderline :: ToolButtonClass self => self -> IO Bool

-- | Sets the name of the stock item. See toolButtonNewFromStock.
--   The stock_id property only has an effect if not overridden by
--   non-Nothing "label" and "icon_widget" properties.
toolButtonSetStockId :: ToolButtonClass self => self -> Maybe StockId -> IO ()

-- | Returns the name of the stock item. See toolButtonSetStockId.
toolButtonGetStockId :: ToolButtonClass self => self -> IO (Maybe StockId)

-- | Sets icon as the widget used as icon on button. If
--   iconWidget is Nothing the icon is determined by the
--   "stock_id" property. If the "stock_id" property is also
--   Nothing, the button will not have an icon.
toolButtonSetIconWidget :: (ToolButtonClass self, WidgetClass iconWidget) => self -> Maybe iconWidget -> IO ()

-- | Return the widget used as icon widget on button. See
--   toolButtonSetIconWidget.
toolButtonGetIconWidget :: ToolButtonClass self => self -> IO (Maybe Widget)

-- | Sets labelWidget as the widget that will be used as the label
--   for button. If labelWidget is Nothing the
--   "label" property is used as label. If "label" is also
--   Nothing, the label in the stock item determined by the
--   "stock_id" property is used as label. If "stock_id" is also
--   Nothing, button does not have a label.
toolButtonSetLabelWidget :: (ToolButtonClass self, WidgetClass labelWidget) => self -> Maybe labelWidget -> IO ()

-- | Returns the widget used as label on button. See
--   toolButtonSetLabelWidget.
toolButtonGetLabelWidget :: ToolButtonClass self => self -> IO (Maybe Widget)

-- | Sets the icon for the tool button from a named themed icon. See the
--   docs for IconTheme for more details. The "icon_name" property
--   only has an effect if not overridden by the "label", "icon_widget" and
--   "stock_id" properties.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
toolButtonSetIconName :: (ToolButtonClass self, GlibString string) => self -> string -> IO ()

-- | Returns the name of the themed icon for the tool button, see
--   toolButtonSetIconName.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
toolButtonGetIconName :: (ToolButtonClass self, GlibString string) => self -> IO string

-- | Text to show in the item.
--   
--   Default value: Nothing
toolButtonLabel :: (ToolButtonClass self, GlibString string) => Attr self (Maybe string)

-- | If set, an underline in the label property indicates that the next
--   character should be used for the mnemonic accelerator key in the
--   overflow menu.
--   
--   Default value: False
toolButtonUseUnderline :: ToolButtonClass self => Attr self Bool

-- | Widget to use as the item label.
toolButtonLabelWidget :: (ToolButtonClass self, WidgetClass labelWidget) => ReadWriteAttr self (Maybe Widget) (Maybe labelWidget)

-- | The stock icon displayed on the item.
--   
--   Default value: Nothing
toolButtonStockId :: ToolButtonClass self => ReadWriteAttr self (Maybe StockId) (Maybe StockId)

-- | The name of the themed icon displayed on the item. This property only
--   has an effect if not overridden by "label", "icon_widget" or
--   "stock_id" properties.
--   
--   Default value: ""
toolButtonIconName :: (ToolButtonClass self, GlibString string) => Attr self string

-- | Icon widget to display in the item.
toolButtonIconWidget :: (ToolButtonClass self, WidgetClass iconWidget) => ReadWriteAttr self (Maybe Widget) (Maybe iconWidget)

-- | This signal is emitted when the tool button is clicked with the mouse
--   or activated with the keyboard.
onToolButtonClicked :: ToolButtonClass self => self -> IO () -> IO (ConnectId self)

-- | This signal is emitted when the tool button is clicked with the mouse
--   or activated with the keyboard.
afterToolButtonClicked :: ToolButtonClass self => self -> IO () -> IO (ConnectId self)

-- | A ToolItem containing a toggle button
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.MenuComboToolbar.ToggleToolButton
data ToggleToolButton
class ToolButtonClass o => ToggleToolButtonClass o
castToToggleToolButton :: GObjectClass obj => obj -> ToggleToolButton
gTypeToggleToolButton :: GType
toToggleToolButton :: ToggleToolButtonClass o => o -> ToggleToolButton

-- | Returns a new ToggleToolButton
toggleToolButtonNew :: IO ToggleToolButton

-- | Creates a new ToggleToolButton containing the image and text
--   from a stock item.
--   
--   It is an error if stockId is not a name of a stock item.
toggleToolButtonNewFromStock :: StockId -> IO ToggleToolButton

-- | Sets the status of the toggle tool button. Set to True if you
--   want the ToggleButton to be 'pressed in', and False to
--   raise it. This action causes the toggled signal to be emitted.
toggleToolButtonSetActive :: ToggleToolButtonClass self => self -> Bool -> IO ()

-- | Queries a ToggleToolButton and returns its current state.
--   Returns True if the toggle button is pressed in and
--   False if it is raised.
toggleToolButtonGetActive :: ToggleToolButtonClass self => self -> IO Bool

-- | If the toggle tool button should be pressed in or not.
--   
--   Default value: False
toggleToolButtonActive :: ToggleToolButtonClass self => Attr self Bool

-- | Emitted whenever the toggle tool button changes state.
onToolButtonToggled :: ToggleToolButtonClass self => self -> IO () -> IO (ConnectId self)

-- | Emitted whenever the toggle tool button changes state.
afterToolButtonToggled :: ToggleToolButtonClass self => self -> IO () -> IO (ConnectId self)

-- | A toolbar item that contains a radio button
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.MenuComboToolbar.RadioToolButton
data RadioToolButton
class ToggleToolButtonClass o => RadioToolButtonClass o
castToRadioToolButton :: GObjectClass obj => obj -> RadioToolButton
gTypeRadioToolButton :: GType
toRadioToolButton :: RadioToolButtonClass o => o -> RadioToolButton

-- | Creates a new RadioToolButton, creating a new group.
radioToolButtonNew :: IO RadioToolButton

-- | Creates a new RadioToolButton, creating a new group. The new
--   RadioToolButton will contain an icon and label from the stock
--   item indicated by stockId.
radioToolButtonNewFromStock :: StockId -> IO RadioToolButton

-- | Creates a new RadioToolButton adding it to the same group as
--   the group to which groupMember belongs.
radioToolButtonNewFromWidget :: RadioToolButtonClass groupMember => groupMember -> IO RadioToolButton

-- | Creates a new RadioToolButton adding it to the same group as
--   the group to which groupMember belongs. The new
--   RadioToolButton will contain an icon and label from the stock
--   item indicated by stockId.
radioToolButtonNewWithStockFromWidget :: RadioToolButtonClass groupMember => groupMember -> StockId -> IO RadioToolButton

-- | Returns the radio button group button belongs to.
radioToolButtonGetGroup :: RadioToolButtonClass self => self -> IO [RadioToolButton]

-- | Adds button to group, removing it from the group it
--   belonged to before.
radioToolButtonSetGroup :: RadioToolButtonClass self => self -> RadioToolButton -> IO ()

-- | Sets a new group for a radio tool button.
radioToolButtonGroup :: RadioToolButtonClass self => ReadWriteAttr self [RadioToolButton] RadioToolButton

-- | A ToolItem containing a button with an additional dropdown menu
--   
--   
--   
- Module available since Gtk+ version 2.6
--   
module Graphics.UI.Gtk.MenuComboToolbar.MenuToolButton
data MenuToolButton
class ToolButtonClass o => MenuToolButtonClass o
castToMenuToolButton :: GObjectClass obj => obj -> MenuToolButton
gTypeMenuToolButton :: GType
toMenuToolButton :: MenuToolButtonClass o => o -> MenuToolButton

-- | Creates a new MenuToolButton using iconWidget as icon
--   and label as label.
menuToolButtonNew :: (WidgetClass iconWidget, GlibString string) => Maybe iconWidget -> Maybe string -> IO MenuToolButton

-- | Creates a new MenuToolButton. The new MenuToolButton
--   will contain an icon and label from the stock item indicated by
--   stockId.
menuToolButtonNewFromStock :: StockId -> IO MenuToolButton

-- | Sets the Menu that is popped up when the user clicks on the
--   arrow. If menu is Nothing, the arrow button becomes
--   insensitive.
menuToolButtonSetMenu :: (MenuToolButtonClass self, MenuClass menu) => self -> Maybe menu -> IO ()

-- | Gets the Menu associated with MenuToolButton.
menuToolButtonGetMenu :: MenuToolButtonClass self => self -> IO (Maybe Menu)

-- | Sets the tooltip text to be used as tooltip for the arrow button which
--   pops up the menu. See toolItemSetTooltip for setting a
--   tooltip on the whole MenuToolButton.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
menuToolButtonSetArrowTooltipText :: (MenuToolButtonClass self, GlibString string) => self -> string -> IO ()

-- | Sets the tooltip markup text to be used as tooltip for the arrow
--   button which pops up the menu. See toolItemSetTooltip for
--   setting a tooltip on the whole MenuToolButton.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
menuToolButtonSetArrowTooltipMarkup :: (MenuToolButtonClass self, GlibString markup) => self -> markup -> IO ()

-- | The dropdown menu.
menuToolButtonMenu :: (MenuToolButtonClass self, MenuClass menu) => ReadWriteAttr self (Maybe Menu) (Maybe menu)
onShowMenu :: MenuToolButtonClass self => self -> IO () -> IO (ConnectId self)
afterShowMenu :: MenuToolButtonClass self => self -> IO () -> IO (ConnectId self)

-- | A menu item with an icon
module Graphics.UI.Gtk.MenuComboToolbar.ImageMenuItem
data ImageMenuItem
class MenuItemClass o => ImageMenuItemClass o
castToImageMenuItem :: GObjectClass obj => obj -> ImageMenuItem
gTypeImageMenuItem :: GType
toImageMenuItem :: ImageMenuItemClass o => o -> ImageMenuItem

-- | Creates a new ImageMenuItem with an empty label.
imageMenuItemNew :: IO ImageMenuItem

-- | Creates a new ImageMenuItem containing the image and text from
--   a stock item.
imageMenuItemNewFromStock :: StockId -> IO ImageMenuItem

-- | Creates a new ImageMenuItem containing a label.
imageMenuItemNewWithLabel :: GlibString string => string -> IO ImageMenuItem

-- | Creates a new ImageMenuItem containing a label. The label will
--   be created using labelNewWithMnemonic, so underscores in
--   label indicate the mnemonic for the menu item.
imageMenuItemNewWithMnemonic :: GlibString string => string -> IO ImageMenuItem

-- | Sets the image of the image menu item to the given widget. Note that
--   it depends on the "show-menu-images" setting whether the image will be
--   displayed or not.
imageMenuItemSetImage :: (ImageMenuItemClass self, WidgetClass image) => self -> image -> IO ()

-- | Gets the widget that is currently set as the image. See
--   imageMenuItemSetImage.
imageMenuItemGetImage :: ImageMenuItemClass self => self -> IO (Maybe Widget)

-- | Child widget to appear next to the menu text.
imageMenuItemImage :: (ImageMenuItemClass self, WidgetClass image) => ReadWriteAttr self (Maybe Widget) image

-- | Manipulating stock icons
module Graphics.UI.Gtk.General.IconFactory
data IconFactory
class GObjectClass o => IconFactoryClass o
castToIconFactory :: GObjectClass obj => obj -> IconFactory
gTypeIconFactory :: GType
toIconFactory :: IconFactoryClass o => o -> IconFactory

-- | Create a new IconFactory.
--   
--   
--   
- An application should create a new IconFactory and add all
--   needed icons. By calling iconFactoryAddDefault these icons
--   become available as stock objects and can easily be displayed by
--   Image. Furthermore, a theme can override the icons defined by
--   the application.
--   
iconFactoryNew :: IO IconFactory

-- | Add an IconSet to an IconFactory.
--   
--   In order to use the new stock object, the factory as to be added to
--   the default factories by iconFactoryAddDefault.
iconFactoryAdd :: IconFactory -> StockId -> IconSet -> IO ()

-- | Add all entries of the IconFactory to the applications stock object
--   database.
iconFactoryAddDefault :: IconFactory -> IO ()

-- | Looks up the stock id in the icon factory, returning an icon set if
--   found, otherwise Nothing.
--   
--   For display to the user, you should use styleLookupIconSet on
--   the Style for the widget that will display the icon, instead of
--   using this function directly, so that themes are taken into account.
iconFactoryLookup :: IconFactory -> StockId -> IO (Maybe IconSet)

-- | Looks for an icon in the list of default icon factories.
--   
--   For display to the user, you should use styleLookupIconSet on
--   the Style for the widget that will display the icon, instead of
--   using this function directly, so that themes are taken into account.
iconFactoryLookupDefault :: StockId -> IO (Maybe IconSet)

-- | Remove an IconFactory from the application's stock database.
iconFactoryRemoveDefault :: IconFactory -> IO ()
data IconSet

-- | Create a new IconSet.
--   
--   
--   
- Each icon in an application is contained in an IconSet. The
--   IconSet contains several variants (IconSources) to
--   accommodate for different sizes and states.
--   
iconSetNew :: IO IconSet

-- | Creates a new IconSet with the given pixbuf as the
--   default/fallback source image. If you don't add any additional
--   IconSource to the icon set, all variants of the icon will be
--   created from the pixbuf, using scaling, pixelation, etc. as required
--   to adjust the icon size or make the icon look insensitive/prelighted.
iconSetNewFromPixbuf :: Pixbuf -> IO IconSet

-- | Add an IconSource (an Icon with attributes) to an
--   IconSet.
--   
--   
--   
- If an icon is looked up in the IconSet set the best
--   matching IconSource will be taken. It is therefore advisable to add a
--   default (wildcarded) icon, than can be used if no exact match is
--   found.
--   
iconSetAddSource :: IconSet -> IconSource -> IO ()
iconSetRenderIcon :: WidgetClass widget => IconSet -> TextDirection -> StateType -> IconSize -> widget -> IO Pixbuf

-- | Obtains a list of icon sizes this icon set can render.
iconSetGetSizes :: IconSet -> IO [IconSize]
data IconSource

-- | Create a new IconSource.
--   
--   
--   
- An IconSource is a single image that is usually added to an
--   IconSet. Next to the image it contains information about which state,
--   text direction and size it should apply.
--   
iconSourceNew :: IO IconSource
data TextDirection
TextDirNone :: TextDirection
TextDirLtr :: TextDirection
TextDirRtl :: TextDirection

-- | Retrieve the TextDirection of this IconSource.
--   
--   
--   
- Nothing is returned if no explicit direction was
--   set.
--   
iconSourceGetDirection :: IconSource -> IO (Maybe TextDirection)

-- | Mark this IconSource that it should only apply to the specified
--   TextDirection.
iconSourceSetDirection :: IconSource -> TextDirection -> IO ()

-- | Reset the specific TextDirection set with
--   iconSourceSetDirection.
iconSourceResetDirection :: IconSource -> IO ()

-- | Retrieve the filename this IconSource was based on.
--   
--   
--   
- Returns Nothing if the IconSource was generated by a
--   Pixbuf.
--   
iconSourceGetFilename :: GlibString string => IconSource -> IO (Maybe string)

-- | Load an icon picture from this filename.
iconSourceSetFilename :: GlibFilePath fp => IconSource -> fp -> IO ()

-- | Retrieves the source pixbuf, or Nothing if none is set.
iconSourceGetPixbuf :: IconSource -> IO (Maybe Pixbuf)

-- | Sets a pixbuf to use as a base image when creating icon variants for
--   IconSet.
iconSourceSetPixbuf :: IconSource -> Pixbuf -> IO ()

-- | Retrieve the IconSize of this IconSource.
--   
--   
--   
- Nothing is returned if no explicit size was set (i.e.
--   this IconSource matches all sizes).
--   
iconSourceGetSize :: IconSource -> IO (Maybe IconSize)

-- | Set this IconSource to a specific size.
iconSourceSetSize :: IconSource -> IconSize -> IO ()

-- | Reset the IconSize of this IconSource so that is matches
--   anything.
iconSourceResetSize :: IconSource -> IO ()

-- | Widget states
data StateType
StateNormal :: StateType
StateActive :: StateType
StatePrelight :: StateType
StateSelected :: StateType
StateInsensitive :: StateType
StateInconsistent :: StateType
StateFocused :: StateType

-- | Retrieve the StateType of this IconSource.
--   
--   
--   
- Nothing is returned if the IconSource matches all
--   states.
--   
iconSourceGetState :: IconSource -> IO (Maybe StateType)

-- | Mark this icon to be used only with this specific state.
iconSourceSetState :: IconSource -> StateType -> IO ()

-- | Reset the StateType of this IconSource so that is
--   matches anything.
iconSourceResetState :: IconSource -> IO ()

-- | The size of an icon in pixels.
--   
--   
--   
- This enumeration contains one case that is not exported and which
--   is used when new sizes are registered using
--   iconSizeRegister.
--   
- Applying show to this type will reveal the name of the size
--   that is registered with Gtk+.
--   
data IconSize

-- | Don't scale but use any of the available sizes.
IconSizeInvalid :: IconSize

-- | Icon size to use in next to menu items in drop-down menus.
IconSizeMenu :: IconSize

-- | Icon size for small toolbars.
IconSizeSmallToolbar :: IconSize

-- | Icon size for larger toolbars.
IconSizeLargeToolbar :: IconSize

-- | Icon size for icons in buttons, next to the label.
IconSizeButton :: IconSize

-- | Icon size for icons in drag-and-drop.
IconSizeDnd :: IconSize

-- | Icon size for icons next to dialog text.
IconSizeDialog :: IconSize
IconSizeUser :: Int -> IconSize

-- | Check if a given IconSize is registered.
--   
--   
--   
- Useful if your application expects a theme to install a set with a
--   specific size. You can test if this actually happens and use another
--   size if not.
--   
iconSizeCheck :: IconSize -> IO Bool

-- | Register a new IconSize.
iconSizeRegister :: GlibString string => string -> Int -> Int -> IO IconSize

-- | Register an additional alias for a name.
iconSizeRegisterAlias :: GlibString string => IconSize -> string -> IO ()

-- | Lookup an IconSize by name.
--   
--   
--   
- This fixed value iconSizeInvalid is returned if the name
--   was not found.
--   
iconSizeFromName :: GlibString string => string -> IO IconSize

-- | Lookup the name of an IconSize.
--   
--   
--   
- Returns Nothing if the name was not found.
--   
iconSizeGetName :: GlibString string => IconSize -> IO (Maybe string)
instance GHC.Internal.Show.Show Graphics.UI.Gtk.General.Structs.IconSize

-- | An action which can be toggled between two states
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.ActionMenuToolbar.ToggleAction
data ToggleAction
class ActionClass o => ToggleActionClass o
castToToggleAction :: GObjectClass obj => obj -> ToggleAction
gTypeToggleAction :: GType
toToggleAction :: ToggleActionClass o => o -> ToggleAction

-- | Creates a new ToggleAction object. To add the action to a
--   ActionGroup and set the accelerator for the action, call
--   actionGroupAddActionWithAccel.
toggleActionNew :: GlibString string => string -> string -> Maybe string -> Maybe StockId -> IO ToggleAction

-- | Emits the "toggled" signal on the toggle action.
toggleActionToggled :: ToggleActionClass self => self -> IO ()

-- | Sets the checked state on the toggle action.
toggleActionSetActive :: ToggleActionClass self => self -> Bool -> IO ()

-- | Returns the checked state of the toggle action.
toggleActionGetActive :: ToggleActionClass self => self -> IO Bool

-- | Sets whether the action should have proxies like a radio action.
toggleActionSetDrawAsRadio :: ToggleActionClass self => self -> Bool -> IO ()

-- | Returns whether the action should have proxies like a radio action.
toggleActionGetDrawAsRadio :: ToggleActionClass self => self -> IO Bool

-- | Whether the proxies for this action look like radio action proxies.
--   
--   Default value: False
toggleActionDrawAsRadio :: ToggleActionClass self => Attr self Bool

-- | If the toggle action should be active in or not.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
toggleActionActive :: ToggleActionClass self => Attr self Bool
actionToggled :: ToggleActionClass self => Signal self (IO ())

-- | An action of which only one in a group can be active
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.ActionMenuToolbar.RadioAction
data RadioAction
class ToggleActionClass o => RadioActionClass o
castToRadioAction :: GObjectClass obj => obj -> RadioAction
gTypeRadioAction :: GType
toRadioAction :: RadioActionClass o => o -> RadioAction

-- | Creates a new RadioAction object. To add the action to a
--   ActionGroup and set the accelerator for the action, call
--   actionGroupAddActionWithAccel.
radioActionNew :: GlibString string => string -> string -> Maybe string -> Maybe StockId -> Int -> IO RadioAction

-- | Returns the list representing the radio group for this object
radioActionGetGroup :: RadioActionClass self => self -> IO [RadioAction]

-- | Sets the radio group for the radio action object.
radioActionSetGroup :: (RadioActionClass self, RadioActionClass groupMember) => self -> groupMember -> IO ()

-- | Obtains the value property of the currently active member of the group
--   to which the action belongs.
radioActionGetCurrentValue :: RadioActionClass self => self -> IO Int

-- | The value is an arbitrary integer which can be used as a convenient
--   way to determine which action in the group is currently active in an
--   ::activate or ::changed signal handler. See
--   radioActionGetCurrentValue and RadioActionEntry for
--   convenient ways to get and set this property.
--   
--   Default value: 0
radioActionValueAttr :: RadioActionClass self => Attr self Int

-- | Sets a new group for a radio action.
radioActionGroup :: RadioActionClass self => ReadWriteAttr self [RadioAction] RadioAction

-- | The value property of the currently active member of the group to
--   which this action belongs.
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.10
--   
radioActionCurrentValue :: RadioActionClass self => Attr self Int

-- | The radioActionChanged signal is emitted on every member of a
--   radio group when the active member is changed. The signal gets emitted
--   after the actionActivated signals for the previous and
--   current active members.
radioActionChanged :: RadioActionClass self => Signal self (RadioAction -> IO ())

-- | Functions for handling inter-process communication via selections.
module Graphics.UI.Gtk.General.Selection

-- | A number that the application can use to differentiate between
--   different data types or application states.
type InfoId = CUInt

-- | An atom is an index into a global string table. It is possible to
--   associate binary data with each entry. This facility is used for
--   inter-application data exchange such as properties of
--   DrawWindow (using PropertyTag), Clipboard or
--   Drag (SelectionId and TargetId).
data Atom

-- | A tag that uniquely identifies a target. A target describes the format
--   of the underlying data source, for instance, it might be a string. A
--   single selection may support multiple targets: suppose a new target is
--   created for the Haskell data type Double. In this case, the
--   value of the floating point number could also be offered as a string.
type TargetTag = Atom

-- | A tag that uniquely identifies a selection. A selection denotes the
--   exchange mechanism that is being used, for instance, the clipboard is
--   the most common exchange mechanism. For drag and drop applications, a
--   new selection tag is usually created for each different kind of data
--   that is being exchanged.
type SelectionTag = Atom

-- | A tag that defines the encoding of the binary data. For instance, a
--   string might be encoded as UTF-8 or in a different locale. Each
--   encoding would use the same TargetTag but a different
--   SelectionTypeTag.
type SelectionTypeTag = Atom

-- | A TargetList contains information about all possible formats
--   (represented as TargetTag) that a widget can create or receive
--   in form of a selection.
data TargetList

-- | A monad providing access to selection data.
type SelectionDataM a = ReaderT Ptr () IO a

-- | 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.
--   
data TargetFlags
TargetSameApp :: TargetFlags
TargetSameWidget :: TargetFlags
TargetOtherApp :: TargetFlags
TargetOtherWidget :: TargetFlags

-- | If this target is provided by a selection, then the data is a string.
targetString :: TargetTag

-- | The type indicating that the associated data is itself a (list of)
--   Atoms.
selectionTypeAtom :: SelectionTypeTag

-- | The type indicating that the associated data consists of integers.
selectionTypeInteger :: SelectionTypeTag

-- | The type indicating that the associated data is a string without
--   further information on its encoding.
selectionTypeString :: SelectionTypeTag

-- | Create a new TargetTag, SelectionTag,
--   SelectionTypeTag or PropertyTag. Note that creating two
--   target tags with the same name will create the same tag, in
--   particular, the tag will be the same across different applications.
--   Note that the name of an Atom can be printed by show
--   though comparing the atom is merely an integer comparison.
atomNew :: GlibString string => string -> IO Atom

-- | Create a new, empty TargetList.
targetListNew :: IO TargetList

-- | Append another target to the given TargetList.
--   
--   
--   
- Note that the TargetFlags are only used for drag and drop,
--   not in normal selection handling.
--   
targetListAdd :: TargetList -> TargetTag -> [TargetFlags] -> InfoId -> IO ()

-- | Append all text targets supported by the selection mechanism to the
--   target list. All targets are added with the same InfoId.
--   
--   
--   
- Since Gtk 2.6.
--   
targetListAddTextTargets :: TargetList -> InfoId -> IO ()

-- | Append all image targets supported by the selection mechanism to the
--   target list. All targets are added with the same InfoId. If the
--   boolean flag is set, only targets will be added which Gtk+ knows how
--   to convert into a Pixbuf.
--   
--   
--   
- Since Gtk 2.6.
--   
targetListAddImageTargets :: TargetList -> InfoId -> Bool -> IO ()

-- | Append all URI (universal resource indicator, fomerly URL) targets
--   supported by the selection mechanism to the target list. All targets
--   are added with the same InfoId.
--   
--   
--   
- Since Gtk 2.6.
--   
targetListAddUriTargets :: TargetList -> InfoId -> IO ()

-- | Append all rich text targets registered with
--   textBufferRegisterSerializeFormat to the target list. All
--   targets are added with the same InfoId. If the boolean flag is
--   True then deserializable rich text formats will be added,
--   serializable formats otherwise.
--   
--   
--   
- Since Gtk 2.10.
--   
targetListAddRichTextTargets :: TextBufferClass tb => TargetList -> InfoId -> Bool -> tb -> IO ()

-- | Remove a target from a target list.
targetListRemove :: TargetList -> TargetTag -> IO ()

-- | Appends a specified target to the list of supported targets for a
--   given widget and selection.
selectionAddTarget :: WidgetClass widget => widget -> SelectionTag -> TargetTag -> InfoId -> IO ()

-- | Remove all targets registered for the given selection for the widget.
selectionClearTargets :: WidgetClass widget => widget -> SelectionTag -> IO ()

-- | Claims ownership of a given selection for a particular widget, or, if
--   widget is Nothing, release ownership of the selection.
selectionOwnerSet :: WidgetClass widget => Maybe widget -> SelectionTag -> TimeStamp -> IO Bool

-- | Set the ownership of a given selection and display.
selectionOwnerSetForDisplay :: WidgetClass widget => Display -> Maybe widget -> SelectionTag -> TimeStamp -> IO Bool

-- | Removes all handlers and unsets ownership of all selections for a
--   widget. Called when widget is being destroyed. This function will not
--   generally be called by applications.
selectionRemoveAll :: WidgetClass widget => widget -> IO ()

-- | Stores new data in the SelectionDataM monad. The stored data
--   may only be an array of integer types that are no larger than 32 bits.
selectionDataSet :: (Integral a, Storable a) => SelectionTypeTag -> [a] -> SelectionDataM ()

-- | Check if the currently stored data is valid.
--   
--   
--   
- If this function returns False, no data is set in this
--   selection and selectionDataGet will return Nothing
--   no matter what type is requested.
--   
selectionDataIsValid :: SelectionDataM Bool

-- | Sets the contents of the selection from a string. The string is
--   converted to the form determined by the allowed targets of the
--   selection.
--   
--   
--   
- Returns True if setting the text was successful.
--   
selectionDataSetText :: GlibString string => string -> SelectionDataM Bool

-- | Gets the contents of the selection data as a string.
selectionDataGetText :: GlibString string => SelectionDataM (Maybe string)

-- | Sets the contents of the selection from a Pixbuf. The pixbuf is
--   converted to the form determined by the allowed targets of the
--   selection.
--   
--   
--   
- Returns True if setting the Pixbuf was successful.
--   Since Gtk 2.6.
--   
selectionDataSetPixbuf :: Pixbuf -> SelectionDataM Bool

-- | Gets the contents of the selection data as a Pixbuf.
--   
--   
--   
- Since Gtk 2.6.
--   
selectionDataGetPixbuf :: SelectionDataM (Maybe Pixbuf)

-- | Sets the contents of the selection from a list of URIs. The string is
--   converted to the form determined by the possible targets of the
--   selection.
--   
--   
--   
- Returns True if setting the URIs was successful. Since
--   Gtk 2.6.
--   
selectionDataSetURIs :: GlibString string => [string] -> SelectionDataM Bool

-- | Gets the contents of the selection data as list of URIs. Returns
--   Nothing if the selection did not contain any URIs.
--   
--   
--   
- Since Gtk 2.6.
--   
selectionDataGetURIs :: GlibString string => SelectionDataM (Maybe [string])

-- | Given a SelectionDataM holding a list of targets, determines if
--   any of the targets in targets can be used to provide a Pixbuf.
--   
--   
--   
- Since Gtk 2.6
--   
selectionDataTargetsIncludeImage :: Bool -> SelectionDataM Bool

-- | Retrieve the currently set TargetTag in the selection.
selectionDataGetTarget :: SelectionDataM TargetTag

-- | Queries the content type of the selection data as a list of targets.
--   Whenever the application is asked whether certain targets are
--   acceptable, it is handed a selection that contains a list of
--   TargetTags as payload. A similar result could be achieved using
--   'selectionDataGet selectionTypeAtom'.
selectionDataGetTargets :: SelectionDataM [TargetTag]

-- | Given a SelectionDataM holding a list of targets, determines if
--   any of the targets in targets can be used to provide text.
selectionDataTargetsIncludeText :: SelectionDataM Bool

-- | Given a SelectionDataM holding a list of targets, determines if
--   any of the targets in targets can be used to provide URIs.
--   
--   
--   
- Since Gtk 2.10
--   
selectionDataTargetsIncludeUri :: SelectionDataM Bool

-- | Given a SelectionDataM holding a list of targets, check if,
--   well, dunno really. FIXME: what does the TextBuffer do?
--   
--   
--   
- Since Gtk 2.10
--   
selectionDataTargetsIncludeRichText :: TextBufferClass tb => tb -> SelectionDataM Bool

-- | Emitted in order to ask the application for selection data. Within the
--   handler the function selectionDataSet or one of its derivatives
--   should be called.
selectionGet :: WidgetClass self => Signal self (InfoId -> TimeStamp -> SelectionDataM ())

-- | Pass the supplied selection data to the application. The application
--   is expected to read the data using selectionDataGet or one of
--   its derivatives.
selectionReceived :: WidgetClass self => Signal self (TimeStamp -> SelectionDataM ())

-- | Storing data on clipboards
module Graphics.UI.Gtk.General.Clipboard
data Clipboard
class GObjectClass o => ClipboardClass o
castToClipboard :: GObjectClass obj => obj -> Clipboard
gTypeClipboard :: GType
toClipboard :: ClipboardClass o => o -> Clipboard

-- | The primary selection (the currently highlighted text in X11 that can
--   in many applications be pasted using the middle button).
selectionPrimary :: SelectionTag

-- | The secondary selection. Rarely used.
selectionSecondary :: SelectionTag

-- | The modern clipboard that is filled by copy or cut commands.
selectionClipboard :: SelectionTag

-- | Returns the clipboard object for the given selection. See
--   clipboardGetForDisplay for complete details.
clipboardGet :: SelectionTag -> IO Clipboard

-- | Returns the clipboard object for the given selection. Cut/copy/paste
--   menu items and keyboard shortcuts should use the default clipboard,
--   returned by passing selectionClipboard for selection.
--   The currently-selected object or text should be provided on the
--   clipboard identified by selectionPrimary. Cut/copy/paste menu
--   items conceptually copy the contents of the selectionPrimary
--   clipboard to the default clipboard, i.e. they copy the selection to
--   what the user sees as the clipboard.
--   
--   See <http: discussion of the selectionClipboard vs.
--   selectionPrimary selections under the X window system. On Win32
--   the selectionPrimary clipboard is essentially ignored.
--   
--   It's possible to have arbitrary named clipboards; if you do invent new
--   clipboards, you should prefix the selection name with an underscore
--   (because the ICCCM requires that nonstandard atoms are
--   underscore-prefixed), and namespace it as well. For example, if your
--   application called "Foo" has a special-purpose clipboard, you could
--   create it using atomNew "_FOO_SPECIAL_CLIPBOARD".
--   
--   
--   
- Available since Gtk+ version 2.2
--   
clipboardGetForDisplay :: Display -> SelectionTag -> IO Clipboard

-- | Gets the Display associated with clipboard
--   
--   
--   
- Available since Gtk+ version 2.2
--   
clipboardGetDisplay :: ClipboardClass self => self -> IO Display

-- | Virtually sets the contents of the specified clipboard by providing a
--   list of supported formats for the clipboard data and a function to
--   call to get the actual data when it is requested.
clipboardSetWithData :: ClipboardClass self => self -> [(TargetTag, InfoId)] -> (InfoId -> SelectionDataM ()) -> IO () -> IO Bool

-- | Sets the contents of the clipboard to the given UTF-8 string. Gtk+
--   will make a copy of the text and take responsibility for responding
--   for requests for the text, and for converting the text into the
--   requested format.
clipboardSetText :: (ClipboardClass self, GlibString string) => self -> string -> IO ()

-- | Sets the contents of the clipboard to the given Pixbuf. Gtk+
--   will take responsibility for responding for requests for the image,
--   and for converting the image into the requested format.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
clipboardSetImage :: ClipboardClass self => self -> Pixbuf -> IO ()

-- | Requests the contents of clipboard as the given target. When the
--   results of the result are later received the supplied callback will be
--   called.
clipboardRequestContents :: ClipboardClass self => self -> TargetTag -> SelectionDataM () -> IO ()

-- | Requests the contents of the clipboard as text. When the text is later
--   received, it will be converted if it is stored in a different
--   character set if necessary, and callback will be called.
--   
--   The text parameter to callback will contain the
--   resulting text if the request succeeded, or Nothing if it
--   failed. This could happen for various reasons, in particular if the
--   clipboard was empty or if the contents of the clipboard could not be
--   converted into text form.
clipboardRequestText :: (ClipboardClass self, GlibString string) => self -> (Maybe string -> IO ()) -> IO ()

-- | Requests the contents of the clipboard as image. When the image is
--   later received, it will be converted to a Pixbuf, and
--   callback will be called.
--   
--   The pixbuf parameter to callback will contain the
--   resulting Pixbuf if the request succeeded, or Nothing
--   if it failed. This could happen for various reasons, in particular if
--   the clipboard was empty or if the contents of the clipboard could not
--   be converted into an image.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
clipboardRequestImage :: ClipboardClass self => self -> (Maybe Pixbuf -> IO ()) -> IO ()

-- | Requests the contents of the clipboard as list of supported targets.
--   When the list is later received, callback will be called.
--   
--   The targets parameter to callback will contain the
--   resulting targets if the request succeeded, or Nothing if it
--   failed.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
clipboardRequestTargets :: ClipboardClass self => self -> (Maybe [TargetTag] -> IO ()) -> IO ()

-- | Requests the contents of the clipboard as rich text. When the rich
--   text is later received, callback will be called.
--   
--   The text parameter to callback will contain the
--   resulting rich text if the request succeeded, or Nothing if
--   it failed. This function can fail for various reasons, in particular
--   if the clipboard was empty or if the contents of the clipboard could
--   not be converted into rich text form.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
clipboardRequestRichText :: (ClipboardClass self, TextBufferClass buffer, GlibString string) => self -> buffer -> (Maybe (TargetTag, string) -> IO ()) -> IO ()

-- | Hints that the clipboard data should be stored somewhere when the
--   application exits or when clipboardStore is called.
--   
--   This value is reset when the clipboard owner changes. Where the
--   clipboard data is stored is platform dependent, see
--   displayStoreClipboard for more information.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
clipboardSetCanStore :: ClipboardClass self => self -> Maybe [(TargetTag, InfoId)] -> IO ()

-- | Stores the current clipboard data somewhere so that it will stay
--   around after the application has quit.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
clipboardStore :: ClipboardClass self => self -> IO ()

-- | Drag-and-Drop functionality.
--   
--   GTK+ has a rich set of functions for doing inter-process communication
--   via the drag-and-drop metaphor. GTK+ can do drag-and-drop (DND) via
--   multiple protocols. The currently supported protocols are the Xdnd and
--   Motif protocols. As well as the functions listed here, applications
--   may need to use some facilities provided for Selections.
--   Also, the Drag and Drop API makes use of signals in the Widget
--   class.
module Graphics.UI.Gtk.General.Drag
data DragContext
class GObjectClass o => DragContextClass o
data DragAction
ActionDefault :: DragAction
ActionCopy :: DragAction
ActionMove :: DragAction
ActionLink :: DragAction
ActionPrivate :: DragAction
ActionAsk :: DragAction

-- | 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 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 dragGetData
--   on behalf of the widget. Whether or not the drop is successful, GTK+
--   will call dragFinish. If the action was a move, then if the
--   drag was successful, then True will be passed for the delete
--   parameter to dragFinish
--   
- DestDefaultAll: If set, specifies that all default actions
--   should be taken.
--   
data DestDefaults
DestDefaultMotion :: DestDefaults
DestDefaultHighlight :: DestDefaults
DestDefaultDrop :: DestDefaults
DestDefaultAll :: DestDefaults

-- | Used in DragContext to indicate the protocol according to which
--   DND is done.
data DragProtocol
DragProtoNone :: DragProtocol
DragProtoMotif :: DragProtocol
DragProtoXdnd :: DragProtocol
DragProtoRootwin :: DragProtocol
DragProtoWin32Dropfiles :: DragProtocol
DragProtoOle2 :: DragProtocol
DragProtoLocal :: DragProtocol
DragProtoWayland :: DragProtocol
data DragResult
DragResultSuccess :: DragResult
DragResultNoTarget :: DragResult
DragResultUserCancelled :: DragResult
DragResultTimeoutExpired :: DragResult
DragResultGrabBroken :: DragResult
DragResultError :: DragResult
castToDragContext :: GObjectClass obj => obj -> DragContext
gTypeDragContext :: GType
toDragContext :: DragContextClass o => o -> DragContext

-- | Sets a widget as a potential drop destination.
--   
--   
--   
- The DestDefaults flags specify what actions Gtk should take
--   on behalf of a widget for drops onto that widget. The given actions
--   and any targets set through dragDestSetTargetList only are used
--   if DestDefaultMotion or DestDefaultDrop are given.
--   
- Things become more complicated when you try to preview the dragged
--   data, as described in the documentation for dragMotion. The
--   default behaviors described by flags make some assumptions, that can
--   conflict with your own signal handlers. For instance
--   DestDefaultDrop causes invocations of dragStatus in the
--   handler of dragMotion, and invocations of dragFinish in
--   dragDataReceived. Especially the latter is dramatic, when your
--   own dragMotion handler calls dragGetData to inspect the
--   dragged data.
--   
dragDestSet :: WidgetClass widget => widget -> [DestDefaults] -> [DragAction] -> IO ()

-- | Sets this widget as a proxy for drops to another window.
dragDestSetProxy :: WidgetClass widget => widget -> DrawWindow -> DragProtocol -> Bool -> IO ()

-- | Clears information about a drop destination set with
--   dragDestSet. The widget will no longer receive notification of
--   drags.
dragDestUnset :: WidgetClass widget => widget -> IO ()

-- | Looks for a match between the targets mentioned in the context and the
--   TargetList, returning the first matching target, otherwise
--   returning Nothing. If Nothing is given as target
--   list, use the value from destGetTargetList. Some widgets may
--   have different valid targets for different parts of the widget; in
--   that case, they will have to implement a dragMotion handler
--   that passes the correct target list to this function.
dragDestFindTarget :: (WidgetClass widget, DragContextClass context) => widget -> context -> Maybe TargetList -> IO (Maybe TargetTag)

-- | Returns the list of targets this widget can accept for drag-and-drop.
dragDestGetTargetList :: WidgetClass widget => widget -> IO (Maybe TargetList)

-- | Sets the target types that this widget can accept from drag-and-drop.
--   The widget must first be made into a drag destination with
--   dragDestSet.
dragDestSetTargetList :: WidgetClass widget => widget -> TargetList -> IO ()

-- | Add the text targets supported by the selection mechanism to the
--   target list of the drag source. The targets are added with an
--   InfoId of 0. If you need another value, use
--   targetListAddTextTargets and dragSourceSetTargetList.
dragDestAddTextTargets :: WidgetClass widget => widget -> IO ()

-- | Add image targets supported by the selection mechanism to the target
--   list of the drag source. The targets are added with an InfoId
--   of 0. If you need another value, use targetListAddTextTargets
--   and dragSourceSetTargetList.
dragDestAddImageTargets :: WidgetClass widget => widget -> IO ()

-- | Add URI targets supported by the selection mechanism to the target
--   list of the drag source. The targets are added with an InfoId
--   of 0. If you need another value, use targetListAddTextTargets
--   and dragSourceSetTargetList.
dragDestAddURITargets :: WidgetClass widget => widget -> IO ()

-- | Visualises the actions offered by the drag source.
--   
--   
--   
- This function is called by the drag destination in response to
--   dragMotion called by the drag source. The passed-in action is
--   indicated where Nothing will show that the drop is not
--   allowed.
--   
dragStatus :: DragContext -> Maybe DragAction -> TimeStamp -> IO ()

-- | Informs the drag source that the drop is finished, and that the data
--   of the drag will no longer be required.
dragFinish :: DragContextClass context => context -> Bool -> Bool -> TimeStamp -> IO ()

-- | Gets the data associated with a drag. When the data is received or the
--   retrieval fails, GTK+ will emit a dragDataReceived signal.
--   Failure of the retrieval is indicated by passing Nothing in
--   the selectionData signal. However, when dragGetData is
--   called implicitly because the DestDefaultDrop was set, then the
--   widget will not receive notification of failed drops.
dragGetData :: (WidgetClass widget, DragContextClass context) => widget -> context -> TargetTag -> TimeStamp -> IO ()

-- | Queries he source widget for a drag.
--   
--   
--   
- If the drag is occurring within a single application, a pointer to
--   the source widget is returned. Otherwise the return value is
--   Nothing.
--   
dragGetSourceWidget :: DragContextClass context => context -> IO (Maybe Widget)

-- | Draws a highlight around a widget. This will attach handlers to the
--   expose handlers, so the highlight will continue to be displayed until
--   dragUnhighlight is called.
dragHighlight :: WidgetClass widget => widget -> IO ()

-- | Removes a highlight set by dragHighlight from a widget.
dragUnhighlight :: WidgetClass widget => widget -> IO ()

-- | Changes the icon for a drag to a given widget. GTK+ will not destroy
--   the widget, so if you don't want it to persist, you should connect to
--   the dragEnd signal and destroy it yourself.
--   
--   
--   
- The function must be called with the context of the source
--   side.
--   
dragSetIconWidget :: (DragContextClass context, WidgetClass widget) => context -> widget -> Int -> Int -> IO ()

-- | Set the given Pixbuf as the icon for the given drag.
dragSetIconPixbuf :: DragContextClass context => context -> Pixbuf -> Int -> Int -> IO ()

-- | Sets the icon for a given drag from a stock ID.
dragSetIconStock :: DragContextClass context => context -> StockId -> Int -> Int -> IO ()

-- | Sets the icon for a given drag from a named themed icon. See the docs
--   for IconTheme for more details. Note that the size of the icon
--   depends on the icon theme (the icon is loaded at the DND size), thus x
--   and y hot-spots have to be used with care. Since Gtk 2.8.
dragSetIconName :: (DragContextClass context, GlibString string) => context -> string -> Int -> Int -> IO ()

-- | Sets the icon for a particular drag to the default icon. This function
--   must be called with a context for the source side of a drag
dragSetIconDefault :: DragContextClass context => context -> IO ()

-- | Checks to see if a mouse drag starting at (startX, startY)
--   and ending at (currentX, currentY) has passed the GTK+ drag
--   threshold, and thus should trigger the beginning of a drag-and-drop
--   operation.
dragCheckThreshold :: WidgetClass widget => widget -> Int -> Int -> Int -> Int -> IO Bool

-- | Sets up a widget so that GTK+ will start a drag operation when the
--   user clicks and drags on the widget. The widget must have a window.
--   Note that a set of possible targets have to be set for a drag to be
--   successful.
dragSourceSet :: WidgetClass widget => widget -> [Modifier] -> [DragAction] -> IO ()

-- | Sets the icon that will be used for drags from a particular widget
--   from a Pixbuf.
dragSourceSetIconPixbuf :: WidgetClass widget => widget -> Pixbuf -> IO ()

-- | Sets the icon that will be used for drags from a particular source to
--   a stock icon.
dragSourceSetIconStock :: WidgetClass widget => widget -> StockId -> IO ()

-- | Sets the icon that will be used for drags from a particular source to
--   a themed icon. See the docs for IconTheme for more details.
dragSourceSetIconName :: (WidgetClass widget, GlibString string) => widget -> string -> IO ()

-- | Undoes the effects of dragSourceSet.
dragSourceUnset :: WidgetClass widget => widget -> IO ()

-- | Changes the target types that this widget offers for drag-and-drop.
--   The widget must first be made into a drag source with
--   dragSourceSet.
--   
--   
--   
- Since Gtk 2.4.
--   
dragSourceSetTargetList :: WidgetClass widget => widget -> TargetList -> IO ()

-- | Gets the list of targets this widget can provide for drag-and-drop.
--   
--   
--   
- Since Gtk 2.4.
--   
dragSourceGetTargetList :: WidgetClass widget => widget -> IO (Maybe TargetList)

-- | Add the text targets supported by Selection to the target list
--   of the drag source. The targets are added with info = 0. If
--   you need another value, use targetListAddTextTargets and
--   dragSourceSetTargetList.
--   
--   
--   
- Since Gtk 2.6.
--   
dragSourceAddTextTargets :: WidgetClass widget => widget -> IO ()

-- | Add the image targets supported by Selection to the target
--   list of the drag source. The targets are added with info = 0.
--   If you need another value, use targetListAddTextTargets and
--   dragSourceSetTargetList.
--   
--   
--   
- Since Gtk 2.6.
--   
dragSourceAddImageTargets :: WidgetClass widget => widget -> IO ()

-- | Add the URI targets supported by Selection to the target list
--   of the drag source. The targets are added with info = 0. If
--   you need another value, use targetListAddTextTargets and
--   dragSourceSetTargetList.
--   
--   
--   
- Since Gtk 2.6.
--   
dragSourceAddURITargets :: WidgetClass widget => widget -> IO ()

-- | The dragBegin signal is emitted on the drag source when a drag
--   is started. A typical reason to connect to this signal is to set up a
--   custom drag icon with dragSourceSetIcon.
dragBegin :: WidgetClass self => Signal self (DragContext -> IO ())

-- | The dragDataDelete signal is emitted on the drag source when a
--   drag with the action ActionMove is successfully completed. The
--   signal handler is responsible for deleting the data that has been
--   dropped. What "delete" means, depends on the context of the drag
--   operation.
dragDataDelete :: WidgetClass self => Signal self (DragContext -> IO ())

-- | The dragDataGet signal is emitted on the drag source when the
--   drop site requests the data which is dragged. It is the responsibility
--   of the signal handler to set the selection data in the format which is
--   indicated by InfoId. See selectionDataSet and
--   selectionDataSetText.
dragDataGet :: WidgetClass self => Signal self (DragContext -> InfoId -> TimeStamp -> SelectionDataM ())

-- | The dragDataReceived signal is emitted on the drop site when
--   the dragged data has been received. If the data was received in order
--   to determine whether the drop will be accepted, the handler is
--   expected to call dragStatus and not finish the drag. If
--   the data was received in response to a dragDrop signal (and
--   this is the last target to be received), the handler for this signal
--   is expected to process the received data and then call
--   dragFinish, setting the success parameter depending on
--   whether the data was processed successfully.
--   
--   The handler may inspect and modify dragContextAction before
--   calling dragFinish, e.g. to implement ActionAsk as shown
--   in the following example:
dragDataReceived :: WidgetClass self => Signal self (DragContext -> Point -> InfoId -> TimeStamp -> SelectionDataM ())

-- | The dragDrop signal is emitted on the drop site when the user
--   drops the data onto the widget. The signal handler must determine
--   whether the cursor position is in a drop zone or not. If it is not in
--   a drop zone, it returns False and no further processing is
--   necessary. Otherwise, the handler returns True. In this case,
--   the handler must ensure that dragFinish is called to let the
--   source know that the drop is done. The call to dragFinish can
--   be done either directly or in a dragDataReceived handler which
--   gets triggered by calling dropGetData to receive the data for
--   one or more of the supported targets.
dragDrop :: WidgetClass self => Signal self (DragContext -> Point -> TimeStamp -> IO Bool)

-- | The dragEnd signal is emitted on the drag source when a drag is
--   finished. A typical reason to connect to this signal is to undo things
--   done in dragBegin.
dragEnd :: WidgetClass self => Signal self (DragContext -> IO ())

-- | The dragFailed signal is emitted on the drag source when a drag
--   has failed. The signal handler may hook custom code to handle a failed
--   DND operation based on the type of error, it returns True is
--   the failure has been already handled (not showing the default "drag
--   operation failed" animation), otherwise it returns False.
--   
--   
--   
- Available since Gtk+ 2.12.0.
--   
dragFailed :: WidgetClass self => Signal self (DragContext -> DragResult -> IO Bool)

-- | The dragLeave signal is emitted on the drop site when the
--   cursor leaves the widget. A typical reason to connect to this signal
--   is to undo things done in dragMotion, e.g. undo highlighting
--   with dragUnhighlight
dragLeave :: WidgetClass self => Signal self (DragContext -> TimeStamp -> IO ())

-- | The dragMotion signal is emitted on the drop site when the user
--   moves the cursor over the widget during a drag. The signal handler
--   must determine whether the cursor position is in a drop zone or not.
--   If it is not in a drop zone, it returns False and no further
--   processing is necessary. Otherwise, the handler returns True.
--   In this case, the handler is responsible for providing the necessary
--   information for displaying feedback to the user, by calling
--   dragStatus. If the decision whether the drop will be accepted
--   or rejected can't be made based solely on the cursor position and the
--   type of the data, the handler may inspect the dragged data by calling
--   dragGetData and defer the dragStatus call to the
--   dragDataReceived handler.
--   
--   Note that there is no dragEnter signal. The drag receiver has
--   to keep track of whether he has received any dragMotion signals
--   since the last dragLeave and if not, treat the
--   dragMotion signal as an "enter" signal. Upon an "enter", the
--   handler will typically highlight the drop site with
--   dragHighlight.
dragMotion :: WidgetClass self => Signal self (DragContext -> Point -> TimeStamp -> IO Bool)

-- | Gdk general functions.
module Graphics.UI.Gtk.Gdk.Gdk

-- | Flushes the X output buffer and waits until all requests have been
--   processed by the server. This is rarely needed by applications.
flush :: IO ()

-- | Returns the width of the default screen in pixels.
screenWidth :: IO Int

-- | Returns the height of the default screen in pixels.
screenHeight :: IO Int

-- | Returns the width of the default screen in millimeters. Note that on
--   many X servers this value will not be correct.
screenWidthMM :: IO Int

-- | Returns the height of the default screen in millimeters. Note that on
--   many X servers this value will not be correct.
screenHeightMM :: IO Int
data GrabStatus
GrabSuccess :: GrabStatus
GrabAlreadyGrabbed :: GrabStatus
GrabInvalidTime :: GrabStatus
GrabNotViewable :: GrabStatus
GrabFrozen :: GrabStatus
GrabFailed :: GrabStatus

-- | Grabs the pointer (usually a mouse) so that all events are passed to
--   this application until the pointer is ungrabbed with
--   pointerUngrab, or the grab window becomes unviewable. This
--   overrides any previous pointer grab by this client.
--   
--   Pointer grabs are used for operations which need complete control over
--   mouse events, even if the mouse leaves the application. For example in
--   GTK+ it is used for Drag and Drop, for dragging the handle in the
--   GtkHPaned and GtkVPaned widgets, and for resizing columns in GtkCList
--   widgets.
--   
--   Note that if the event mask of an X window has selected both button
--   press and button release events, then a button press event will cause
--   an automatic pointer grab until the button is released. X does this
--   automatically since most applications expect to receive button press
--   and release events in pairs. It is equivalent to a pointer grab on the
--   window with owner_events set to True.
--   
--   If you set up anything at the time you take the grab that needs to be
--   cleaned up when the grab ends, you should handle the
--   GdkEventGrabBroken events that are emitted when the grab ends
--   unvoluntarily.
pointerGrab :: (DrawWindowClass window, DrawWindowClass confine_to) => window -> Bool -> [EventMask] -> Maybe confine_to -> Maybe Cursor -> TimeStamp -> IO GrabStatus

-- | Ungrabs the pointer on the default display, if it is grabbed by this
--   application.
pointerUngrab :: TimeStamp -> IO ()

-- | Returns True if the pointer on the default display is
--   currently grabbed by this application.
--   
--   Note that this does not take the inmplicit pointer grab on button
--   presses into account.
pointerIsGrabbed :: IO Bool

-- | Grabs the keyboard so that all events are passed to this application
--   until the keyboard is ungrabbed with keyboardUngrab. This
--   overrides any previous keyboard grab by this client.
--   
--   If you set up anything at the time you take the grab that needs to be
--   cleaned up when the grab ends, you should handle the
--   GdkEventGrabBroken events that are emitted when the grab ends
--   unvoluntarily.
keyboardGrab :: DrawWindowClass window => window -> Bool -> TimeStamp -> IO GrabStatus

-- | Ungrabs the keyboard on the default display, if it is grabbed by this
--   application.
keyboardUngrab :: TimeStamp -> IO ()

-- | Emits a short beep.
beep :: IO ()
data RGBA
RGBA :: Double -> Double -> Double -> Double -> RGBA

-- | Types and accessors to examine information in events.
module Graphics.UI.Gtk.Gdk.EventM
class HasCoordinates a
class HasRootCoordinates a
class HasModifier a
class HasTime a

-- | A monad providing access to data in an event.
type EventM t = ReaderT Ptr t IO

-- | A tag for events that do not carry any event-specific information.
data EAny

-- | A tag for key events.
data EKey

-- | A tag for Button events.
data EButton

-- | A tag for Scroll events.
data EScroll

-- | A tag for Motion events.
data EMotion

-- | A tag for Expose events.
data EExpose

-- | A tag for Visibility events.
data EVisibility

-- | A tag for Crossing events.
data ECrossing

-- | A tag for Focus events.
data EFocus

-- | A tag for Configure events.
data EConfigure

-- | A tag for Property events.
data EProperty

-- | A tag for Proximity events.
data EProximity

-- | A tag for WindowState event.
data EWindowState

-- | A tag for OwnerChange events.
data EOwnerChange

-- | A tag for GrabBroken events.
data EGrabBroken

-- | Retrieve the DrawWindow that this event relates to.
eventWindow :: EventM any DrawWindow

-- | Query if this event was sent sent explicitly by the application
--   (rather than being generated by human interaction).
eventSent :: EventM any Bool

-- | Retrieve the (x,y) coordinates of the mouse.
eventCoordinates :: HasCoordinates t => EventM t (Double, Double)

-- | Retrieve the (x,y) coordinates of the mouse relative to the
--   root (origin) of the screen.
eventRootCoordinates :: HasRootCoordinates t => EventM t (Double, Double)

-- | Query the modifier keys that were depressed when the event happened.
--   Sticky modifiers such as CapsLock are omitted in the return value. Use
--   eventModifierAll your application requires all modifiers. Use
--   eventModifierMouse if you just need the mouse buttons.
eventModifier :: HasModifier t => EventM t [Modifier]

-- | Query the modifier keys that were depressed when the event happened.
--   The result includes sticky modifiers such as CapsLock. Normally,
--   eventModifier is more appropriate in applications.
eventModifierAll :: HasModifier t => EventM t [Modifier]

-- | Query the mouse buttons that were depressed when the event happened.
eventModifierMouse :: HasModifier t => EventM t [Modifier]

-- | Query the time when the event occurred.
eventTime :: HasTime t => EventM t TimeStamp

-- | The key value. See KeyVal.
eventKeyVal :: EventM EKey KeyVal

-- | The key value as a string. See KeyVal.
eventKeyName :: EventM EKey DefaultGlibString

-- | The hardware key code.
eventHardwareKeycode :: EventM EKey KeyCode

-- | The keyboard group.
eventKeyboardGroup :: EventM EKey Word8

-- | Mouse buttons.
data MouseButton
LeftButton :: MouseButton
MiddleButton :: MouseButton
RightButton :: MouseButton
OtherButton :: Int -> MouseButton

-- | Query the mouse buttons.
eventButton :: EventM EButton MouseButton

-- | Type of mouse click
data Click
SingleClick :: Click
DoubleClick :: Click
TripleClick :: Click
ReleaseClick :: Click
eventClick :: EventM EButton Click

-- | in which direction was scrolled?
data ScrollDirection
ScrollUp :: ScrollDirection
ScrollDown :: ScrollDirection
ScrollLeft :: ScrollDirection
ScrollRight :: ScrollDirection
ScrollSmooth :: ScrollDirection

-- | Query the direction of scrolling.
eventScrollDirection :: EventM EScroll ScrollDirection

-- | Check if the motion event is only a hint rather than the full mouse
--   movement information.
eventIsHint :: EventM EMotion Bool

-- | Request more motion notifies if this event is a motion notify hint
--   event.
--   
--   This action should be used instead of drawWindowGetPointer to
--   request further motion notifies, because it also works for extension
--   events where motion notifies are provided for devices other than the
--   core pointer.
--   
--   Coordinate extraction, processing and requesting more motion events
--   from a motionNotifyEvent usually works like this:
--   
--   
--   on widget motionNotifyEvent $ do
--     (x, y) <- eventCoordinates
--     -- handle the x,y motion:
--     ...
--     -- finally, notify that we are ready to get more motion events:
--     eventRequestMotions
--   
eventRequestMotions :: EventM EMotion ()

-- | Query a bounding box of the region that needs to be updated.
eventArea :: EventM EExpose Rectangle

-- | visibility of a window
data VisibilityState
VisibilityUnobscured :: VisibilityState
VisibilityPartialObscured :: VisibilityState
VisibilityFullyObscured :: VisibilityState

-- | Get the visibility status of a window.
eventVisibilityState :: EventM EVisibility VisibilityState

-- | How focus is crossing the widget.
data CrossingMode
CrossingNormal :: CrossingMode
CrossingGrab :: CrossingMode
CrossingUngrab :: CrossingMode
CrossingGtkGrab :: CrossingMode
CrossingGtkUngrab :: CrossingMode
CrossingStateChanged :: CrossingMode
CrossingTouchBegin :: CrossingMode
CrossingTouchEnd :: CrossingMode
CrossingDeviceSwitch :: CrossingMode

-- | Get the mode of the mouse cursor crossing a window.
eventCrossingMode :: EventM ECrossing CrossingMode

-- | 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 NotifyType
NotifyAncestor :: NotifyType
NotifyVirtual :: NotifyType
NotifyInferior :: NotifyType
NotifyNonlinear :: NotifyType
NotifyNonlinearVirtual :: NotifyType
NotifyUnknown :: NotifyType

-- | Get the notify type of the mouse cursor crossing a window.
eventNotifyType :: EventM ECrossing NotifyType

-- | Query if the window has the focus or is an inferior window.
eventCrossingFocus :: EventM ECrossing Bool

-- | Query if a window gained focus (True) or lost the focus
--   (False).
eventFocusIn :: EventM EFocus Bool

-- | Get the (x,y) position of the window within the parent
--   window.
eventPosition :: EventM EConfigure (Int, Int)

-- | Get the new size of the window as (width,height).
eventSize :: EventM EConfigure (Int, Int)
eventProperty :: EventM EProperty Atom

-- | The state a DrawWindow is in.
data WindowState
WindowStateWithdrawn :: WindowState
WindowStateIconified :: WindowState
WindowStateMaximized :: WindowState
WindowStateSticky :: WindowState
WindowStateFullscreen :: WindowState
WindowStateAbove :: WindowState
WindowStateBelow :: WindowState
WindowStateFocused :: WindowState
WindowStateTiled :: WindowState
WindowStateTopTiled :: WindowState
WindowStateTopResizable :: WindowState
WindowStateRightTiled :: WindowState
WindowStateRightResizable :: WindowState
WindowStateBottomTiled :: WindowState
WindowStateBottomResizable :: WindowState
WindowStateLeftTiled :: WindowState
WindowStateLeftResizable :: WindowState

-- | Query which window state bits have changed.
eventWindowStateChanged :: EventM EWindowState [WindowState]

-- | Query the new window state.
eventWindowState :: EventM EWindowState [WindowState]
data OwnerChange
OwnerChangeNewOwner :: OwnerChange
OwnerChangeDestroy :: OwnerChange
OwnerChangeClose :: OwnerChange

-- | Query why a seleciton changed its owner.
eventChangeReason :: EventM EOwnerChange OwnerChange

-- | Query what selection changed its owner.
eventSelection :: EventM EOwnerChange SelectionTag

-- | Query the time when the selection was taken over.
eventSelectionTime :: EventM EOwnerChange TimeStamp

-- | Check if a keyboard (True) or a mouse pointer grap
--   (False) was broken.
eventKeyboardGrab :: EventM EGrabBroken Bool

-- | Check if a grab was broken implicitly.
eventImplicit :: EventM EGrabBroken Bool

-- | Get the new window that owns the grab or Nothing if the
--   window is not part of this application.
eventGrabWindow :: EventM EGrabBroken (Maybe DrawWindow)

-- | Keyboard modifiers that are depressed when the user presses a key or a
--   mouse button.
--   
--   
--   
- This data type is used to build lists of modifiers 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.
--   
data Modifier
Shift :: Modifier
Lock :: Modifier
Control :: Modifier
Alt :: Modifier
Alt2 :: Modifier
Alt3 :: Modifier
Alt4 :: Modifier
Alt5 :: Modifier
Button1 :: Modifier
Button2 :: Modifier
Button3 :: Modifier
Button4 :: Modifier
Button5 :: Modifier
MODIFIER_RESERVED_13_MASK :: Modifier
MODIFIER_RESERVED_14_MASK :: Modifier
MODIFIER_RESERVED_15_MASK :: Modifier
MODIFIER_RESERVED_16_MASK :: Modifier
MODIFIER_RESERVED_17_MASK :: Modifier
MODIFIER_RESERVED_18_MASK :: Modifier
MODIFIER_RESERVED_19_MASK :: Modifier
MODIFIER_RESERVED_20_MASK :: Modifier
MODIFIER_RESERVED_21_MASK :: Modifier
MODIFIER_RESERVED_22_MASK :: Modifier
MODIFIER_RESERVED_23_MASK :: Modifier
MODIFIER_RESERVED_24_MASK :: Modifier
MODIFIER_RESERVED_25_MASK :: Modifier
Super :: Modifier
Hyper :: Modifier
Meta :: Modifier
MODIFIER_RESERVED_29_MASK :: Modifier
Release :: Modifier
ModifierMask :: Modifier

-- | The time (in milliseconds) when an event happened. This is used mostly
--   for ordering events and responses to events.
type TimeStamp = Word32

-- | Represents the current time, and can be used anywhere a time is
--   expected.
currentTime :: TimeStamp

-- | Execute an event handler and assume it handled the event unless it
--   threw a pattern match exception or calls mzero (e.g. via guard).
tryEvent :: EventM any () -> EventM any Bool

-- | Explicitly stop the handling of an event. This function should only be
--   called inside a handler that is wrapped with tryEvent. (It
--   merely throws a bogus pattern matching error which tryEvent
--   interprets as if the handler does not handle the event.)
stopEvent :: EventM any ()
instance Graphics.UI.Gtk.Gdk.EventM.HasCoordinates Graphics.UI.Gtk.Gdk.EventM.EButton
instance Graphics.UI.Gtk.Gdk.EventM.HasCoordinates Graphics.UI.Gtk.Gdk.EventM.ECrossing
instance Graphics.UI.Gtk.Gdk.EventM.HasCoordinates Graphics.UI.Gtk.Gdk.EventM.EMotion
instance Graphics.UI.Gtk.Gdk.EventM.HasCoordinates Graphics.UI.Gtk.Gdk.EventM.EScroll
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.EButton
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.ECrossing
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.EKey
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.EMotion
instance Graphics.UI.Gtk.Gdk.EventM.HasModifier Graphics.UI.Gtk.Gdk.EventM.EScroll
instance Graphics.UI.Gtk.Gdk.EventM.HasRootCoordinates Graphics.UI.Gtk.Gdk.EventM.EButton
instance Graphics.UI.Gtk.Gdk.EventM.HasRootCoordinates Graphics.UI.Gtk.Gdk.EventM.ECrossing
instance Graphics.UI.Gtk.Gdk.EventM.HasRootCoordinates Graphics.UI.Gtk.Gdk.EventM.EMotion
instance Graphics.UI.Gtk.Gdk.EventM.HasRootCoordinates Graphics.UI.Gtk.Gdk.EventM.EScroll
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EButton
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.ECrossing
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EKey
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EMotion
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EOwnerChange
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EProperty
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EProximity
instance Graphics.UI.Gtk.Gdk.EventM.HasTime Graphics.UI.Gtk.Gdk.EventM.EScroll

-- | A tag that can be applied to text in a TextBuffer
module Graphics.UI.Gtk.Multiline.TextTag
data TextTag
class GObjectClass o => TextTagClass o
castToTextTag :: GObjectClass obj => obj -> TextTag
gTypeTextTag :: GType
toTextTag :: TextTagClass o => o -> TextTag
type TagName = DefaultGlibString

-- | Creates a TextTag.
--   
--   
--   
- Supplying Nothing as tag name results in an anonymous
--   tag.
--   
textTagNew :: Maybe TagName -> IO TextTag

-- | Sets the priority of a TextTag. Valid priorities are start at 0
--   and go to one less than textTagTableGetSize. Each tag in a
--   table has a unique priority; setting the priority of one tag shifts
--   the priorities of all the other tags in the table to maintain a unique
--   priority for each tag. Higher priority tags "win" if two tags both set
--   the same text attribute. When adding a tag to a tag table, it will be
--   assigned the highest priority in the table by default; so normally the
--   precedence of a set of tags is the order in which they were added to
--   the table, or created with textBufferCreateTag, which adds the
--   tag to the buffer's table automatically.
textTagSetPriority :: TextTagClass self => self -> Int -> IO ()

-- | Get the tag priority.
textTagGetPriority :: TextTagClass self => self -> IO Int
newtype TextAttributes
TextAttributes :: ForeignPtr TextAttributes -> TextAttributes

-- | Creates a TextAttributes, which describes a set of properties
--   on some text.
textAttributesNew :: IO TextAttributes

-- | Copies src and returns a new TextAttributes.
textAttributesCopy :: TextAttributes -> IO TextAttributes

-- | Copies the values from src to dest so that dest has the same values as
--   src.
textAttributesCopyValues :: TextAttributes -> TextAttributes -> IO ()

-- | This function is use internal for transform TextAttributes. Don't
--   export this function.
makeNewTextAttributes :: Ptr TextAttributes -> IO TextAttributes

-- | Name used to refer to the text tag. Nothing for anonymous
--   tags.
--   
--   Default value: Nothing
textTagName :: (TextTagClass self, GlibString string) => Attr self (Maybe string)

-- | Background color as a string.
--   
--   Default value: ""
textTagBackground :: (TextTagClass self, GlibString string) => WriteAttr self string

-- | Whether this tag affects the background color.
--   
--   Default value: False
textTagBackgroundSet :: TextTagClass self => Attr self Bool

-- | Whether the background color fills the entire line height or only the
--   height of the tagged characters.
--   
--   Default value: False
textTagBackgroundFullHeight :: TextTagClass self => Attr self Bool

-- | Whether this tag affects background height.
--   
--   Default value: False
textTagBackgroundFullHeightSet :: TextTagClass self => Attr self Bool

-- | Background color as a (possibly unallocated) GdkColor.
textTagBackgroundGdk :: TextTagClass self => Attr self Color

-- | Foreground color as a string.
--   
--   Default value: ""
textTagForeground :: (TextTagClass self, GlibString string) => WriteAttr self string

-- | Whether this tag affects the foreground color.
--   
--   Default value: False
textTagForegroundSet :: TextTagClass self => Attr self Bool

-- | Foreground color as a (possibly unallocated) GdkColor.
textTagForegroundGdk :: TextTagClass self => Attr self Color

-- | Text direction, e.g. right-to-left or left-to-right.
--   
--   Default value: TextDirLtr
textTagDirection :: TextTagClass self => Attr self TextDirection

-- | Whether the text can be modified by the user.
--   
--   Default value: True
textTagEditable :: TextTagClass self => Attr self Bool

-- | Whether this tag affects text editability.
--   
--   Default value: False
textTagEditableSet :: TextTagClass self => Attr self Bool

-- | Font description as a string, e.g. "Sans Italic 12".
--   
--   Default value: ""
textTagFont :: (TextTagClass self, GlibString string) => Attr self string

-- | Font description as a FontDescription struct.
textTagFontDesc :: TextTagClass self => Attr self FontDescription

-- | Name of the font family, e.g. Sans, Helvetica, Times, Monospace.
--   
--   Default value: ""
textTagFamily :: (TextTagClass self, GlibString string) => Attr self string

-- | Whether this tag affects the font family.
--   
--   Default value: False
textTagFamilySet :: TextTagClass self => Attr self Bool

-- | Font style as a Style, e.g. StyleItalic.
--   
--   Default value: StyleNormal
textTagStyle :: TextTagClass self => Attr self FontStyle

-- | Whether this tag affects the font style.
--   
--   Default value: False
textTagStyleSet :: TextTagClass self => Attr self Bool

-- | Custom tabs for this text. textTagTabs :: TextTagClass self => Attr
--   self TabArray
--   
--   Whether this tag affects tabs.
--   
--   Default value: False
textTagTabsSet :: TextTagClass self => Attr self Bool

-- | Font variant as a Variant, e.g. VariantSmallCaps.
--   
--   Default value: VariantNormal
textTagVariant :: TextTagClass self => Attr self Variant

-- | Whether this tag affects the font variant.
--   
--   Default value: False
textTagVariantSet :: TextTagClass self => Attr self Bool

-- | Font weight as an integer, see predefined values in Weight; for
--   example, WeightBold.
--   
--   Allowed values: >= 0
--   
--   Default value: 400
textTagWeight :: TextTagClass self => Attr self Int

-- | Whether this tag affects the font weight.
--   
--   Default value: False
textTagWeightSet :: TextTagClass self => Attr self Bool

-- | Font stretch as a Stretch, e.g. StretchCondensed.
--   
--   Default value: StretchNormal
textTagStretch :: TextTagClass self => Attr self Stretch

-- | Whether this tag affects the font stretch.
textTagStretchSet :: TextTagClass self => Attr self Bool

-- | Font size in Pango units.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textTagSize :: TextTagClass self => Attr self Int

-- | Whether this tag affects the font size.
--   
--   Default value: False
textTagSizeSet :: TextTagClass self => Attr self Bool

-- | Font size as a scale factor relative to the default font size. This
--   properly adapts to theme changes etc. so is recommended.
--   
--   Allowed values: >= 0
--   
--   Default value: 1
textTagScale :: TextTagClass self => Attr self Double

-- | Whether this tag scales the font size by a factor.
--   
--   Default value: False
textTagScaleSet :: TextTagClass self => Attr self Bool

-- | Font size in points.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textTagSizePoints :: TextTagClass self => Attr self Double

-- | Left, right, or center justification.
--   
--   Default value: JustifyLeft
textTagJustification :: TextTagClass self => Attr self Justification

-- | Whether this tag affects paragraph justification.
--   
--   Default value: False
textTagJustificationSet :: TextTagClass self => Attr self Bool

-- | The language this text is in, as an ISO code. Pango can use this as a
--   hint when rendering the text. If not set, an appropriate default will
--   be used.
--   
--   Default value: ""
textTagLanguage :: (TextTagClass self, GlibString string) => Attr self string

-- | Whether this tag affects the language the text is rendered as.
--   
--   Default value: False
textTagLanguageSet :: TextTagClass self => Attr self Bool

-- | Width of the left margin in pixels.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textTagLeftMargin :: TextTagClass self => Attr self Int

-- | Whether this tag affects the left margin.
--   
--   Default value: False
textTagLeftMarginSet :: TextTagClass self => Attr self Bool

-- | Width of the right margin in pixels.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textTagRightMargin :: TextTagClass self => Attr self Int

-- | Whether this tag affects the right margin.
--   
--   Default value: False
textTagRightMarginSet :: TextTagClass self => Attr self Bool

-- | Amount to indent the paragraph, in pixels.
--   
--   Default value: 0
textTagIndent :: TextTagClass self => Attr self Int

-- | Whether this tag affects indentation.
--   
--   Default value: False
textTagIndentSet :: TextTagClass self => Attr self Bool

-- | Offset of text above the baseline (below the baseline if rise is
--   negative) in pixels.
--   
--   Default value: 0
textTagRise :: TextTagClass self => Attr self Int

-- | Whether this tag affects the rise.
textTagRiseSet :: TextTagClass self => Attr self Bool

-- | Pixels of blank space above paragraphs.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textTagPixelsAboveLines :: TextTagClass self => Attr self Int

-- | Whether this tag affects the number of pixels above lines.
--   
--   Default value: False
textTagPixelsAboveLinesSet :: TextTagClass self => Attr self Bool

-- | Pixels of blank space below paragraphs.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textTagPixelsBelowLines :: TextTagClass self => Attr self Int

-- | Whether this tag affects the number of pixels below lines.
--   
--   Default value: False
textTagPixelsBelowLinesSet :: TextTagClass self => Attr self Bool

-- | Pixels of blank space between wrapped lines in a paragraph.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textTagPixelsInsideWrap :: TextTagClass self => Attr self Int

-- | Whether this tag affects the number of pixels between wrapped lines.
--   
--   Default value: False
textTagPixelsInsideWrapSet :: TextTagClass self => Attr self Bool

-- | Whether to strike through the text.
--   
--   Default value: False
textTagStrikethrough :: TextTagClass self => Attr self Bool

-- | Whether this tag affects strikethrough.
--   
--   Default value: False
textTagStrikethroughSet :: TextTagClass self => Attr self Bool

-- | Style of underline for this text.
--   
--   Default value: UnderlineNone
textTagUnderline :: TextTagClass self => Attr self Underline

-- | Whether this tag affects underlining.
--   
--   Default value: False
textTagUnderlineSet :: TextTagClass self => Attr self Bool

-- | Whether to wrap lines never, at word boundaries, or at character
--   boundaries.
--   
--   Default value: WrapNone
textTagWrapMode :: TextTagClass self => Attr self WrapMode

-- | Whether this tag affects line wrap mode.
--   
--   Default value: False
textTagWrapModeSet :: TextTagClass self => Attr self Bool

-- | Whether this text is hidden.
--   
--   Note that there may still be problems with the support for invisible
--   text, in particular when navigating programmatically inside a buffer
--   containing invisible segments.
--   
--   Default value: False
textTagInvisible :: TextTagClass self => Attr self Bool

-- | Whether this tag affects text visibility.
--   
--   Default value: False
textTagInvisibleSet :: TextTagClass self => Attr self Bool

-- | The paragraph background color as a string.
--   
--   Default value: ""
textTagParagraphBackground :: (TextTagClass self, GlibString string) => WriteAttr self string

-- | Whether this tag affects the paragraph background color.
--   
--   Default value: False
textTagParagraphBackgroundSet :: TextTagClass self => Attr self Bool

-- | The paragraph background color as a as a (possibly unallocated)
--   Color.
textTagParagraphBackgroundGdk :: TextTagClass self => Attr self Color

-- | 'priority' property. See textTagGetPriority and
--   textTagSetPriority
textTagPriority :: TextTagClass self => Attr self Int

-- | An event has occurred that affects the given tag.
--   
--   
--   
- Adding an event handler to the tag makes it possible to react on
--   e.g. mouse clicks to implement hyperlinking.
--   
- The first argument is the object the event was fired from
--   (typically a TextView). The second argument is the iterator
--   indicating where the event happened.
--   
textTagEvent :: TextTagClass self => Signal self (GObject -> TextIter -> EventM EAny Bool)

-- | Widget that displays a TextBuffer
module Graphics.UI.Gtk.Multiline.TextView
data TextView
class ContainerClass o => TextViewClass o
data TextChildAnchor
class GObjectClass o => TextChildAnchorClass o
castToTextView :: GObjectClass obj => obj -> TextView
gTypeTextView :: GType
toTextView :: TextViewClass o => o -> TextView

-- | Editing option
data DeleteType
DeleteChars :: DeleteType
DeleteWordEnds :: DeleteType
DeleteWords :: DeleteType
DeleteDisplayLines :: DeleteType
DeleteDisplayLineEnds :: DeleteType
DeleteParagraphEnds :: DeleteType
DeleteParagraphs :: DeleteType
DeleteWhitespace :: DeleteType

-- | Editing direction
data DirectionType
DirTabForward :: DirectionType
DirTabBackward :: DirectionType
DirUp :: DirectionType
DirDown :: DirectionType
DirLeft :: DirectionType
DirRight :: DirectionType

-- | Justification for label and maybe other widgets (text?)
data Justification
JustifyLeft :: Justification
JustifyRight :: Justification
JustifyCenter :: Justification
JustifyFill :: Justification

-- | Movement in text widget
data MovementStep
MovementLogicalPositions :: MovementStep
MovementVisualPositions :: MovementStep
MovementWords :: MovementStep
MovementDisplayLines :: MovementStep
MovementDisplayLineEnds :: MovementStep
MovementParagraphs :: MovementStep
MovementParagraphEnds :: MovementStep
MovementPages :: MovementStep
MovementBufferEnds :: MovementStep
MovementHorizontalPages :: MovementStep
data TextWindowType
TextWindowPrivate :: TextWindowType
TextWindowWidget :: TextWindowType
TextWindowText :: TextWindowType
TextWindowLeft :: TextWindowType
TextWindowRight :: TextWindowType
TextWindowTop :: TextWindowType
TextWindowBottom :: TextWindowType

-- | Determine how lines are wrapped in a TextView.
data WrapMode
WrapNone :: WrapMode
WrapChar :: WrapMode
WrapWord :: WrapMode
WrapWordChar :: WrapMode

-- | Creates a new TextView. If you don't call
--   textViewSetBuffer before using the text view, an empty default
--   buffer will be created for you. Get the buffer with
--   textViewGetBuffer. If you want to specify your own buffer,
--   consider textViewNewWithBuffer.
textViewNew :: IO TextView

-- | Creates a new TextView widget displaying the buffer
--   buffer. One buffer can be shared among many widgets.
textViewNewWithBuffer :: TextBufferClass buffer => buffer -> IO TextView

-- | Sets the given buffer as the buffer being displayed by the text view.
textViewSetBuffer :: (TextViewClass self, TextBufferClass buffer) => self -> buffer -> IO ()

-- | Returns the TextBuffer being displayed by this text view.
textViewGetBuffer :: TextViewClass self => self -> IO TextBuffer

-- | Scrolls the text view so that mark is on the screen in the
--   position indicated by xalign and yalign. An
--   alignment of 0.0 indicates left or top, 1.0 indicates right or bottom,
--   0.5 means center. If the alignment is Nothing, the text
--   scrolls the minimal distance to get the mark onscreen, possibly not
--   scrolling at all. The effective screen for purposes of this function
--   is reduced by a margin of size withinMargin.
textViewScrollToMark :: (TextViewClass self, TextMarkClass mark) => self -> mark -> Double -> Maybe (Double, Double) -> IO ()

-- | Scrolls the text view so that iter is on the screen in the
--   position indicated by xalign and yalign. An
--   alignment of 0.0 indicates left or top, 1.0 indicates right or bottom,
--   0.5 means center. If the alignment is Nothing, the text
--   scrolls the minimal distance to get the mark onscreen, possibly not
--   scrolling at all. The effective screen for purposes of this function
--   is reduced by a margin of size withinMargin.
--   
--   
--   
- This function uses the currently-computed height of the lines in
--   the text buffer. Note that line heights are computed in an idle
--   handler; so this function may not have the desired effect if it's
--   called before the height computations. To avoid oddness, consider
--   using textViewScrollToMark which saves a point to be scrolled
--   to after line validation. This is particularly important if you add
--   new text to the buffer and immediately ask the view to scroll to it
--   (which it can't since it is not updated until the main loop
--   runs).
--   
textViewScrollToIter :: TextViewClass self => self -> TextIter -> Double -> Maybe (Double, Double) -> IO Bool

-- | Scrolls the text view the minimum distance such that mark is
--   contained within the visible area of the widget.
textViewScrollMarkOnscreen :: (TextViewClass self, TextMarkClass mark) => self -> mark -> IO ()

-- | Moves a mark within the buffer so that it's located within the
--   currently-visible text area.
textViewMoveMarkOnscreen :: (TextViewClass self, TextMarkClass mark) => self -> mark -> IO Bool

-- | Moves the cursor to the currently visible region of the buffer, it it
--   isn't there already.
textViewPlaceCursorOnscreen :: TextViewClass self => self -> IO Bool

-- | Gets the TextIter at the start of the line containing the
--   coordinate y. y is in buffer coordinates, convert
--   from window coordinates with textViewWindowToBufferCoords. Also
--   returns lineTop the coordinate of the top edge of the line.
textViewGetLineAtY :: TextViewClass self => self -> Int -> IO (TextIter, Int)

-- | Gets the y coordinate of the top of the line containing iter,
--   and the height of the line. The coordinate is a buffer coordinate;
--   convert to window coordinates with
--   textViewBufferToWindowCoords.
textViewGetLineYrange :: TextViewClass self => self -> TextIter -> IO (Int, Int)

-- | Retrieves the iterator at buffer coordinates x and
--   y. Buffer coordinates are coordinates for the entire buffer,
--   not just the currently-displayed portion. If you have coordinates from
--   an event, you have to convert those to buffer coordinates with
--   textViewWindowToBufferCoords.
textViewGetIterAtLocation :: TextViewClass self => self -> Int -> Int -> IO TextIter

-- | Converts coordinate (bufferX, bufferY) to coordinates for the
--   window win
--   
--   Note that you can't convert coordinates for a nonexisting window (see
--   textViewSetBorderWindowSize).
textViewBufferToWindowCoords :: TextViewClass self => self -> TextWindowType -> (Int, Int) -> IO (Int, Int)

-- | Converts coordinates on the window identified by win to
--   buffer coordinates.
--   
--   Note that you can't convert coordinates for a nonexisting window (see
--   textViewSetBorderWindowSize).
textViewWindowToBufferCoords :: TextViewClass self => self -> TextWindowType -> (Int, Int) -> IO (Int, Int)

-- | Retrieves the DrawWindow corresponding to an area of the text
--   view; possible windows include the overall widget window, child
--   windows on the left, right, top, bottom, and the window that displays
--   the text buffer. Windows are Nothing and nonexistent if their
--   width or height is 0, and are nonexistent before the widget has been
--   realized.
textViewGetWindow :: TextViewClass self => self -> TextWindowType -> IO (Maybe DrawWindow)

-- | Retrieve the type of window the TextView widget contains.
--   
--   Usually used to find out which window an event corresponds to. An
--   emission of an event signal of TextView yields a
--   DrawWindow. This function can be used to see if the event
--   actually belongs to the main text window.
textViewGetWindowType :: TextViewClass self => self -> DrawWindow -> IO TextWindowType

-- | Sets the width of TextWindowLeft or TextWindowRight, or
--   the height of TextWindowTop or TextWindowBottom.
--   Automatically destroys the corresponding window if the size is set to
--   0, and creates the window if the size is set to non-zero. This
--   function can only be used for the "border windows", it doesn't work
--   with TextWindowWidget, TextWindowText, or
--   TextWindowPrivate.
textViewSetBorderWindowSize :: TextViewClass self => self -> TextWindowType -> Int -> IO ()

-- | Gets the width of the specified border window. See
--   textViewSetBorderWindowSize.
textViewGetBorderWindowSize :: TextViewClass self => self -> TextWindowType -> IO Int

-- | Moves the given iter forward by one display (wrapped) line. A
--   display line is different from a paragraph. Paragraphs are separated
--   by newlines or other paragraph separator characters. Display lines are
--   created by line-wrapping a paragraph. If wrapping is turned off,
--   display lines and paragraphs will be the same. Display lines are
--   divided differently for each view, since they depend on the view's
--   width; paragraphs are the same in all views, since they depend on the
--   contents of the TextBuffer.
textViewForwardDisplayLine :: TextViewClass self => self -> TextIter -> IO Bool

-- | Moves the given iter backward by one display (wrapped) line.
--   A display line is different from a paragraph. Paragraphs are separated
--   by newlines or other paragraph separator characters. Display lines are
--   created by line-wrapping a paragraph. If wrapping is turned off,
--   display lines and paragraphs will be the same. Display lines are
--   divided differently for each view, since they depend on the view's
--   width; paragraphs are the same in all views, since they depend on the
--   contents of the TextBuffer.
textViewBackwardDisplayLine :: TextViewClass self => self -> TextIter -> IO Bool

-- | Moves the given iter forward to the next display line end. A
--   display line is different from a paragraph. Paragraphs are separated
--   by newlines or other paragraph separator characters. Display lines are
--   created by line-wrapping a paragraph. If wrapping is turned off,
--   display lines and paragraphs will be the same. Display lines are
--   divided differently for each view, since they depend on the view's
--   width; paragraphs are the same in all views, since they depend on the
--   contents of the TextBuffer.
textViewForwardDisplayLineEnd :: TextViewClass self => self -> TextIter -> IO Bool

-- | Moves the given iter backward to the next display line start.
--   A display line is different from a paragraph. Paragraphs are separated
--   by newlines or other paragraph separator characters. Display lines are
--   created by line-wrapping a paragraph. If wrapping is turned off,
--   display lines and paragraphs will be the same. Display lines are
--   divided differently for each view, since they depend on the view's
--   width; paragraphs are the same in all views, since they depend on the
--   contents of the TextBuffer.
textViewBackwardDisplayLineStart :: TextViewClass self => self -> TextIter -> IO Bool

-- | Determines whether iter is at the start of a display line.
--   See textViewForwardDisplayLine for an explanation of display
--   lines vs. paragraphs.
textViewStartsDisplayLine :: TextViewClass self => self -> TextIter -> IO Bool

-- | Move the iterator a given number of characters visually, treating it
--   as the strong cursor position. If count is positive, then the
--   new strong cursor position will be count positions to the
--   right of the old cursor position. If count is negative then
--   the new strong cursor position will be count positions to the
--   left of the old cursor position.
--   
--   In the presence of bidirection text, the correspondence between
--   logical and visual order will depend on the direction of the current
--   run, and there may be jumps when the cursor is moved off of the end of
--   a run.
textViewMoveVisually :: TextViewClass self => self -> TextIter -> Int -> IO Bool

-- | Adds a child widget in the text buffer, at the given anchor.
textViewAddChildAtAnchor :: (TextViewClass self, WidgetClass child) => self -> child -> TextChildAnchor -> IO ()

-- | Create a new TextChildAnchor.
--   
--   
--   
- Using textBufferCreateChildAnchor is usually simpler then
--   executing this function and textBufferInsertChildAnchor.
--   
textChildAnchorNew :: IO TextChildAnchor

-- | Retrieve all Widgets at this TextChildAnchor.
--   
--   
--   
- The widgets in the returned list need to be upcasted to what they
--   were.
--   
textChildAnchorGetWidgets :: TextChildAnchor -> IO [Widget]

-- | Query if an anchor was deleted.
textChildAnchorGetDeleted :: TextChildAnchor -> IO Bool

-- | Adds a child at fixed coordinates in one of the text widget's windows.
--   The window must have nonzero size (see
--   textViewSetBorderWindowSize). Note that the child coordinates
--   are given relative to the DrawWindow in question, and that
--   these coordinates have no sane relationship to scrolling. When placing
--   a child in TextWindowWidget, scrolling is irrelevant, the child
--   floats above all scrollable areas. If you want the widget to move when
--   the text view scrolls, use textViewAddChildAtAnchor instead.
textViewAddChildInWindow :: (TextViewClass self, WidgetClass child) => self -> child -> TextWindowType -> Int -> Int -> IO ()

-- | Move a child widget within the TextView. This is really only
--   appropriate for "floating" child widgets added using
--   textViewAddChildInWindow.
textViewMoveChild :: (TextViewClass self, WidgetClass child) => self -> child -> Int -> Int -> IO ()

-- | Sets the line wrapping for the view.
textViewSetWrapMode :: TextViewClass self => self -> WrapMode -> IO ()

-- | Gets the line wrapping for the view.
textViewGetWrapMode :: TextViewClass self => self -> IO WrapMode

-- | Sets the default editability of the TextView. You can override
--   this default setting with tags in the buffer, using the "editable"
--   attribute of tags.
textViewSetEditable :: TextViewClass self => self -> Bool -> IO ()

-- | Returns the default editability of the TextView. Tags in the
--   buffer may override this setting for some ranges of text.
textViewGetEditable :: TextViewClass self => self -> IO Bool

-- | Toggles whether the insertion point is displayed. A buffer with no
--   editable text probably shouldn't have a visible cursor, so you may
--   want to turn the cursor off.
textViewSetCursorVisible :: TextViewClass self => self -> Bool -> IO ()

-- | Find out whether the cursor is being displayed.
textViewGetCursorVisible :: TextViewClass self => self -> IO Bool

-- | Sets the default number of blank pixels above paragraphs in the text
--   view. Tags in the buffer for the text view may override the defaults.
--   
--   
--   
- Tags in the buffer may override this default.
--   
textViewSetPixelsAboveLines :: TextViewClass self => self -> Int -> IO ()

-- | Gets the default number of pixels to put above paragraphs.
textViewGetPixelsAboveLines :: TextViewClass self => self -> IO Int

-- | Sets the default number of pixels of blank space to put below
--   paragraphs in the text view. May be overridden by tags applied to the
--   text view's buffer.
textViewSetPixelsBelowLines :: TextViewClass self => self -> Int -> IO ()

-- | Gets the default number of blank pixels below each paragraph.
textViewGetPixelsBelowLines :: TextViewClass self => self -> IO Int

-- | Sets the default number of pixels of blank space to leave between
--   display/wrapped lines within a paragraph. May be overridden by tags in
--   the text view's buffer.
textViewSetPixelsInsideWrap :: TextViewClass self => self -> Int -> IO ()

-- | Gets the default number of pixels of blank space between lines in a
--   wrapped paragraph.
textViewGetPixelsInsideWrap :: TextViewClass self => self -> IO Int

-- | Sets the default justification of text in the text view. Tags in the
--   view's buffer may override the default.
textViewSetJustification :: TextViewClass self => self -> Justification -> IO ()

-- | Gets the default justification of paragraphs in the text view. Tags in
--   the buffer may override the default.
textViewGetJustification :: TextViewClass self => self -> IO Justification

-- | Sets the default left margin for text in the text view. Tags in the
--   buffer may override the default.
textViewSetLeftMargin :: TextViewClass self => self -> Int -> IO ()

-- | Gets the default left margin size of paragraphs in the text view. Tags
--   in the buffer may override the default.
textViewGetLeftMargin :: TextViewClass self => self -> IO Int

-- | Sets the default right margin for text in the text view. Tags in the
--   buffer may override the default.
textViewSetRightMargin :: TextViewClass self => self -> Int -> IO ()

-- | Gets the default right margin for text in the text view. Tags in the
--   buffer may override the default.
textViewGetRightMargin :: TextViewClass self => self -> IO Int

-- | Sets the default indentation for paragraphs in the text view. Tags in
--   the buffer may override the default.
textViewSetIndent :: TextViewClass self => self -> Int -> IO ()

-- | Gets the default indentation of paragraphs in the text view. Tags in
--   the view's buffer may override the default. The indentation may be
--   negative.
textViewGetIndent :: TextViewClass self => self -> IO Int

-- | Obtains a copy of the default text attributes. These are the
--   attributes used for text unless a tag overrides them. You'd typically
--   pass the default attributes in to textIterGetAttributes in
--   order to get the attributes in effect at a given text position.
textViewGetDefaultAttributes :: TextViewClass self => self -> IO TextAttributes

-- | Returns the currently-visible region of the buffer, in buffer
--   coordinates. Convert to window coordinates with
--   textViewBufferToWindowCoords.
textViewGetVisibleRect :: TextViewClass self => self -> IO Rectangle

-- | Gets a rectangle which roughly contains the character at
--   iter. The rectangle position is in buffer coordinates; use
--   textViewBufferToWindowCoords to convert these coordinates to
--   coordinates for one of the windows in the text view.
textViewGetIterLocation :: TextViewClass self => self -> TextIter -> IO Rectangle

-- | Retrieves the iterator pointing to the character at buffer coordinates
--   x and y. Buffer coordinates are coordinates for the
--   entire buffer, not just the currently-displayed portion. If you have
--   coordinates from an event, you have to convert those to buffer
--   coordinates with textViewWindowToBufferCoords.
--   
--   Note that this is different from textViewGetIterAtLocation,
--   which returns cursor locations, i.e. positions between
--   characters.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
textViewGetIterAtPosition :: TextViewClass self => self -> Int -> Int -> IO (TextIter, Int)

-- | Changes the TextView overwrite mode.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
textViewSetOverwrite :: TextViewClass self => self -> Bool -> IO ()

-- | Returns whether the TextView is in overwrite mode or not.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
textViewGetOverwrite :: TextViewClass self => self -> IO Bool

-- | Sets the behavior of the text widget when the Tab key is pressed. If
--   acceptsTab is True a tab character is inserted. If
--   acceptsTab is False the keyboard focus is moved to
--   the next widget in the focus chain.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
textViewSetAcceptsTab :: TextViewClass self => self -> Bool -> IO ()

-- | Returns whether pressing the Tab key inserts a tab characters.
--   textViewSetAcceptsTab.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
textViewGetAcceptsTab :: TextViewClass self => self -> IO Bool

-- | Gets the horizontal-scrolling Adjustment.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
textViewGetHadjustment :: TextViewClass self => self -> IO Adjustment

-- | Gets the vertical-scrolling Adjustment.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
textViewGetVadjustment :: TextViewClass self => self -> IO Adjustment

-- | Allow the TextView input method to internally handle key press
--   and release events. If this function returns True, then no
--   further processing should be done for this key event. See
--   imContextFilterKeypress.
--   
--   Note that you are expected to call this function from your handler
--   when overriding key event handling. This is needed in the case when
--   you need to insert your own key handling between the input method and
--   the default key event handling of the TextView.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
textViewImContextFilterKeypress :: TextViewClass self => self -> EventM EKey Bool

-- | Reset the input method context of the text view if needed.
--   
--   This can be necessary in the case where modifying the buffer would
--   confuse on-going input method behavior.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
textViewResetImContext :: TextViewClass self => self -> IO ()

-- | Pixels of blank space above paragraphs.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textViewPixelsAboveLines :: TextViewClass self => Attr self Int

-- | Pixels of blank space below paragraphs.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textViewPixelsBelowLines :: TextViewClass self => Attr self Int

-- | Pixels of blank space between wrapped lines in a paragraph.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textViewPixelsInsideWrap :: TextViewClass self => Attr self Int

-- | Whether the text can be modified by the user.
--   
--   Default value: True
textViewEditable :: TextViewClass self => Attr self Bool

-- | Which IM (input method) module should be used for this entry. See
--   GtkIMContext. Setting this to a non-empty value overrides the
--   system-wide IM module setting. See the GtkSettings "gtk-im-module"
--   property.
--   
--   Default value: ""
textViewImModule :: TextViewClass self => Attr self DefaultGlibString

-- | Whether to wrap lines never, at word boundaries, or at character
--   boundaries.
--   
--   Default value: WrapNone
textViewWrapMode :: TextViewClass self => Attr self WrapMode

-- | Left, right, or center justification.
--   
--   Default value: JustifyLeft
textViewJustification :: TextViewClass self => Attr self Justification

-- | Width of the left margin in pixels.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textViewLeftMargin :: TextViewClass self => Attr self Int

-- | Width of the right margin in pixels.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textViewRightMargin :: TextViewClass self => Attr self Int

-- | Amount to indent the paragraph, in pixels.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
textViewIndent :: TextViewClass self => Attr self Int

-- | If the insertion cursor is shown.
--   
--   Default value: True
textViewCursorVisible :: TextViewClass self => Attr self Bool

-- | The buffer which is displayed.
textViewBuffer :: TextViewClass self => Attr self TextBuffer

-- | Whether entered text overwrites existing contents.
--   
--   Default value: False
textViewOverwrite :: TextViewClass self => Attr self Bool

-- | Whether Tab will result in a tab character being entered.
--   
--   Default value: True
textViewAcceptsTab :: TextViewClass self => Attr self Bool

-- | The backspace signal is a keybinding signal which gets emitted
--   when the user asks for it.
--   
--   The default bindings for this signal are Backspace and
--   Shift-Backspace.
backspace :: TextViewClass self => Signal self (IO ())

-- | Copying to the clipboard.
--   
--   
--   
- This signal is emitted when a selection is copied to the
--   clipboard.
--   
- The action itself happens when the TextView processes this
--   signal.
--   
copyClipboard :: TextViewClass self => Signal self (IO ())

-- | Cutting to the clipboard.
--   
--   
--   
- This signal is emitted when a selection is cut out and copied to
--   the clipboard. The action itself happens when the textview processed
--   this request.
--   
cutClipboard :: TextViewClass self => Signal self (IO ())

-- | Deleting text.
--   
--   
--   
- The widget will remove the specified number of units in the text
--   where the meaning of units depends on the kind of deletion.
--   
- The action itself happens when the TextView processes this
--   signal.
--   
deleteFromCursor :: TextViewClass self => Signal self (DeleteType -> Int -> IO ())

-- | Inserting text.
--   
--   
--   
- The widget will insert the string into the text where the meaning
--   of units depends on the kind of deletion.
--   
- The action itself happens when the TextView processes this
--   signal.
--   
insertAtCursor :: (TextViewClass self, GlibString string) => Signal self (string -> IO ())

-- | Moving the cursor.
--   
--   
--   
- The signal specifies what kind and how many steps the cursor will
--   do. The flag is set to True if this movement extends a
--   selection.
--   
- The action itself happens when the TextView processes this
--   signal.
--   
moveCursor :: TextViewClass self => Signal self (MovementStep -> Int -> Bool -> IO ())

-- | The moveViewport signal is a keybinding signal which can be
--   bound to key combinations to allow the user to move the viewport, i.e.
--   change what part of the text view is visible in a containing scrolled
--   window. There are no default bindings for this signal.
moveViewport :: TextViewClass self => Signal self (ScrollStep -> Int -> IO ())

-- | Moving the focus.
--   
--   
--   
- The action itself happens when the TextView processes this
--   signal.
--   
moveFocus :: TextViewClass self => Signal self (DirectionType -> IO ())

-- | Page change signals.
--   
--   
--   
- The signal specifies how many pages the view should move up or
--   down. The flag is set to True if this movement extends a
--   selection.
--   
- The action itself happens when the TextView processes this
--   signal.
--   
- Figure out why this signal is called horizontally, not
--   vertically.
--   
pageHorizontally :: TextViewClass self => Signal self (Int -> Bool -> IO ())

-- | Pasting from the clipboard.
--   
--   
--   
- This signal is emitted when something is pasted from the
--   clipboard.
--   
- The action itself happens when the TextView processes this
--   signal.
--   
pasteClipboard :: TextViewClass self => Signal self (IO ())

-- | Add menu entries to context menus.
--   
--   
--   
- This signal is emitted if a context menu within the
--   TextView is opened. This signal can be used to add application
--   specific menu items to this popup.
--   
populatePopup :: TextViewClass self => Signal self (Menu -> IO ())

-- | Inserting an anchor.
--   
--   
--   
- This signal is emitted when anchor is inserted into the text.
--   
- The action itself happens when the TextView processes this
--   signal.
--   
selectAll :: TextViewClass self => Signal self (Bool -> IO ())

-- | The scroll-bars changed.
setAnchor :: TextViewClass self => Signal self (IO ())

-- | The setTextViewScrollAdjustments signal is a keybinding signal
--   which gets emitted to toggle the visibility of the cursor. The default
--   binding for this signal is F7.
setTextViewScrollAdjustments :: TextViewClass self => Signal self (Adjustment -> Adjustment -> IO ())

-- | The toggleCursorVisible signal is a keybinding signal which
--   gets emitted to toggle the visibility of the cursor. The default
--   binding for this signal is F7.
toggleCursorVisible :: TextViewClass self => Signal self (IO ())

-- | Insert Overwrite mode has changed.
--   
--   
--   
- This signal is emitted when the TextView changes from
--   inserting mode to overwriting mode and vice versa.
--   
- The action itself happens when the TextView processes this
--   signal.
--   
toggleOverwrite :: TextViewClass self => Signal self (IO ())

-- | If an input method is used, the typed text will not immediately be
--   committed to the buffer. So if you are interested in the text, connect
--   to this signal.
--   
--   This signal is only emitted if the text at the given position is
--   actually editable.
textViewPreeditChanged :: (TextViewClass self, GlibString string) => Signal self (string -> IO ())

-- | An iterator is an abstract datatype representing a pointer into a
--   TextBuffer.
module Graphics.UI.Gtk.Multiline.TextIter
data TextIter

-- | Specify the way the search function for TextBuffer works.
data TextSearchFlags
TextSearchVisibleOnly :: TextSearchFlags
TextSearchTextOnly :: TextSearchFlags
TextSearchCaseInsensitive :: TextSearchFlags

-- | Copy the iterator.
textIterCopy :: TextIter -> IO TextIter

-- | Return the TextBuffer this iterator is associated with.
textIterGetBuffer :: TextIter -> IO TextBuffer

-- | Returns the character offset of an iterator. Each character in a
--   TextBuffer has an offset, starting with 0 for the first
--   character in the buffer. Use textBufferGetIterAtOffset to
--   convert an offset back into an iterator.
textIterGetOffset :: TextIter -> IO Int

-- | Returns the line number containing the iterator. Lines in a
--   TextBuffer are numbered beginning with 0 for the first line in
--   the buffer.
textIterGetLine :: TextIter -> IO Int

-- | Returns the character offset of the iterator, counting from the start
--   of a newline-terminated line. The first character on the line has
--   offset 0.
textIterGetLineOffset :: TextIter -> IO Int

-- | Returns the offset in characters from the start of the line to the
--   given iter, not counting characters that are invisible due to
--   tags with the "invisible" flag toggled on.
textIterGetVisibleLineOffset :: TextIter -> IO Int

-- | Returns the Unicode character at this iterator. If the element at this
--   iterator is a non-character element, such as an image embedded in the
--   buffer, the Unicode "unknown" character 0xFFFC is returned. If invoked
--   on the end iterator, Nothing is returned.
textIterGetChar :: TextIter -> IO (Maybe Char)

-- | Returns the text in the given range. A "slice" is a list of
--   characters, including the Unicode "unknown" character 0xFFFC for
--   iterable non-character elements in the buffer, such as images. Because
--   images are encoded in the slice, offsets in the returned array will
--   correspond to offsets in the text buffer. Note that 0xFFFC can occur
--   in normal text as well, so it is not a reliable indicator that a
--   pixbuf or widget is in the buffer.
textIterGetSlice :: GlibString string => TextIter -> TextIter -> IO string

-- | Return the text in a given range.
--   
--   
--   
- Pictures (and other objects) are stripped form the output. Thus,
--   this function does not preserve offsets.
--   
textIterGetText :: GlibString string => TextIter -> TextIter -> IO string

-- | Like textIterGetSlice, but invisible text is not included.
--   Invisible text is usually invisible because a TextTag with the
--   "invisible" attribute turned on has been applied to it.
textIterGetVisibleSlice :: GlibString string => TextIter -> TextIter -> IO string

-- | Like textIterGetText, but invisible text is not included.
--   Invisible text is usually invisible because a TextTag with the
--   "invisible" attribute turned on has been applied to it.
textIterGetVisibleText :: GlibString string => TextIter -> TextIter -> IO string

-- | Get the Pixbuf under the iterator.
textIterGetPixbuf :: TextIter -> IO (Maybe Pixbuf)

-- | If the location at iter contains a child anchor, the anchor
--   is returned (with no new reference count added). Otherwise,
--   Nothing is returned.
textIterGetChildAnchor :: TextIter -> IO (Maybe TextChildAnchor)

-- | Returns a list of all TextMark at this location. Because marks
--   are not iterable (they don't take up any "space" in the buffer, they
--   are just marks in between iterable locations), multiple marks can
--   exist in the same place. The returned list is not in any meaningful
--   order.
textIterGetMarks :: TextIter -> IO [TextMark]

-- | Returns a list of TextTag that are toggled on or off at this
--   point. (If toggledOn is True, the list contains tags
--   that are toggled on.) If a tag is toggled on at iter, then
--   some non-empty range of characters following iter has that
--   tag applied to it. If a tag is toggled off, then some non-empty range
--   following iter does not have the tag applied to it.
textIterGetToggledTags :: TextIter -> Bool -> IO [TextTag]

-- | Returns True if tag is toggled on at exactly this
--   point. If tag is Nothing, returns True if
--   any tag is toggled on at this point. Note that the
--   textIterBeginsTag returns True if iter is the
--   start of the tagged range; textIterHasTag tells you
--   whether an iterator is within a tagged range.
textIterBeginsTag :: TextIter -> Maybe TextTag -> IO Bool

-- | Returns True if tag is toggled off at exactly this
--   point. If tag is Notihng, returns True if
--   any tag is toggled off at this point. Note that the
--   textIterEndsTag returns True if iter is the
--   end of the tagged range; textIterHasTag tells you
--   whether an iterator is within a tagged range.
textIterEndsTag :: TextIter -> Maybe TextTag -> IO Bool

-- | Query if the TextIter is at the beginning or the end of a
--   TextTag. This is equivalent to (textIterBeginsTag ||
--   textIterEndsTag), i.e. it tells you whether a range with
--   tag applied to it begins or ends at iter.
textIterTogglesTag :: TextIter -> Maybe TextTag -> IO Bool

-- | Check if TextIter is within a range tagged with tag.
textIterHasTag :: TextIter -> Maybe TextTag -> IO Bool

-- | Returns a list of tags that apply to iter, in ascending order
--   of priority (highest-priority tags are last).
textIterGetTags :: TextIter -> IO [TextTag]

-- | Returns whether the character at iter is within an editable
--   region of text. Non-editable text is "locked" and can't be changed by
--   the user via TextView. This function is simply a convenience
--   wrapper around textIterGetAttributes. If no tags applied to
--   this text affect editability, defaultSetting will be
--   returned.
--   
--   You don't want to use this function to decide whether text can be
--   inserted at iter, because for insertion you don't want to
--   know whether the char at iter is inside an editable range,
--   you want to know whether a new character inserted at iter
--   would be inside an editable range. Use textIterCanInsert to
--   handle this case.
textIterEditable :: TextIter -> Bool -> IO Bool

-- | Check if new text can be inserted at TextIter.
--   
--   
--   
- Considering the default editability of the buffer, and tags that
--   affect editability, determines whether text inserted at iter
--   would be editable. If text inserted at iter would be editable
--   then the user should be allowed to insert text at iter.
--   textBufferInsertInteractive uses this function to decide
--   whether insertions are allowed at a given position.
--   
- Use textBufferInsertInteractive if you want to insert text
--   depending on the current editable status.
--   
textIterCanInsert :: TextIter -> Bool -> IO Bool

-- | Determine if TextIter begins a new natural-language word.
textIterStartsWord :: TextIter -> IO Bool

-- | Determine if TextIter ends a new natural-language word.
textIterEndsWord :: TextIter -> IO Bool

-- | Determine if TextIter is inside a word.
textIterInsideWord :: TextIter -> IO Bool

-- | Determine if TextIter begins a new line.
textIterStartsLine :: TextIter -> IO Bool

-- | Returns True if iter points to the start of the
--   paragraph delimiter characters for a line (delimiters will be either a
--   newline, a carriage return, a carriage return followed by a newline,
--   or a Unicode paragraph separator character). Note that an iterator
--   pointing to the n of a rn pair will not be counted as the end of a
--   line, the line ends before the r. The end iterator is considered to be
--   at the end of a line, even though there are no paragraph delimiter
--   chars there.
textIterEndsLine :: TextIter -> IO Bool

-- | Determine if TextIter starts a sentence.
textIterStartsSentence :: TextIter -> IO Bool

-- | Determine if TextIter ends a sentence.
textIterEndsSentence :: TextIter -> IO Bool

-- | Determine if TextIter is inside a sentence.
textIterInsideSentence :: TextIter -> IO Bool

-- | Determine if TextIter is at a cursor position.
textIterIsCursorPosition :: TextIter -> IO Bool

-- | Return number of characters in this line.
--   
--   
--   
- The return value includes delimiters.
--   
textIterGetCharsInLine :: TextIter -> IO Int

-- | Computes the effect of any tags applied to this spot in the text. The
--   values parameter should be initialized to the default settings you
--   wish to use if no tags are in effect. You'd typically obtain the
--   defaults from textViewGetDefaultAttributes.
--   textIterGetAttributes will modify values, applying the effects
--   of any tags present at iter. If any tags affected values, the function
--   returns True.
textIterGetAttributes :: TextIter -> TextAttributes -> IO Bool

-- | A convenience wrapper around textIterGetAttributes, which
--   returns the language in effect at iter. If no tags affecting language
--   apply to iter, the return value is identical to that of
--   getDefaultLanguage.
textIterGetLanguage :: TextIter -> IO Language

-- | Determine if TextIter is at the end of the buffer.
textIterIsEnd :: TextIter -> IO Bool

-- | Determine if TextIter is at the beginning of the buffer.
textIterIsStart :: TextIter -> IO Bool

-- | Move TextIter forwards.
--   
--   
--   
- Returns True if the iterator is pointing to a character.
--   
textIterForwardChar :: TextIter -> IO Bool

-- | Move TextIter backwards.
--   
--   
--   
- Returns True if the movement was possible.
--   
textIterBackwardChar :: TextIter -> IO Bool

-- | Move TextIter forwards by n characters.
--   
--   
--   
- Returns True if the iterator is pointing to a new
--   character (and False if the iterator points to a picture or
--   has not moved).
--   
- Note that images embedded in the buffer occupy 1 character slot,
--   so textIterForwardChar may actually move onto an image instead
--   of a character.
--   
textIterForwardChars :: TextIter -> Int -> IO Bool

-- | Move TextIter backwards by n characters.
--   
--   
--   
- Returns True if the iterator is pointing to a new
--   character (and False if the iterator points to a picture or
--   has not moved).
--   
textIterBackwardChars :: TextIter -> Int -> IO Bool

-- | Move TextIter forwards.
--   
--   
--   
- Returns True if the iterator is pointing to a new line (and False
--   if the iterator points to a picture or has not moved).
--   
- If TextIter is on the first line, it will be moved to the
--   beginning of the buffer.
--   
textIterForwardLine :: TextIter -> IO Bool

-- | Move TextIter backwards.
--   
--   
--   
- Returns True if the iterator is pointing to a new line (and False
--   if the iterator points to a picture or has not moved).
--   
- If TextIter is on the first line, it will be moved to the
--   end of the buffer.
--   
textIterBackwardLine :: TextIter -> IO Bool

-- | Move TextIter forwards by n lines.
--   
--   
--   
- Returns True if the iterator is pointing to a new line (and False
--   if the iterator points to a picture or has not moved).
--   
- If TextIter is on the first line, it will be moved to the
--   beginning of the buffer.
--   
- n can be negative.
--   
textIterForwardLines :: TextIter -> Int -> IO Bool

-- | Move TextIter backwards by n lines.
--   
--   
--   
- Returns True if the iterator is pointing to a new line (and False
--   if the iterator points to a picture or has not moved).
--   
- If TextIter is on the first line, it will be moved to the
--   end of the buffer.
--   
- n can be negative.
--   
textIterBackwardLines :: TextIter -> Int -> IO Bool

-- | Move TextIter forwards by n word ends.
--   
--   
--   
- Returns True if the iterator is pointing to a new word end.
--   
textIterForwardWordEnds :: TextIter -> Int -> IO Bool

-- | Move TextIter backwards by n word beginnings.
--   
--   
--   
- Returns True if the iterator is pointing to a new word start.
--   
textIterBackwardWordStarts :: TextIter -> Int -> IO Bool

-- | Move TextIter forwards to the next word end.
--   
--   
--   
- Returns True if the iterator has moved to a new word end.
--   
textIterForwardWordEnd :: TextIter -> IO Bool

-- | Move TextIter backwards to the next word beginning.
--   
--   
--   
- Returns True if the iterator has moved to a new word
--   beginning.
--   
textIterBackwardWordStart :: TextIter -> IO Bool

-- | Move TextIter forwards to the next cursor position.
--   
--   
--   
- Some characters are composed of two Unicode codes. This function
--   ensures that TextIter does not point in between such double
--   characters.
--   
- Returns True if TextIter moved and points to a character
--   (not to an object).
--   
textIterForwardCursorPosition :: TextIter -> IO Bool

-- | Move TextIter backwards to the next cursor position.
--   
--   
--   
- Some characters are composed of two Unicode codes. This function
--   ensures that TextIter does not point in between such double
--   characters.
--   
- Returns True if TextIter moved and points to a character
--   (not to an object).
--   
textIterBackwardCursorPosition :: TextIter -> IO Bool

-- | Move TextIter forwards by n cursor positions.
--   
--   
--   
- Returns True if TextIter moved and points to a character
--   (not to an object).
--   
textIterForwardCursorPositions :: TextIter -> Int -> IO Bool

-- | Move TextIter backwards by n cursor positions.
--   
--   
--   
- Returns True if TextIter moved and points to a character
--   (not to an object).
--   
textIterBackwardCursorPositions :: TextIter -> Int -> IO Bool

-- | Move TextIter forwards by n sentence ends.
--   
--   
--   
- Returns True if the iterator is pointing to a new sentence
--   end.
--   
textIterForwardSentenceEnds :: TextIter -> Int -> IO Bool

-- | Move TextIter backwards by n sentence beginnings.
--   
--   
--   
- Returns True if the iterator is pointing to a new sentence
--   start.
--   
textIterBackwardSentenceStarts :: TextIter -> Int -> IO Bool

-- | Move TextIter forwards to the next sentence end.
--   
--   
--   
- Returns True if the iterator has moved to a new sentence end.
--   
textIterForwardSentenceEnd :: TextIter -> IO Bool

-- | Move TextIter backwards to the next sentence beginning.
--   
--   
--   
- Returns True if the iterator has moved to a new sentence
--   beginning.
--   
textIterBackwardSentenceStart :: TextIter -> IO Bool

-- | Set TextIter to an offset within the buffer.
textIterSetOffset :: TextIter -> Int -> IO ()

-- | Set TextIter to a line within the buffer.
--   
--   
--   
- If number is negative or larger than the number of lines in the
--   buffer, moves iter to the start of the last line in the
--   buffer.
--   
textIterSetLine :: TextIter -> Int -> IO ()

-- | Set TextIter to an offset within the line.
--   
--   
--   
- The given character offset must be less than or equal to the
--   number of characters in the line; if equal, the iterator moves to the
--   start of the next line.
--   
textIterSetLineOffset :: TextIter -> Int -> IO ()

-- | Like textIterSetLineOffset, but the offset is in visible
--   characters, i.e. text with a tag making it invisible is not counted in
--   the offset.
textIterSetVisibleLineOffset :: TextIter -> Int -> IO ()

-- | Moves iter forward to the "end iterator," which points one
--   past the last valid character in the buffer.
textIterForwardToEnd :: TextIter -> IO ()

-- | Moves the iterator to point to the paragraph delimiter characters,
--   which will be either a newline, a carriage return, a carriage
--   return/newline in sequence, or the Unicode paragraph separator
--   character. If the iterator is already at the paragraph delimiter
--   characters, moves to the paragraph delimiter characters for the next
--   line. If iter is on the last line in the buffer, which does
--   not end in paragraph delimiters, moves to the end iterator (end of the
--   last line), and returns False.
textIterForwardToLineEnd :: TextIter -> IO Bool

-- | Moves TextIter forward to the next change of a TextTag.
--   
--   
--   
- If Nothing is supplied, any TextTag will be matched.
--   
- Returns True if there was a tag toggle after
--   TextIter.
--   
textIterForwardToTagToggle :: TextIter -> Maybe TextTag -> IO Bool

-- | Moves TextIter backward to the next change of a TextTag.
--   
--   
--   
- If Nothing is supplied, any TextTag will be
--   matched.
--   
- Returns True if there was a tag toggle before
--   TextIter.
--   
textIterBackwardToTagToggle :: TextIter -> Maybe TextTag -> IO Bool

-- | Move TextIter forward until a predicate function returns True.
--   
--   
--   
- If pred returns True before limit is reached,
--   the search is stopped and the return value is True.
--   
- If limit is Nothing, the search stops at the end of the
--   buffer.
--   
textIterForwardFindChar :: TextIter -> (Char -> Bool) -> Maybe TextIter -> IO Bool

-- | Move TextIter backward until a predicate function returns True.
--   
--   
--   
- If pred returns True before limit is reached,
--   the search is stopped and the return value is True.
--   
- If limit is Nothing, the search stops at the end of the
--   buffer.
--   
textIterBackwardFindChar :: TextIter -> (Char -> Bool) -> Maybe TextIter -> IO Bool

-- | Search forward for a specific string.
--   
--   
--   
- If specified, the last character which is tested against that
--   start of the search pattern will be limit.
--   
- TextSearchFlags may be empty.
--   
- Returns the start and end position of the string found.
--   
textIterForwardSearch :: GlibString string => TextIter -> string -> [TextSearchFlags] -> Maybe TextIter -> IO (Maybe (TextIter, TextIter))

-- | Search backward for a specific string.
--   
--   
--   
- If specified, the last character which is tested against that
--   start of the search pattern will be limit.
--   
- TextSearchFlags my be empty.
--   
- Returns the start and end position of the string found.
--   
textIterBackwardSearch :: GlibString string => TextIter -> string -> [TextSearchFlags] -> Maybe TextIter -> IO (Maybe (TextIter, TextIter))

-- | Compare two TextIter for equality.
textIterEqual :: TextIter -> TextIter -> IO Bool

-- | Compare two TextIter.
textIterCompare :: TextIter -> TextIter -> IO Ordering

-- | Checks whether iter falls in the range [start, end). start and end
--   must be in ascending order.
textIterInRange :: TextIter -> TextIter -> TextIter -> IO Bool

-- | Swaps the value of first and second if second comes before first in
--   the buffer. That is, ensures that first and second are in sequence.
--   Most text buffer functions that take a range call this automatically
--   on your behalf, so there's no real reason to call it yourself in those
--   cases. There are some exceptions, such as textIterInRange, that
--   expect a pre-sorted range.
textIterOrder :: TextIter -> TextIter -> IO ()

-- | Moves iter to the start of the next visible line. Returns
--   True if there was a next line to move to, and False
--   if iter was simply moved to the end of the buffer and is now
--   not dereferenceable, or if iter was already at the end of the
--   buffer.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
textIterForwardVisibleLine :: TextIter -> IO Bool

-- | Moves iter to the start of the previous visible line. Returns
--   True if iter could be moved; i.e. if iter
--   was at character offset 0, this function returns False.
--   Therefore if iter was already on line 0, but not at the start
--   of the line, iter is snapped to the start of the line and the
--   function returns True. (Note that this implies that in a loop
--   calling this function, the line number may not change on every
--   iteration, if your first iteration is on line 0.)
--   
--   
--   
- Available since Gtk+ version 2.8
--   
textIterBackwardVisibleLine :: TextIter -> IO Bool

-- | Moves count visible lines forward, if possible (if
--   count would move past the start or end of the buffer, moves
--   to the start or end of the buffer). The return value indicates whether
--   the iterator moved onto a dereferenceable position; if the iterator
--   didn't move, or moved onto the end iterator, then False is
--   returned. If count is 0, the function does nothing and
--   returns False. If count is negative, moves backward
--   by 0 - count lines.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
textIterForwardVisibleLines :: TextIter -> Int -> IO Bool

-- | Moves count visible lines backward, if possible (if
--   count would move past the start or end of the buffer, moves
--   to the start or end of the buffer). The return value indicates whether
--   the iterator moved onto a dereferenceable position; if the iterator
--   didn't move, or moved onto the end iterator, then False is
--   returned. If count is 0, the function does nothing and
--   returns False. If count is negative, moves forward
--   by 0 - count lines.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
textIterBackwardVisibleLines :: TextIter -> Int -> IO Bool

-- | Calls textIterForwardVisibleWordEnd up to count times.
textIterForwardVisibleWordEnds :: TextIter -> Int -> IO Bool

-- | Calls textIterBackwardVisibleWordStart up to count times.
textIterBackwardVisibleWordStarts :: TextIter -> Int -> IO Bool

-- | Moves forward to the next visible word end. (If iter is currently on a
--   word end, moves forward to the next one after that.) Word breaks are
--   determined by Pango and should be correct for nearly any language (if
--   not, the correct fix would be to the Pango word break algorithms).
textIterForwardVisibleWordEnd :: TextIter -> IO Bool

-- | Moves backward to the previous visible word start. (If iter is
--   currently on a word start, moves backward to the next one after that.)
--   Word breaks are determined by Pango and should be correct for nearly
--   any language (if not, the correct fix would be to the Pango word break
--   algorithms).
textIterBackwardVisibleWordStart :: TextIter -> IO Bool

-- | Moves iter forward to the next visible cursor position. See
--   textIterForwardCursorPosition for details.
textIterForwardVisibleCursorPosition :: TextIter -> IO Bool

-- | Moves iter forward to the previous visible cursor position. See
--   textIterBackwardCursorPosition for details.
textIterBackwardVisibleCursorPosition :: TextIter -> IO Bool

-- | Moves up to count visible cursor positions. See
--   textIterForwardCursorPosition for details.
textIterForwardVisibleCursorPositions :: TextIter -> Int -> IO Bool

-- | Moves up to count visible cursor positions. See
--   textIterBackwardCursorPosition for details.
textIterBackwardVisibleCursorPositions :: TextIter -> Int -> IO Bool

-- | 'visibleLineOffset' property. See textIterGetVisibleLineOffset
--   and textIterSetVisibleLineOffset
textIterVisibleLineOffset :: Attr TextIter Int

-- | 'offset' property. See textIterGetOffset and
--   textIterSetOffset
textIterOffset :: Attr TextIter Int

-- | 'lineOffset' property. See textIterGetLineOffset and
--   textIterSetLineOffset
textIterLineOffset :: Attr TextIter Int

-- | 'line' property. See textIterGetLine and textIterSetLine
textIterLine :: Attr TextIter Int

-- | Stores attributed text for display in a TextView
module Graphics.UI.Gtk.Multiline.TextBuffer
data TextBuffer
class GObjectClass o => TextBufferClass o
castToTextBuffer :: GObjectClass obj => obj -> TextBuffer
gTypeTextBuffer :: GType
toTextBuffer :: TextBufferClass o => o -> TextBuffer

-- | Creates a new text buffer.
textBufferNew :: Maybe TextTagTable -> IO TextBuffer

-- | Obtains the number of lines in the buffer. This value is cached, so
--   the function is very fast.
textBufferGetLineCount :: TextBufferClass self => self -> IO Int

-- | Gets the number of characters in the buffer. The character count is
--   cached, so this function is very fast.
textBufferGetCharCount :: TextBufferClass self => self -> IO Int

-- | Get the TextTagTable associated with this buffer.
textBufferGetTagTable :: TextBufferClass self => self -> IO TextTagTable

-- | Inserts text at position iter. Emits the
--   insertText signal; insertion actually occurs in the default
--   handler for the signal. iter is invalidated when insertion
--   occurs (because the buffer contents change).
textBufferInsert :: (TextBufferClass self, GlibString string) => self -> TextIter -> string -> IO ()

-- | Inserts text at position iter. Similar to
--   textBufferInsert but uses ByteString buffers.
--   
--   
--   
- The passed-in buffer must contain a valid UTF-8 encoded
--   string.
--   
textBufferInsertByteString :: TextBufferClass self => self -> TextIter -> ByteString -> IO ()

-- | Simply calls textBufferInsert, using the current cursor
--   position as the insertion point.
textBufferInsertAtCursor :: (TextBufferClass self, GlibString string) => self -> string -> IO ()

-- | Simply calls textBufferInsert, using the current cursor
--   position as the insertion point. Similar to
--   textBufferInsertAtCursor but uses ByteString buffers.
--   
--   
--   
- The passed-in buffer must contain a valid UTF-8 encoded
--   string.
--   
textBufferInsertByteStringAtCursor :: TextBufferClass self => self -> ByteString -> IO ()

-- | Like textBufferInsert, but the insertion will not occur if
--   iter is at a non-editable location in the buffer. Usually you
--   want to prevent insertions at ineditable locations if the insertion
--   results from a user action (is interactive).
--   
--   If no tag is at the specified position, use the default value
--   def to decide if the text should be inserted. This value
--   could be set to the result of textViewGetEditable.
textBufferInsertInteractive :: (TextBufferClass self, GlibString string) => self -> TextIter -> string -> Bool -> IO Bool

-- | Similar to textBufferInsertInteractive but uses
--   ByteString buffers.
--   
--   
--   
- The passed-in buffer must contain a valid UTF-8 encoded
--   string.
--   
textBufferInsertByteStringInteractive :: TextBufferClass self => self -> TextIter -> ByteString -> Bool -> IO Bool

-- | Calls textBufferInsertInteractive at the cursor position.
textBufferInsertInteractiveAtCursor :: (TextBufferClass self, GlibString string) => self -> string -> Bool -> IO Bool

-- | Similar to textBufferInsertInteractiveAtCursor but uses
--   ByteString buffers.
--   
--   
--   
- The passed-in buffer must contain a valid UTF-8 encoded
--   string.
--   
textBufferInsertByteStringInteractiveAtCursor :: TextBufferClass self => self -> ByteString -> Bool -> IO Bool

-- | Copies text, tags, and pixbufs between start and end
--   (the order of start and end doesn't matter) and
--   inserts the copy at iter. Used instead of simply
--   getting/inserting text because it preserves images and tags. If
--   start and end are in a different buffer from
--   buffer, the two buffers must share the same tag table.
--   
--   Implemented via emissions of the insert-text and applyTag
--   signals, so expect those.
textBufferInsertRange :: TextBufferClass self => self -> TextIter -> TextIter -> TextIter -> IO ()

-- | Same as textBufferInsertRange, but does nothing if the
--   insertion point isn't editable. The defaultEditable parameter
--   indicates whether the text is editable at iter if no tags
--   enclosing iter affect editability. Typically the result of
--   textViewGetEditable is appropriate here.
textBufferInsertRangeInteractive :: TextBufferClass self => self -> TextIter -> TextIter -> TextIter -> Bool -> IO Bool

-- | Deletes text between start and end. The order of
--   start and end is not actually relevant;
--   textBufferDelete will reorder them. This function actually
--   emits the deleteRange signal, and the default handler of that
--   signal deletes the text. Because the buffer is modified, all
--   outstanding iterators become invalid after calling this function;
--   however, the start and end will be re-initialized to
--   point to the location where text was deleted.
textBufferDelete :: TextBufferClass self => self -> TextIter -> TextIter -> IO ()

-- | Deletes all editable text in the given range. Calls
--   textBufferDelete for each editable sub-range of
--   [start,end). start and end are
--   revalidated to point to the location of the last deleted range, or
--   left untouched if no text was deleted.
textBufferDeleteInteractive :: TextBufferClass self => self -> TextIter -> TextIter -> Bool -> IO Bool

-- | Deletes current contents of buffer, and inserts text
--   instead. Similar to textBufferSetText but uses
--   ByteString buffers.
--   
--   
--   
- The passed-in buffer must contain a valid UTF-8 encoded
--   string.
--   
textBufferSetByteString :: TextBufferClass self => self -> ByteString -> IO ()

-- | Returns the text in the range [start,end). Similar
--   to textBufferGetText but uses ByteString buffers.
--   
--   
--   
- The returned buffer is a UTF-8 encoded string.
--   
textBufferGetByteString :: TextBufferClass self => self -> TextIter -> TextIter -> Bool -> IO ByteString

-- | Returns the text in the range [start,end). Similar
--   to textBufferGetSlice but uses ByteString buffers.
--   
--   
--   
- The returned buffer is a UTF-8 encoded string.
--   
textBufferGetByteStringSlice :: TextBufferClass self => self -> TextIter -> TextIter -> Bool -> IO ByteString

-- | Deletes current contents of buffer, and inserts text
--   instead.
textBufferSetText :: (TextBufferClass self, GlibString string) => self -> string -> IO ()

-- | Returns the text in the range [start,end). Excludes
--   undisplayed text (text marked with tags that set the invisibility
--   attribute) if includeHiddenChars is False. Does not
--   include characters representing embedded images, so character indexes
--   into the returned string do not correspond to character indexes
--   into the buffer. Contrast with textBufferGetSlice.
textBufferGetText :: (TextBufferClass self, GlibString string) => self -> TextIter -> TextIter -> Bool -> IO string

-- | Returns the text in the range [start,end). Excludes
--   undisplayed text (text marked with tags that set the invisibility
--   attribute) if includeHiddenChars is False. The
--   returned string includes a (chr 0xFFFC) character whenever
--   the buffer contains embedded images, so character indexes into the
--   returned string do correspond to character indexes into the
--   buffer. Contrast with textBufferGetText. Note that (chr
--   0xFFFC) can occur in normal text as well, so it is not a reliable
--   indicator that a pixbuf or widget is in the buffer.
textBufferGetSlice :: (TextBufferClass self, GlibString string) => self -> TextIter -> TextIter -> Bool -> IO string

-- | Inserts an image into the text buffer at iter. The image will
--   be counted as one character in character counts, and when obtaining
--   the buffer contents as a string, will be represented by the Unicode
--   "object replacement character" (chr 0xFFFC). Note that the
--   "slice" variants for obtaining portions of the buffer as a string
--   include this character for pixbufs, but the "text" variants do not.
--   e.g. see textBufferGetSlice and textBufferGetText.
textBufferInsertPixbuf :: TextBufferClass self => self -> TextIter -> Pixbuf -> IO ()

-- | Creates a mark at position where. If markName is
--   Nothing, the mark is anonymous; otherwise, the mark can be
--   retrieved by name using textBufferGetMark. If a mark has left
--   gravity, and text is inserted at the mark's current location, the mark
--   will be moved to the left of the newly-inserted text. If the mark has
--   right gravity (leftGravity = False), the mark will
--   end up on the right of newly-inserted text. The standard left-to-right
--   cursor is a mark with right gravity (when you type, the cursor stays
--   on the right side of the text you're typing).
--   
--   Emits the markSet signal as notification of the mark's initial
--   placement.
textBufferCreateMark :: TextBufferClass self => self -> Maybe MarkName -> TextIter -> Bool -> IO TextMark

-- | Adds the mark at position given by the TextIter. The mark may
--   not be added to any other buffer.
--   
--   Emits the markSet signal as notification of the mark's initial
--   placement.
textBufferAddMark :: TextBufferClass self => self -> TextMark -> TextIter -> IO ()

-- | Moves mark to the new location where. Emits the
--   markSet signal as notification of the move.
textBufferMoveMark :: (TextBufferClass self, TextMarkClass mark) => self -> mark -> TextIter -> IO ()

-- | Moves the mark named name (which must exist) to location
--   where. See textBufferMoveMark for details.
textBufferMoveMarkByName :: TextBufferClass self => self -> MarkName -> TextIter -> IO ()

-- | Deletes mark, so that it's no longer located anywhere in the
--   buffer. Most operations on mark become invalid. There is no
--   way to undelete a mark. textMarkGetDeleted will return
--   True after this function has been called on a mark;
--   textMarkGetDeleted indicates that a mark no longer belongs to a
--   buffer. The markDeleted signal will be emitted as notification
--   after the mark is deleted.
textBufferDeleteMark :: (TextBufferClass self, TextMarkClass mark) => self -> mark -> IO ()

-- | Deletes the mark named name; the mark must exist. See
--   textBufferDeleteMark for details.
textBufferDeleteMarkByName :: TextBufferClass self => self -> MarkName -> IO ()

-- | Returns the mark named name in the buffer, or
--   Nothing if no such mark exists in the buffer.
textBufferGetMark :: TextBufferClass self => self -> MarkName -> IO (Maybe TextMark)

-- | Returns the mark that represents the cursor (insertion point).
--   Equivalent to calling liftM fromJust $ textBufferGetMark
--   "insert", but very slightly more efficient, and involves less
--   typing.
textBufferGetInsert :: TextBufferClass self => self -> IO TextMark

-- | Returns the mark that represents the selection bound. Equivalent to
--   calling liftM fromJust $ textBufferGetMark "selection_bound",
--   but very slightly more efficient, and involves less typing.
--   
--   The currently-selected text in buffer is the region between
--   the "selection_bound" and "insert" marks. If "selection_bound" and
--   "insert" are in the same place, then there is no current selection.
--   textBufferGetSelectionBounds is another convenient function for
--   handling the selection, if you just want to know whether there's a
--   selection and what its bounds are.
textBufferGetSelectionBound :: TextBufferClass self => self -> IO TextMark

-- | This function moves the "insert" and "selection_bound" marks
--   simultaneously. If you move them to the same place in two steps with
--   textBufferMoveMark, you will temporarily select a region in
--   between their old and new locations, which can be pretty inefficient
--   since the temporarily-selected region will force stuff to be
--   recalculated. This function moves them as a unit, which can be
--   optimized.
textBufferPlaceCursor :: TextBufferClass self => self -> TextIter -> IO ()

-- | Emits the applyTag signal on the buffer. The default handler
--   for the signal applies tag to the given range. start
--   and end do not have to be in order.
textBufferApplyTag :: (TextBufferClass self, TextTagClass tag) => self -> tag -> TextIter -> TextIter -> IO ()

-- | Emits the removeTag signal. The default handler for the signal
--   removes all occurrences of tag from the given range.
--   start and end don't have to be in order.
textBufferRemoveTag :: (TextBufferClass self, TextTagClass tag) => self -> tag -> TextIter -> TextIter -> IO ()

-- | Calls textTagTableLookup on the buffer's tag table to get a
--   TextTag, then calls textBufferApplyTag.
textBufferApplyTagByName :: TextBufferClass self => self -> TagName -> TextIter -> TextIter -> IO ()

-- | Calls textTagTableLookup on the buffer's tag table to get a
--   TextTag, then calls textBufferRemoveTag.
textBufferRemoveTagByName :: TextBufferClass self => self -> TagName -> TextIter -> TextIter -> IO ()

-- | Removes all tags in the range between start and end.
--   Be careful with this function; it could remove tags added in code
--   unrelated to the code you're currently writing. That is, using this
--   function is probably a bad idea if you have two or more unrelated code
--   sections that add tags.
textBufferRemoveAllTags :: TextBufferClass self => self -> TextIter -> TextIter -> IO ()

-- | Obtains an iterator pointing to charOffset within the given
--   line. The charOffset must exist, offsets off the end of the
--   line are not allowed.
textBufferGetIterAtLineOffset :: TextBufferClass self => self -> Int -> Int -> IO TextIter

-- | Creates an iterator pointing to a position charOffset chars
--   from the start of the entire buffer. If charOffset is -1 or
--   greater than the number of characters in the buffer, the end iterator
--   is returned, that is the iterator one past the last valid character in
--   the buffer.
textBufferGetIterAtOffset :: TextBufferClass self => self -> Int -> IO TextIter

-- | Create an iterator at a specific line.
textBufferGetIterAtLine :: TextBufferClass self => self -> Int -> IO TextIter

-- | Create an iterator from a mark.
textBufferGetIterAtMark :: (TextBufferClass self, TextMarkClass mark) => self -> mark -> IO TextIter

-- | Create an iterator at the first position in the text buffer. This is
--   the same as using textBufferGetIterAtOffset to get the iter at
--   character offset 0.
textBufferGetStartIter :: TextBufferClass self => self -> IO TextIter

-- | Returns the "end iterator," one past the last valid character in the
--   text buffer. If dereferenced with textIterGetChar, the end
--   iterator has a character value of 0. The entire buffer lies in the
--   range from the first position in the buffer (call
--   textBufferGetStartIter to get character position 0) to the end
--   iterator.
textBufferGetEndIter :: TextBufferClass self => self -> IO TextIter

-- | Indicates whether the buffer has been modified since the last call to
--   textBufferSetModified set the modification flag to
--   False. Used for example to enable a "save" function in a text
--   editor.
--   
--   It is often more convenient to use onModifiedChanged.
textBufferGetModified :: TextBufferClass self => self -> IO Bool

-- | Used to keep track of whether the buffer has been modified since the
--   last time it was saved. Whenever the buffer is saved to disk, call
--   textBufferSetModified buffer False. When the buffer is
--   modified, it will automatically toggled on the modified bit again.
--   When the modified bit flips, the buffer emits a modifiedChanged
--   signal.
textBufferSetModified :: TextBufferClass self => self -> Bool -> IO ()

-- | Deletes the range between the "insert" and "selection_bound" marks,
--   that is, the currently-selected text. If interactive is
--   True, the editability of the selection will be considered
--   (users can't delete uneditable text).
textBufferDeleteSelection :: TextBufferClass self => self -> Bool -> Bool -> IO Bool

-- | Check if a selection exists.
textBufferHasSelection :: TextBufferClass self => self -> IO Bool

-- | Returns the bounds of the selection (if the selection has length 0,
--   then start and end will be the same). start
--   and end will be in ascending order.
textBufferGetSelectionBounds :: TextBufferClass self => self -> IO (TextIter, TextIter)

-- | This function moves the "insert" and "selection_bound" marks
--   simultaneously. If you move them in two steps with
--   textBufferMoveMark, you will temporarily select a region in
--   between their old and new locations, which can be pretty inefficient
--   since the temporarily-selected region will force stuff to be
--   recalculated. This function moves them as a unit, which can be
--   optimized.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
textBufferSelectRange :: TextBufferClass self => self -> TextIter -> TextIter -> IO ()

-- | Retrieves the first and last iterators in the buffer, i.e. the entire
--   buffer lies within the range [start,end).
textBufferGetBounds :: TextBufferClass self => self -> IO (TextIter, TextIter)

-- | Called to indicate that the buffer operations between here and a call
--   to textBufferEndUserAction are part of a single user-visible
--   operation. The operations between textBufferBeginUserAction and
--   textBufferEndUserAction can then be grouped when creating an
--   undo stack. TextBuffer maintains a count of calls to
--   textBufferBeginUserAction that have not been closed with a call
--   to textBufferEndUserAction, and emits the
--   beginUserAction and endUserAction signals only for the
--   outermost pair of calls. This allows you to build user actions from
--   other user actions.
--   
--   The "interactive" buffer mutation functions, such as
--   textBufferInsertInteractive, automatically call begin/end user
--   action around the buffer operations they perform, so there's no need
--   to add extra calls if you user action consists solely of a single call
--   to one of those functions.
textBufferBeginUserAction :: TextBufferClass self => self -> IO ()

-- | Should be paired with a call to textBufferBeginUserAction. See
--   that function for a full explanation.
textBufferEndUserAction :: TextBufferClass self => self -> IO ()

-- | Performs the appropriate action as if the user hit the delete key with
--   the cursor at the position specified by iter. In the normal
--   case a single character will be deleted, but when combining accents
--   are involved, more than one character can be deleted, and when
--   precomposed character and accent combinations are involved, less than
--   one character will be deleted.
--   
--   Because the buffer is modified, all outstanding iterators become
--   invalid after calling this function; however, the iter will
--   be re-initialized to point to the location where text was deleted.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
textBufferBackspace :: TextBufferClass self => self -> TextIter -> Bool -> Bool -> IO Bool

-- | Inserts a child widget anchor into the text buffer at iter.
--   The anchor will be counted as one character in character counts, and
--   when obtaining the buffer contents as a string, will be represented by
--   the Unicode "object replacement character" (chr 0xFFFC). Note
--   that the "slice" variants for obtaining portions of the buffer as a
--   string include this character for child anchors, but the "text"
--   variants do not. e.g. see textBufferGetSlice and
--   textBufferGetText. Consider textBufferCreateChildAnchor
--   as a more convenient alternative to this function.
textBufferInsertChildAnchor :: TextBufferClass self => self -> TextIter -> TextChildAnchor -> IO ()

-- | This is a convenience function which simply creates a child anchor
--   with textBufferChildAnchorNew and inserts it into the buffer
--   with textBufferInsertChildAnchor.
textBufferCreateChildAnchor :: TextBufferClass self => self -> TextIter -> IO TextChildAnchor

-- | Obtains the location of anchor within buffer.
textBufferGetIterAtChildAnchor :: TextBufferClass self => self -> TextIter -> TextChildAnchor -> IO ()

-- | Pastes the contents of a clipboard at the given location.
--   (Note: pasting is asynchronous, that is, we'll ask for the paste data
--   and return, and at some point later after the main loop runs, the
--   paste data will be inserted.)
textBufferPasteClipboard :: TextBufferClass self => self -> Clipboard -> TextIter -> Bool -> IO ()

-- | Pastes the contents of a clipboard at the insertion point. (Note:
--   pasting is asynchronous, that is, we'll ask for the paste data and
--   return, and at some point later after the main loop runs, the paste
--   data will be inserted.)
textBufferPasteClipboardAtCursor :: TextBufferClass self => self -> Clipboard -> Bool -> IO ()

-- | Copies the currently-selected text to a clipboard.
textBufferCopyClipboard :: TextBufferClass self => self -> Clipboard -> IO ()

-- | Copies the currently-selected text to a clipboard, then deletes said
--   text if it's editable.
textBufferCutClipboard :: TextBufferClass self => self -> Clipboard -> Bool -> IO ()

-- | Adds clipboard to the list of clipboards in which the selection
--   contents of self are available. In most cases,
--   clipboard will be the Clipboard of type
--   selectionPrimary for a view of self.
textBufferAddSelectionClipboard :: TextBufferClass self => self -> Clipboard -> IO ()

-- | Removes a Clipboard added with
--   textBufferAddSelectionClipboard.
textBufferRemoveSelectionClipboard :: TextBufferClass self => self -> Clipboard -> IO ()

-- | Text Tag Table.
textBufferTagTable :: (TextBufferClass self, TextTagTableClass textTagTable) => ReadWriteAttr self TextTagTable textTagTable

-- | The text content of the buffer. Without child widgets and images, see
--   textBufferGetText for more information.
--   
--   Default value: ""
textBufferText :: (TextBufferClass self, GlibString string) => Attr self string

-- | The 'modified' property. See textBufferGetModified and
--   textBufferSetModified
textBufferModified :: TextBufferClass self => Attr self Bool

-- | A TextTag was applied to a region of text.
applyTag :: TextBufferClass self => Signal self (TextTag -> TextIter -> TextIter -> IO ())

-- | A new atomic user action is started.
--   
--   
--   
- Together with endUserAction these signals can be used to
--   build an undo stack.
--   
beginUserAction :: TextBufferClass self => Signal self (IO ())

-- | Emitted when the contents of the buffer change.
bufferChanged :: TextBufferClass self => Signal self (IO ())

-- | A range of text is about to be deleted.
deleteRange :: TextBufferClass self => Signal self (TextIter -> TextIter -> IO ())

-- | An atomic action has ended.
--   
--   
--   
- see beginUserAction
--   
endUserAction :: TextBufferClass self => Signal self (IO ())

-- | A Pixbuf is inserted into the buffer.
--   
--   
--   
- See note in bufferInsertText.
--   
insertPixbuf :: TextBufferClass self => Signal self (TextIter -> Pixbuf -> IO ())

-- | The insertChildAnchor signal is emitted to insert a
--   TextChildAnchor in a TextBuffer. Insertion actually
--   occurs in the default handler.
--   
--   
--   
- See note in bufferInsertText.
--   
insertChildAnchor :: TextBufferClass self => Signal self (TextIter -> TextChildAnchor -> IO ())

-- | Some text is inserted. Insertion actually occurs in the default
--   handler.
--   
--   
--   
- The function connected to this handler may not modify the buffer
--   since this would invalidate the iterator. If this function replaces
--   the default handler, it needs to stop the emission of this signal in
--   order to prevent the default handler from running. If additional text
--   should be inserted, this can be done using the after function
--   to connect.
--   
bufferInsertText :: (TextBufferClass self, GlibString string) => Signal self (TextIter -> string -> IO ())

-- | A TextMark within the buffer was deleted.
markDeleted :: TextBufferClass self => Signal self (TextMark -> IO ())

-- | A TextMark was inserted into the buffer.
markSet :: TextBufferClass self => Signal self (TextIter -> TextMark -> IO ())
modifiedChanged :: TextBufferClass self => Signal self (IO ())

-- | The pasteDone signal is emitted after paste operation has been
--   completed. This is useful to properly scroll the view to the end of
--   the pasted text. See textBufferPasteClipboard for more details.
pasteDone :: TextBufferClass self => Signal self (Clipboard -> IO ())

-- | The textbuffer has changed.
removeTag :: TextBufferClass self => Signal self (TextTag -> TextIter -> TextIter -> IO ())

-- | Interface for widgets which can are used for editing cells
module Graphics.UI.Gtk.ModelView.CellEditable
data CellEditable
class GObjectClass o => CellEditableClass o
castToCellEditable :: GObjectClass obj => obj -> CellEditable
toCellEditable :: CellEditableClass o => o -> CellEditable

-- | Begins editing on a cellEditable. event is the
--   Event that began the editing process.
cellEditableStartEditing :: CellEditableClass self => self -> EventM EAny ()

-- | Emits the cellEditableEditingDone signal.
cellEditableEmitEditingDone :: CellEditableClass self => self -> IO ()

-- | Emits the cellEditableRemoveWidget signal.
cellEditableEmitRemoveWidget :: CellEditableClass self => self -> IO ()

-- | Indicates whether editing on the cell has been canceled.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.20
--   
cellEditableEditingCanceled :: CellEditableClass self => Attr self Bool

-- | This signal is a sign for the cell renderer to update its value from
--   the cellEditable.
--   
--   Implementations of CellEditable are responsible for emitting
--   this signal when they are done editing, e.g. Entry is emitting
--   it when the user presses Enter.
--   
--   cellEditableEmitEditingDone is a convenience method for
--   emitting ::editing-done.
cellEditableEditingDone :: CellEditableClass self => Signal self (IO ())

-- | This signal is meant to indicate that the cell is finished editing,
--   and the widget may now be destroyed.
--   
--   Implementations of CellEditable are responsible for emitting
--   this signal when they are done editing. It must be emitted after the
--   cellEditableEditingDone signal, to give the cell renderer a
--   chance to update the cell's value before the widget is removed.
--   
--   cellEditableEmitRemoveWidget is a convenience method for
--   emitting ::remove-widget.
cellEditableRemoveWidget :: CellEditableClass self => Signal self (IO ())

-- | Controls the keyboard/mouse/monitors combination.
--   
--   
--   
- Module available since Gdk version 2.2
--   
module Graphics.UI.Gtk.Gdk.Display
data Display
class GObjectClass o => DisplayClass o
castToDisplay :: GObjectClass obj => obj -> Display
gTypeDisplay :: GType
toDisplay :: DisplayClass o => o -> Display

-- | Opens a display.
displayOpen :: GlibString string => string -> IO (Maybe Display)

-- | Gets the default Display. This is a convenience function for
--   displayManagerGetDefaultDisplay displayManagerGet.
displayGetDefault :: IO (Maybe Display)

-- | Gets the name of the display.
displayGetName :: GlibString string => Display -> IO string

-- | Gets the number of screen managed by the display.
displayGetNScreens :: Display -> IO Int

-- | Returns a screen object for one of the screens of the display.
displayGetScreen :: Display -> Int -> IO Screen

-- | Get the default Screen for display.
displayGetDefaultScreen :: Display -> IO Screen

-- | Release any pointer grab.
displayPointerUngrab :: Display -> TimeStamp -> IO ()

-- | Release any keyboard grab
displayKeyboardUngrab :: Display -> TimeStamp -> IO ()

-- | Test if the pointer is grabbed.
displayPointerIsGrabbed :: Display -> IO Bool

-- | Emits a short beep on display
displayBeep :: Display -> IO ()

-- | Flushes any requests queued for the windowing system and waits until
--   all requests have been handled. This is often used for making sure
--   that the display is synchronized with the current state of the
--   program. Calling displaySync before errorTrapPop makes
--   sure that any errors generated from earlier requests are handled
--   before the error trap is removed.
--   
--   This is most useful for X11. On windowing systems where requests are
--   handled synchronously, this function will do nothing.
displaySync :: Display -> IO ()

-- | Flushes any requests queued for the windowing system; this happens
--   automatically when the main loop blocks waiting for new events, but if
--   your application is drawing without returning control to the main
--   loop, you may need to call this function explicitly. A common case
--   where this function needs to be called is when an application is
--   executing drawing commands from a thread other than the thread where
--   the main loop is running.
--   
--   This is most useful for X11. On windowing systems where requests are
--   handled synchronously, this function will do nothing.
--   
--   
--   
- Available since Gdk version 2.4
--   
displayFlush :: Display -> IO ()

-- | Closes the connection to the windowing system for the given display,
--   and cleans up associated resources.
displayClose :: Display -> IO ()

-- | Returns the list of available input devices attached to
--   display.
displayListDevices :: Display -> IO [Device]

-- | Sets the double click time (two clicks within this time interval count
--   as a double click and result in an eventButton where
--   eventClick is DoubleClick). Applications should
--   not set this, it is a global user-configured setting.
displaySetDoubleClickTime :: Display -> Int -> IO ()

-- | Sets the double click distance (two clicks within this distance count
--   as a double click and result in an eventButton where
--   eventClick is DoubleClick). See also
--   displaySetDoubleClickTime. Applications should not set
--   this, it is a global user-configured setting.
--   
--   
--   
- Available since Gdk version 2.4
--   
displaySetDoubleClickDistance :: Display -> Int -> IO ()

-- | Gets the current location of the pointer and the current modifier mask
--   for a given display.
displayGetPointer :: Display -> IO (Screen, [Modifier], Int, Int)

-- | Obtains the window underneath the mouse pointer, returning the
--   location of the pointer in that window in winX, winY
--   for screen. Returns Nothing if the window under the
--   mouse pointer is not known to GDK (for example, belongs to another
--   application).
displayGetWindowAtPointer :: Display -> IO (Maybe (DrawWindow, Int, Int))

-- | Moves the pointer of display to the point
--   x,y on the screen screen, unless the
--   pointer is confined to a window by a grab, in which case it will be
--   moved as far as allowed by the grab. Warping the pointer creates
--   events as if the user had moved the mouse instantaneously to the
--   destination.
--   
--   Note that the pointer should normally be under the control of the
--   user. This function was added to cover some rare use cases like
--   keyboard navigation support for the color picker in the
--   ColorSelectionDialog.
--   
--   
--   
- Available since Gdk version 2.8
--   
displayWarpPointer :: Display -> Screen -> Int -> Int -> IO ()

-- | Returns True if multicolored cursors are supported on
--   display. Otherwise, cursors have only a foreground and a
--   background color.
--   
--   
--   
- Available since Gdk version 2.4
--   
displaySupportsCursorColor :: Display -> IO Bool

-- | Returns True if cursors can use an 8bit alpha channel on
--   display. Otherwise, cursors are restricted to bilevel alpha
--   (i.e. a mask).
--   
--   
--   
- Available since Gdk version 2.4
--   
displaySupportsCursorAlpha :: Display -> IO Bool

-- | Returns the default size to use for cursors on display.
--   
--   
--   
- Available since Gdk version 2.4
--   
displayGetDefaultCursorSize :: Display -> IO Int

-- | Gets the maximal size to use for cursors on display.
--   
--   
--   
- Available since Gdk version 2.4
--   
displayGetMaximalCursorSize :: Display -> IO (Int, Int)

-- | Returns the default group leader window for all toplevel windows on
--   display. This window is implicitly created by GDK. See
--   windowSetGroup.
--   
--   
--   
- Available since Gdk version 2.4
--   
displayGetDefaultGroup :: Display -> IO DrawWindow

-- | Returns whether EOwnerChange events will be sent when the owner
--   of a selection changes.
--   
--   
--   
- Available since Gdk version 2.6
--   
displaySupportsSelectionNotification :: Display -> IO Bool

-- | Request EOwnerChange events for ownership changes of the
--   selection named by the given atom.
--   
--   
--   
- Available since Gdk version 2.6
--   
displayRequestSelectionNotification :: Display -> SelectionTag -> IO Bool

-- | Returns whether the speicifed display supports clipboard persistence;
--   i.e. if it's possible to store the clipboard data after an application
--   has quit. On X11 this checks if a clipboard daemon is running.
--   
--   
--   
- Available since Gdk version 2.6
--   
displaySupportsClipboardPersistence :: Display -> IO Bool

-- | Issues a request to the clipboard manager to store the clipboard data.
--   On X11, this is a special program that works according to the
--   freedesktop clipboard specification, available at
--   http://www.freedesktop.org/Standards/clipboard-manager-spec.
--   
--   
--   
- Available since Gdk version 2.6
--   
displayStoreClipboard :: Display -> DrawWindow -> Word32 -> Maybe [TargetTag] -> IO ()

-- | Returns True if windowShapeCombineMask can be used
--   to create shaped windows on display.
--   
--   
--   
- Available since Gdk version 2.10
--   
displaySupportsShapes :: Display -> IO Bool

-- | Returns True if windowInputShapeCombineMask can be
--   used to modify the input shape of windows on display.
--   
--   
--   
- Available since Gdk version 2.10
--   
displaySupportsInputShapes :: Display -> IO Bool

-- | Returns True if windowSetComposited can be used to
--   redirect drawing on the window using compositing.
--   
--   Currently this only works on X11 with XComposite and XDamage
--   extensions available.
--   
--   
--   
- Available since Gdk version 2.12
--   
displaySupportsComposite :: Display -> IO Bool

-- | The displayClosed signal is emitted when the connection to the
--   windowing system for display is closed.
displayClosed :: DisplayClass self => Signal self (Bool -> IO ())

module Graphics.UI.Gtk.Gdk.AppLaunchContext
data AppLaunchContext
class GObjectClass o => AppLaunchContextClass o
castToAppLaunchContext :: GObjectClass obj => obj -> AppLaunchContext
gTypeAppLaunchContext :: GType
toAppLaunchContext :: AppLaunchContextClass o => o -> AppLaunchContext

-- | Creates a new AppLaunchContext.
appLaunchContextNew :: IO AppLaunchContext

-- | Sets the display on which applications will be launched when using
--   this context. See also appLaunchContextSetScreen.
appLaunchContextSetDisplay :: AppLaunchContext -> Display -> IO ()

-- | Sets the screen on which applications will be launched when using this
--   context. See also appLaunchContextSetDisplay.
--   
--   If both screen and display are set, the screen takes priority. If
--   neither screen or display are set, the default screen and display are
--   used.
appLaunchContextSetScreen :: AppLaunchContext -> Screen -> IO ()

-- | Sets the workspace on which applications will be launched when using
--   this context when running under a window manager that supports
--   multiple workspaces, as described in the Extended Window Manager
--   Hints.
--   
--   When the workspace is not specified or desktop is set to -1, it is up
--   to the window manager to pick one, typically it will be the current
--   workspace.
appLaunchContextSetDesktop :: AppLaunchContext -> Int -> IO ()

-- | Sets the timestamp of context. The timestamp should ideally be taken
--   from the event that triggered the launch.
--   
--   Window managers can use this information to avoid moving the focus to
--   the newly launched application when the user is busy typing in another
--   window. This is also known as 'focus stealing prevention'.
appLaunchContextSetTimestamp :: AppLaunchContext -> TimeStamp -> IO ()

-- | Sets the icon for applications that are launched with this context.
--   The iconName will be interpreted in the same way as the Icon
--   field in desktop files. See also appLaunchContextSetIcon.
--   
--   If both icon and iconName are set, the iconName
--   takes priority. If neither icon or iconName is set, the icon
--   is taken from either the file that is passed to launched application
--   or from the GAppInfo for the launched application itself.
appLaunchContextSetIconName :: GlibString string => AppLaunchContext -> string -> IO ()

-- | Sets the icon for applications that are launched with this context.
--   
--   Window Managers can use this information when displaying startup
--   notification.
appLaunchContextSetIcon :: IconClass icon => AppLaunchContext -> icon -> IO ()

-- | A DrawWindow is a rectangular region on the screen.
module Graphics.UI.Gtk.Gdk.DrawWindow
data DrawWindow
class GObjectClass o => DrawWindowClass o
castToDrawWindow :: GObjectClass obj => obj -> DrawWindow
gTypeDrawWindow :: GType

-- | The state a DrawWindow is in.
data WindowState
WindowStateWithdrawn :: WindowState
WindowStateIconified :: WindowState
WindowStateMaximized :: WindowState
WindowStateSticky :: WindowState
WindowStateFullscreen :: WindowState
WindowStateAbove :: WindowState
WindowStateBelow :: WindowState
WindowStateFocused :: WindowState
WindowStateTiled :: WindowState
WindowStateTopTiled :: WindowState
WindowStateTopResizable :: WindowState
WindowStateRightTiled :: WindowState
WindowStateRightResizable :: WindowState
WindowStateBottomTiled :: WindowState
WindowStateBottomResizable :: WindowState
WindowStateLeftTiled :: WindowState
WindowStateLeftResizable :: WindowState

-- | The identifier of a window of the underlying windowing system.
data NativeWindowId
toNativeWindowId :: Integral a => a -> NativeWindowId
fromNativeWindowId :: Integral a => NativeWindowId -> a

-- | Gets the bitwise OR of the currently active drawWindow state flags,
--   from the WindowState enumeration.
drawWindowGetState :: DrawWindowClass self => self -> IO [WindowState]

-- | Scroll the contents of DrawWindow.
--   
--   
--   
- Scroll both, pixels and children, by the given amount.
--   DrawWindow itself does not move. Portions of the window that
--   the scroll operation brings inm from offscreen areas are invalidated.
--   The invalidated region may be bigger than what would strictly be
--   necessary. (For X11, a minimum area will be invalidated if the window
--   has no subwindows, or if the edges of the window's parent do not
--   extend beyond the edges of the drawWindow. In other cases, a
--   multi-step process is used to scroll the window which may produce
--   temporary visual artifacts and unnecessary invalidations.)
--   
drawWindowScroll :: DrawWindowClass self => self -> Int -> Int -> IO ()

-- | Raises DrawWindow to the top of the Z-order (stacking order),
--   so that other drawWindows with the same parent drawWindow appear below
--   DrawWindow. This is true whether or not the drawWindows are
--   visible.
--   
--   If DrawWindow is a toplevel, the window manager may choose to
--   deny the request to move the drawWindow in the Z-order,
--   drawWindowRaise only requests the restack, does not guarantee
--   it.
drawWindowRaise :: DrawWindowClass self => self -> IO ()

-- | Lowers DrawWindow to the bottom of the Z-order (stacking
--   order), so that other windows with the same parent window appear above
--   DrawWindow. This is true whether or not the other windows are
--   visible.
--   
--   If DrawWindow is a toplevel, the window manager may choose to
--   deny the request to move the drawWindow in the Z-order,
--   drawWindowLower only requests the restack, does not guarantee
--   it.
--   
--   Note that a widget is raised automatically when it is mapped, thus you
--   need to call drawWindowLower after widgetShow if the
--   window should not appear above other windows.
drawWindowLower :: DrawWindowClass self => self -> IO ()

-- | Registers a drawWindow as a potential drop destination.
drawWindowRegisterDnd :: DrawWindowClass self => self -> IO ()

-- | A convenience wrapper around drawWindowBeginPaintRegion which
--   creates a rectangular region for you.
--   
--   
--   
- See drawWindowBeginPaintRegion for details.
--   
drawWindowBeginPaintRect :: DrawWindowClass self => self -> Rectangle -> IO ()

-- | Signal that drawing has finished.
--   
--   
--   
- Indicates that the backing store created by the most recent call
--   to drawWindowBeginPaintRegion should be copied onscreen and
--   deleted, leaving the next-most-recent backing store or no backing
--   store at all as the active paint region. See
--   drawWindowBeginPaintRegion for full details. It is an error
--   to call this function without a matching
--   drawWindowBeginPaintRegion first.
--   
drawWindowEndPaint :: DrawWindowClass self => self -> IO ()

-- | A convenience wrapper around drawWindowInvalidateRegion which
--   invalidates a rectangular region. See
--   drawWindowInvalidateRegion for details.
drawWindowInvalidateRect :: DrawWindowClass self => self -> Rectangle -> Bool -> IO ()

-- | Temporarily freezes a drawWindow such that it won't receive expose
--   events. * The drawWindow will begin receiving expose events again when
--   drawWindowThawUpdates is called. If
--   drawWindowFreezeUpdates has been called more than once,
--   drawWindowThawUpdates must be called an equal number of times
--   to begin processing exposes.
drawWindowFreezeUpdates :: DrawWindowClass self => self -> IO ()

-- | Thaws a drawWindow frozen with drawWindowFreezeUpdates.
drawWindowThawUpdates :: DrawWindowClass self => self -> IO ()

-- | Sends one or more expose events to DrawWindow.
--   
--   
--   
- The areas in each expose event will cover the entire update area
--   for the window (see drawWindowInvalidateRegion for details).
--   Normally Gtk calls drawWindowProcessUpdates on your behalf, so
--   there's no need to call this function unless you want to force expose
--   events to be delivered immediately and synchronously (vs. the usual
--   case, where Gtk delivers them in an idle handler). Occasionally this
--   is useful to produce nicer scrolling behavior, for example.
--   
drawWindowProcessUpdates :: DrawWindowClass self => self -> Bool -> IO ()

-- | Setting acceptFocus to False hints the desktop
--   environment that the window doesn't want to receive input focus.
--   
--   On X, it is the responsibility of the drawWindow manager to interpret
--   this hint. ICCCM-compliant drawWindow manager usually respect it.
--   
--   
--   
- Available since Gdk version 2.4
--   
drawWindowSetAcceptFocus :: DrawWindowClass self => self -> Bool -> IO ()

-- | Sets the shape mask of DrawWindow to the union of shape masks
--   for all children of DrawWindow, ignoring the shape mask of
--   DrawWindow itself. Contrast with
--   drawWindowMergeChildShapes which includes the shape mask of
--   DrawWindow in the masks to be merged.
drawWindowSetChildShapes :: DrawWindowClass self => self -> IO ()

-- | Merges the shape masks for any child drawWindows into the shape mask
--   for DrawWindow. i.e. the union of all masks for
--   DrawWindow and its children will become the new mask for
--   DrawWindow. See drawWindowShapeCombineMask.
--   
--   This function is distinct from drawWindowSetChildShapes because
--   it includes DrawWindow's shape mask in the set of shapes to
--   be merged.
drawWindowMergeChildShapes :: DrawWindowClass self => self -> IO ()
drawWindowGetPointer :: DrawWindowClass self => self -> IO (Maybe (Bool, Int, Int, [Modifier]))

-- | Obtains the current pointer position and modifier state.
--   
--   
--   
- The position is given in coordinates relative to the given
--   window.
--   
- The return value is (Just win, x, y, mod) where
--   win is the window over which the mouse currently resides and
--   mod denotes the keyboard modifiers currently being
--   depressed.
--   
- The return value is Nothing for the window if the mouse
--   cursor is not over a known window.
--   
drawWindowGetPointerPos :: DrawWindowClass self => self -> IO (Maybe DrawWindow, Int, Int, [Modifier])

-- | Obtains the position of a window in screen coordinates.
--   
--   You can use this to help convert a position between screen coordinates
--   and local DrawWindow relative coordinates.
drawWindowGetOrigin :: DrawWindow -> IO (Int, Int)

-- | Sets the mouse pointer for a DrawWindow.
--   
--   Use cursorNewForDisplay or cursorNewFromPixmap to
--   create the cursor. To make the cursor invisible, use
--   BlankCursor. Passing Nothing means that the
--   DrawWindow will use the cursor of its parent
--   DrawWindow. Most DrawWindow should use this default.
drawWindowSetCursor :: DrawWindow -> Maybe Cursor -> IO ()

-- | Obtains the root window (parent all other windows are inside) for the
--   default display and screen.
drawWindowGetDefaultRootWindow :: IO DrawWindow

-- | Returns the width of the window.
--   
--   On the X11 platform the returned size is the size reported in the
--   most-recently-processed configure event, rather than the current size
--   on the X server.
drawWindowGetWidth :: DrawWindow -> IO Int

-- | Returns the height of the window.
--   
--   On the X11 platform the returned size is the size reported in the
--   most-recently-processed configure event, rather than the current size
--   on the X server.
drawWindowGetHeight :: DrawWindow -> IO Int

-- | Gtk specific functions to for rendering with Cairo.
--   
--   Cairo is a graphics library that supports vector graphics and image
--   compositing that can be used with Gdk. The Cairo API is an addition to
--   Gdk/Gtk (rather than a replacement). Cairo rendering can be performed
--   on any Drawable by calling renderWithDrawable. The
--   functions in this module provide ways of drawing Gtk specific
--   elements, such as Pixbufs or text laid out with Pango.
--   
--   All functions in this module are only available in Gtk 2.8 or higher.
module Graphics.UI.Gtk.Cairo

-- | Retrieve the default FontMap that contains a list of available
--   fonts.
--   
--   
--   
- One purpose of creating an explicit FontMap is to set a
--   different scaling factor between font sizes (in points, pt) and Cairo
--   units (in pixels). The default is 96dpi (dots per inch) which
--   corresponds to an average screen as output medium. A 10pt font will
--   therefore scale to 10pt * (1/72 pt/inch) * (96 pixel/inch) = 13.3
--   pixel.
--   
cairoFontMapGetDefault :: IO FontMap

-- | Set the scaling factor between font size and Cairo units.
--   
--   
--   
- Value is in dots per inch (dpi). See
--   cairoFontMapGetDefault.
--   
cairoFontMapSetResolution :: FontMap -> Double -> IO ()

-- | Ask for the scaling factor between font size and Cairo units.
--   
--   
--   
- Value is in dots per inch (dpi). See
--   cairoFontMapGetDefault.
--   
cairoFontMapGetResolution :: FontMap -> IO Double

-- | Create a PangoContext.
--   
--   
--   
- If no FontMap is specified, it uses the default
--   FontMap that has a scaling factor of 96 dpi. See
--   cairoFontMapGetDefault.
--   
cairoCreateContext :: Maybe FontMap -> IO PangoContext

-- | Set the scaling factor of the PangoContext.
--   
--   
--   
- Supplying zero or a negative value will result in the resolution
--   value of the underlying FontMap to be used. See also
--   cairoFontMapGetDefault.
--   
cairoContextSetResolution :: PangoContext -> Double -> IO ()

-- | Ask for the scaling factor of the PangoContext.
--   
--   
--   
- A negative value will be returned if no resolution has been set.
--   See cairoContextSetResolution.
--   
cairoContextGetResolution :: PangoContext -> IO Double

-- | Set Cairo font options.
--   
--   
--   
- Apply the given font options to the context. Values set through
--   this functions override those that are set by
--   updateContext.
--   
cairoContextSetFontOptions :: PangoContext -> FontOptions -> IO ()

-- | Retrieve Cairo font options.
cairoContextGetFontOptions :: PangoContext -> IO FontOptions

-- | Compute a bounding box in user coordinates covering the area inside
--   the current clip. It rounds the bounding box to integer coordinates.
--   Returns Nothing indicating if a clip area doesn't exist.
getClipRectangle :: Render (Maybe Rectangle)

-- | Creates a Cairo context for drawing to a DrawWindow.
renderWithDrawWindow :: DrawWindowClass drawWindow => drawWindow -> Render a -> IO a

-- | Adds the given region to the current path of the Render
--   context.
region :: Region -> Render ()

-- | Sets the specified Color as the source color of the
--   Render context.
setSourceColor :: Color -> Render ()

-- | Sets the given pixbuf as the source pattern for the Cairo context. The
--   pattern has an extend mode of ExtendNone and is aligned so that
--   the origin of pixbuf is (x, y).
setSourcePixbuf :: Pixbuf -> Double -> Double -> Render ()

-- | Adds the given region to the current path of the Render
--   context.
rectangle :: Rectangle -> Render ()

-- | Update a PangoContext with respect to changes in a
--   Render environment.
--   
--   
--   
- The PangoContext must have been created with
--   cairoCreateContext. Any PangoLayouts that have been
--   previously created with this context have to be update using
--   layoutContextChanged.
--   
updateContext :: PangoContext -> Render ()

-- | Create a PangoLayout within a Render context.
--   
--   
--   
- This is a convenience function that creates a new
--   PangoContext within this Render context and creates a
--   new PangoLayout. If the transformation or target surface of the
--   Render context change, updateLayout has to be called on
--   this layout.
--   
createLayout :: GlibString string => string -> Render PangoLayout

-- | Propagate changed to the Render context to a
--   PangoLayout.
--   
--   
--   
- This is a convenience function that calls updateContext on
--   the (private) PangoContext of the given layout to propagate
--   changes from the Render context to the PangoContext and
--   then calls layoutContextChanged on the layout. This function is
--   necessary for createLayout since a private PangoContext
--   is created that is not visible to the user.
--   
updateLayout :: PangoLayout -> Render ()

-- | Draw a glyph string.
--   
--   
--   
- The origin of the glyphs (the left edge of the baseline) will be
--   drawn at the current point of the cairo context.
--   
showGlyphString :: GlyphItem -> Render ()

-- | Draw a LayoutLine.
--   
--   
--   
- The origin of the glyphs (the left edge of the baseline) will be
--   drawn at the current point of the cairo context.
--   
showLayoutLine :: LayoutLine -> Render ()

-- | Draw a PangoLayout.
--   
--   
--   
- The top-left corner of the PangoLayout will be drawn at the
--   current point of the cairo context.
--   
showLayout :: PangoLayout -> Render ()

-- | Add the extent of a glyph string to the current path.
--   
--   
--   
- The origin of the glyphs (the left edge of the line) will be at
--   the current point of the cairo context.
--   
glyphStringPath :: GlyphItem -> Render ()

-- | Add the extent of a layout line to the current path.
--   
--   
--   
- The origin of the glyphs (the left edge of the line) will be at
--   the current point of the cairo context.
--   
layoutLinePath :: LayoutLine -> Render ()

-- | Add the layout to the current path.
--   
--   
--   
- Adds the top-left corner of the text to the current path.
--   Afterwards, the path position is at the bottom-right corner of the
--   PangoLayout.
--   
layoutPath :: PangoLayout -> Render ()

-- | library initialization, main event loop, and events
module Graphics.UI.Gtk.General.General

-- | Initialize the GUI.
--   
--   This must be called before any other function in the Gtk2Hs library.
--   
--   This function initializes the GUI toolkit and parses all Gtk specific
--   arguments. The remaining arguments are returned. If the initialization
--   of the toolkit fails for whatever reason, an exception is thrown.
--   
--   
--   
- Throws: error "Cannot initialize GUI."
--   
- If you want to use Gtk2Hs and in a multi-threaded application then
--   it is your obligation to ensure that all calls to Gtk+ happen in a
--   single OS thread. If you want to make calls to Gtk2Hs functions from a
--   Haskell thread other than the one that calls this functions and
--   mainGUI then you will have to 'post' your GUI actions to the
--   main GUI thread. You can do this using postGUISync or
--   postGUIAsync. See also threadsEnter.
--   
initGUI :: IO [String]
unsafeInitGUIForThreadedRTS :: IO [String]

-- | Post an action to be run in the main GUI thread.
--   
--   The current thread blocks until the action completes and the result is
--   returned.
postGUISync :: IO a -> IO a

-- | Post an action to be run in the main GUI thread.
--   
--   The current thread continues and does not wait for the result of the
--   action.
postGUIAsync :: IO () -> IO ()

-- | Acquire the global Gtk lock.
--   
--   
--   
- During normal operation, this lock is held by the thread from
--   which all interaction with Gtk is performed. When calling
--   mainGUI, the thread will release this global lock before it
--   waits for user interaction. During this time it is, in principle,
--   possible to use a different OS thread (any other Haskell thread that
--   is bound to the Gtk OS thread will be blocked anyway) to interact with
--   Gtk by explicitly acquiring the lock, calling Gtk functions and
--   releasing the lock. However, the Gtk functions that are called from
--   this different thread may not trigger any calls to the OS since this
--   will lead to a crash on Windows (the Win32 API can only be used from a
--   single thread). Since it is very hard to tell which function only
--   interacts on Gtk data structures and which function call actual OS
--   functions, it is best not to use this feature at all. A better way to
--   perform updates in the background is to spawn a Haskell thread and to
--   perform the update to Gtk widgets using postGUIAsync or
--   postGUISync. These will execute their arguments from the main
--   loop, that is, from the OS thread of Gtk, thereby ensuring that any
--   Gtk and OS function can be called.
--   
threadsEnter :: IO ()

-- | Release the global Gtk lock.
--   
--   
--   
- The use of this function is not recommended. See
--   threadsEnter.
--   
threadsLeave :: IO ()

-- | Run the Gtk+ main event loop.
mainGUI :: IO ()

-- | Exit the main event loop.
mainQuit :: IO ()

-- | Inquire the number of events pending on the event queue
eventsPending :: IO Int

-- | Inquire the main loop level.
--   
--   
--   
- Callbacks that take more time to process can call
--   mainIteration to keep the GUI responsive. Each time the main
--   loop is restarted this way, the main loop counter is increased. This
--   function returns this counter.
--   
mainLevel :: IO Int

-- | Process an event, block if necessary.
--   
--   
--   
- Returns True if mainQuit was called while
--   processing the event.
--   
mainIteration :: IO Bool

-- | Process a single event.
--   
--   
--   
- Called with True, this function behaves as
--   mainIteration in that it waits until an event is available for
--   processing. It will return immediately, if passed False.
--   
- Returns True if the mainQuit was called while
--   processing the event.
--   
mainIterationDo :: Bool -> IO Bool

-- | Processes a single GDK event. This is public only to allow filtering
--   of events between GDK and GTK+. You will not usually need to call this
--   function directly.
--   
--   While you should not call this function directly, you might want to
--   know how exactly events are handled. So here is what this function
--   does with the event:
--   
--   
--   
- Compress enter/leave notify events. If the event passed build an
--   enter/leave pair together with the next event (peeked from GDK) both
--   events are thrown away. This is to avoid a backlog of
--   (de-)highlighting widgets crossed by the pointer.
--   
- Find the widget which got the event. If the widget can't be
--   determined the event is thrown away unless it belongs to a INCR
--   transaction. In that case it is passed to
--   selectionIncrEvent.
--   
- Then the event is passed on a stack so you can query the currently
--   handled event with getCurrentEvent.
--   
- The event is sent to a widget. If a grab is active all events for
--   widgets that are not in the contained in the grab widget are sent to
--   the latter with a few exceptions:
--   
--   
--   
--   
- Deletion and destruction events are still sent to the event widget
--   for obvious reasons.
--   
- Events which directly relate to the visual representation of the
--   event widget.
--   
- Leave events are delivered to the event widget if there was an
--   enter event delivered to it before without the paired leave
--   event.
--   
- Drag events are not redirected because it is unclear what the
--   semantics of that would be.
--   
--   
--   Another point of interest might be that all key events are first
--   passed through the key snooper functions if there are any. Read the
--   description of keySnooperInstall if you need this feature.
--   
--   
--   
- After finishing the delivery the event is popped from the event
--   stack.
--   
mainDoEvent :: EventM t ()

-- | add a grab widget
grabAdd :: WidgetClass wd => wd -> IO ()

-- | inquire current grab widget
grabGetCurrent :: IO (Maybe Widget)

-- | remove a grab widget
grabRemove :: WidgetClass w => w -> IO ()

-- | Priorities for installing callbacks.
type Priority = Int
priorityLow :: Int
priorityDefaultIdle :: Int
priorityHighIdle :: Int
priorityDefault :: Int
priorityHigh :: Int

-- | Sets a function to be called at regular intervals, with the default
--   priority priorityDefault. The function is called repeatedly
--   until it returns False, after which point the timeout
--   function will not be called again. The first call to the function will
--   be at the end of the first interval.
--   
--   Note that timeout functions may be delayed, due to the processing of
--   other event sources. Thus they should not be relied on for precise
--   timing. After each call to the timeout function, the time of the next
--   timeout is recalculated based on the current time and the given
--   interval (it does not try to 'catch up' time lost in delays).
--   
--   This function differs from timeoutAdd in that the action will
--   be executed within the global Gtk+ lock. It is therefore possible to
--   call Gtk+ functions from the action.
timeoutAdd :: IO Bool -> Int -> IO HandlerId

-- | Sets a function to be called at regular intervals, with the given
--   priority. The function is called repeatedly until it returns
--   False, after which point the timeout function will not be
--   called again. The first call to the function will be at the end of the
--   first interval.
--   
--   Note that timeout functions may be delayed, due to the processing of
--   other event sources. Thus they should not be relied on for precise
--   timing. After each call to the timeout function, the time of the next
--   timeout is recalculated based on the current time and the given
--   interval (it does not try to 'catch up' time lost in delays).
--   
--   This function differs from timeoutAddFull in that the action
--   will be executed within the global Gtk+ lock. It is therefore possible
--   to call Gtk+ functions from the action.
timeoutAddFull :: IO Bool -> Priority -> Int -> IO HandlerId

-- | Remove a previously added timeout handler by its HandlerId.
timeoutRemove :: HandlerId -> IO ()

-- | Add a callback that is called whenever the system is idle.
--   
--   
--   
- A priority can be specified via an integer. This should usually be
--   priorityDefaultIdle.
--   
- If the function returns False it will be removed.
--   
--   
--   This function differs from idleAdd in that the action will be
--   executed within the global Gtk+ lock. It is therefore possible to call
--   Gtk+ functions from the action.
idleAdd :: IO Bool -> Priority -> IO HandlerId

-- | Remove a previously added idle handler by its HandlerId.
idleRemove :: HandlerId -> IO ()

-- | Adds the file descriptor into the main event loop with the given
--   priority.
--   
--   This function differs from inputAdd in that the action will be
--   executed within the global Gtk+ lock. It is therefore possible to call
--   Gtk+ functions from the action.
inputAdd :: FD -> [IOCondition] -> Priority -> IO Bool -> IO HandlerId
inputRemove :: HandlerId -> IO ()

-- | Flags representing a condition to watch for on a file descriptor.
--   
--   
--   
- IOIn There is data to read.
--   
- IOOut Data can be written (without blocking).
--   
- IOPri There is urgent data to read.
--   
- IOErr Error condition.
--   
- IOHup Hung up (the connection has been broken,
--   usually for pipes and sockets).
--   
- IOInvalid Invalid request. The file descriptor is
--   not open.
--   
data IOCondition
IOIn :: IOCondition
IOOut :: IOCondition
IOPri :: IOCondition
IOErr :: IOCondition
IOHup :: IOCondition
IOInvalid :: IOCondition
type HandlerId = CUInt
type FD = Int

-- | A vertical slider widget for selecting a value from a range
module Graphics.UI.Gtk.Entry.VScale
data VScale
class ScaleClass o => VScaleClass o
castToVScale :: GObjectClass obj => obj -> VScale
gTypeVScale :: GType
toVScale :: VScaleClass o => o -> VScale

-- | Creates a new VScale.
vScaleNew :: Adjustment -> IO VScale

-- | Creates a new vertical scale widget that lets the user input a number
--   between min and max (including min and
--   max) with the increment step. step must be
--   nonzero; it's the distance the slider moves when using the arrow keys
--   to adjust the scale value.
--   
--   Note that the way in which the precision is derived works best if
--   step is a power of ten. If the resulting precision is not
--   suitable for your needs, use scaleSetDigits to correct it.
vScaleNewWithRange :: Double -> Double -> Double -> IO VScale

-- | Retrieve an integer or floating-point number from the user
module Graphics.UI.Gtk.Entry.SpinButton
data SpinButton
class EntryClass o => SpinButtonClass o
castToSpinButton :: GObjectClass obj => obj -> SpinButton
gTypeSpinButton :: GType
toSpinButton :: SpinButtonClass o => o -> SpinButton

-- | Creates a new SpinButton.
spinButtonNew :: Adjustment -> Double -> Int -> IO SpinButton

-- | This is a convenience constructor that allows creation of a numeric
--   SpinButton without manually creating an adjustment. The value
--   is initially set to the minimum value and a page increment of 10 *
--   step is the default. The precision of the spin button is
--   equivalent to the precision of step.
--   
--   Note that the way in which the precision is derived works best if
--   step is a power of ten. If the resulting precision is not
--   suitable for your needs, use spinButtonSetDigits to correct it.
spinButtonNewWithRange :: Double -> Double -> Double -> IO SpinButton

-- | Changes the properties of an existing spin button. The adjustment,
--   climb rate, and number of decimal places are all changed accordingly,
--   after this function call.
spinButtonConfigure :: SpinButtonClass self => self -> Adjustment -> Double -> Int -> IO ()

-- | Replaces the Adjustment associated with the spin button.
spinButtonSetAdjustment :: SpinButtonClass self => self -> Adjustment -> IO ()

-- | Get the adjustment associated with a SpinButton
spinButtonGetAdjustment :: SpinButtonClass self => self -> IO Adjustment

-- | Set the precision to be displayed by spinButton. Up to 20
--   digit precision is allowed.
spinButtonSetDigits :: SpinButtonClass self => self -> Int -> IO ()

-- | Fetches the precision of spinButton. See
--   spinButtonSetDigits.
spinButtonGetDigits :: SpinButtonClass self => self -> IO Int

-- | Sets the step and page increments for the spin button. This affects
--   how quickly the value changes when the spin button's arrows are
--   activated.
spinButtonSetIncrements :: SpinButtonClass self => self -> Double -> Double -> IO ()

-- | Gets the current step and page the increments used by the spin button.
--   See spinButtonSetIncrements.
spinButtonGetIncrements :: SpinButtonClass self => self -> IO (Double, Double)

-- | Sets the minimum and maximum allowable values for the spin button
spinButtonSetRange :: SpinButtonClass self => self -> Double -> Double -> IO ()

-- | Gets the range allowed for the spin button. See
--   spinButtonSetRange.
spinButtonGetRange :: SpinButtonClass self => self -> IO (Double, Double)

-- | Get the value of the spin button as a floating point value.
spinButtonGetValue :: SpinButtonClass self => self -> IO Double

-- | Get the value of the spin button as an integral value.
spinButtonGetValueAsInt :: SpinButtonClass self => self -> IO Int

-- | Set the value of the spin button.
spinButtonSetValue :: SpinButtonClass self => self -> Double -> IO ()

-- | Whether to clamp or ignore illegal values.
data SpinButtonUpdatePolicy
UpdateAlways :: SpinButtonUpdatePolicy
UpdateIfValid :: SpinButtonUpdatePolicy

-- | Sets the update behavior of a spin button. This determines whether the
--   spin button is always updated or only when a valid value is set.
spinButtonSetUpdatePolicy :: SpinButtonClass self => self -> SpinButtonUpdatePolicy -> IO ()

-- | Gets the update behavior of a spin button. See
--   spinButtonSetUpdatePolicy.
spinButtonGetUpdatePolicy :: SpinButtonClass self => self -> IO SpinButtonUpdatePolicy

-- | Sets the flag that determines if non-numeric text can be typed into
--   the spin button.
spinButtonSetNumeric :: SpinButtonClass self => self -> Bool -> IO ()

-- | Returns whether non-numeric text can be typed into the spin button.
--   See spinButtonSetNumeric.
spinButtonGetNumeric :: SpinButtonClass self => self -> IO Bool

-- | Spin a SpinButton with the following method.
data SpinType
SpinStepForward :: SpinType
SpinStepBackward :: SpinType
SpinPageForward :: SpinType
SpinPageBackward :: SpinType
SpinHome :: SpinType
SpinEnd :: SpinType
SpinUserDefined :: SpinType

-- | Increment or decrement a spin button's value in a specified direction
--   by a specified amount.
spinButtonSpin :: SpinButtonClass self => self -> SpinType -> Double -> IO ()

-- | Sets the flag that determines if a spin button value wraps around to
--   the opposite limit when the upper or lower limit of the range is
--   exceeded.
spinButtonSetWrap :: SpinButtonClass self => self -> Bool -> IO ()

-- | Returns whether the spin button's value wraps around to the opposite
--   limit when the upper or lower limit of the range is exceeded. See
--   spinButtonSetWrap.
spinButtonGetWrap :: SpinButtonClass self => self -> IO Bool

-- | Sets the policy as to whether values are corrected to the nearest step
--   increment when a spin button is activated after providing an invalid
--   value.
spinButtonSetSnapToTicks :: SpinButtonClass self => self -> Bool -> IO ()

-- | Returns whether the values are corrected to the nearest step. See
--   spinButtonSetSnapToTicks.
spinButtonGetSnapToTicks :: SpinButtonClass self => self -> IO Bool

-- | Manually force an update of the spin button.
spinButtonUpdate :: SpinButtonClass self => self -> IO ()

-- | The adjustment that holds the value of the spinbutton.
spinButtonAdjustment :: SpinButtonClass self => Attr self Adjustment

-- | The acceleration rate when you hold down a button.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
spinButtonClimbRate :: SpinButtonClass self => Attr self Double

-- | The number of decimal places to display.
--   
--   Allowed values: <= 20
--   
--   Default value: 0
spinButtonDigits :: SpinButtonClass self => Attr self Int

-- | Whether erroneous values are automatically changed to a spin button's
--   nearest step increment.
--   
--   Default value: False
spinButtonSnapToTicks :: SpinButtonClass self => Attr self Bool

-- | Whether non-numeric characters should be ignored.
--   
--   Default value: False
spinButtonNumeric :: SpinButtonClass self => Attr self Bool

-- | Whether a spin button should wrap upon reaching its limits.
--   
--   Default value: False
spinButtonWrap :: SpinButtonClass self => Attr self Bool

-- | Whether the spin button should update always, or only when the value
--   is legal.
--   
--   Default value: UpdateAlways
spinButtonUpdatePolicy :: SpinButtonClass self => Attr self SpinButtonUpdatePolicy

-- | Reads the current value, or sets a new value.
--   
--   Default value: 0
spinButtonValue :: SpinButtonClass self => Attr self Double

-- | Install a custom input handler.
--   
--   
--   
- This signal is called upon each time the value of the SpinButton
--   is set by spinButtonSetValue. The function can return Nothing if the
--   value is no good.
--   
onInput :: SpinButtonClass sb => sb -> IO (Maybe Double) -> IO (ConnectId sb)

-- | Install a custom input handler.
--   
--   
--   
- This signal is called upon each time the value of the SpinButton
--   is set by spinButtonSetValue. The function can return Nothing if the
--   value is no good.
--   
afterInput :: SpinButtonClass sb => sb -> IO (Maybe Double) -> IO (ConnectId sb)

-- | Install a custom output handler.
--   
--   
--   
- This handler makes it possible to query the current value and to
--   render something completely different to the screen using
--   entrySetText. The return value must be False in order to let the
--   default output routine run after this signal returns.
--   
onOutput :: SpinButtonClass sb => sb -> IO Bool -> IO (ConnectId sb)

-- | Install a custom output handler.
--   
--   
--   
- This handler makes it possible to query the current value and to
--   render something completely different to the screen using
--   entrySetText. The return value must be False in order to let the
--   default output routine run after this signal returns.
--   
afterOutput :: SpinButtonClass sb => sb -> IO Bool -> IO (ConnectId sb)

-- | The value of the spin button has changed.
onValueSpinned :: SpinButtonClass sb => sb -> IO () -> IO (ConnectId sb)

-- | The value of the spin button has changed.
afterValueSpinned :: SpinButtonClass sb => sb -> IO () -> IO (ConnectId sb)
instance Graphics.UI.Gtk.Types.EditableClass Graphics.UI.Gtk.Types.SpinButton

-- | A horizontal slider widget for selecting a value from a range
module Graphics.UI.Gtk.Entry.HScale
data HScale
class ScaleClass o => HScaleClass o
castToHScale :: GObjectClass obj => obj -> HScale
gTypeHScale :: GType
toHScale :: HScaleClass o => o -> HScale

-- | Creates a new HScale.
hScaleNew :: Adjustment -> IO HScale

-- | Creates a new horizontal scale widget that lets the user input a
--   number between min and max (including min
--   and max) with the increment step. step must
--   be nonzero; it's the distance the slider moves when using the arrow
--   keys to adjust the scale value.
--   
--   Note that the way in which the precision is derived works best if
--   step is a power of ten. If the resulting precision is not
--   suitable for your needs, use scaleSetDigits to correct it.
hScaleNewWithRange :: Double -> Double -> Double -> IO HScale

-- | Completion functionality for Entry
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.Entry.EntryCompletion
data EntryCompletion
class GObjectClass o => EntryCompletionClass o
castToEntryCompletion :: GObjectClass obj => obj -> EntryCompletion
gTypeEntryCompletion :: GType
toEntryCompletion :: EntryCompletionClass o => o -> EntryCompletion

-- | Creates a new EntryCompletion object.
entryCompletionNew :: IO EntryCompletion

-- | Gets the entry completion has been attached to.
entryCompletionGetEntry :: EntryCompletion -> IO (Maybe Entry)

-- | Sets the model for a EntryCompletion. If completion
--   already has a model set, it will remove it before setting the new
--   model. If model is Nothing, then it will unset the model.
entryCompletionSetModel :: TreeModelClass model => EntryCompletion -> Maybe model -> IO ()

-- | Returns the model the EntryCompletion is using as data source.
--   Returns Nothing if the model is unset.
entryCompletionGetModel :: EntryCompletion -> IO (Maybe TreeModel)

-- | Convenience function for setting up the most used case of this code: a
--   completion list with just strings. This function will set up
--   completion to have a list displaying all (and just) strings
--   in the completion list, and to get those strings from model.
--   This functions creates and adds a CellRendererText which
--   retrieves its content from the given model.
entryCompletionSetTextModel :: (TreeModelClass (model string), TypedTreeModelClass model, GlibString string) => EntryCompletion -> model string -> IO ()

-- | Sets the match function for completion to be func.
--   The match function is used to determine if a row should or should not
--   be in the completion list.
--   
--   
--   
- The passed-in function decides whether the row indicated by the
--   TreeIter matches a given key, and should be displayed as a
--   possible completion for key. Note that the key is normalized and
--   case-folded. Normalization will standardizing such issues as whether a
--   character with an accent is represented as a base character and
--   combining accent or as a single precomposed character. If this is not
--   appropriate you can extract the original text from the entry.
--   
entryCompletionSetMatchFunc :: GlibString string => EntryCompletion -> (string -> TreeIter -> IO Bool) -> IO ()

-- | Requires the length of the search key for completion to be at
--   least length. This is useful for long lists, where completing
--   using a small key takes a lot of time and will come up with
--   meaningless results anyway (ie, a too large dataset).
entryCompletionSetMinimumKeyLength :: EntryCompletion -> Int -> IO ()

-- | Returns the minimum key length as set for completion.
entryCompletionGetMinimumKeyLength :: EntryCompletion -> IO Int

-- | Requests a completion operation, or in other words a refiltering of
--   the current list with completions, using the current key. The
--   completion list view will be updated accordingly.
entryCompletionComplete :: EntryCompletion -> IO ()

-- | Inserts an action in completion's action item list at
--   position index with text text. If you want the
--   action item to have markup, use
--   entryCompletionInsertActionMarkup.
entryCompletionInsertActionText :: GlibString string => EntryCompletion -> Int -> string -> IO ()

-- | Inserts an action in completion's action item list at
--   position index with markup markup.
entryCompletionInsertActionMarkup :: GlibString string => EntryCompletion -> Int -> string -> IO ()

-- | Deletes the action at index from completion's action
--   list.
entryCompletionDeleteAction :: EntryCompletion -> Int -> IO ()

-- | Convenience function for setting up the most used case of this code: a
--   completion list with just strings. This function will set up
--   completion to have a list displaying all (and just) strings
--   in the completion list, and to get those strings from column
--   in the model of completion.
--   
--   This functions creates and adds a CellRendererText for the
--   selected column.
entryCompletionSetTextColumn :: GlibString string => EntryCompletion -> ColumnId row string -> IO ()

-- | Requests a prefix insertion.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
entryCompletionInsertPrefix :: EntryCompletion -> IO ()

-- | Returns the column in the model of the completion to get strings from.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
entryCompletionGetTextColumn :: GlibString string => EntryCompletion -> IO (ColumnId row string)

-- | Sets whether the common prefix of the possible completions should be
--   automatically inserted in the entry.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
entryCompletionSetInlineCompletion :: EntryCompletion -> Bool -> IO ()

-- | Returns whether the common prefix of the possible completions should
--   be automatically inserted in the entry.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
entryCompletionGetInlineCompletion :: EntryCompletion -> IO Bool

-- | Sets whether the completions should be presented in a popup window.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
entryCompletionSetPopupCompletion :: EntryCompletion -> Bool -> IO ()

-- | Returns whether the completions should be presented in a popup window.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
entryCompletionGetPopupCompletion :: EntryCompletion -> IO Bool

-- | Sets whether the completion popup window will be resized to be the
--   same width as the entry.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
entryCompletionSetPopupSetWidth :: EntryCompletion -> Bool -> IO ()

-- | Returns whether the completion popup window will be resized to the
--   width of the entry.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
entryCompletionGetPopupSetWidth :: EntryCompletion -> IO Bool

-- | Sets whether the completion popup window will appear even if there is
--   only a single match. You may want to set this to False if you
--   are using inline completion.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
entryCompletionSetPopupSingleMatch :: EntryCompletion -> Bool -> IO ()

-- | Returns whether the completion popup window will appear even if there
--   is only a single match.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
entryCompletionGetPopupSingleMatch :: EntryCompletion -> IO Bool

-- | The model to find matches in.
entryCompletionModel :: TreeModelClass model => ReadWriteAttr EntryCompletion (Maybe TreeModel) (Maybe model)

-- | Minimum length of the search key in order to look up matches.
--   
--   Allowed values: >= 0
--   
--   Default value: 1
entryCompletionMinimumKeyLength :: Attr EntryCompletion Int

-- | The column of the model containing the strings.
--   
--   Default value: invalidColumnId
entryCompletionTextColumn :: GlibString string => Attr EntryCompletion (ColumnId row string)

-- | Determines whether the common prefix of the possible completions
--   should be inserted automatically in the entry. Note that this requires
--   text-column to be set, even if you are using a custom match function.
--   
--   Default value: False
entryCompletionInlineCompletion :: Attr EntryCompletion Bool

-- | Determines whether the possible completions should be shown in a popup
--   window.
--   
--   Default value: True
entryCompletionPopupCompletion :: Attr EntryCompletion Bool

-- | Determines whether the completions popup window will be resized to the
--   width of the entry.
--   
--   Default value: True
entryCompletionPopupSetWidth :: Attr EntryCompletion Bool

-- | Determines whether the completions popup window will shown for a
--   single possible completion. You probably want to set this to
--   False if you are using inline completion.
--   
--   Default value: True
entryCompletionPopupSingleMatch :: Attr EntryCompletion Bool

-- | Gets emitted when the inline autocompletion is triggered. The default
--   behaviour is to make the entry display the whole prefix and select the
--   newly inserted part.
--   
--   Applications may connect to this signal in order to insert only a
--   smaller part of the prefix into the entry - e.g. the entry
--   used in the FileChooser inserts only the part of the prefix up
--   to the next '/'.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
insertPrefix :: (EntryCompletionClass self, GlibString string) => Signal self (string -> IO Bool)

-- | Gets emitted when an action is activated.
completionActionActivated :: EntryCompletionClass self => Signal self (Int -> IO ())

-- | Gets emitted when a match from the list is selected. The default
--   behaviour is to replace the contents of the entry with the contents of
--   the text column in the row pointed to by iter.
matchSelected :: EntryCompletionClass self => Signal self (TreeModel -> TreeIter -> IO Bool)

-- | New model-based tree/list widget system.
--   
--   This just re-exports the Graphics.UI.Gtk.ModelView.* modules.
--   
--   
--   
- Note: From this version of Gtk2Hs this system will be the default
--   so it will not be necessary to explicitly import this module.
--   
module Graphics.UI.Gtk.ModelView

-- | A single line text entry field
module Graphics.UI.Gtk.Entry.Entry
data Entry
class WidgetClass o => EntryClass o
castToEntry :: GObjectClass obj => obj -> Entry
gTypeEntry :: GType
toEntry :: EntryClass o => o -> Entry

-- | Creates a new Entry widget.
entryNew :: IO Entry

-- | Creates a new Entry widget backed by a particular
--   EntryBuffer. One buffer can be shared among many widgets.
entryNewWithBuffer :: EntryBufferClass buffer => buffer -> IO Entry

-- | Sets the text in the widget to the given value, replacing the current
--   contents.
entrySetText :: (EntryClass self, GlibString string) => self -> string -> IO ()

-- | Retrieves the contents of the entry widget. See also
--   editableGetChars.
entryGetText :: (EntryClass self, GlibString string) => self -> IO string

-- | Sets whether the contents of the entry are visible or not. When
--   visibility is set to False, characters are displayed as the
--   invisible char, and will also appear that way when the text in the
--   entry widget is copied elsewhere.
--   
--   The default invisible char is the asterisk '*', but it can be changed
--   with entrySetInvisibleChar.
entrySetVisibility :: EntryClass self => self -> Bool -> IO ()

-- | Retrieves whether the text in entry is visible. See
--   entrySetVisibility.
entryGetVisibility :: EntryClass self => self -> IO Bool

-- | Sets the character to use in place of the actual text when
--   entrySetVisibility has been called to set text visibility to
--   False. i.e. this is the character used in "password mode" to
--   show the user how many characters have been typed. The default
--   invisible char is an asterisk ('*'). If you set the invisible char to
--   '\0', then the user will get no feedback at all; there will
--   be no text on the screen as they type.
entrySetInvisibleChar :: EntryClass self => self -> Char -> IO ()

-- | Retrieves the character displayed in place of the real characters for
--   entries with visisbility set to false. See
--   entrySetInvisibleChar.
entryGetInvisibleChar :: EntryClass self => self -> IO Char

-- | Sets the maximum allowed length of the contents of the widget. If the
--   current contents are longer than the given length, then they will be
--   truncated to fit.
entrySetMaxLength :: EntryClass self => self -> Int -> IO ()

-- | Retrieves the maximum allowed length of the text in entry.
--   See entrySetMaxLength.
entryGetMaxLength :: EntryClass self => self -> IO Int

-- | Query whether pressing return will activate the default widget.
entryGetActivatesDefault :: EntryClass self => self -> IO Bool

-- | If setting is True, pressing Enter in the
--   entry will activate the default widget for the window
--   containing the entry. This usually means that the dialog box
--   containing the entry will be closed, since the default widget is
--   usually one of the dialog buttons.
--   
--   (For experts: if setting is True, the entry calls
--   windowActivateDefault on the window containing the entry, in
--   the default handler for the "activate" signal.)
--   
--   This setting is useful in Dialog boxes where enter should press
--   the default button.
entrySetActivatesDefault :: EntryClass self => self -> Bool -> IO ()

-- | Query if the text Entry is displayed with a frame around it.
entryGetHasFrame :: EntryClass self => self -> IO Bool

-- | Sets whether the entry has a beveled frame around it.
entrySetHasFrame :: EntryClass self => self -> Bool -> IO ()

-- | Gets the value set by entrySetWidthChars.
entryGetWidthChars :: EntryClass self => self -> IO Int

-- | Changes the size request of the entry to be about the right size for
--   nChars characters. Note that it changes the size
--   request, the size can still be affected by how you pack the
--   widget into containers. If nChars is -1, the size reverts to
--   the default entry size.
--   
--   This setting is only considered when the widget formulates its size
--   request. Make sure that it is not mapped (shown) before you change
--   this value.
entrySetWidthChars :: EntryClass self => self -> Int -> IO ()

-- | Sets text to be displayed in entry when it is empty and unfocused.
--   This can be used to give a visual hint of the expected contents of the
--   Entry.
--   
--   Note that since the placeholder text gets removed when the entry
--   received focus, using this feature is a bit problematic if the entry
--   is given the initial focus in a window. Sometimes this can be worked
--   around by delaying the initial focus setting until the first key event
--   arrives.
--   
--   
--   
- Available since Gtk version 3.2
--   
entrySetPlaceholderText :: (EntryClass self, GlibString text) => self -> Maybe text -> IO ()

-- | Retrieves the text that will be displayed when entry is empty and
--   unfocused.
--   
--   
--   
- Available since Gtk version 3.2
--   
entryGetPlaceholderText :: (EntryClass self, GlibString text) => self -> IO (Maybe text)

-- | Sets the alignment for the contents of the entry. This controls the
--   horizontal positioning of the contents when the displayed text is
--   shorter than the width of the entry.
--   
--   
--   
- Available since Gtk version 2.4
--   
entrySetAlignment :: EntryClass self => self -> Float -> IO ()

-- | Gets the value set by entrySetAlignment.
--   
--   
--   
- Available since Gtk version 2.4
--   
entryGetAlignment :: EntryClass self => self -> IO Float

-- | Sets the auxiliary completion object to use with the entry. All
--   further configuration of the completion mechanism is done on
--   completion using the EntryCompletion API.
--   
--   
--   
- Available since Gtk version 2.4
--   
entrySetCompletion :: EntryClass self => self -> EntryCompletion -> IO ()

-- | Returns the auxiliary completion object currently in use by the entry.
--   
--   
--   
- Available since Gtk version 2.4
--   
entryGetCompletion :: EntryClass self => self -> IO EntryCompletion

-- | Get the EntryBuffer object which holds the text for this
--   widget.
entryGetBuffer :: EntryClass self => self -> IO EntryBuffer

-- | Set the EntryBuffer object which holds the text for this
--   widget.
entrySetBuffer :: (EntryClass self, EntryBufferClass buffer) => self -> buffer -> IO ()

-- | Allow the Entry input method to internally handle key press and
--   release events. If this function returns True, then no further
--   processing should be done for this key event. See
--   imContextFilterKeypress.
--   
--   Note that you are expected to call this function from your handler
--   when overriding key event handling. This is needed in the case when
--   you need to insert your own key handling between the input method and
--   the default key event handling of the Entry. See
--   textViewResetImContext for an example of use.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
entryImContextFilterKeypress :: EntryClass self => self -> EventM EKey Bool

-- | Reset the input method context of the entry if needed.
--   
--   This can be necessary in the case where modifying the buffer would
--   confuse on-going input method behavior.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
entryResetImContext :: EntryClass self => self -> IO ()

-- | The current position of the insertion cursor in chars.
--   
--   Allowed values: [0,65535]
--   
--   Default value: 0
entryCursorPosition :: EntryClass self => ReadAttr self Int

-- | The position of the opposite end of the selection from the cursor in
--   chars.
--   
--   Allowed values: [0,65535]
--   
--   Default value: 0
entrySelectionBound :: EntryClass self => ReadAttr self Int

-- | Whether the entry contents can be edited.
--   
--   Default value: True
entryEditable :: EntryClass self => Attr self Bool

-- | Maximum number of characters for this entry. Zero if no maximum.
--   
--   Allowed values: [0,65535]
--   
--   Default value: 0
entryMaxLength :: EntryClass self => Attr self Int

-- | False displays the "invisible char" instead of the actual
--   text (password mode).
--   
--   Default value: True
entryVisibility :: EntryClass self => Attr self Bool

-- | False removes outside bevel from entry.
--   
--   Default value: True
entryHasFrame :: EntryClass self => Attr self Bool

-- | The character to use when masking entry contents (in "password mode").
--   
--   Default value: '*'
entryInvisibleChar :: EntryClass self => Attr self Char

-- | Whether to activate the default widget (such as the default button in
--   a dialog) when Enter is pressed.
--   
--   Default value: False
entryActivatesDefault :: EntryClass self => Attr self Bool

-- | Number of characters to leave space for in the entry.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
entryWidthChars :: EntryClass self => Attr self Int

-- | Number of pixels of the entry scrolled off the screen to the left.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
entryScrollOffset :: EntryClass self => ReadAttr self Int

-- | The contents of the entry.
--   
--   Default value: ""
entryText :: (EntryClass self, GlibString string) => Attr self string

-- | The text that will be displayed in the Entry when it is empty
--   and unfocused.
--   
--   Default value: Nothing
entryPlaceholderText :: (EntryClass self, GlibString text) => Attr self (Maybe text)

-- | The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL
--   layouts.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0
entryXalign :: EntryClass self => Attr self Float

-- | 'alignment' property. See entryGetAlignment and
--   entrySetAlignment
entryAlignment :: EntryClass self => Attr self Float

-- | 'completion' property. See entryGetCompletion and
--   entrySetCompletion
entryCompletion :: EntryClass self => Attr self EntryCompletion

-- | The buffer being displayed.
entryBuffer :: (EntryClass self, EntryBufferClass buffer) => ReadWriteAttr self EntryBuffer buffer

-- | A keybinding signal which gets emitted when the user activates the
--   entry.
--   
--   Applications should not connect to it, but may emit it with
--   signalEmitByName if they need to control activation
--   programmatically.
entryActivated :: EntryClass ec => Signal ec (IO ())

-- | Deprecated. See entryActivated.
entryActivate :: EntryClass ec => Signal ec (IO ())

-- | The entryBackspace signal is a keybinding signal which gets
--   emitted when the user asks for it.
--   
--   The default bindings for this signal are Backspace and
--   Shift-Backspace.
entryBackspace :: EntryClass ec => Signal ec (IO ())

-- | The entryCopyClipboard signal is a keybinding signal which gets
--   emitted to copy the selection to the clipboard.
--   
--   The default bindings for this signal are Ctrl-c and Ctrl-Insert.
entryCopyClipboard :: EntryClass ec => Signal ec (IO ())

-- | The entryCutClipboard signal is a keybinding signal which gets
--   emitted to cut the selection to the clipboard.
--   
--   The default bindings for this signal are Ctrl-x and Shift-Delete.
entryCutClipboard :: EntryClass ec => Signal ec (IO ())

-- | The entryPasteClipboard signal is a keybinding signal which
--   gets emitted to paste the contents of the clipboard into the text
--   view.
--   
--   The default bindings for this signal are Ctrl-v and Shift-Insert.
entryPasteClipboard :: EntryClass ec => Signal ec (IO ())

-- | The entryDeleteFromCursor signal is a keybinding signal which
--   gets emitted when the user initiates a text deletion.
--   
--   If the type is DeleteChars, GTK+ deletes the selection if there
--   is one, otherwise it deletes the requested number of characters.
--   
--   The default bindings for this signal are Delete for deleting a
--   character and Ctrl-Delete for deleting a word.
entryDeleteFromCursor :: EntryClass ec => Signal ec (DeleteType -> Int -> IO ())

-- | The entryInsertAtCursor signal is a keybinding signal which
--   gets emitted when the user initiates the insertion of a fixed string
--   at the cursor.
entryInsertAtCursor :: (EntryClass ec, GlibString string) => Signal ec (string -> IO ())

-- | The entryMoveCursor signal is a keybinding signal which gets
--   emitted when the user initiates a cursor movement. If the cursor is
--   not visible in entry, this signal causes the viewport to be moved
--   instead.
--   
--   Applications should not connect to it, but may emit it with
--   signalEmitByName if they need to control the cursor
--   programmatically.
--   
--   The default bindings for this signal come in two variants, the variant
--   with the Shift modifier extends the selection, the variant without the
--   Shift modifier does not. There are too many key combinations to list
--   them all here.
--   
--   
--   
- Arrow keys move by individual characters/lines
--   
- Ctrl-arrow key combinations move by words/paragraphs
--   
- Home/End keys move to the ends of the buffer
--   
entryMoveCursor :: EntryClass ec => Signal ec (MovementStep -> Int -> Bool -> IO ())

-- | The entryPopulatePopup signal gets emitted before showing the
--   context menu of the entry.
--   
--   If you need to add items to the context menu, connect to this signal
--   and append your menuitems to the menu.
entryPopulatePopup :: EntryClass ec => Signal ec (Menu -> IO ())

-- | Deprecated: Use entryToggleOverwrite
entryToggleOverwirte :: EntryClass ec => Signal ec (IO ())

-- | The entryToggleOverwrite signal is a keybinding signal which
--   gets emitted to toggle the overwrite mode of the entry. The default
--   bindings for this signal is Insert.
entryToggleOverwrite :: EntryClass ec => Signal ec (IO ())

-- | If an input method is used, the typed text will not immediately be
--   committed to the buffer. So if you are interested in the text, connect
--   to this signal.
entryPreeditChanged :: (EntryClass ec, GlibString string) => Signal ec (string -> IO ())

-- | The iconPress signal is emitted when an activatable icon is
--   clicked.
entryIconPress :: EntryClass ec => Signal ec (EntryIconPosition -> EventM EButton ())

-- | The iconRelease signal is emitted on the button release from
--   a mouse click over an activatable icon.
entryIconRelease :: EntryClass ec => Signal ec (EntryIconPosition -> EventM EButton ())
instance Graphics.UI.Gtk.Types.EditableClass Graphics.UI.Gtk.Types.Entry

-- | Container for widgets from other processes
module Graphics.UI.Gtk.Embedding.Socket
data Socket
class ContainerClass o => SocketClass o
castToSocket :: GObjectClass obj => obj -> Socket
gTypeSocket :: GType
toSocket :: SocketClass o => o -> Socket

-- | The identifier of a window of the underlying windowing system.
data NativeWindowId

-- | Create a new empty Socket.
--   
--   Socket is a Container for foreign applications that
--   support the XEMBED protocol. To connect two applications the
--   NativeWindowId has to be passed either from this socket to the
--   other application's Plug or vice versa.
socketNew :: IO Socket
socketHasPlug :: SocketClass s => s -> IO Bool

-- | Adds an XEMBED client, such as a Plug, to the Socket.
--   The client may be in the same process or in a different process.
--   
--   To embed a Plug in a Socket, you can either create the
--   Plug with Graphics.UI.Gtk.Embedding.Plug.plugNew
--   Nothing, call plugGetId to get the window ID of the plug,
--   and then pass that to the socketAddId, or you can call
--   socketGetId to get the window ID for the socket, and call
--   plugNew passing in that ID.
--   
--   The Socket must have already be added into a toplevel window
--   before you can make this call.
socketAddId :: SocketClass self => self -> NativeWindowId -> IO ()

-- | Gets the window ID of a Socket widget, which can then be used
--   to create a client embedded inside the socket, for instance with
--   plugNew.
--   
--   The Socket must have already be added into a toplevel window
--   before you can make this call.
socketGetId :: SocketClass self => self -> IO NativeWindowId

-- | Retrieves the window of the plug. Use this to check if the plug has
--   been created inside of the socket.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
socketGetPlugWindow :: SocketClass self => self -> IO (Maybe DrawWindow)

-- | This signal is emitted when a client is successfully added to the
--   socket.
socketPlugAdded :: SocketClass self => Signal self (IO ())

-- | This signal is emitted when a client is removed from the socket. The
--   default action is to destroy the Socket widget, so if you want
--   to reuse it you must add a signal handler that returns True.
socketPlugRemoved :: SocketClass self => Signal self (IO Bool)

-- | Toplevel for embedding into other processes
module Graphics.UI.Gtk.Embedding.Plug
data Plug
class WindowClass o => PlugClass o
castToPlug :: GObjectClass obj => obj -> Plug
gTypePlug :: GType
toPlug :: PlugClass o => o -> Plug

-- | The identifier of a window of the underlying windowing system.
data NativeWindowId

-- | Creates a new plug widget inside the Socket identified by
--   socketId. If socketId is Nothing, the plug
--   is left "unplugged" and can later be plugged into a Socket by
--   socketAddId.
--   
--   If a NativeWindowId is supplied the foreign application window will
--   immediately appear in this Plug once it is shown. If
--   Nothing is passed then a NativeWindowId can be
--   extracted from this Plug using plugGetId and be passed
--   to the application which is to be embedded.
plugNew :: Maybe NativeWindowId -> IO Plug

-- | Create a new plug widget inside the Socket identified by
--   socket_id.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
plugNewForDisplay :: Display -> Maybe NativeWindowId -> IO Plug

-- | Gets the window ID of a Plug widget, which can then be used to
--   embed this window inside another window, for instance with
--   socketAddId.
plugGetId :: PlugClass self => self -> IO NativeWindowId

-- | Determines whether the plug is embedded in a socket.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
plugGetEmbedded :: PlugClass self => self -> IO Bool

-- | Retrieves the socket the plug is embedded in.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
plugGetSocketWindow :: PlugClass self => self -> IO (Maybe DrawWindow)

-- | True if the plug is embedded in a socket.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.12
--   
plugAttrEmbedded :: PlugClass self => ReadAttr self Bool

-- | The window of the socket the plug is embedded in.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
plugAttrSocketWindow :: PlugClass self => ReadAttr self (Maybe DrawWindow)

-- | Gets emitted when the plug becomes embedded in a socket and when the
--   embedding ends.
plugEmbedded :: PlugClass self => Signal self (IO ())

-- | Report messages of minor importance to the user
module Graphics.UI.Gtk.Display.Statusbar
data Statusbar
class HBoxClass o => StatusbarClass o
castToStatusbar :: GObjectClass obj => obj -> Statusbar
gTypeStatusbar :: GType
toStatusbar :: StatusbarClass o => o -> Statusbar
type ContextId = CUInt
data MessageId

-- | Creates a new Statusbar ready for messages.
statusbarNew :: IO Statusbar

-- | Returns a new context identifier, given a description of the actual
--   context. This id can be used to later remove entries form the
--   Statusbar.
statusbarGetContextId :: (StatusbarClass self, GlibString string) => self -> string -> IO ContextId

-- | Pushes a new message onto the Statusbar's stack. It will be displayed
--   as long as it is on top of the stack.
statusbarPush :: (StatusbarClass self, GlibString string) => self -> ContextId -> string -> IO MessageId

-- | Removes the topmost message that has the correct context.
statusbarPop :: StatusbarClass self => self -> ContextId -> IO ()

-- | Forces the removal of a message from a statusbar's stack. The exact
--   contextId and messageId must be specified.
statusbarRemove :: StatusbarClass self => self -> ContextId -> MessageId -> IO ()

-- | Retrieves the box containing the label widget.
statusbarGetMessageArea :: StatusbarClass self => self -> IO Box

-- | Forces the removal of all messages from a statusbar's stack with the
--   exact contextId.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
statusbarRemoveAll :: StatusbarClass self => self -> ContextId -> IO ()

-- | Is emitted whenever a new message is popped off a statusbar's stack.
textPopped :: (StatusbarClass self, GlibString string) => Signal self (ContextId -> string -> IO ())

-- | Is emitted whenever a new message gets pushed onto a statusbar's
--   stack.
textPushed :: (StatusbarClass self, GlibString string) => Signal self (ContextId -> string -> IO ())

-- | Report messages of minor importance to the user
module Graphics.UI.Gtk.Display.Spinner
data Spinner
class DrawingAreaClass o => SpinnerClass o
castToSpinner :: GObjectClass obj => obj -> Spinner
gTypeSpinner :: GType
toSpinner :: SpinnerClass o => o -> Spinner

-- | Returns a new spinner widget. Not yet started.
spinnerNew :: IO Spinner

-- | Starts the animation of the spinner.
spinnerStart :: SpinnerClass spinner => spinner -> IO ()

-- | Stops the animation of the spinner.
spinnerStop :: SpinnerClass spinner => spinner -> IO ()

-- | Whether the spinner is active.
--   
--   Default value: False
spinnerActive :: SpinnerClass spinner => Attr spinner Bool

-- | A widget which indicates progress visually
module Graphics.UI.Gtk.Display.ProgressBar
data ProgressBar
class WidgetClass o => ProgressBarClass o
castToProgressBar :: GObjectClass obj => obj -> ProgressBar
gTypeProgressBar :: GType
toProgressBar :: ProgressBarClass o => o -> ProgressBar

-- | Creates a new ProgressBar.
progressBarNew :: IO ProgressBar

-- | Indicates that some progress is made, but you don't know how much.
--   Causes the progress bar to enter "activity mode", where a block
--   bounces back and forth. Each call to progressBarPulse causes
--   the block to move by a little bit (the amount of movement per pulse is
--   determined by progressBarSetPulseStep).
progressBarPulse :: ProgressBarClass self => self -> IO ()

-- | Causes the given text to appear superimposed on the progress
--   bar.
progressBarSetText :: (ProgressBarClass self, GlibString string) => self -> string -> IO ()

-- | Causes the progress bar to "fill in" the given fraction of the bar.
--   The fraction should be between 0.0 and 1.0, inclusive.
progressBarSetFraction :: ProgressBarClass self => self -> Double -> IO ()

-- | Sets the fraction of total progress bar length to move the bouncing
--   block for each call to progressBarPulse.
progressBarSetPulseStep :: ProgressBarClass self => self -> Double -> IO ()

-- | Returns the current fraction of the task that's been completed.
progressBarGetFraction :: ProgressBarClass self => self -> IO Double

-- | Retrieves the pulse step set with progressBarSetPulseStep
progressBarGetPulseStep :: ProgressBarClass self => self -> IO Double

-- | Retrieves the text displayed superimposed on the progress bar, if any,
--   otherwise Nothing.
progressBarGetText :: (ProgressBarClass self, GlibString string) => self -> IO (Maybe string)

-- | Sets the mode used to ellipsize (add an ellipsis: "...") the text if
--   there is not enough space to render the entire string.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
progressBarSetEllipsize :: ProgressBarClass self => self -> EllipsizeMode -> IO ()

-- | Returns the ellipsizing position of the progressbar. See
--   progressBarSetEllipsize.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
progressBarGetEllipsize :: ProgressBarClass self => self -> IO EllipsizeMode

-- | The number of discrete blocks in a progress bar (when shown in the
--   discrete style).
--   
--   Allowed values: >= 2
--   
--   Default value: 10
progressBarDiscreteBlocks :: ProgressBarClass self => Attr self Int

-- | The fraction of total work that has been completed.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0
progressBarFraction :: ProgressBarClass self => Attr self Double

-- | The fraction of total progress to move the bouncing block when pulsed.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.1
progressBarPulseStep :: ProgressBarClass self => Attr self Double

-- | Text to be displayed in the progress bar.
--   
--   Default value: "%P %%"
progressBarText :: (ProgressBarClass self, GlibString string) => ReadWriteAttr self (Maybe string) string

-- | The preferred place to ellipsize the string, if the progressbar does
--   not have enough room to display the entire string, specified as a
--   EllipsizeMode.
--   
--   Note that setting this property to a value other than
--   EllipsizeNone has the side-effect that the progressbar requests
--   only enough space to display the ellipsis "...". Another means to set
--   a progressbar's width is widgetSetSizeRequest.
--   
--   Default value: EllipsizeNone
progressBarEllipsize :: ProgressBarClass self => Attr self EllipsizeMode

-- | A widget which indicates progress visually
module Graphics.UI.Gtk.Display.LevelBar
data LevelBar
class WidgetClass o => LevelBarClass o
castToLevelBar :: GObjectClass obj => obj -> LevelBar
gTypeLevelBar :: GType
toLevelBar :: LevelBarClass o => o -> LevelBar

-- | Creates a new LevelBar.
levelBarNew :: IO LevelBar

-- | Sets the value of the "mode" property.
levelBarSetMode :: LevelBarClass self => self -> LevelBarMode -> IO ()

-- | Returns the value of the "mode" property.
levelBarGetMode :: LevelBarClass self => self -> IO LevelBarMode

-- | Add a new offset marker at the position specified by @value
levelBarAddOffsetValue :: (LevelBarClass self, GlibString string) => self -> string -> Double -> IO ()

-- | Add a new offset marker at the position specified by @value
levelBarRemoveOffsetValue :: (LevelBarClass self, GlibString string) => self -> string -> IO ()

-- | Returns the current fraction of the task that's been completed.
levelBarGetOffsetValue :: (LevelBarClass self, GlibString string) => self -> string -> IO Double

-- | Level bars normally grow from top to bottom or left to right. Inverted
--   level bars grow in the opposite direction.
--   
--   Default value: (0)
--   
--   Since 3.8
levelBarInverted :: LevelBarClass self => Attr self Bool

-- | The "max-value" property determaxes the maximum value of the interval
--   that can be displayed by the bar.
--   
--   Allowed values: >= 0
--   
--   Default value: 1
levelBarMaxValue :: LevelBarClass self => Attr self Double

-- | The "min-value" property determines the minimum value of the interval
--   that can be displayed by the bar.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
levelBarMinValue :: LevelBarClass self => Attr self Double

-- | The "value" property determines the currently filled value of the
--   level bar.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
levelBarValue :: LevelBarClass self => Attr self Double

-- | The "bar-mode" property determines the way LevelBar interprets the
--   value properties to draw the level fill area. Specifically, when the
--   value is LevelBarModeContinuous, LevelBar will draw a single block
--   representing the current value in that area; when the value is
--   LevelBarModeDiscrete, the widget will draw a succession of separate
--   blocks filling the draw area, with the number of blocks being equal to
--   the units separating the integral roundings of "min-value" and
--   "max-value".
--   
--   Default value: LevelBarModeContinuous
levelBarMode :: LevelBarClass self => Attr self LevelBarMode

-- | A widget that displays a small to medium amount of text
module Graphics.UI.Gtk.Display.Label
data Label
class MiscClass o => LabelClass o
castToLabel :: GObjectClass obj => obj -> Label
gTypeLabel :: GType
toLabel :: LabelClass o => o -> Label

-- | Creates a new label with the given text inside it. You can pass
--   Nothing to get an empty label widget.
labelNew :: GlibString string => Maybe string -> IO Label

-- | Creates a new Label, containing the text in str.
--   
--   If characters in str are preceded by an underscore, they are
--   underlined. If you need a literal underscore character in a label, use
--   '__' (two underscores). The first underlined character represents a
--   keyboard accelerator called a mnemonic. The mnemonic key can be used
--   to activate another widget, chosen automatically, or explicitly using
--   labelSetMnemonicWidget.
--   
--   If labelSetMnemonicWidget is not called, then the first
--   activatable ancestor of the Label will be chosen as the
--   mnemonic widget. For instance, if the label is inside a button or menu
--   item, the button or menu item will automatically become the mnemonic
--   widget and be activated by the mnemonic.
labelNewWithMnemonic :: GlibString string => string -> IO Label

-- | Sets the text within the Label widget. It overwrites any text
--   that was there before.
--   
--   This will also clear any previously set mnemonic accelerators.
labelSetText :: (LabelClass self, GlibString string) => self -> string -> IO ()

-- | Sets the text of the label. The label is interpreted as including
--   embedded underlines and/or Pango markup depending on the markup and
--   underline properties.
labelSetLabel :: (LabelClass self, GlibString string) => self -> string -> IO ()

-- | Sets the label's text from the given string. If characters in the
--   string are preceded by an underscore, they are underlined indicating
--   that they represent a keyboard accelerator called a mnemonic. The
--   mnemonic key can be used to activate another widget, chosen
--   automatically, or explicitly using labelSetMnemonicWidget.
labelSetTextWithMnemonic :: (LabelClass self, GlibString string) => self -> string -> IO ()

-- | Parses str which is marked up with the Pango text markup
--   language, as defined in Graphics.Rendering.Pango.Markup,
--   setting the label's text and attribute list based on the parse
--   results. If the str is external data, you may need to escape
--   it.
labelSetMarkup :: (LabelClass self, GlibString markup) => self -> markup -> IO ()

-- | Parses str which is marked up with the Pango text markup
--   language, as defined in Graphics.Rendering.Pango.Markup,
--   setting the label's text and attribute list based on the parse
--   results. If characters in str are preceded by an underscore,
--   they are underlined indicating that they represent a keyboard
--   accelerator called a mnemonic.
--   
--   The mnemonic key can be used to activate another widget, chosen
--   automatically, or explicitly using labelSetMnemonicWidget.
labelSetMarkupWithMnemonic :: (LabelClass self, GlibString markup) => self -> markup -> IO ()

-- | If the label has been set so that it has an mnemonic key (using i.e.
--   labelSetMarkupWithMnemonic, labelSetTextWithMnemonic,
--   labelNewWithMnemonic or the "use_underline" property) the label
--   can be associated with a widget that is the target of the mnemonic.
--   When the label is inside a widget (like a Button or a
--   Notebook tab) it is automatically associated with the correct
--   widget, but sometimes (i.e. when the target is a Entry next to
--   the label) you need to set it explicitly using this function.
--   
--   The target widget will be accelerated by emitting "mnemonic_activate"
--   on it. The default handler for this signal will activate the widget if
--   there are no mnemonic collisions and toggle focus between the
--   colliding widgets otherwise.
labelSetMnemonicWidget :: (LabelClass self, WidgetClass widget) => self -> widget -> IO ()

-- | Retrieves the target of the mnemonic (keyboard shortcut) of this
--   label. See labelSetMnemonicWidget.
labelGetMnemonicWidget :: LabelClass self => self -> IO (Maybe Widget)

-- | Key values are the codes which are sent whenever a key is pressed or
--   released.
type KeyVal = Word32

-- | If the label has been set so that it has an mnemonic key this function
--   returns the keyval used for the mnemonic accelerator.
labelGetMnemonicKeyval :: LabelClass self => self -> IO KeyVal

-- | Sets whether the text of the label contains markup in Pango's text
--   markup language. See labelSetMarkup.
labelSetUseMarkup :: LabelClass self => self -> Bool -> IO ()

-- | Returns whether the label's text is interpreted as marked up with the
--   Pango text markup language. See labelSetUseMarkup.
labelGetUseMarkup :: LabelClass self => self -> IO Bool

-- | If True, an underline in the text indicates the next
--   character should be used for the mnemonic accelerator key.
labelSetUseUnderline :: LabelClass self => self -> Bool -> IO ()

-- | Returns whether an embedded underline in the label indicates a
--   mnemonic. See labelSetUseUnderline.
labelGetUseUnderline :: LabelClass self => self -> IO Bool

-- | Gets the text from a label widget, as displayed on the screen. This
--   does not include any embedded underlines indicating mnemonics or Pango
--   markup. (See labelGetLabel)
labelGetText :: (LabelClass self, GlibString string) => self -> IO string

-- | Gets the text from a label widget including any embedded underlines
--   indicating mnemonics and Pango markup. (See labelGetText).
labelGetLabel :: (LabelClass self, GlibString string) => self -> IO string

-- | Sets a PangoAttrList; the attributes in the list are applied to the
--   label text.
--   
--   Note: The attributes set with this function will be applied and merged
--   with any other attributes previously effected by way of the
--   labelUseUnderline or labelUseMarkup properties. While it
--   is not recommended to mix markup strings with manually set attributes,
--   if you must; know that the attributes will be applied to the label
--   after the markup string is parsed.
labelSetAttributes :: LabelClass self => self -> [PangoAttribute] -> IO ()

-- | Gets the attribute list that was set on the label using
--   labelSetAttributes, if any. This function does not reflect
--   attributes that come from the labels markup (see
--   labelSetMarkup). If you want to get the effective attributes
--   for the label, use layoutGetAttributes (labelGetLayout
--   (label)).
labelGetAttributes :: LabelClass self => self -> IO [PangoAttribute]

-- | Underline parts of the text, odd indices of the list represent
--   underlined parts.
labelSetPattern :: LabelClass l => l -> [Int] -> IO ()

-- | Justification for label and maybe other widgets (text?)
data Justification
JustifyLeft :: Justification
JustifyRight :: Justification
JustifyCenter :: Justification
JustifyFill :: Justification

-- | Sets the alignment of the lines in the text of the label relative to
--   each other. JustifyLeft is the default value when the widget is
--   first created with labelNew. If you instead want to set the
--   alignment of the label as a whole, use miscSetAlignment
--   instead. labelSetJustify has no effect on labels containing
--   only a single line.
labelSetJustify :: LabelClass self => self -> Justification -> IO ()

-- | Returns the justification of the label. See labelSetJustify.
labelGetJustify :: LabelClass self => self -> IO Justification

-- | Gets the PangoLayout used to display the label. The layout is
--   useful to e.g. convert text positions to pixel positions, in
--   combination with labelGetLayoutOffsets.
labelGetLayout :: LabelClass self => self -> IO PangoLayout

-- | Toggles line wrapping within the Label widget. True
--   makes it break lines if text exceeds the widget's size. False
--   lets the text get cut off by the edge of the widget if it exceeds the
--   widget size.
labelSetLineWrap :: LabelClass self => self -> Bool -> IO ()

-- | Returns whether lines in the label are automatically wrapped. See
--   labelSetLineWrap.
labelGetLineWrap :: LabelClass self => self -> IO Bool

-- | If line wrapping is on (see labelSetLineWrap) this controls how
--   the line wrapping is done. The default is WrapWholeWords which
--   means wrap on word boundaries.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
labelSetLineWrapMode :: LabelClass self => self -> LayoutWrapMode -> IO ()

-- | Returns line wrap mode used by the label. See
--   labelSetLineWrapMode.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
labelGetLineWrapMode :: LabelClass self => self -> IO LayoutWrapMode

-- | Selectable labels allow the user to select text from the label, for
--   copy-and-paste.
labelSetSelectable :: LabelClass self => self -> Bool -> IO ()

-- | Gets whether the text selectable.
labelGetSelectable :: LabelClass self => self -> IO Bool

-- | Selects a range of characters in the label, if the label is
--   selectable. See labelSetSelectable. If the label is not
--   selectable, this function has no effect. If startOffset or
--   endOffset are -1, then the end of the label will be
--   substituted.
labelSelectRegion :: LabelClass self => self -> Int -> Int -> IO ()

-- | Gets the selected range of characters in the label, if any. If there
--   is a range selected the result is the start and end of the selection
--   as character offsets.
labelGetSelectionBounds :: LabelClass self => self -> IO (Maybe (Int, Int))

-- | Obtains the coordinates where the label will draw the
--   PangoLayout representing the text in the label; useful to
--   convert mouse events into coordinates inside the PangoLayout,
--   e.g. to take some action if some part of the label is clicked. Of
--   course you will need to create a EventBox to receive the
--   events, and pack the label inside it, since labels are a 'NoWindow'
--   widget.
labelGetLayoutOffsets :: LabelClass self => self -> IO (Int, Int)

-- | Sets the mode used to ellipsize (add an ellipsis: "...") to the text
--   if there is not enough space to render the entire string.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelSetEllipsize :: LabelClass self => self -> EllipsizeMode -> IO ()

-- | Returns the ellipsizing position of the label. See
--   labelSetEllipsize.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelGetEllipsize :: LabelClass self => self -> IO EllipsizeMode

-- | Sets the desired width in characters of label to
--   nChars.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelSetWidthChars :: LabelClass self => self -> Int -> IO ()

-- | Retrieves the desired width of label, in characters. See
--   labelSetWidthChars.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelGetWidthChars :: LabelClass self => self -> IO Int

-- | Sets the desired maximum width in characters of label to
--   nChars.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelSetMaxWidthChars :: LabelClass self => self -> Int -> IO ()

-- | Retrieves the desired maximum width of label, in characters.
--   See labelSetWidthChars.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelGetMaxWidthChars :: LabelClass self => self -> IO Int

-- | Sets whether the label is in single line mode.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelSetSingleLineMode :: LabelClass self => self -> Bool -> IO ()

-- | Returns whether the label is in single line mode.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelGetSingleLineMode :: LabelClass self => self -> IO Bool

-- | Sets the angle of rotation for the label. An angle of 90 reads from
--   from bottom to top, an angle of 270, from top to bottom. The angle
--   setting for the label is ignored if the label is selectable, wrapped,
--   or ellipsized.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelSetAngle :: LabelClass self => self -> Double -> IO ()

-- | Gets the angle of rotation for the label. See gtk_label_set_angle.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
labelGetAngle :: LabelClass self => self -> IO Double

-- | The text of the label.
labelLabel :: (LabelClass self, GlibString string) => Attr self string

-- | The text of the label includes XML markup. See pango_parse_markup().
--   
--   Default value: False
labelUseMarkup :: LabelClass self => Attr self Bool

-- | If set, an underline in the text indicates the next character should
--   be used for the mnemonic accelerator key.
--   
--   Default value: False
labelUseUnderline :: LabelClass self => Attr self Bool

-- | The alignment of the lines in the text of the label relative to each
--   other. This does NOT affect the alignment of the label within its
--   allocation.
--   
--   Default value: JustifyLeft
labelJustify :: LabelClass self => Attr self Justification

-- | If set, wrap lines if the text becomes too wide.
--   
--   Default value: False
labelWrap :: LabelClass self => Attr self Bool

-- | If line wrapping is on (see the labelWrap property) this
--   controls how the line wrapping is done. The default is
--   WrapWholeWords, which means wrap on word boundaries.
--   
--   Default value: WrapWholeWords
--   
--   
--   
- Available since Gtk+ version 2.10
--   
labelWrapMode :: LabelClass self => Attr self LayoutWrapMode

-- | Whether the label text can be selected with the mouse.
--   
--   Default value: False
labelSelectable :: LabelClass self => Attr self Bool

-- | The widget to be activated when the label's mnemonic key is pressed.
labelMnemonicWidget :: (LabelClass self, WidgetClass widget) => ReadWriteAttr self (Maybe Widget) widget

-- | The mnemonic accelerator key for this label.
--   
--   Default value: 16777215
labelMnemonicKeyval :: LabelClass self => ReadAttr self Int

-- | A string with _ characters in positions correspond to characters in
--   the text to underline.
--   
--   Default value: "\"
labelPattern :: (LabelClass self, GlibString string) => WriteAttr self string

-- | The current position of the insertion cursor in chars.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
labelCursorPosition :: LabelClass self => ReadAttr self Int

-- | The position of the opposite end of the selection from the cursor in
--   chars.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
labelSelectionBound :: LabelClass self => ReadAttr self Int

-- | The preferred place to ellipsize the string, if the label does not
--   have enough room to display the entire string, specified as a
--   EllipsizeMode.
--   
--   Note that setting this property to a value other than
--   EllipsizeNone has the side-effect that the label requests only
--   enough space to display the ellipsis "...". In particular, this means
--   that ellipsizing labels don't work well in notebook tabs, unless the
--   tab's tab-expand property is set to True. Other means to set
--   a label's width are widgetSetSizeRequest and
--   labelSetWidthChars.
--   
--   Default value: EllipsizeNone
labelEllipsize :: LabelClass self => Attr self EllipsizeMode

-- | The desired width of the label, in characters. If this property is set
--   to -1, the width will be calculated automatically, otherwise the label
--   will request either 3 characters or the property value, whichever is
--   greater. If the width-chars property is set to a positive value, then
--   the max-width-chars property is ignored.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
labelWidthChars :: LabelClass self => Attr self Int

-- | Whether the label is in single line mode. In single line mode, the
--   height of the label does not depend on the actual text, it is always
--   set to ascent + descent of the font. This can be an advantage in
--   situations where resizing the label because of text changes would be
--   distracting, e.g. in a statusbar.
--   
--   Default value: False
labelSingleLineMode :: LabelClass self => Attr self Bool

-- | The angle that the baseline of the label makes with the horizontal, in
--   degrees, measured counterclockwise. An angle of 90 reads from from
--   bottom to top, an angle of 270, from top to bottom. Ignored if the
--   label is selectable, wrapped, or ellipsized.
--   
--   Allowed values: [0,360]
--   
--   Default value: 0
labelAngle :: LabelClass self => Attr self Double

-- | A list of style attributes to apply to the text of the label.
labelAttributes :: LabelClass self => Attr self [PangoAttribute]

-- | The desired maximum width of the label, in characters. If this
--   property is set to -1, the width will be calculated automatically,
--   otherwise the label will request space for no more than the requested
--   number of characters. If the width-chars property is set to a positive
--   value, then the max-width-chars property is ignored.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
labelMaxWidthChars :: LabelClass self => Attr self Int

-- | 'lineWrap' property. See labelGetLineWrap and
--   labelSetLineWrap
labelLineWrap :: LabelClass self => Attr self Bool

-- | 'text' property. See labelGetText and labelSetText
labelText :: (LabelClass self, GlibString string) => Attr self string

-- | The labelActiveCurrentLink signal a keybinding signal which
--   gets emitted when the user activates a link in the label.
labelActiveCurrentLink :: LabelClass self => Signal self (IO ())

-- | The labelActiveLink signal is emitted when a URI is activated.
--   Default is to use showURI.
labelActiveLink :: (LabelClass self, GlibString string) => Signal self (string -> IO ())

-- | The labelCopyClipboard signal is a keybinding signal which gets
--   emitted to copy the selection to the clipboard.
labelCopyClipboard :: LabelClass self => Signal self (IO ())

-- | The labelMoveCursor signal is a keybinding signal which gets
--   emitted when the user initiates a cursor movement. If the cursor is
--   not visible in label, this signal causes the viewport to be moved
--   instead.
--   
--   Applications should not connect to it, but may emit it with
--   signalEmitByName if they need to control the cursor
--   programmatically.
--   
--   The default bindings for this signal come in two variants, the variant
--   with the Shift modifier extends the selection, the variant without the
--   Shift modifier does not. There are too many key combinations to list
--   them all here.
--   
--   
--   
- Arrow keys move by individual characters/lines
--   
- Ctrl-arrow key combinations move by words/paragraphs
--   
- Home/End keys move to the ends of the buffer
--   
labelMoveCursor :: LabelClass self => Signal self (MovementStep -> Int -> Bool -> IO ())

-- | The labelPopulatePopup signal gets emitted before showing the
--   context menu of the label.
--   
--   If you need to add items to the context menu, connect to this signal
--   and append your menuitems to the menu.
labelPopulatePopup :: LabelClass self => Signal self (Menu -> IO ())

-- | A widget displaying an image
module Graphics.UI.Gtk.Display.Image
data Image
class MiscClass o => ImageClass o
castToImage :: GObjectClass obj => obj -> Image
gTypeImage :: GType
toImage :: ImageClass o => o -> Image

-- | Describes the image data representation used by a Image. If you
--   want to get the image from the widget, you can only get the
--   currently-stored representation. e.g. if the imageStorageType
--   is ImagePixbuf, then you can call imageGetPixbuf but not
--   imageGetStock. For empty images, you can request any storage
--   type (call any of the "get" functions), but they will all return
--   Nothing.
data ImageType
ImageEmpty :: ImageType
ImagePixbuf :: ImageType
ImageStock :: ImageType
ImageIconSet :: ImageType
ImageAnimation :: ImageType
ImageIconName :: ImageType
ImageGicon :: ImageType
ImageSurface :: ImageType

-- | Creates a new Image displaying the file filename. If
--   the file isn't found or can't be loaded, the resulting Image
--   will display a "broken image" icon.
--   
--   If the file contains an animation, the image will contain an
--   animation.
--   
--   If you need to detect failures to load the file, use
--   pixbufNewFromFile to load the file yourself, then create the
--   Image from the pixbuf. (Or for animations, use
--   pixbufAnimationNewFromFile).
--   
--   The storage type (imageGetStorageType) of the returned image
--   is not defined, it will be whatever is appropriate for displaying the
--   file.
imageNewFromFile :: GlibFilePath fp => fp -> IO Image

-- | Creates a new Image displaying a Pixbuf.
--   
--   Note that this function just creates an Image from the pixbuf.
--   The Image created will not react to state changes. Should you
--   want that, you should use imageNewFromIconSet.
imageNewFromPixbuf :: Pixbuf -> IO Image
imageNewFromAnimation :: PixbufAnimationClass animation => animation -> IO Image

-- | Creates a Image displaying a stock icon. If the stock icon name
--   isn't known, the image will be empty.
imageNewFromStock :: StockId -> IconSize -> IO Image

-- | Creates a new empty Image widget.
imageNew :: IO Image

-- | Creates a Image displaying an icon from the current icon theme.
--   If the icon name isn't known, a "broken image" icon will be displayed
--   instead. If the current icon theme is changed, the icon will be
--   updated appropriately.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
imageNewFromIconName :: GlibString string => string -> IconSize -> IO Image

-- | Gets the Pixbuf being displayed by the Image. The
--   storage type of the image must be ImageEmpty or
--   ImagePixbuf (see imageGetStorageType).
imageGetPixbuf :: Image -> IO Pixbuf

-- | Overwrite the current content of the Image with a new
--   Pixbuf.
imageSetFromPixbuf :: Image -> Pixbuf -> IO ()
imageSetFromAnimation :: PixbufAnimationClass animation => Image -> animation -> IO ()

-- | See imageNewFromFile for details.
imageSetFromFile :: GlibFilePath fp => Image -> fp -> IO ()

-- | See imageNewFromStock for details.
imageSetFromStock :: Image -> StockId -> IconSize -> IO ()

-- | See imageNewFromIconName for details.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
imageSetFromIconName :: GlibString string => Image -> string -> IconSize -> IO ()

-- | Sets the pixel size to use for named icons. If the pixel size is set
--   to a value /= -1, it is used instead of the icon size set by
--   imageSetFromIconName.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
imageSetPixelSize :: Image -> Int -> IO ()

-- | Gets the pixel size used for named icons.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
imageGetPixelSize :: Image -> IO Int

-- | Resets the image to be empty.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
imageClear :: Image -> IO ()

-- | The size of an icon in pixels.
--   
--   
--   
- This enumeration contains one case that is not exported and which
--   is used when new sizes are registered using
--   iconSizeRegister.
--   
- Applying show to this type will reveal the name of the size
--   that is registered with Gtk+.
--   
data IconSize

-- | Don't scale but use any of the available sizes.
IconSizeInvalid :: IconSize

-- | Icon size to use in next to menu items in drop-down menus.
IconSizeMenu :: IconSize

-- | Icon size for small toolbars.
IconSizeSmallToolbar :: IconSize

-- | Icon size for larger toolbars.
IconSizeLargeToolbar :: IconSize

-- | Icon size for icons in buttons, next to the label.
IconSizeButton :: IconSize

-- | Icon size for icons in drag-and-drop.
IconSizeDnd :: IconSize

-- | Icon size for icons next to dialog text.
IconSizeDialog :: IconSize
IconSizeUser :: Int -> IconSize

-- | A Pixbuf to display.
imagePixbuf :: PixbufClass pixbuf => ReadWriteAttr Image Pixbuf pixbuf
imageAnimation :: (PixbufClass pixbuf, PixbufAnimationClass animation) => ReadWriteAttr Image animation pixbuf

-- | A Image to display.
imageImage :: ImageClass image => ReadWriteAttr Image Image image

-- | Filename to load and display.
--   
--   Default value: ""
imageFile :: GlibString string => Attr Image string

-- | Stock ID for a stock image to display.
--   
--   Default value: ""
imageStock :: GlibString string => Attr Image string

-- | Symbolic size to use for stock icon, icon set or named icon.
--   
--   Allowed values: >= 0
--   
--   Default value: 4
imageIconSize :: Attr Image Int

-- | The pixel-size property can be used to specify a fixed size overriding
--   the icon-size property for images of type ImageIconName.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
imagePixelSize :: Attr Image Int

-- | The name of the icon in the icon theme. If the icon theme is changed,
--   the image will be updated automatically.
--   
--   Default value: ""
imageIconName :: GlibString string => Attr Image string

-- | The representation being used for image data.
--   
--   Default value: ImageEmpty
imageStorageType :: ReadAttr Image ImageType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Display.Image.ImageType
instance GHC.Classes.Eq Graphics.UI.Gtk.Display.Image.ImageType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Display.Image.ImageType

-- | Display an icon in the system tray
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Display.StatusIcon
data StatusIcon
class TooltipClass o => StatusIconClass o
castToStatusIcon :: GObjectClass obj => obj -> StatusIcon
gTypeStatusIcon :: GType
toStatusIcon :: StatusIconClass o => o -> StatusIcon

-- | Creates an empty status icon object.
statusIconNew :: IO StatusIcon

-- | Creates a status icon displaying pixbuf.
--   
--   The image will be scaled down to fit in the available space in the
--   notification area, if necessary.
statusIconNewFromPixbuf :: Pixbuf -> IO StatusIcon

-- | Creates a status icon displaying the file filename.
--   
--   The image will be scaled down to fit in the available space in the
--   notification area, if necessary.
statusIconNewFromFile :: GlibString string => string -> IO StatusIcon
statusIconNewFromStock :: StockId -> IO StatusIcon

-- | Creates a status icon displaying an icon from the current icon theme.
--   If the current icon theme is changed, the icon will be updated
--   appropriately.
statusIconNewFromIconName :: GlibString string => string -> IO StatusIcon

-- | Makes statusIcon display pixbuf. See
--   statusIconNewFromPixbuf for details.
statusIconSetFromPixbuf :: StatusIconClass self => self -> Pixbuf -> IO ()

-- | Makes statusIcon display the file filename. See
--   statusIconNewFromFile for details.
statusIconSetFromFile :: (StatusIconClass self, GlibString string) => self -> string -> IO ()

-- | Makes statusIcon display the stock icon with the id
--   stockId. See statusIconNewFromStock for details.
statusIconSetFromStock :: StatusIconClass self => self -> StockId -> IO ()

-- | Makes statusIcon display the icon named iconName
--   from the current icon theme. See statusIconNewFromIconName for
--   details.
statusIconSetFromIconName :: (StatusIconClass self, GlibString string) => self -> string -> IO ()

-- | Gets the type of representation being used by the StatusIcon to
--   store image data. If the StatusIcon has no image data, the
--   return value will be ImageEmpty.
statusIconGetStorageType :: StatusIconClass self => self -> IO ImageType
statusIconGetPixbuf :: StatusIconClass self => self -> IO (Maybe Pixbuf)
statusIconGetStock :: StatusIconClass self => self -> IO (Maybe StockId)
statusIconGetIconName :: (StatusIconClass self, GlibString string) => self -> IO (Maybe string)

-- | Gets the size in pixels that is available for the image. Stock icons
--   and named icons adapt their size automatically if the size of the
--   notification area changes. For other storage types, the
--   sizeChanged signal can be used to react to size changes.
statusIconGetSize :: StatusIconClass self => self -> IO Int

-- | Shows or hides a status icon.
statusIconSetVisible :: StatusIconClass self => self -> Bool -> IO ()

-- | Returns whether the status icon is visible or not. Note that being
--   visible does not guarantee that the user can actually see the icon,
--   see also statusIconIsEmbedded.
statusIconGetVisible :: StatusIconClass self => self -> IO Bool

-- | Returns whether the status icon is embedded in a notification area.
statusIconIsEmbedded :: StatusIconClass self => self -> IO Bool

-- | Menu positioning function to use with menuPopup to position
--   menu aligned to the status icon userData.
statusIconPositionMenu :: (MenuClass menu, StatusIconClass self) => menu -> self -> IO (Int, Int, Bool)

-- | Obtains information about the location of the status icon on screen.
--   This information can be used to e.g. position popups like notification
--   bubbles.
--   
--   Note that some platforms do not allow Gtk+ to provide this
--   information, and even on platforms that do allow it, the information
--   is not reliable unless the status icon is embedded in a notification
--   area, see statusIconIsEmbedded.
statusIconGetGeometry :: StatusIconClass self => self -> IO (Maybe (Rectangle, Orientation))

-- | Sets the Screen where status icon is displayed; if the icon is
--   already mapped, it will be unmapped, and then remapped on the new
--   screen.
statusIconSetScreen :: (StatusIconClass self, ScreenClass screen) => self -> Maybe screen -> IO ()

-- | Returns the Screen associated with the status icon.
statusIconGetScreen :: StatusIconClass self => self -> IO (Maybe Screen)

-- | Sets text as the contents of the tooltip.
--   
--   This function will take care of setting "has-tooltip" to True
--   and of the default handler for the "query-tooltip" signal.
--   
--   See also the "tooltip-text" property and tooltipSetText.
statusIconSetTooltipText :: (StatusIconClass self, GlibString string) => self -> Maybe string -> IO ()

-- | Gets the contents of the tooltip for status icon.
statusIconGetTooltipText :: (StatusIconClass self, GlibString string) => self -> IO (Maybe string)

-- | Sets markup as the contents of the tooltip, which is marked up with
--   the Pango text markup language.
--   
--   This function will take care of setting statusIconHasTooltip to
--   True and of the default handler for the queryTooltip
--   signal.
--   
--   See also the tooltipMarkup property and
--   tooltipSetMarkup.
statusIconSetTooltipMarkup :: (StatusIconClass self, GlibString string) => self -> Maybe string -> IO ()

-- | Gets the contents of the tooltip for status icon.
statusIconGetTooltipMarkup :: (StatusIconClass self, GlibString string) => self -> IO (Maybe string)

-- | Sets the has-tooltip property on the status icon to
--   hasTooltip. See statusIconHasTooltip for more
--   information.
statusIconSetHasTooltip :: StatusIconClass self => self -> Bool -> IO ()

-- | Returns the current value of the has-tooltip property. See
--   statusIconHasTooltip for more information.
statusIconGetHasTooltip :: StatusIconClass self => self -> IO Bool

-- | Sets the title of this tray icon. This should be a short,
--   human-readable, localized string describing the tray icon. It may be
--   used by tools like screen readers to render the tray icon.
statusIconSetTitle :: (StatusIconClass self, GlibString string) => self -> Maybe string -> IO ()

-- | Gets the title of this tray icon. See statusIconSetTitle.
statusIconGetTitle :: (StatusIconClass self, GlibString string) => self -> IO (Maybe string)

-- | Sets the name of this tray icon. This should be a string identifying
--   this icon. It is may be used for sorting the icons in the tray and
--   will not be shown to the user.
statusIconSetName :: (StatusIconClass self, GlibString string) => self -> string -> IO ()

-- | A Pixbuf to display.
statusIconPixbuf :: StatusIconClass self => Attr self Pixbuf

-- | Filename to load and display.
--   
--   Default value: Nothing
statusIconFile :: (StatusIconClass self, GlibString string) => WriteAttr self (Maybe string)

-- | Stock ID for a stock image to display.
--   
--   Default value: Nothing
statusIconStock :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)

-- | The name of the icon from the icon theme.
--   
--   Default value: Nothing
statusIconIconName :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)

-- | The representation being used for image data.
--   
--   Default value: ImageEmpty
statusIconStorageType :: StatusIconClass self => ReadAttr self ImageType

-- | The size of the icon.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
statusIconSize :: StatusIconClass self => ReadAttr self Int

-- | Whether or not the status icon is visible.
--   
--   Default value: True
statusIconVisible :: StatusIconClass self => Attr self Bool

-- | The screen where this status icon will be displayed.
statusIconScreen :: StatusIconClass self => Attr self Screen

-- | Sets the text of tooltip to be the given string.
--   
--   Also see tooltipSetText.
--   
--   This is a convenience property which will take care of getting the
--   tooltip shown if the given value is not Nothing. "has-tooltip"
--   will automatically be set to True and the default handler for
--   the "query-tooltip" signal will take care of displaying the tooltip.
--   
--   Note that some platforms have limitations on the length of tooltips
--   that they allow on status icons, e.g. Windows only shows the first 64
--   characters.
--   
--   Default value: Nothing
statusIconTooltipText :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)

-- | Sets the text of tooltip to be the given string, which is marked up
--   with the Pango text markup language. Also see
--   tooltipSetMarkup.
--   
--   This is a convenience property which will take care of getting the
--   tooltip shown if the given value is not Nothing. "has-tooltip"
--   will automatically be set to True and the default handler for
--   the "query-tooltip" signal will take care of displaying the tooltip.
--   
--   On some platforms, embedded markup will be ignored.
--   
--   Default value: Nothing
statusIconTooltipMarkup :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)

-- | Enables or disables the emission of "query-tooltip" on status_icon. A
--   value of True indicates that status_icon can have a tooltip, in
--   this case the status icon will be queried using "query-tooltip" to
--   determine whether it will provide a tooltip or not.
--   
--   Note that setting this property to True for the first time will
--   change the event masks of the windows of this status icon to include
--   leave-notify and motion-notify events. This will not be undone when
--   the property is set to False again.
--   
--   Whether this property is respected is platform dependent. For plain
--   text tooltips, use "tooltip-text" in preference.
--   
--   Default value: False
statusIconHasTooltip :: StatusIconClass self => Attr self Bool

-- | The title of this tray icon. This should be a short, human-readable,
--   localized string describing the tray icon. It may be used by tools
--   like screen readers to render the tray icon.
--   
--   Default value: Nothing
statusIconTitle :: (StatusIconClass self, GlibString string) => Attr self (Maybe string)

-- | Gets emitted when the size available for the image changes, e.g.
--   because the notification area got resized.
statusIconSizeChanged :: StatusIconClass self => Signal self (Int -> IO Bool)

-- | Gets emitted when the user activates the status icon. If and how
--   status icons can activated is platform-dependent.
statusIconActivated :: StatusIconClass self => Signal self (IO ())

-- | Deprecated. See statusIconActivated.
statusIconActivate :: StatusIconClass self => Signal self (IO ())

-- | Gets emitted when the user brings up the context menu of the status
--   icon. Whether status icons can have context menus and how these are
--   activated is platform-dependent.
--   
--   The MouseButton and TimeStamp parameters should be
--   passed as the last to arguments to menuPopup.
statusIconPopupMenu :: StatusIconClass self => Signal self (Maybe MouseButton -> TimeStamp -> IO ())

-- | A label which displays an accelerator key on the right of the text
module Graphics.UI.Gtk.Display.AccelLabel
data AccelLabel
class LabelClass o => AccelLabelClass o
castToAccelLabel :: GObjectClass obj => obj -> AccelLabel
gTypeAccelLabel :: GType
toAccelLabel :: AccelLabelClass o => o -> AccelLabel

-- | Creates a new AccelLabel.
accelLabelNew :: GlibString string => string -> IO AccelLabel

-- | Sets the widget to be monitored by this accelerator label.
accelLabelSetAccelWidget :: (AccelLabelClass self, WidgetClass accelWidget) => self -> accelWidget -> IO ()

-- | Fetches the widget monitored by this accelerator label. See
--   accelLabelSetAccelWidget.
accelLabelGetAccelWidget :: AccelLabelClass self => self -> IO (Maybe Widget)

-- | The widget to be monitored for accelerator changes.
accelLabelAccelWidget :: (AccelLabelClass self, WidgetClass accelWidget) => ReadWriteAttr self (Maybe Widget) accelWidget

-- | A button which pops up a volume control
--   
--   
--   
- Module available since Gtk+ version 2.12
--   
module Graphics.UI.Gtk.Buttons.VolumeButton
data VolumeButton
class ScaleButtonClass o => VolumeButtonClass o
castToVolumeButton :: GObjectClass obj => obj -> VolumeButton
toVolumeButton :: VolumeButtonClass o => o -> VolumeButton

-- | Creates a VolumeButton, with a range between 0.0 and 1.0, with
--   a stepping of 0.02. Volume values can be obtained and modified using
--   the functions from ScaleButton.
volumeButtonNew :: IO VolumeButton

-- | Create buttons which retain their state
module Graphics.UI.Gtk.Buttons.ToggleButton
data ToggleButton
class ButtonClass o => ToggleButtonClass o
castToToggleButton :: GObjectClass obj => obj -> ToggleButton
gTypeToggleButton :: GType
toToggleButton :: ToggleButtonClass o => o -> ToggleButton

-- | Creates a new toggle button. A widget should be packed into the
--   button, as in buttonNew.
toggleButtonNew :: IO ToggleButton

-- | Creates a new toggle button with a text label.
toggleButtonNewWithLabel :: GlibString string => string -> IO ToggleButton

-- | Creates a new ToggleButton containing a label. The label will
--   be created using labelNewWithMnemonic, so underscores in
--   label indicate the mnemonic for the button.
toggleButtonNewWithMnemonic :: GlibString string => string -> IO ToggleButton

-- | Sets whether the button is displayed as a separate indicator and
--   label. You can call this function on a CheckButton or a
--   RadioButton with False to make the button look like a
--   normal button.
--   
--   This function only affects instances of classes like
--   CheckButton and RadioButton that derive from
--   ToggleButton, not instances of ToggleButton itself.
toggleButtonSetMode :: ToggleButtonClass self => self -> Bool -> IO ()

-- | Retrieves whether the button is displayed as a separate indicator and
--   label. See toggleButtonSetMode.
toggleButtonGetMode :: ToggleButtonClass self => self -> IO Bool

-- | Emits the toggled signal on the ToggleButton. There is no good
--   reason for an application ever to call this function.
toggleButtonToggled :: ToggleButtonClass self => self -> IO ()

-- | Queries a ToggleButton and returns its current state. Returns
--   True if the toggle button is pressed in and False if
--   it is raised.
toggleButtonGetActive :: ToggleButtonClass self => self -> IO Bool

-- | Sets the status of the toggle button. Set to True if you want
--   the ToggleButton to be 'pressed in', and False to
--   raise it. This action causes the toggled signal to be emitted.
toggleButtonSetActive :: ToggleButtonClass self => self -> Bool -> IO ()

-- | Gets the value set by toggleButtonSetInconsistent.
toggleButtonGetInconsistent :: ToggleButtonClass self => self -> IO Bool

-- | If the user has selected a range of elements (such as some text or
--   spreadsheet cells) that are affected by a toggle button, and the
--   current values in that range are inconsistent, you may want to display
--   the toggle in an "in between" state. This function turns on "in
--   between" display. Normally you would turn off the inconsistent state
--   again if the user toggles the toggle button. This has to be done
--   manually, toggleButtonSetInconsistent only affects visual
--   appearance, it doesn't affect the semantics of the button.
toggleButtonSetInconsistent :: ToggleButtonClass self => self -> Bool -> IO ()

-- | If the toggle button should be pressed in or not.
--   
--   Default value: False
toggleButtonActive :: ToggleButtonClass self => Attr self Bool

-- | If the toggle button is in an "in between" state.
--   
--   Default value: False
toggleButtonInconsistent :: ToggleButtonClass self => Attr self Bool

-- | If the toggle part of the button is displayed.
--   
--   Default value: False
toggleButtonDrawIndicator :: ToggleButtonClass self => Attr self Bool

-- | 'mode' property. See toggleButtonGetMode and
--   toggleButtonSetMode
toggleButtonMode :: ToggleButtonClass self => Attr self Bool

-- | Should be connected if you wish to perform an action whenever the
--   ToggleButton's state is changed.
toggled :: ToggleButtonClass self => Signal self (IO ())

-- | A button which pops up a scale
--   
--   
--   
- Module available since Gtk+ version 2.12
--   
module Graphics.UI.Gtk.Buttons.ScaleButton
data ScaleButton
class ButtonClass o => ScaleButtonClass o
castToScaleButton :: GObjectClass obj => obj -> ScaleButton
toScaleButton :: ScaleButtonClass o => o -> ScaleButton

-- | Creates a ScaleButton, with a range between min and
--   max, with a stepping of step.
scaleButtonNew :: GlibString string => IconSize -> Double -> Double -> Double -> [string] -> IO ScaleButton

-- | Sets the icons to be used by the scale button. For details, see the
--   "icons" property.
scaleButtonSetIcons :: (ScaleButtonClass self, GlibString string) => self -> [string] -> IO ()

-- | Retrieves the popup of the ScaleButton.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
scaleButtonGetPopup :: ScaleButtonClass self => self -> IO Widget

-- | Retrieves the plus button of the ScaleButton.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
scaleButtonGetPlusButton :: ScaleButtonClass self => self -> IO Widget

-- | Retrieves the minus button of the ScaleButton.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
scaleButtonGetMinusButton :: ScaleButtonClass self => self -> IO Widget

-- | The value of the scale.
--   
--   Default value: 0
scaleButtonValue :: ScaleButtonClass self => Attr self Double

-- | The icon size.
--   
--   Default value: 'IconSizeSmallToolbar'
scaleButtonSize :: ScaleButtonClass self => Attr self IconSize

-- | The Adjustment that contains the current value of this scale
--   button object.
scaleButtonAdjustment :: ScaleButtonClass self => Attr self Adjustment

-- | The names of the icons to be used by the scale button. The first item
--   in the array will be used in the button when the current value is the
--   lowest value, the second item for the highest value. All the
--   subsequent icons will be used for all the other values, spread evenly
--   over the range of values.
--   
--   If there's only one icon name in the icons array, it will be used for
--   all the values. If only two icon names are in the icons array, the
--   first one will be used for the bottom 50% of the scale, and the second
--   one for the top 50%.
--   
--   It is recommended to use at least 3 icons so that the
--   ScaleButton reflects the current value of the scale better for
--   the users.
--   
--   Since 2.12
scaleButtonIcons :: (ScaleButtonClass self, GlibString string) => ReadWriteAttr self [string] (Maybe [string])

-- | The popdown signal is a keybinding signal which gets emitted
--   to popdown the scale widget.
--   
--   The default binding for this signal is Escape.
scaleButtonPopdown :: ScaleButtonClass self => Signal self (IO ())

-- | The popup signal is a keybinding signal which gets emitted to
--   popup the scale widget.
--   
--   The default bindings for this signal are Space, Enter and Return.
scaleButtonPopup :: ScaleButtonClass self => Signal self (IO ())

-- | The scaleButtonValueChanged signal is emitted when the value
--   field has changed.
scaleButtonValueChanged :: ScaleButtonClass self => Signal self (Double -> IO ())

-- | A choice from multiple check buttons
module Graphics.UI.Gtk.Buttons.RadioButton
data RadioButton
class CheckButtonClass o => RadioButtonClass o
castToRadioButton :: GObjectClass obj => obj -> RadioButton
gTypeRadioButton :: GType
toRadioButton :: RadioButtonClass o => o -> RadioButton

-- | Creates a new RadioButton with a new group. To be of any
--   practical value, a widget should then be packed into the radio button.
radioButtonNew :: IO RadioButton

-- | Creates a new RadioButton with a text label.
radioButtonNewWithLabel :: GlibString string => string -> IO RadioButton

-- | Creates a new RadioButton containing a label. The label will be
--   created using labelNewWithMnemonic, so underscores in
--   label indicate the mnemonic for the button.
radioButtonNewWithMnemonic :: GlibString string => string -> IO RadioButton

-- | Creates a new RadioButton, adding it to the same group as the
--   group to which groupMember belongs. As with
--   radioButtonNew, a widget should be packed into the radio
--   button.
radioButtonNewFromWidget :: RadioButton -> IO RadioButton

-- | Creates a new RadioButton with a text label, adding it to the
--   same group as the group to which groupMember belongs.
radioButtonNewWithLabelFromWidget :: GlibString string => RadioButton -> string -> IO RadioButton

-- | Creates a new RadioButton containing a label, adding it to the
--   same group as the group to which groupMember belongs. The
--   label will be created using labelNewWithMnemonic, so
--   underscores in label indicate the mnemonic for the button.
radioButtonNewWithMnemonicFromWidget :: GlibString string => RadioButton -> string -> IO RadioButton

-- | Alias for radioButtonNewFromWidget.

-- | Deprecated: use radioButtonNewFromWidget instead
radioButtonNewJoinGroup :: RadioButton -> IO RadioButton

-- | Alias for radioButtonNewWithLabelFromWidget.

-- | Deprecated: use radioButtonNewWithLabelFromWidget instead
radioButtonNewJoinGroupWithLabel :: GlibString string => RadioButton -> string -> IO RadioButton

-- | Alias for radioButtonNewWithMnemonicFromWidget.

-- | Deprecated: use radioButtonNewWithMnemonicFromWidget instead
radioButtonNewJoinGroupWithMnemonic :: GlibString string => RadioButton -> string -> IO RadioButton

-- | Sets a RadioButtons group. It should be noted that this does
--   not change the layout of your interface in any way, so if you are
--   changing the group, it is likely you will need to re-arrange the user
--   interface to reflect these changes.
radioButtonSetGroup :: RadioButton -> RadioButton -> IO ()

-- | Retrieves the group assigned to a radio button.
radioButtonGetGroup :: RadioButton -> IO [RadioButton]

-- | Sets a new group for a radio button.
radioButtonGroup :: ReadWriteAttr RadioButton [RadioButton] RadioButton

-- | Emitted when the group of radio buttons that a radio button belongs to
--   changes. This is emitted when a radio button switches from being alone
--   to being part of a group of 2 or more buttons, or vice-versa, and when
--   a button is moved from one group of 2 or more buttons to a different
--   one, but not when the composition of the group that a button belongs
--   to changes.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
groupChanged :: RadioButtonClass self => Signal self (IO ())

-- | Create buttons bound to a URL
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Buttons.LinkButton
data LinkButton
class ButtonClass o => LinkButtonClass o
castToLinkButton :: GObjectClass obj => obj -> LinkButton
toLinkButton :: LinkButtonClass o => o -> LinkButton

-- | Creates a new LinkButton with the URI as its text.
linkButtonNew :: GlibString string => string -> IO LinkButton

-- | Creates a new LinkButton containing a label.
linkButtonNewWithLabel :: GlibString string => string -> string -> IO LinkButton

-- | The URI bound to this button.
--   
--   Default value: ""
--   
--   
--   
- Available since Gtk+ version 2.10
--   
linkButtonURI :: (LinkButtonClass self, GlibString string) => Attr self string

-- | The visited state of this button. A visited link is drawn in
--   a different color.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.14
--   
linkButtonVisited :: LinkButtonClass self => Attr self Bool

-- | Create widgets with a discrete toggle button
module Graphics.UI.Gtk.Buttons.CheckButton
data CheckButton
class ToggleButtonClass o => CheckButtonClass o
castToCheckButton :: GObjectClass obj => obj -> CheckButton
gTypeCheckButton :: GType
toCheckButton :: CheckButtonClass o => o -> CheckButton

-- | Creates a new CheckButton.
checkButtonNew :: IO CheckButton

-- | Creates a new CheckButton with a Label to the right of
--   it.
checkButtonNewWithLabel :: GlibString string => string -> IO CheckButton

-- | Creates a new CheckButton containing a label. The label will be
--   created using labelNewWithMnemonic, so underscores in
--   label indicate the mnemonic for the check button.
checkButtonNewWithMnemonic :: GlibString string => string -> IO CheckButton

-- | A widget that creates a signal when clicked on
module Graphics.UI.Gtk.Buttons.Button
data Button
class BinClass o => ButtonClass o
castToButton :: GObjectClass obj => obj -> Button
gTypeButton :: GType
toButton :: ButtonClass o => o -> Button

-- | Creates a new Button widget. To add a child widget to the
--   button, use containerAdd.
buttonNew :: IO Button

-- | Creates a Button widget with a Label child containing
--   the given text.
buttonNewWithLabel :: GlibString string => string -> IO Button

-- | Creates a new Button containing a label. If characters in
--   label are preceded by an underscore, they are underlined. If
--   you need a literal underscore character in a label, use '__' (two
--   underscores). The first underlined character represents a keyboard
--   accelerator called a mnemonic. Pressing Alt and that key activates the
--   button.
buttonNewWithMnemonic :: GlibString string => string -> IO Button

-- | Creates a new Button containing the image and text from a stock
--   item.
--   
--   If stockId is unknown, then it will be treated as a mnemonic
--   label (as for buttonNewWithMnemonic).
buttonNewFromStock :: StockId -> IO Button

-- | Emits the button pressed signal for the given Button.
buttonPressed :: ButtonClass self => self -> IO ()

-- | Emits the button released signal for the given Button.
buttonReleased :: ButtonClass self => self -> IO ()

-- | Emits the button clicked signal for the given Button.
--   
--   This is similar to calling buttonPressed and
--   buttonReleased in sequence.
buttonClicked :: ButtonClass self => self -> IO ()

-- | Emit the cursor enters signal to the button.
buttonEnter :: ButtonClass self => self -> IO ()

-- | Emit the cursor leaves signal to the button.
buttonLeave :: ButtonClass self => self -> IO ()

-- | I don't have a clue.
data ReliefStyle
ReliefNormal :: ReliefStyle
ReliefHalf :: ReliefStyle
ReliefNone :: ReliefStyle

-- | Sets the relief style of the edges of the given Button widget.
--   Three styles exist, ReliefNormal, ReliefHalf,
--   ReliefNone. The default style is, as one can guess,
--   ReliefNormal.
buttonSetRelief :: ButtonClass self => self -> ReliefStyle -> IO ()

-- | Returns the current relief style of the given Button.
buttonGetRelief :: ButtonClass self => self -> IO ReliefStyle

-- | Sets the text of the label of the button. This text is also used to
--   select the stock item if buttonSetUseStock is used.
--   
--   This will also clear any previously set labels.
buttonSetLabel :: (ButtonClass self, GlibString string) => self -> string -> IO ()

-- | Gets the text from the label of the button, as set by
--   buttonSetLabel. If the label text has not been set the return
--   value will be "". This will be the case if you create an
--   empty button with buttonNew to use as a container.
buttonGetLabel :: (ButtonClass self, GlibString string) => self -> IO string

-- | If true, the label set on the button is used as a stock id to select
--   the stock item for the button.
--   
--   Setting this property to True will make the button lookup its
--   label in the table of stock items. If there is a match, the button
--   will use the stock item instead of the label. You need to set this
--   flag before you change the label.
buttonSetUseStock :: ButtonClass self => self -> Bool -> IO ()

-- | Returns whether the button label is a stock item.
buttonGetUseStock :: ButtonClass self => self -> IO Bool

-- | If true, an underline in the text of the button label indicates the
--   next character should be used for the mnemonic accelerator key.
--   
--   Setting this property will make the button join any underline
--   character into the following letter and inserting this letter as a
--   keyboard shortcut. You need to set this flag before you change the
--   label.
buttonSetUseUnderline :: ButtonClass self => self -> Bool -> IO ()

-- | Returns whether an embedded underline in the button label indicates a
--   mnemonic. See buttonSetUseUnderline.
buttonGetUseUnderline :: ButtonClass self => self -> IO Bool

-- | Sets whether the button will grab focus when it is clicked with the
--   mouse. Making mouse clicks not grab focus is useful in places like
--   toolbars where you don't want the keyboard focus removed from the main
--   area of the application.
--   
--   
--   
- Available since Gtk version 2.4
--   
buttonSetFocusOnClick :: ButtonClass self => self -> Bool -> IO ()

-- | Returns whether the button grabs focus when it is clicked with the
--   mouse. See buttonSetFocusOnClick.
--   
--   
--   
- Available since Gtk version 2.4
--   
buttonGetFocusOnClick :: ButtonClass self => self -> IO Bool

-- | Sets the alignment of the child. This has no effect unless the child
--   derives from Misc or Alignment.
--   
--   
--   
- Available since Gtk version 2.4
--   
buttonSetAlignment :: ButtonClass self => self -> (Float, Float) -> IO ()

-- | Gets the alignment of the child in the button.
--   
--   
--   
- Available since Gtk version 2.4
--   
buttonGetAlignment :: ButtonClass self => self -> IO (Float, Float)

-- | Gets the widget that is currently set as the image of the button. This
--   may have been explicitly set by buttonSetImage or constructed
--   by buttonNewFromStock.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
buttonGetImage :: ButtonClass self => self -> IO (Maybe Widget)

-- | Set the image of the button to the given widget. Note that it depends
--   on the "gtk-button-images" setting whether the image will be displayed
--   or not.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
buttonSetImage :: (ButtonClass self, WidgetClass image) => self -> image -> IO ()

-- | Position a scale's value is drawn relative to the through
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType

-- | Sets the position of the image relative to the text inside the button.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
buttonSetImagePosition :: ButtonClass self => self -> PositionType -> IO ()

-- | Gets the position of the image relative to the text inside the button.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
buttonGetImagePosition :: ButtonClass self => self -> IO PositionType

-- | Returns the button's event window if it is realized, Nothing
--   otherwise.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
buttonGetEventWindow :: ButtonClass self => self -> IO (Maybe DrawWindow)

-- | Text of the label widget inside the button, if the button contains a
--   label widget.
--   
--   Default value: ""
buttonLabel :: (ButtonClass self, GlibString string) => Attr self string

-- | If set, an underline in the text indicates the next character should
--   be used for the mnemonic accelerator key.
--   
--   Default value: False
buttonUseUnderline :: ButtonClass self => Attr self Bool

-- | If set, the label is used to pick a stock item instead of being
--   displayed.
--   
--   Default value: False
buttonUseStock :: ButtonClass self => Attr self Bool

-- | Whether the button grabs focus when it is clicked with the mouse.
--   
--   Default value: True
buttonFocusOnClick :: ButtonClass self => Attr self Bool

-- | The border relief style.
--   
--   Default value: ReliefNormal
buttonRelief :: ButtonClass self => Attr self ReliefStyle

-- | If the child of the button is a Misc or Alignment, this
--   property can be used to control it's horizontal alignment. 0.0 is left
--   aligned, 1.0 is right aligned.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
buttonXalign :: ButtonClass self => Attr self Float

-- | If the child of the button is a Misc or Alignment, this
--   property can be used to control it's vertical alignment. 0.0 is top
--   aligned, 1.0 is bottom aligned.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
buttonYalign :: ButtonClass self => Attr self Float

-- | Child widget to appear next to the button text.
--   
--   
--   
- Available since Gtk version 2.6
--   
buttonImage :: (ButtonClass self, WidgetClass image) => ReadWriteAttr self (Maybe Widget) image

-- | The position of the image relative to the text inside the button.
--   
--   Default value: PosLeft
--   
--   
--   
- Available since Gtk+ version 2.10
--   
buttonImagePosition :: ButtonClass self => Attr self PositionType

-- | Emitted when the button has been activated (pressed and released).
buttonActivated :: ButtonClass self => Signal self (IO ())

-- | Constructing menus and toolbars from an XML description
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.ActionMenuToolbar.UIManager
data UIManager
class GObjectClass o => UIManagerClass o
castToUIManager :: GObjectClass obj => obj -> UIManager
gTypeUIManager :: GType
toUIManager :: UIManagerClass o => o -> UIManager

-- | These enumeration values are used by uiManagerAddUi to
--   determine what UI element to create.
data UIManagerItemType
UiManagerAuto :: UIManagerItemType
UiManagerMenubar :: UIManagerItemType
UiManagerMenu :: UIManagerItemType
UiManagerToolbar :: UIManagerItemType
UiManagerPlaceholder :: UIManagerItemType
UiManagerPopup :: UIManagerItemType
UiManagerMenuitem :: UIManagerItemType
UiManagerToolitem :: UIManagerItemType
UiManagerSeparator :: UIManagerItemType
UiManagerAccelerator :: UIManagerItemType
UiManagerPopupWithAccels :: UIManagerItemType
data MergeId

-- | Creates a new ui manager object.
uiManagerNew :: IO UIManager

-- | Sets the "add_tearoffs" property, which controls whether menus
--   generated by this UIManager will have tearoff menu items.
--   
--   Note that this only affects regular menus. Generated popup menus never
--   have tearoff menu items.
uiManagerSetAddTearoffs :: UIManager -> Bool -> IO ()

-- | Returns whether menus generated by this UIManager will have
--   tearoff menu items.
uiManagerGetAddTearoffs :: UIManager -> IO Bool

-- | Inserts an action group into the list of action groups associated with
--   self. Actions in earlier groups hide actions with the same
--   name in later groups.
uiManagerInsertActionGroup :: UIManager -> ActionGroup -> Int -> IO ()

-- | Removes an action group from the list of action groups associated with
--   self.
uiManagerRemoveActionGroup :: UIManager -> ActionGroup -> IO ()

-- | Returns the list of action groups associated with the UI manager.
uiManagerGetActionGroups :: UIManager -> IO [ActionGroup]

-- | Returns the AccelGroup associated with self.
uiManagerGetAccelGroup :: UIManager -> IO AccelGroup

-- | Looks up a widget by following a path. The path consists of the names
--   specified in the XML description of the UI. separated by '/'. Elements
--   which don't have a name or action attribute in the XML (e.g.
--   <popup>) can be addressed by their XML element name (e.g.
--   "popup"). The root element ("/ui") can be omitted in the path.
--   
--   Note that the widget found by following a path that ends in a
--   <menu> element is the menuitem to which the menu is attached,
--   not the menu itself.
uiManagerGetWidget :: GlibString string => UIManager -> string -> IO (Maybe Widget)

-- | Obtains a list of all toplevel widgets of the requested types.
uiManagerGetToplevels :: UIManager -> [UIManagerItemType] -> IO [Widget]

-- | Looks up an action by following a path. See uiManagerGetWidget
--   for more information about paths.
uiManagerGetAction :: GlibString string => UIManager -> string -> IO (Maybe Action)

-- | Parses a string containing a UI definition and merges it with the
--   current contents of self. An enclosing <ui> element is
--   added if it is missing.
--   
--   If a parse error occurres, an exception is thrown.
uiManagerAddUiFromString :: GlibString string => UIManager -> string -> IO MergeId

-- | Parses a file containing a UI definition and merges it with the
--   current contents of self.
--   
--   If a parse or IO error occurres, an exception is thrown.
uiManagerAddUiFromFile :: GlibString string => UIManager -> string -> IO MergeId

-- | Returns an unused merge id, suitable for use with
--   uiManagerAddUi.
uiManagerNewMergeId :: UIManager -> IO MergeId

-- | Adds a UI element to the current contents of self.
--   
--   If type is UiManagerAuto, Gtk+ inserts a menuitem,
--   toolitem or separator if such an element can be inserted at the place
--   determined by path. Otherwise type must indicate an
--   element that can be inserted at the place determined by path.
--   
--   If path points to a menuitem or toolitem, the new element
--   will be inserted before or after this item, depending on top.
uiManagerAddUi :: GlibString string => UIManager -> MergeId -> string -> string -> Maybe string -> [UIManagerItemType] -> Bool -> IO ()

-- | Unmerges the part of the UI manager's content identified by
--   mergeId.
uiManagerRemoveUi :: UIManager -> MergeId -> IO ()

-- | Creates a UI definition of the merged UI.
uiManagerGetUi :: GlibString string => UIManager -> IO string

-- | Makes sure that all pending updates to the UI have been completed.
--   
--   This may occasionally be necessary, since UIManager updates the
--   UI in an idle function. A typical example where this function is
--   useful is to enforce that the menubar and toolbar have been added to
--   the main window before showing it:
--   
--   
--   do
--   containerAdd window vbox
--   onAddWidget merge (addWidget vbox)
--   uiManagerAddUiFromFile merge "my-menus"
--   uiManagerAddUiFromFile merge "my-toolbars"
--   uiManagerEnsureUpdate merge
--   widgetShow window
--   
uiManagerEnsureUpdate :: UIManager -> IO ()

-- | The "add-tearoffs" property controls whether generated menus have
--   tearoff menu items.
--   
--   Note that this only affects regular menus. Generated popup menus never
--   have tearoff menu items.
--   
--   Default value: False
uiManagerAddTearoffs :: Attr UIManager Bool

-- | An XML string describing the merged UI.
--   
--   Default value: "<ui>\n</ui>\n"
uiManagerUi :: GlibString string => ReadAttr UIManager string

-- | The add_widget signal is emitted for each generated menubar and
--   toolbar. It is not emitted for generated popup menus, which can be
--   obtained by uiManagerGetWidget.
addWidget :: UIManagerClass self => Signal self (Widget -> IO ())

-- | The "actions-changed" signal is emitted whenever the set of actions
--   changes.
actionsChanged :: UIManagerClass self => Signal self (IO ())
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.ActionMenuToolbar.UIManager.UIManagerItemType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.ActionMenuToolbar.UIManager.UIManagerItemType
instance System.Glib.Flags.Flags Graphics.UI.Gtk.ActionMenuToolbar.UIManager.UIManagerItemType

-- | An action which can be triggered by a menu or toolbar item
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.ActionMenuToolbar.Action
data Action
class GObjectClass o => ActionClass o
castToAction :: GObjectClass obj => obj -> Action
gTypeAction :: GType
toAction :: ActionClass o => o -> Action

-- | Creates a new Action object. To add the action to a
--   ActionGroup and set the accelerator for the action, call
--   actionGroupAddActionWithAccel. See
--   Graphics.UI.Gtk.ActionMenuToolbar.UIManager#XML-UI for
--   information on allowed action names.
actionNew :: GlibString string => string -> string -> Maybe string -> Maybe StockId -> IO Action

-- | Returns the name of the action.
actionGetName :: (ActionClass self, GlibString string) => self -> IO string

-- | Returns whether the action is effectively sensitive.
actionIsSensitive :: ActionClass self => self -> IO Bool

-- | Returns whether the action itself is sensitive. Note that this doesn't
--   necessarily mean effective sensitivity. See actionIsSensitive
--   for that.
actionGetSensitive :: ActionClass self => self -> IO Bool

-- | Sets the sensitive property of the action to sensitive. Note
--   that this doesn't necessarily mean effective sensitivity. See
--   actionIsSensitive for that.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
actionSetSensitive :: ActionClass self => self -> Bool -> IO ()

-- | Returns whether the action is effectively visible.
actionIsVisible :: ActionClass self => self -> IO Bool

-- | Returns whether the action itself is visible. Note that this doesn't
--   necessarily mean effective visibility. See actionIsSensitive
--   for that.
actionGetVisible :: ActionClass self => self -> IO Bool

-- | Sets the visible property of the action to visible. Note that
--   this doesn't necessarily mean effective visibility. See
--   actionIsVisible for that.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
actionSetVisible :: ActionClass self => self -> Bool -> IO ()

-- | Emits the "activate" signal on the specified action, if it isn't
--   insensitive. This gets called by the proxy widgets when they get
--   activated.
--   
--   It can also be used to manually activate an action.
actionActivate :: ActionClass self => self -> IO ()

-- | Creates a menu item widget that proxies for the given action.
actionCreateMenuItem :: ActionClass self => self -> IO Widget

-- | Creates a toolbar item widget that proxies for the given action.
actionCreateToolItem :: ActionClass self => self -> IO Widget

-- | Returns the proxy widgets for an action.
actionGetProxies :: ActionClass self => self -> IO [Widget]

-- | Installs the accelerator for action if action has an
--   accel path and group. See actionSetAccelPath and
--   actionSetAccelGroup
--   
--   Since multiple proxies may independently trigger the installation of
--   the accelerator, the action counts the number of times this
--   function has been called and doesn't remove the accelerator until
--   actionDisconnectAccelerator has been called as many times.
actionConnectAccelerator :: ActionClass self => self -> IO ()

-- | Undoes the effect of one call to actionConnectAccelerator.
actionDisconnectAccelerator :: ActionClass self => self -> IO ()

-- | Returns the accel path for this action.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
actionGetAccelPath :: (ActionClass self, GlibString string) => self -> IO (Maybe string)

-- | Sets the accel path for this action. All proxy widgets associated with
--   the action will have this accel path, so that their accelerators are
--   consistent.
actionSetAccelPath :: (ActionClass self, GlibString string) => self -> string -> IO ()

-- | Sets the AccelGroup in which the accelerator for this action
--   will be installed.
actionSetAccelGroup :: ActionClass self => self -> AccelGroup -> IO ()

-- | A unique name for the action.
--   
--   Default value: ""
actionName :: (GlibString string, ActionClass self) => Attr self string

-- | The label used for menu items and buttons that activate this action.
--   
--   Default value: ""
actionLabel :: (GlibString string, ActionClass self) => Attr self string

-- | A shorter label that may be used on toolbar buttons.
--   
--   Default value: ""
actionShortLabel :: (GlibString string, ActionClass self) => Attr self string

-- | A tooltip for this action.
--   
--   Default value: Nothing
actionTooltip :: (GlibString string, ActionClass self) => Attr self (Maybe string)

-- | The stock icon displayed in widgets representing this action.
--   
--   Default value: Nothing
actionStockId :: (GlibString string, ActionClass self) => Attr self (Maybe string)

-- | Whether the toolbar item is visible when the toolbar is in a
--   horizontal orientation.
--   
--   Default value: True
actionVisibleHorizontal :: ActionClass self => Attr self Bool

-- | When True, toolitem proxies for this action are represented
--   in the toolbar overflow menu.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.6
--   
actionVisibleOverflown :: ActionClass self => Attr self Bool

-- | Whether the toolbar item is visible when the toolbar is in a vertical
--   orientation.
--   
--   Default value: True
actionVisibleVertical :: ActionClass self => Attr self Bool

-- | Whether the action is considered important. When True,
--   toolitem proxies for this action show text in ToolbarBothHoriz
--   mode.
--   
--   Default value: False
actionIsImportant :: ActionClass self => Attr self Bool

-- | When True, empty menu proxies for this action are hidden.
--   
--   Default value: True
actionHideIfEmpty :: ActionClass self => Attr self Bool

-- | Whether the action is enabled.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.6
--   
actionSensitive :: ActionClass self => Attr self Bool

-- | Whether the action is visible.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk+ version 2.6
--   
actionVisible :: ActionClass self => Attr self Bool

-- | 'accelPath' property. See actionGetAccelPath and
--   actionSetAccelPath
--   
--   
--   
- Available since Gtk+ version 2.6
--   
actionAccelPath :: (GlibString string, ActionClass self) => ReadWriteAttr self (Maybe string) string

-- | If True, the action's menu item proxies will ignore the
--   menuImages setting and always show their image, if available.
--   
--   Use this property if the menu item would be useless or hard to use
--   without their image.
--   
--   Default value: False
--   
--   Since 2.20
actionAlwaysShowImage :: ActionClass self => Attr self Bool

-- | The "activate" signal is emitted when the action is activated.
actionActivated :: ActionClass self => Signal self (IO ())

-- | A group of actions
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.ActionMenuToolbar.ActionGroup
data ActionGroup
class GObjectClass o => ActionGroupClass o
castToActionGroup :: GObjectClass obj => obj -> ActionGroup
gTypeActionGroup :: GType
toActionGroup :: ActionGroupClass o => o -> ActionGroup

-- | A description of an action.
data ActionEntry
ActionEntry :: DefaultGlibString -> DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> IO () -> ActionEntry
[actionEntryName] :: ActionEntry -> DefaultGlibString
[actionEntryLabel] :: ActionEntry -> DefaultGlibString
[actionEntryStockId] :: ActionEntry -> Maybe DefaultGlibString
[actionEntryAccelerator] :: ActionEntry -> Maybe DefaultGlibString
[actionEntryTooltip] :: ActionEntry -> Maybe DefaultGlibString
[actionEntryCallback] :: ActionEntry -> IO ()

-- | A description of an action for an entry that can be toggled.
data ToggleActionEntry
ToggleActionEntry :: DefaultGlibString -> DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> IO () -> Bool -> ToggleActionEntry
[toggleActionName] :: ToggleActionEntry -> DefaultGlibString
[toggleActionLabel] :: ToggleActionEntry -> DefaultGlibString
[toggleActionStockId] :: ToggleActionEntry -> Maybe DefaultGlibString
[toggleActionAccelerator] :: ToggleActionEntry -> Maybe DefaultGlibString
[toggleActionTooltip] :: ToggleActionEntry -> Maybe DefaultGlibString
[toggleActionCallback] :: ToggleActionEntry -> IO ()
[toggleActionIsActive] :: ToggleActionEntry -> Bool

-- | A description of an action for an entry that provides a multiple
--   choice.
data RadioActionEntry
RadioActionEntry :: DefaultGlibString -> DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> Maybe DefaultGlibString -> Int -> RadioActionEntry
[radioActionName] :: RadioActionEntry -> DefaultGlibString
[radioActionLabel] :: RadioActionEntry -> DefaultGlibString
[radioActionStockId] :: RadioActionEntry -> Maybe DefaultGlibString
[radioActionAccelerator] :: RadioActionEntry -> Maybe DefaultGlibString
[radioActionTooltip] :: RadioActionEntry -> Maybe DefaultGlibString
[radioActionValue] :: RadioActionEntry -> Int

-- | Creates a new ActionGroup object. The name of the action group
--   is used when associating keybindings with the actions.
actionGroupNew :: GlibString string => string -> IO ActionGroup

-- | Gets the name of the action group.
actionGroupGetName :: GlibString string => ActionGroup -> IO string

-- | Returns True if the group is sensitive. The constituent
--   actions can only be logically sensitive (see actionIsSensitive)
--   if they are sensitive (see actionGetSensitive) and their group
--   is sensitive.
actionGroupGetSensitive :: ActionGroup -> IO Bool

-- | Changes the sensitivity of actionGroup
actionGroupSetSensitive :: ActionGroup -> Bool -> IO ()

-- | Returns True if the group is visible. The constituent actions
--   can only be logically visible (see actionIsVisible) if they are
--   visible (see actionGetVisible) and their group is visible.
actionGroupGetVisible :: ActionGroup -> IO Bool

-- | Changes the visible of actionGroup.
actionGroupSetVisible :: ActionGroup -> Bool -> IO ()

-- | Looks up an action in the action group by name.
actionGroupGetAction :: GlibString string => ActionGroup -> string -> IO (Maybe Action)

-- | Lists the actions in the action group.
actionGroupListActions :: ActionGroup -> IO [Action]

-- | Adds an action object to the action group. Note that this function
--   does not set up the accel path of the action, which can lead to
--   problems if a user tries to modify the accelerator of a menuitem
--   associated with the action. Therefore you must either set the accel
--   path yourself with actionSetAccelPath, or use
--   actionGroupAddActionWithAccel ... Nothing.
actionGroupAddAction :: ActionClass action => ActionGroup -> action -> IO ()

-- | Adds an action object to the action group and sets up the accelerator.
--   
--   If accelerator is Nothing, attempts to use the
--   accelerator associated with the stock id of the action.
--   
--   Accel paths are set to
--   <Actions>/group-name/action-name.
actionGroupAddActionWithAccel :: (ActionClass action, GlibString string) => ActionGroup -> action -> Maybe string -> IO ()

-- | Removes an action object from the action group.
actionGroupRemoveAction :: ActionClass action => ActionGroup -> action -> IO ()

-- | This is a convenience function to create a number of actions and add
--   them to the action group.
--   
--   The actionActivated signals of the actions are connected to the
--   callbacks and their accel paths are set to
--   <Actions>/group-name/action-name.
actionGroupAddActions :: ActionGroup -> [ActionEntry] -> IO ()

-- | This is a convenience function to create a number of toggle actions
--   and add them to the action group.
--   
--   The actionActivated signals of the actions are connected to the
--   callbacks and their accel paths are set to
--   <Actions>/group-name/action-name.
actionGroupAddToggleActions :: ActionGroup -> [ToggleActionEntry] -> IO ()

-- | This is a convenience routine to create a group of radio actions and
--   add them to the action group.
--   
--   The radioActionChanged signal of the first radio action is
--   connected to the onChange callback and the accel paths of the
--   actions are set to <Actions>/group-name/action-name.
actionGroupAddRadioActions :: ActionGroup -> [RadioActionEntry] -> Int -> (RadioAction -> IO ()) -> IO ()

-- | Sets a function to be used for translating the label and
--   tooltip of ActionEntrys added by
--   actionGroupAddActions.
--   
--   If you're using 'gettext', it is enough to set the translation domain
--   with actionGroupSetTranslationDomain.
actionGroupSetTranslateFunc :: GlibString string => ActionGroup -> (string -> IO string) -> IO ()

-- | Sets the translation domain and uses 'dgettext' for translating the
--   label and tooltip of ActionEntrys added by
--   actionGroupAddActions.
--   
--   If you're not using 'gettext' for localization, see
--   actionGroupSetTranslateFunc.
actionGroupSetTranslationDomain :: GlibString string => ActionGroup -> string -> IO ()

-- | Translates a string.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
actionGroupTranslateString :: GlibString string => ActionGroup -> string -> IO string

-- | A name for the action group.
--   
--   Default value: ""
actionGroupName :: GlibString string => Attr ActionGroup string

-- | Whether the action group is enabled.
--   
--   Default value: True
actionGroupSensitive :: Attr ActionGroup Bool

-- | Whether the action group is visible.
--   
--   Default value: True
actionGroupVisible :: Attr ActionGroup Bool

-- | The base class for all widgets.
module Graphics.UI.Gtk.Abstract.Widget
data Widget
class GObjectClass o => WidgetClass o
castToWidget :: GObjectClass obj => obj -> Widget
gTypeWidget :: GType
toWidget :: WidgetClass o => o -> Widget

-- | Specify which events a widget will emit signals on.
data EventMask
ExposureMask :: EventMask
PointerMotionMask :: EventMask
PointerMotionHintMask :: EventMask
ButtonMotionMask :: EventMask
Button1MotionMask :: EventMask
Button2MotionMask :: EventMask
Button3MotionMask :: EventMask
ButtonPressMask :: EventMask
ButtonReleaseMask :: EventMask
KeyPressMask :: EventMask
KeyReleaseMask :: EventMask
EnterNotifyMask :: EventMask
LeaveNotifyMask :: EventMask
FocusChangeMask :: EventMask
StructureMask :: EventMask
PropertyChangeMask :: EventMask
VisibilityNotifyMask :: EventMask
ProximityInMask :: EventMask
ProximityOutMask :: EventMask
SubstructureMask :: EventMask
ScrollMask :: EventMask
TouchMask :: EventMask
SmoothScrollMask :: EventMask
TouchpadGestureMask :: EventMask
TabletPadMask :: EventMask
AllEventsMask :: EventMask
type GType = CULong

-- | Key values are the codes which are sent whenever a key is pressed or
--   released.
type KeyVal = Word32

-- | Requisition
--   
--   
--   
- For widgetSizeRequest. The values represent the desired
--   width and height of the widget.
--   
data Requisition
Requisition :: Int -> Int -> Requisition

-- | Rectangle
--   
--   
--   
- Specifies x, y, width and height
--   
data Rectangle
Rectangle :: Int -> Int -> Int -> Int -> Rectangle

-- | Color
--   
--   
--   
- Specifies a color with three integer values for red, green and
--   blue. All values range from 0 (least intense) to 65535 (highest
--   intensity).
--   
data Color

-- | The size of an icon in pixels.
--   
--   
--   
- This enumeration contains one case that is not exported and which
--   is used when new sizes are registered using
--   iconSizeRegister.
--   
- Applying show to this type will reveal the name of the size
--   that is registered with Gtk+.
--   
data IconSize

-- | Don't scale but use any of the available sizes.
IconSizeInvalid :: IconSize

-- | Icon size to use in next to menu items in drop-down menus.
IconSizeMenu :: IconSize

-- | Icon size for small toolbars.
IconSizeSmallToolbar :: IconSize

-- | Icon size for larger toolbars.
IconSizeLargeToolbar :: IconSize

-- | Icon size for icons in buttons, next to the label.
IconSizeButton :: IconSize

-- | Icon size for icons in drag-and-drop.
IconSizeDnd :: IconSize

-- | Icon size for icons next to dialog text.
IconSizeDialog :: IconSize
IconSizeUser :: Int -> IconSize

-- | Widget states
data StateType
StateNormal :: StateType
StateActive :: StateType
StatePrelight :: StateType
StateSelected :: StateType
StateInsensitive :: StateType
StateInconsistent :: StateType
StateFocused :: StateType
data TextDirection
TextDirNone :: TextDirection
TextDirLtr :: TextDirection
TextDirRtl :: TextDirection

-- | State of an accelerator
data AccelFlags
AccelVisible :: AccelFlags
AccelLocked :: AccelFlags
AccelMask :: AccelFlags

-- | Editing direction
data DirectionType
DirTabForward :: DirectionType
DirTabBackward :: DirectionType
DirUp :: DirectionType
DirDown :: DirectionType
DirLeft :: DirectionType
DirRight :: DirectionType

-- | A synonym for a standard button or icon.
type StockId = DefaultGlibString

-- | Specify what kind of help the user wants.
data WidgetHelpType
WidgetHelpTooltip :: WidgetHelpType
WidgetHelpWhatsThis :: WidgetHelpType

-- | Allocation
--   
--   
--   
- For Widget's sizeAllocate signal. The x and
--   y values of the rectangle refer to the widgets position
--   relative to its parent window.
--   
type Allocation = Rectangle

-- | Flags a widget to be displayed. Any widget that isn't shown will not
--   appear on the screen. If you want to show all the widgets in a
--   container, it's easier to call widgetShowAll on the container,
--   instead of individually showing the widgets.
--   
--   Remember that you have to show the containers containing a widget, in
--   addition to the widget itself, before it will appear onscreen.
--   
--   When a toplevel container is shown, it is immediately realized and
--   mapped; other shown widgets are realized and mapped when their
--   toplevel container is realized and mapped.
widgetShow :: WidgetClass self => self -> IO ()

-- | Shows a widget. If the widget is an unmapped toplevel widget (i.e. a
--   Window that has not yet been shown), enter the main loop and
--   wait for the window to actually be mapped. Be careful; because the
--   main loop is running, anything can happen during this function.
widgetShowNow :: WidgetClass self => self -> IO ()

-- | Reverses the effects of widgetShow, causing the widget to be
--   hidden (invisible to the user).
widgetHide :: WidgetClass self => self -> IO ()

-- | Recursively shows a widget, and any child widgets (if the widget is a
--   container).
widgetShowAll :: WidgetClass self => self -> IO ()

-- | Destroys a widget. Equivalent to objectDestroy.
--   
--   When a widget is destroyed it will be removed from the screen and
--   unrealized. When a widget is destroyed, it will break any references
--   it holds to other objects.If the widget is inside a container, the
--   widget will be removed from the container. The widget will be garbage
--   collected (finalized) time after your last reference to the widget
--   disappears.
--   
--   In most cases, only toplevel widgets (windows) require explicit
--   destruction, because when you destroy a toplevel its children will be
--   destroyed as well.
widgetDestroy :: WidgetClass self => self -> IO ()

-- | Draws widget to cr. The top left corner of the widget will be
--   drawn to the currently set origin point of cr.
--   
--   You should pass a cairo context as cr argument that is in an original
--   state. Otherwise the resulting drawing is undefined. For example
--   changing the operator using setOperator or the line width using
--   setLineWidth might have unwanted side effects. You may however
--   change the context’s transform matrix - like with scale,
--   translate or setMatrix and clip region with clip
--   prior to calling this function. Also, it is fine to modify the context
--   with save and pushGroup prior to calling this function.
--   
--   Note that special-purpose widgets may contain special code for
--   rendering to the screen and might appear differently on screen and
--   when rendered using widgetDraw.
widgetDraw :: WidgetClass self => self -> Cairo -> IO ()

-- | Send a redraw request to a widget. Equivalent to calling
--   widgetQueueDrawArea for the entire area of a widget.
widgetQueueDraw :: WidgetClass self => self -> IO ()

-- | This function is only for use in widget implementations. Flags a
--   widget to have its size renegotiated; should be called when a widget
--   for some reason has a new size request. For example, when you change
--   the text in a Label, Label queues a resize to ensure
--   there's enough space for the new text.
widgetQueueResize :: WidgetClass self => self -> IO ()

-- | This function works like widgetQueueResize, except that the
--   widget is not invalidated.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
widgetQueueResizeNoRedraw :: WidgetClass self => self -> IO ()

-- | Obtains the frame clock for a widget. The frame clock is a global
--   “ticker” that can be used to drive animations and repaints. The most
--   common reason to get the frame clock is to call
--   frameClockGetFrameTime, in order to get a time to use for
--   animating. For example you might record the start of the animation
--   with an initial value from frameClockGetFrameTime, and then
--   update the animation by calling frameClockGetFrameTime again
--   during each repaint.
--   
--   frameClockRequestPhase will result in a new frame on the
--   clock, but won’t necessarily repaint any widgets. To repaint a widget,
--   you have to use widgetQueueDraw which invalidates the widget
--   (thus scheduling it to receive a draw on the next frame).
--   widgetQueueDraw will also end up requesting a frame on the
--   appropriate frame clock.
--   
--   A widget’s frame clock will not change while the widget is mapped.
--   Reparenting a widget (which implies a temporary unmap) can change the
--   widget’s frame clock.
--   
--   Unrealized widgets do not have a frame clock.
widgetGetFrameClock :: WidgetClass self => self -> IO FrameClock

-- | Retrieves the internal scale factor that maps from window coordinates
--   to the actual device pixels. On traditional systems this is 1, on high
--   density outputs, it can be a higher value (typically 2).
--   
--   See drawWindowGetScaleFactor.
widgetGetScaleFactor :: WidgetClass self => self -> IO Int

-- | This function is typically used when implementing a Container
--   subclass. Obtains the preferred size of a widget. The container uses
--   this information to arrange its child widgets and decide what size
--   allocations to give them with widgetSizeAllocate.
--   
--   You can also call this function from an application, with some
--   caveats. Most notably, getting a size request requires the widget to
--   be associated with a screen, because font information may be needed.
--   Multihead-aware applications should keep this in mind.
--   
--   Also remember that the size request is not necessarily the size a
--   widget will actually be allocated.
widgetSizeRequest :: WidgetClass self => self -> IO Requisition

-- | This function is only for use in widget implementations. Obtains the
--   cached requisition information in the widget, unless someone has
--   forced a particular geometry on the widget (e.g. with
--   widgetSetSizeRequest), in which case it returns that geometry
--   instead of the widget's requisition.
--   
--   This function differs from widgetSizeRequest in that it
--   retrieves the last size request value stored in the widget, while
--   widgetSizeRequest actually emits the sizeRequest signal
--   on the widget to compute the size request (which updates the widget's
--   requisition information).
--   
--   Since this function does not emit the sizeRequest signal, it
--   can only be used when you know that the widget's requisition is
--   up-to-date, that is, widgetSizeRequest has been called since
--   the last time a resize was queued. In general, only container
--   implementations have this information; applications should use
--   widgetSizeRequest.
widgetGetChildRequisition :: WidgetClass self => self -> IO Requisition

-- | This function is only used by Container subclasses, to assign a
--   size and position to their child widgets.
widgetSizeAllocate :: WidgetClass self => self -> Allocation -> IO ()

-- | This function is only used by Container subclasses, to assign a
--   size, position and (optionally) baseline to their child widgets.
--   
--   In this function, the allocation and baseline may be adjusted. It will
--   be forced to a 1x1 minimum size, and the adjust_size_allocation
--   virtual and adjust_baseline_allocation methods on the child will be
--   used to adjust the allocation and baseline. Standard adjustments
--   include removing the widget's margins, and applying the widget’s
--   widgetHAlign and widgetVAlign properties.
--   
--   If the child widget does not have a valign of AlignBaseline the
--   baseline argument is ignored and -1 is used instead.
widgetSizeAllocateWithBaseline :: WidgetClass self => self -> Allocation -> Int -> IO ()

-- | Installs an accelerator for this widget in
--   accelGroup that causes accelSignal to be emitted if
--   the accelerator is activated. The accelGroup needs to be
--   added to the widget's toplevel via windowAddAccelGroup, and
--   the signal must be of type G_RUN_ACTION. Accelerators added
--   through this function are not user changeable during runtime. If you
--   want to support accelerators that can be changed by the user, use
--   accelMapAddEntry and widgetSetAccelPath or
--   menuItemSetAccelPath instead.
widgetAddAccelerator :: (WidgetClass self, GlibString string) => self -> string -> AccelGroup -> KeyVal -> [Modifier] -> [AccelFlags] -> IO ()

-- | Removes an accelerator from widget, previously installed with
--   widgetAddAccelerator.
widgetRemoveAccelerator :: WidgetClass self => self -> AccelGroup -> KeyVal -> [Modifier] -> IO Bool

-- | Given an accelerator group, accelGroup, and an accelerator
--   path, accelPath, sets up an accelerator in
--   accelGroup so whenever the key binding that is defined for
--   accelPath is pressed, widget will be activated. This
--   removes any accelerators (for any accelerator group) installed by
--   previous calls to widgetSetAccelPath. Associating accelerators
--   with paths allows them to be modified by the user and the
--   modifications to be saved for future use. (See accelMapSave.)
--   
--   This function is a low level function that would most likely be used
--   by a menu creation system like ItemFactory. If you use
--   ItemFactory, setting up accelerator paths will be done
--   automatically.
--   
--   Even when you you aren't using ItemFactory, if you only want
--   to set up accelerators on menu items menuItemSetAccelPath
--   provides a somewhat more convenient interface.
widgetSetAccelPath :: (WidgetClass self, GlibString string) => self -> string -> AccelGroup -> IO ()

-- | Determines whether an accelerator that activates the signal identified
--   by signalId can currently be activated. This is done by
--   emitting the canActivateAccel signal on the widget the signal
--   is attached to; if the signal isn't overridden by a handler or in a
--   derived widget, then the default check is that the widget must be
--   sensitive, and the widget and all its ancestors mapped.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
widgetCanActivateAccel :: WidgetClass self => ConnectId self -> IO Bool

-- | For widgets that can be "activated" (buttons, menu items, etc.) this
--   function activates them. Activation is what happens when you press
--   Enter on a widget during key navigation. If widget isn't
--   activatable, the function returns False.
widgetActivate :: WidgetClass self => self -> IO Bool

-- | Computes the intersection of a widget's area and area,
--   returning the intersection, and returns Nothing if there was
--   no intersection.
widgetIntersect :: WidgetClass self => self -> Rectangle -> IO (Maybe Rectangle)

-- | Check if the widget intersects with a given area.
widgetHasIntersection :: WidgetClass self => self -> Rectangle -> IO Bool

-- | Determines if the widget is the focus widget within its toplevel.
--   (This does not mean that the widgetHasFocus attribute is
--   necessarily set; widgetHasFocus will only be set if the
--   toplevel widget additionally has the global input focus.)
widgetGetIsFocus :: WidgetClass self => self -> IO Bool

-- | Causes widget to have the keyboard focus for the
--   Window it's inside. widget must be a focusable widget,
--   such as a Entry; something like Frame won't work. (More
--   precisely, it must have the widgetCanFocus flag set.)
widgetGrabFocus :: WidgetClass self => self -> IO ()

-- | Causes widget to become the default widget. widget
--   must have the canDefault flag set. The default widget is
--   activated when the user presses Enter in a window. Default widgets
--   must be activatable, that is, widgetActivate should affect
--   them.
widgetGrabDefault :: WidgetClass self => self -> IO ()

-- | Widgets can be named, which allows you to refer to them from a gtkrc
--   file. You can apply a style to widgets with a particular name in the
--   gtkrc file. See the documentation for gtkrc files.
--   
--   Note that widget names are separated by periods in paths (see
--   widgetPath), so names with embedded periods may cause
--   confusion.
widgetSetName :: (WidgetClass self, GlibString string) => self -> string -> IO ()

-- | Retrieves the name of a widget. See widgetSetName for the
--   significance of widget names.
widgetGetName :: (WidgetClass self, GlibString string) => self -> IO string

-- | Sets the sensitivity of a widget. A widget is sensitive if the user
--   can interact with it. Insensitive widgets are "grayed out" and the
--   user can't interact with them. Insensitive widgets are known as
--   "inactive", "disabled", or "ghosted" in some other toolkits.
widgetSetSensitive :: WidgetClass self => self -> Bool -> IO ()
widgetSetSensitivity :: WidgetClass self => self -> Bool -> IO ()

-- | Gets the widget's parent window.
widgetGetParentWindow :: WidgetClass self => self -> IO DrawWindow

-- | Disable event signals.
--   
--   
--   
- Remove events from the EventMask of this widget. The event
--   mask determines which events a widget will receive. Events are signals
--   that return an Event data type. On connecting to a such a
--   signal, the event mask is automatically adjusted so that he signal is
--   emitted. This function is useful to disable the reception of the
--   signal. It should be called whenever all signals receiving an
--   Event have been disconnected.
--   
widgetDelEvents :: WidgetClass self => self -> [EventMask] -> IO ()

-- | Enable event signals.
--   
--   
--   
- See widgetDelEvents.
--   
widgetAddEvents :: WidgetClass self => self -> [EventMask] -> IO ()

-- | Get enabled event signals.
--   
--   
--   
- See widgetDelEvents.
--   
widgetGetEvents :: WidgetClass self => self -> IO [EventMask]

-- | Sets the event mask (see EventMask) for a widget. The event
--   mask determines which events a widget will receive. Keep in mind that
--   different widgets have different default event masks, and by changing
--   the event mask you may disrupt a widget's functionality, so be
--   careful. This function must be called while a widget is unrealized.
--   Consider widgetAddEvents for widgets that are already realized,
--   or if you want to preserve the existing event mask. This function
--   can't be used with NoWindow widgets; to get events on those
--   widgets, place them inside a EventBox and receive events on the
--   event box.
widgetSetEvents :: WidgetClass self => self -> [EventMask] -> IO ()

-- | This function returns the topmost widget in the container hierarchy
--   widget is a part of. If widget has no parent
--   widgets, it will be returned as the topmost widget.
widgetGetToplevel :: WidgetClass self => self -> IO Widget

-- | Gets the first ancestor of widget with type
--   widgetType. For example, widgetGetAncestor widget
--   gTypeBox gets the first Box that's an ancestor of
--   widget. See note about checking for a toplevel Window
--   in the docs for widgetGetToplevel.
--   
--   Note that unlike widgetIsAncestor, widgetGetAncestor
--   considers widget to be an ancestor of itself.
widgetGetAncestor :: WidgetClass self => self -> GType -> IO (Maybe Widget)

-- | Obtains the location of the mouse pointer in widget coordinates.
--   Widget coordinates are a bit odd; for historical reasons, they are
--   defined as widgetGetParentWindow coordinates for widgets that
--   are not NoWindow widgets, and are relative to the widget's
--   allocation's (x,y) for widgets that are NoWindow widgets.
widgetGetPointer :: WidgetClass self => self -> IO (Int, Int)

-- | Determines whether widget is somewhere inside
--   ancestor, possibly with intermediate containers.
widgetIsAncestor :: (WidgetClass self, WidgetClass ancestor) => self -> ancestor -> IO Bool

-- | Translate coordinates relative to srcWidget's allocation to
--   coordinates relative to destWidget's allocations. In order to
--   perform this operation, both widgets must be realized, and must share
--   a common toplevel.
widgetTranslateCoordinates :: (WidgetClass self, WidgetClass destWidget) => self -> destWidget -> Int -> Int -> IO (Maybe (Int, Int))

-- | Sets the Style for a widget. You probably don't want to use
--   this function; it interacts badly with themes, because themes work by
--   replacing the Style. Instead, use widgetModifyStyle.
widgetSetStyle :: WidgetClass self => self -> Maybe Style -> IO ()

-- | Retrieve the Style associated with the widget.
widgetGetStyle :: WidgetClass widget => widget -> IO Style

-- | Returns the default style used by all widgets initially.
widgetGetDefaultStyle :: IO Style

-- | Sets the reading direction on a particular widget. This direction
--   controls the primary direction for widgets containing text, and also
--   the direction in which the children of a container are packed. The
--   ability to set the direction is present in order so that correct
--   localization into languages with right-to-left reading directions can
--   be done. Generally, applications will let the default reading
--   direction present, except for containers where the containers are
--   arranged in an order that is explicitly visual rather than logical
--   (such as buttons for text justification).
--   
--   If the direction is set to TextDirNone, then the value set by
--   widgetSetDefaultDirection will be used.
widgetSetDirection :: WidgetClass self => self -> TextDirection -> IO ()

-- | Gets the reading direction for a particular widget. See
--   widgetSetDirection.
widgetGetDirection :: WidgetClass self => self -> IO TextDirection

-- | Sets the default reading direction for widgets where the direction has
--   not been explicitly set by widgetSetDirection.
widgetSetDefaultDirection :: TextDirection -> IO ()

-- | Obtains the current default reading direction. See
--   widgetSetDefaultDirection.
widgetGetDefaultDirection :: IO TextDirection

-- | Sets a shape for this widget’s GDK window. This allows for transparent
--   windows etc., see drawWindowShapeCombineRegion for more
--   information.
widgetShapeCombineRegion :: WidgetClass self => self -> Maybe Region -> IO ()

-- | Sets an input shape for this widget’s GDK window. This allows for
--   windows which react to mouse click in a nonrectangular region, see
--   drawWindowInputShapeCombineRegion for more information.
widgetInputShapeCombineRegion :: WidgetClass self => self -> Maybe Region -> IO ()

-- | Obtains the full path to widget. The path is simply the name
--   of a widget and all its parents in the container hierarchy, separated
--   by periods. The name of a widget comes from widgetGetName.
--   Paths are used to apply styles to a widget in gtkrc configuration
--   files. Widget names are the type of the widget by default (e.g.
--   "GtkButton") or can be set to an application-specific value with
--   widgetSetName. By setting the name of a widget, you allow users
--   or theme authors to apply styles to that specific widget in their
--   gtkrc file. Also returns the path in reverse order, i.e. starting with
--   the widget's name instead of starting with the name of the widget's
--   outermost ancestor.
widgetPath :: (WidgetClass self, GlibString string) => self -> IO (Int, string, string)

-- | Same as widgetPath, but always uses the name of a widget's
--   type, never uses a custom name set with widgetSetName.
widgetClassPath :: (WidgetClass self, GlibString string) => self -> IO (Int, string, string)

-- | Obtains the composite name of a widget.
widgetGetCompositeName :: (WidgetClass self, GlibString string) => self -> IO (Maybe string)

-- | Sets the background color to use for a widget.
--   
--   All other style values are left untouched. See
--   widgetOverrideColor.
widgetOverrideBackgroundColor :: WidgetClass self => self -> StateType -> Maybe Color -> IO ()

-- | Sets the color to use for a widget.
--   
--   All other style values are left untouched.
--   
--   This function does not act recursively. Setting the color of a
--   container does not affect its children. Note that some widgets that
--   you may not think of as containers, for instance Buttons, are
--   actually containers.
--   
--   This API is mostly meant as a quick way for applications to change a
--   widget appearance. If you are developing a widgets library and intend
--   this change to be themeable, it is better done by setting meaningful
--   CSS classes and regions in your widget/container implementation
--   through styleContextAddClass and
--   styleContextAddRegion.
--   
--   This way, your widget library can install a CssProvider with
--   the 1 priority in order to provide a default styling for those widgets
--   that need so, and this theming may fully overridden by the user’s
--   theme.
--   
--   Note that for complex widgets this may bring in undesired results
--   (such as uniform background color everywhere), in these cases it is
--   better to fully style such widgets through a CssProvider with the 600
--   priority.
widgetOverrideColor :: WidgetClass self => self -> StateType -> Maybe Color -> IO ()

-- | Sets the font to use for a widget. All other style values are left
--   untouched. See widgetOverrideColor.
widgetOverrideFont :: WidgetClass self => self -> Maybe FontDescription -> IO ()

-- | Sets the symbolic color to use for a widget.
--   
--   All other style values are left untouched. See
--   widgetOverrideColor.
widgetOverrideSymbolicColor :: (WidgetClass self, GlibString string) => self -> string -> Maybe Color -> IO ()

-- | Sets the cursor color to use in a widget, overriding the cursor-color
--   and secondary-cursor-color style properties. All other style values
--   are left untouched. See also widgetModifyStyle.
--   
--   Note that the alpha values will be ignored.
widgetOverrideCursor :: WidgetClass self => self -> Maybe Color -> Maybe Color -> IO ()

-- | Modifies style values on the widget. Modifications made using this
--   technique take precedence over style values set via an RC file,
--   however, they will be overridden if a style is explicitly set on the
--   widget using widgetSetStyle. The RcStyle structure is
--   designed so each field can either be set or unset, so it is possible,
--   using this function, to modify some style values and leave the others
--   unchanged.
--   
--   Note that modifications made with this function are not cumulative
--   with previous calls to widgetModifyStyle or with such functions
--   as widgetModifyFg. If you wish to retain previous values, you
--   must first call widgetGetModifierStyle, make your modifications
--   to the returned style, then call widgetModifyStyle with that
--   style. On the other hand, if you first call widgetModifyStyle,
--   subsequent calls to such functions widgetModifyFg will have a
--   cumulative effect with the initial modifications.
widgetModifyStyle :: (WidgetClass self, RcStyleClass style) => self -> style -> IO ()

-- | Returns the current modifier style for the widget. (As set by
--   widgetModifyStyle.) If no style has previously set, a new
--   RcStyle will be created with all values unset, and set as the
--   modifier style for the widget. If you make changes to this rc style,
--   you must call widgetModifyStyle, passing in the returned rc
--   style, to make sure that your changes take effect.
--   
--   Caution: passing the style back to widgetModifyStyle will
--   normally end up destroying it, because widgetModifyStyle copies
--   the passed-in style and sets the copy as the new modifier style, thus
--   dropping any reference to the old modifier styl e. Add a reference to
--   the modifier style if you want to keep it alive.
widgetGetModifierStyle :: WidgetClass self => self -> IO RcStyle

-- | Sets the foreground color for a widget in a particular state. All
--   other style values are left untouched. See also
--   widgetModifyStyle.
widgetModifyFg :: WidgetClass self => self -> StateType -> Color -> IO ()

-- | Sets the background color for a widget in a particular state. All
--   other style values are left untouched. See also
--   widgetModifyStyle.
--   
--   Note that "no window" widgets (which have the NoWindow flag
--   set) draw on their parent container's window and thus may not draw any
--   background themselves. This is the case for e.g. Label. To
--   modify the background of such widgets, you have to set the background
--   color on their parent; if you want to set the background of a
--   rectangular area around a label, try placing the label in a
--   EventBox widget and setting the background color on that.
widgetModifyBg :: WidgetClass self => self -> StateType -> Color -> IO ()

-- | Sets the text color for a widget in a particular state. All other
--   style values are left untouched. The text color is the foreground
--   color used along with the base color (see widgetModifyBase) for
--   widgets such as Entry and TextView. See also
--   widgetModifyStyle.
widgetModifyText :: WidgetClass self => self -> StateType -> Color -> IO ()

-- | Sets the base color for a widget in a particular state. All other
--   style values are left untouched. The base color is the background
--   color used along with the text color (see widgetModifyText) for
--   widgets such as Entry and TextView. See also
--   widgetModifyStyle.
--   
--   Note that "no window" widgets (which have the NoWindow flag
--   set) draw on their parent container's window and thus may not draw any
--   background themselves. This is the case for e.g. Label. To
--   modify the background of such widgets, you have to set the base color
--   on their parent; if you want to set the background of a rectangular
--   area around a label, try placing the label in a EventBox widget
--   and setting the base color on that.
widgetModifyBase :: WidgetClass self => self -> StateType -> Color -> IO ()

-- | Sets the font to use for a widget. All other style values are left
--   untouched. See also widgetModifyStyle.
widgetModifyFont :: WidgetClass self => self -> Maybe FontDescription -> IO ()

-- | Restores the foreground color for a widget in a particular state. This
--   undoes the effects of previous calls to widgetModifyFg.
widgetRestoreFg :: WidgetClass self => self -> StateType -> IO ()

-- | Restores the background color for a widget in a particular state. This
--   undoes the effects of previous calls to widgetModifyBg.
widgetRestoreBg :: WidgetClass self => self -> StateType -> IO ()

-- | Restores the text color for a widget in a particular state. This
--   undoes the effects of previous calls to widgetModifyText.
widgetRestoreText :: WidgetClass self => self -> StateType -> IO ()

-- | Restores the base color for a widget in a particular state. This
--   undoes the effects of previous calls to widgetModifyBase.
widgetRestoreBase :: WidgetClass self => self -> StateType -> IO ()

-- | Creates a new PangoContext with the appropriate colormap, font
--   description, and base direction for drawing text for this widget. See
--   also widgetGetPangoContext.
widgetCreatePangoContext :: WidgetClass self => self -> IO PangoContext

-- | Gets a PangoContext with the appropriate font description and
--   base direction for this widget. Unlike the context returned by
--   widgetCreatePangoContext, this context is owned by the widget
--   (it can be used until the screen for the widget changes or the widget
--   is removed from its toplevel), and will be updated to match any
--   changes to the widget's attributes.
--   
--   If you create and keep a PangoLayout using this context, you
--   must deal with changes to the context by calling
--   layoutContextChanged on the layout in response to the
--   onStyleChanged and onDirectionChanged signals for
--   the widget.
widgetGetPangoContext :: WidgetClass self => self -> IO PangoContext

-- | Prepare text for display.
--   
--   The PangoLayout represents the rendered text. It can be shown
--   on screen by calling drawLayout.
--   
--   The returned PangoLayout shares the same font information
--   (PangoContext) as this widget. If this information changes, the
--   PangoLayout should change. The following code ensures that the
--   displayed text always reflects the widget's settings:
--   
--   
--   l <- widgetCreateLayout w "My Text."
--   let update = do
--   layoutContextChanged l
--   -- update the Drawables which show this layout
--   w `onDirectionChanged` update
--   w `onStyleChanged` update
--   
widgetCreateLayout :: (WidgetClass self, GlibString string) => self -> string -> IO PangoLayout

-- | A convenience function that uses the theme engine and RC file settings
--   for widget to look up the stock icon and render it to a
--   Pixbuf. The icon should be one of the stock id constants such
--   as stockOpen. size should be a size such as
--   IconSizeMenu. detail should be a string that
--   identifies the widget or code doing the rendering, so that theme
--   engines can special-case rendering for that widget or code.
--   
--   The pixels in the returned Pixbuf are shared with the rest of
--   the application and should not be modified.
widgetRenderIcon :: (WidgetClass self, GlibString string) => self -> string -> IconSize -> string -> IO (Maybe Pixbuf)

-- | Invalidates the rectangular area of widget defined by
--   x, y, width and height by calling
--   drawWindowInvalidateRect on the widget's DrawWindow and
--   all its child windows. Once the main loop becomes idle (after the
--   current batch of events has been processed, roughly), the window will
--   receive expose events for the union of all regions that have been
--   invalidated.
--   
--   Normally you would only use this function in widget implementations.
--   In particular, you might use it, or drawWindowInvalidateRect
--   directly, to schedule a redraw of a DrawingArea or some portion
--   thereof.
--   
--   Frequently you can just call windowInvalidateRect or
--   windowInvalidateRegion instead of this function. Those
--   functions will invalidate only a single window, instead of the widget
--   and all its children.
--   
--   The advantage of adding to the invalidated region compared to simply
--   drawing immediately is efficiency; using an invalid region ensures
--   that you only have to redraw one time.
widgetQueueDrawArea :: WidgetClass self => self -> Int -> Int -> Int -> Int -> IO ()

-- | Invalidates the area of widget defined by region by calling
--   drawWindowInvalidateRegion on the widget’s window and all its
--   child windows. Once the main loop becomes idle (after the current
--   batch of events has been processed, roughly), the window will receive
--   expose events for the union of all regions that have been invalidated.
--   
--   Normally you would only use this function in widget implementations.
--   You might also use it to schedule a redraw of a DrawingArea or some
--   portion thereof.
widgetQueueDrawRegion :: WidgetClass self => self -> Region -> IO ()

-- | Sets whether the application intends to draw on the widget in response
--   to an onExpose signal.
--   
--   
--   
- This is a hint to the widget and does not affect the behavior of
--   the GTK+ core; many widgets ignore this flag entirely. For widgets
--   that do pay attention to the flag, such as EventBox and
--   Window, the effect is to suppress default themed drawing of the
--   widget's background. (Children of the widget will still be drawn.) The
--   application is then entirely responsible for drawing the widget
--   background.
--   
widgetSetAppPaintable :: WidgetClass self => self -> Bool -> IO ()

-- | Widgets are double buffered by default; you can use this function to
--   turn off the buffering. "Double buffered" simply means that
--   drawWindowBeginPaintRegion and drawWindowEndPaint are
--   called automatically around expose events sent to the widget.
--   drawWindowBeginPaintRegion diverts all drawing to a widget's
--   window to an offscreen buffer, and drawWindowEndPaint draws the
--   buffer to the screen. The result is that users see the window update
--   in one smooth step, and don't see individual graphics primitives being
--   rendered.
--   
--   In very simple terms, double buffered widgets don't flicker, so you
--   would only use this function to turn off double buffering if you had
--   special needs and really knew what you were doing.
--   
--   Note: if you turn off double-buffering, you have to handle expose
--   events, since even the clearing to the background color or pixmap will
--   not happen automatically (as it is done in
--   drawWindowBeginPaint).
widgetSetDoubleBuffered :: WidgetClass self => self -> Bool -> IO ()

-- | Sets whether the entire widget is queued for drawing when its size
--   allocation changes. By default, this setting is True and the
--   entire widget is redrawn on every size change. If your widget leaves
--   the upper left unchanged when made bigger, turning this setting on
--   will improve performance.
--   
--   Note that for "no window" widgets setting this flag to False
--   turns off all allocation on resizing: the widget will not even redraw
--   if its position changes; this is to allow containers that don't draw
--   anything to avoid excess invalidations. If you set this flag on a "no
--   window" widget that does draw its window, you are responsible
--   for invalidating both the old and new allocation of the widget when
--   the widget is moved and responsible for invalidating regions newly
--   when the widget increases size.
widgetSetRedrawOnAllocate :: WidgetClass self => self -> Bool -> IO ()

-- | Sets a widgets composite name. A child widget of a container is
--   composite if it serves as an internal widget and, thus, is not added
--   by the user.
widgetSetCompositeName :: (WidgetClass self, GlibString string) => self -> string -> IO ()

-- | Emits the “mnemonic-activate” signal.
--   
--   The default handler for this signal activates the widget if
--   groupCycling is False, and just grabs the focus if
--   groupCycling is True.
widgetMnemonicActivate :: WidgetClass self => self -> Bool -> IO Bool

-- | Returns the accessible object that describes the widget to an
--   assistive technology.
--   
--   If no accessibility library is loaded (i.e. no ATK implementation
--   library is loaded via GTK_MODULES or via another application library,
--   such as libgnome), then this Object instance may be a no-op.
--   Likewise, if no class-specific Object implementation is
--   available for the widget instance in question, it will inherit an
--   Object implementation from the first ancestor class for which
--   such an implementation is defined.
--   
--   The documentation of the ATK library contains more information about
--   accessible objects and their uses.
--   
--   Returns a GObject in Gtk3.
widgetGetAccessible :: WidgetClass self => self -> IO GObject

-- | This function is used by custom widget implementations; if you're
--   writing an app, you'd use widgetGrabFocus to move the focus to
--   a particular widget, and containerSetFocusChain to change the
--   focus tab order. So you may want to investigate those functions
--   instead.
--   
--   The "focus" default handler for a widget should return True
--   if moving in direction left the focus on a focusable location
--   inside that widget, and False if moving in direction
--   moved the focus outside the widget. If returning True,
--   widgets normally call widgetGrabFocus to place the focus
--   accordingly; if returning False, they don't modify the
--   current focus location.
widgetChildFocus :: WidgetClass self => self -> DirectionType -> IO Bool

-- | Gets the value set with widgetSetChildVisible. If you feel a
--   need to use this function, your code probably needs reorganization.
--   
--   This function is only useful for container implementations and never
--   should be called by an application.
widgetGetChildVisible :: WidgetClass self => self -> IO Bool

-- | Returns the parent container of widget.
--   
--   
--   
- Returns the parent container of widget if it has
--   one.
--   
widgetGetParent :: WidgetClass self => self -> IO (Maybe Widget)

-- | Gets the settings object holding the settings (global property
--   settings, RC file information, etc) used for this widget.
--   
--   Note that this function can only be called when the Widget is
--   attached to a toplevel, since the settings object is specific to a
--   particular Screen.
widgetGetSettings :: WidgetClass self => self -> IO Settings

-- | Returns the clipboard object for the given selection to be used with
--   widget. widget must have a Display associated with it, so must
--   be attached to a toplevel window.
widgetGetClipboard :: WidgetClass self => self -> SelectionTag -> IO Clipboard

-- | Get the Display for the toplevel window associated with this
--   widget. This function can only be called after the widget has been
--   added to a widget hierarchy with a Window at the top.
--   
--   In general, you should only create display specific resources when a
--   widget has been realized, and you should free those resources when the
--   widget is unrealized.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
widgetGetDisplay :: WidgetClass self => self -> IO Display

-- | Get the root window where this widget is located. This function can
--   only be called after the widget has been added to a widget hierarchy
--   with Window at the top.
--   
--   The root window is useful for such purposes as creating a popup
--   DrawWindow associated with the window. In general, you should
--   only create display specific resources when a widget has been
--   realized, and you should free those resources when the widget is
--   unrealized.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
widgetGetRootWindow :: WidgetClass self => self -> IO DrawWindow

-- | Get the Screen from the toplevel window associated with this
--   widget. This function can only be called after the widget has been
--   added to a widget hierarchy with a Window at the top.
--   
--   In general, you should only create screen specific resources when a
--   widget has been realized, and you should free those resources when the
--   widget is unrealized.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
widgetGetScreen :: WidgetClass self => self -> IO Screen

-- | Checks whether there is a Screen is associated with this
--   widget. All toplevel widgets have an associated screen, and all
--   widgets added into a hierarchy with a toplevel window at the top.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
widgetHasScreen :: WidgetClass self => self -> IO Bool

-- | Gets the size request that was explicitly set for the widget using
--   widgetSetSizeRequest. A value of -1 for width or
--   height indicates that that dimension has not been set
--   explicitly and the natural requisition of the widget will be used
--   instead. See widgetSetSizeRequest. To get the size a widget
--   will actually use, call widgetSizeRequest instead of this
--   function.
widgetGetSizeRequest :: WidgetClass self => self -> IO (Int, Int)

-- | Retrieves the minimum and natural size of a widget, taking into
--   account the widget’s preference for height-for-width management.
--   
--   This is used to retrieve a suitable size by container widgets which do
--   not impose any restrictions on the child placement. It can be used to
--   deduce toplevel window and menu sizes as well as child widgets in
--   free-form containers such as GtkLayout.
--   
--   Handle with care. Note that the natural height of a height-for-width
--   widget will generally be a smaller size than the minimum height, since
--   the required height for the natural width is generally smaller than
--   the required height for the minimum width.
--   
--   Use gtk_widget_get_preferred_height_and_baseline_for_width() if you
--   want to support baseline alignment.
--   
--   
--   
- Available since Gtk+ version 3.0
--   
widgetGetPreferredSize :: WidgetClass self => self -> IO (Requisition, Requisition)

-- | Sets whether widget should be mapped along with its when its
--   parent is mapped and widget has been shown with
--   widgetShow.
--   
--   The child visibility can be set for widget before it is added to a
--   container with widgetSetParent, to avoid mapping children
--   unnecessary before immediately unmapping them. However it will be
--   reset to its default state of True when the widget is removed
--   from a container.
--   
--   Note that changing the child visibility of a widget does not queue a
--   resize on the widget. Most of the time, the size of a widget is
--   computed from all visible children, whether or not they are mapped. If
--   this is not the case, the container can queue a resize itself.
--   
--   This function is only useful for container implementations and never
--   should be called by an application.
widgetSetChildVisible :: WidgetClass self => self -> Bool -> IO ()

-- | Sets the minimum size of a widget; that is, the widget's size request
--   will be width by height. You can use this function
--   to force a widget to be either larger or smaller than it normally
--   would be.
--   
--   In most cases, windowSetDefaultSize is a better choice for
--   toplevel windows than this function; setting the default size will
--   still allow users to shrink the window. Setting the size request will
--   force them to leave the window at least as large as the size request.
--   When dealing with window sizes, windowSetGeometryHints can be a
--   useful function as well.
--   
--   Note the inherent danger of setting any fixed size - themes,
--   translations into other languages, different fonts, and user action
--   can all change the appropriate size for a given widget. So, it's
--   basically impossible to hardcode a size that will always be correct.
--   
--   The size request of a widget is the smallest size a widget can accept
--   while still functioning well and drawing itself correctly. However in
--   some strange cases a widget may be allocated less than its requested
--   size, and in many cases a widget may be allocated more space than it
--   requested.
--   
--   If the size request in a given direction is -1 (unset), then the
--   "natural" size request of the widget will be used instead.
--   
--   Widgets can't actually be allocated a size less than 1 by 1, but you
--   can pass 0,0 to this function to mean "as small as possible."
widgetSetSizeRequest :: WidgetClass self => self -> Int -> Int -> IO ()

-- | Sets the noShowAll property, which determines whether calls
--   to widgetShowAll and widgetHideAll will affect this
--   widget.
--   
--   This is mostly for use in constructing widget hierarchies with
--   externally controlled visibility, see UIManager.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
widgetSetNoShowAll :: WidgetClass self => self -> Bool -> IO ()

-- | Returns the current value of the noShowAll property, which
--   determines whether calls to widgetShowAll and
--   widgetHideAll will affect this widget.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
widgetGetNoShowAll :: WidgetClass self => self -> IO Bool

-- | Returns a list of the widgets, normally labels, for which this widget
--   is a the target of a mnemonic (see for example,
--   labelSetMnemonicWidget).
--   
--   
--   
- Available since Gtk+ version 2.4
--   
widgetListMnemonicLabels :: WidgetClass self => self -> IO [Widget]

-- | Adds a widget to the list of mnemonic labels for this widget. (See
--   widgetListMnemonicLabels). Note the list of mnemonic labels for
--   the widget is cleared when the widget is destroyed, so the caller must
--   make sure to update its internal state at this point as well, by using
--   a connection to the destroy signal or a weak notifier.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
widgetAddMnemonicLabel :: (WidgetClass self, WidgetClass label) => self -> label -> IO ()

-- | Removes a widget from the list of mnemonic labels for this widget.
--   (See widgetListMnemonicLabels). The widget must have previously
--   been added to the list with widgetAddMnemonicLabel.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
widgetRemoveMnemonicLabel :: (WidgetClass self, WidgetClass label) => self -> label -> IO ()

-- | Whether widget can rely on having its alpha channel drawn
--   correctly. On X11 this function returns whether a compositing manager
--   is running for widget's screen
--   
--   
--   
- Available since Gtk+ version 2.10
--   
widgetIsComposited :: WidgetClass self => self -> IO Bool

-- | Notifies the user about an input-related error on this widget. If the
--   "gtk-error-bell" setting is True, it calls
--   drawWindowBeep, otherwise it does nothing.
--   
--   Note that the effect of drawWindow_beep can be configured in
--   many ways, depending on the windowing backend and the desktop
--   environment or window manager that is used.
widgetErrorBell :: WidgetClass self => self -> IO ()

-- | This function should be called whenever keyboard navigation within a
--   single widget hits a boundary. The function emits the "keynav-failed"
--   signal on the widget and its return value should be interpreted in a
--   way similar to the return value of widgetChildFocus:
--   
--   When True is returned, stay in the widget, the failed
--   keyboard navigation is Ok andor there is nowhere we canshould
--   move the focus to.
--   
--   When False is returned, the caller should continue with
--   keyboard navigation outside the widget, e.g. by calling
--   widgetChildFocus on the widget’s toplevel.
--   
--   The default ::keynav-failed handler returns True for
--   DirTabForward and DirTabBackward. For the other values
--   of DirectionType it returns False.
--   
--   Whenever the default handler returns True, it also calls
--   widgetErrorBell to notify the user of the failed keyboard
--   navigation.
--   
--   A use case for providing an own implementation of ::keynav-failed
--   (either by connecting to it or by overriding it) would be a row of
--   Entry widgets where the user should be able to navigate the
--   entire row with the cursor keys, as e.g. known from user interfaces
--   that require entering license keys.
widgetKeynavFailed :: WidgetClass self => self -> DirectionType -> IO Bool

-- | Gets the contents of the tooltip for widget.
widgetGetTooltipMarkup :: (WidgetClass self, GlibString markup) => self -> IO (Maybe markup)

-- | Sets markup as the contents of the tooltip, which is marked
--   up with the Pango text markup language.
--   
--   This function will take care of setting "has-tooltip" to True and of
--   the default handler for the "query-tooltip" signal.
--   
--   See also the "tooltip-markup" property and tooltipSetMarkup.
widgetSetTooltipMarkup :: (WidgetClass self, GlibString markup) => self -> Maybe markup -> IO ()

-- | Gets the contents of the tooltip for widget.
widgetGetTooltipText :: (WidgetClass self, GlibString text) => self -> IO (Maybe text)

-- | Sets text as the contents of the tooltip. This function will
--   take care of setting "has-tooltip" to True and of the default
--   handler for the "query-tooltip" signal.
--   
--   See also the "tooltip-text" property and tooltipSetText.
widgetSetTooltipText :: (WidgetClass widget, GlibString text) => widget -> Maybe text -> IO ()

-- | Returns the Window of the current tooltip. This can be the
--   Window created by default, or the custom tooltip window set
--   using widgetSetTooltipWindow.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
widgetGetTooltipWindow :: WidgetClass self => self -> IO Window

-- | Replaces the default, usually yellow, window used for displaying
--   tooltips with customWindow. GTK+ will take care of showing
--   and hiding customWindow at the right moment, to behave
--   likewise as the default tooltip window. If customWindow is
--   Nothing, the default tooltip window will be used.
--   
--   If the custom window should have the default theming it needs to have
--   the name 'gtk-tooltip', see widgetSetName.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
widgetSetTooltipWindow :: (WidgetClass self, WindowClass customWindow) => self -> Maybe customWindow -> IO ()

-- | Returns the current value of the has-tooltip property. See
--   widgetHasTooltip for more information.
widgetGetHasTooltip :: WidgetClass widget => widget -> IO Bool

-- | Sets the has-tooltip property on widget to
--   hasTooltip. See widgetHasTooltip for more information.
widgetSetHasTooltip :: WidgetClass widget => widget -> Bool -> IO ()

-- | Triggers a tooltip query on the display where the toplevel of
--   widget is located. See tooltipTriggerTooltipQuery
--   for more information.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
widgetTriggerTooltipQuery :: WidgetClass self => self -> IO ()

-- | Returns the widget's window if it is realized, Nothing otherwise
--   
--   
--   
- Available since Gtk+ version 2.14
--   
widgetGetWindow :: WidgetClass self => self -> IO (Maybe DrawWindow)

-- | Registers a DrawWindow with the widget and sets it up so that
--   the widget receives events for it. Call widgetUnregisterWindow
--   when destroying the window.
widgetRegisterWindow :: (WidgetClass widget, DrawWindowClass window) => widget -> window -> IO ()

-- | Unregisters a DrawWindow from the widget that was previously
--   set up with widgetRegisterWindow. You need to call this when
--   the window is no longer used by the widget, such as when you destroy
--   it.
widgetUnregisterWindow :: (WidgetClass widget, DrawWindowClass window) => widget -> window -> IO ()

-- | This function is supposed to be called in "draw" implementations for
--   widgets that support multiple windows. cr must be
--   untransformed from invoking of the draw function. This function will
--   return True if the contents of the given window are
--   supposed to be drawn and False otherwise. Note that when the
--   drawing was not initiated by the windowing system this function will
--   return True for all windows, so you need to draw the
--   bottommost window first. Also, do not use “else if” statements to
--   check which window should be drawn.
cairoShouldDrawWindow :: DrawWindowClass window => Cairo -> window -> IO Bool

-- | Transforms the given cairo context cr that from
--   widget-relative coordinates to window-relative
--   coordinates. If the widget’s window is not an ancestor of
--   window, no modification will be applied.
--   
--   This is the inverse to the transformation GTK applies when preparing
--   an expose event to be emitted with the “draw” signal. It is intended
--   to help porting multiwindow widgets from GTK+ 2 to the rendering
--   architecture of GTK+ 3.
cairoTransformToWindow :: (WidgetClass widget, DrawWindowClass window) => Cairo -> widget -> window -> IO ()

-- | Moves a widget from one Container to another.
widgetReparent :: (WidgetClass self, WidgetClass newParent) => self -> newParent -> IO ()

-- | Check if this widget can receive keyboard input.
widgetGetCanFocus :: WidgetClass self => self -> IO Bool

-- | Set if this widget can receive keyboard input.
--   
--   
--   
- To use the keyPress event, the widget must be allowed to
--   get the input focus. Once it has the input focus all keyboard input is
--   directed to this widget.
--   
widgetSetCanFocus :: WidgetClass self => self -> Bool -> IO ()

-- | Retrieves the widget's allocation.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
widgetGetAllocation :: WidgetClass self => self -> IO Allocation

-- | Returns the width that has currently been allocated to widget. This
--   function is intended | to be used when implementing handlers for the
--   "draw" function.
widgetGetAllocatedWidth :: WidgetClass self => self -> IO Int

-- | Returns the height that has currently been allocated to widget. This
--   function is intended | to be used when implementing handlers for the
--   "draw" function.
widgetGetAllocatedHeight :: WidgetClass self => self -> IO Int

-- | Returns the baseline that has currently been allocated to widget .
--   This function is intended to be used when implementing handlers for
--   the “draw” function, and when allocating child widgets in
--   “size_allocate”.
widgetGetAllocatedBaseline :: WidgetClass self => self -> IO Int

-- | Retrieves the widget’s clip area.
--   
--   The clip area is the area in which all of widget's drawing will
--   happen. Other toolkits call it the bounding box.
--   
--   Historically, in GTK+ the clip area has been equal to the allocation
--   retrieved via widgetGetAllocation.
widgetGetClip :: WidgetClass self => self -> IO Allocation

-- | Sets the widget’s clip. This must not be used directly, but from
--   within a widget’s sizeAllocate method.
--   
--   The clip set should be the area that widget draws on. If widget is a
--   GtkContainer, the area must contain all children's clips.
--   
--   If this function is not called by widget during a sizeAllocate
--   handler, it is assumed to be equal to the allocation. However, if the
--   function is not called, certain features that might extend a widget's
--   allocation will not be available:
--   
--   
--   
- The “draw” signal will be clipped to the widget's allocation to
--   avoid overdraw.
--   
- Calling gtk_render_background() will not draw outset shadows.
--   
--   
--   It is therefore suggested that you always call widgetSetClip during a
--   sizeAllocate handler.
widgetSetClip :: WidgetClass self => self -> Allocation -> IO ()

-- | Determines whether the application intends to draw on the widget in an
--   "draw" handler. See widgetSetAppPaintable.
widgetGetAppPaintable :: WidgetClass widget => widget -> IO Bool

-- | Determines whether widget can be a default widget. See
--   widgetSetCanDefault.
widgetGetCanDefault :: WidgetClass widget => widget -> IO Bool

-- | Specifies whether widget can be a default widget. See
--   widgetGrabDefault for details about the meaning of "default".
widgetSetCanDefault :: WidgetClass widget => widget -> Bool -> IO ()

-- | Determines whether widget has a DrawWindow of its own.
--   See widgetSetHasWindow.
widgetGetHasWindow :: WidgetClass widget => widget -> IO Bool

-- | Specifies whether widget has a DrawWindow of its own.
--   Note that all realized widgets have a non-NULL "window" pointer
--   (widgetGetWindow never returns a NULL window when a widget is
--   realized), but for many of them it's actually the DrawWindow of
--   one of its parent widgets. Widgets that do not create a window for
--   themselves in "realize" must announce this by calling this function
--   with hasWindow = False.
--   
--   This function should only be called by widget implementations, and
--   they should call it in their init() function.
widgetSetHasWindow :: WidgetClass widget => widget -> Bool -> IO ()

-- | Returns the widget’s sensitivity (in the sense of returning
--   the value that has been set using widgetSetSensitive).
--   
--   The effective sensitivity of a widget is however determined by both
--   its own and its parent widget’s sensitivity. See
--   widgetIsSensitive.
widgetGetSensitive :: WidgetClass widget => widget -> IO Bool

-- | Returns the widget’s effective sensitivity, which means it is
--   sensitive itself and also its parent widget is sensitive.
widgetIsSensitive :: WidgetClass widget => widget -> IO Bool

-- | Retrieve the current state of the widget.
--   
--   
--   
- The state refers to different modes of user interaction, see
--   StateType for more information.
--   
widgetGetState :: WidgetClass self => self -> IO StateType

-- | Determines whether the widget is visible. If you want to take into
--   account whether the widget’s parent is also marked as visible, use
--   widgetIsVisible instead.
--   
--   This function does not check if the widget is obscured in any way. See
--   widgetSetVisible.
widgetGetVisible :: WidgetClass widget => widget -> IO Bool

-- | Determines whether the widget and all its parents are marked as
--   visible.
--   
--   This function does not check if the widget is obscured in any way.
--   
--   See also widgetGetVisible and widgetSetVisible
widgetIsVisible :: WidgetClass widget => widget -> IO Bool

-- | This function is for use in widget implementations. Turns on flag
--   values in the current widget state (insensitive, prelighted, etc.).
--   
--   This function accepts the values StateFlagDirLtr and
--   StateFlagDirRtl but ignores them. If you want to set the
--   widget's direction, use widgetSetDirection.
--   
--   It is worth mentioning that any other state than
--   StateFlagInsensitive', will be propagated down to all non-internal
--   children if widget is a Container, while
--   StateFlagInsensitive itself will be propagated down to all
--   Container children by different means than turning on the state
--   flag down the hierarchy, both widgetGetStateFlags and
--   widgetIsSensitive will make use of these.
widgetSetStateFlags :: WidgetClass widget => widget -> [StateFlags] -> Bool -> IO ()

-- | This function is for use in widget implementations. Turns off flag
--   values for the current widget state (insensitive, prelighted, etc.).
--   See widgetSetStateFlags.
widgetUnsetStateFlags :: WidgetClass widget => widget -> [StateFlags] -> IO ()

-- | Returns the widget state as a flag set. It is worth mentioning that
--   the effective StateFlagInsensitive state will be returned, that is,
--   also based on parent insensitivity, even if widget itself is
--   sensitive.
widgetGetStateFlags :: WidgetClass widget => widget -> IO [StateFlags]

-- | Determines whether widget is the current default widget
--   within its toplevel. See widgetSetCanDefault.
widgetGetHasDefault :: WidgetClass widget => widget -> IO Bool

-- | Determines if the widget has the global input focus. See
--   widgetIsFocus for the difference between having the global
--   input focus, and only having the focus within a toplevel.
widgetGetHasFocus :: WidgetClass widget => widget -> IO Bool

-- | Determines if the widget should show a visible indication that it has
--   the global input focus. This is a convenience function for use in
--   ::draw handlers that takes into account whether focus indication
--   should currently be shown in the toplevel window of widget.
--   See windowGetFocusVisible for more information about focus
--   indication.
--   
--   To find out if the widget has the global input focus, use
--   widgetHasFocus.
widgetHasVisibleFocus :: WidgetClass widget => widget -> IO Bool

-- | Determines whether the widget is currently grabbing events, so it is
--   the only widget receiving input events (keyboard and mouse).
--   
--   See also grabAdd.
widgetHasGrab :: WidgetClass widget => widget -> IO Bool

-- | Determines whether widget can be drawn to. A widget can be
--   drawn to if it is mapped and visible.
widgetIsDrawable :: WidgetClass widget => widget -> IO Bool

-- | Determines whether widget is a toplevel widget.
--   
--   Currently only Window and Invisible (and out-of-process
--   Plugs) are toplevel widgets. Toplevel widgets have no parent
--   widget.
widgetIsToplevel :: WidgetClass widget => widget -> IO Bool

-- | Sets a widget’s window. This function should only be used in a
--   widget’s “realize” implementation. The window passed is usually either
--   new window created with drawWindowNew, or the window of its
--   parent widget as returned by widgetGetParentWindow.
--   
--   Widgets must indicate whether they will create their own
--   DrawWindow by calling widgetSetHasWindow. This is
--   usually done in the widget’s init() function.
--   
--   Note that this function does not add any reference to window.
widgetSetWindow :: (WidgetClass widget, DrawWindowClass window) => widget -> window -> IO ()

-- | Specifies whether widget will be treated as the default
--   widget within its toplevel when it has the focus, even if another
--   widget is the default.
--   
--   See widgetGrabDefault for details about the meaning of
--   “default”.
widgetSetReceivesDefault :: WidgetClass widget => widget -> Bool -> IO ()

-- | Determines whether widget is always treated as the default
--   widget within its toplevel when it has the focus, even if another
--   widget is the default.
--   
--   See widgetSetReceivesDefault.
widgetGetReceivesDefault :: WidgetClass widget => widget -> IO Bool

-- | Returns True if device has been shadowed by a GTK+ device
--   grab on another widget, so it would stop sending events to widget.
--   This may be used in the “grab-notify” signal to check for specific
--   devices. See deviceGrabAdd.
widgetDeviceIsShadowed :: (WidgetClass widget, DeviceClass device) => widget -> device -> IO Bool

-- | Returns the modifier mask the widget’s windowing system
--   backend uses for a particular purpose.
--   
--   See keymapGetModifierMask.
widgetGetModifierMask :: WidgetClass widget => widget -> ModifierIntent -> IO [Modifier]

-- | Enables or disables multiple pointer awareness. If this setting is
--   True, widget will start receiving multiple, per device
--   enter/leave events. Note that if custom DrawWindows are
--   created in “realize”, windowSetSupportMultidevice will have
--   to be called manually on them.
widgetSetSupportMultidevice :: WidgetClass widget => widget -> Bool -> IO ()

-- | Returns True if widget is multiple pointer aware.
--   See widgetSetSupportMultidevice for more information.
widgetGetSupportMultidevice :: WidgetClass widget => widget -> IO Bool

-- | This function is for use in widget implementations. Sets the state of
--   a widget (insensitive, prelighted, etc.) Usually you should set the
--   state using wrapper functions such as widgetSetSensitive.
widgetSetState :: WidgetClass self => self -> StateType -> IO ()

-- | Rarely-used function. This function is used to emit the event signals
--   on a widget (those signals should never be emitted without using this
--   function to do so). If you want to synthesize an event though, don't
--   use this function; instead, use mainDoEvent so the event will
--   behave as if it were in the event queue. Don't synthesize expose
--   events; instead, use windowInvalidateRect to invalidate a
--   region of the window.
widgetEvent :: WidgetClass self => self -> EventM t Bool

-- | Gets the value of the widgetHAlign property.
--   
--   For backwards compatibility reasons this method will never return
--   AlignBaseline, but instead it will convert it to AlignFill. Baselines
--   are not supported for horizontal alignment.
widgetGetHAlign :: WidgetClass self => self -> IO Align

-- | Sets the horizontal alignment of widget. See the widgetHAlign
--   property.
widgetSetHAlign :: WidgetClass self => self -> Align -> IO ()

-- | Gets the value of the widgetVAlign property.
--   
--   For backwards compatibility reasons this method will never return
--   AlignBaseline, but instead it will convert it to AlignFill. If your
--   widget want to support baseline aligned children it must use
--   widgetGetVAlignWithBaseline, or widgetVAlign, which
--   will also report the true value.
widgetGetVAlign :: WidgetClass self => self -> IO Align

-- | Gets the value of the widgetVAlign property, including
--   AlignBaseline.
widgetGetVAlignWithBaseline :: WidgetClass self => self -> IO Align

-- | Sets the vertical alignment of widget . See the widgetVAlign
--   property.
widgetSetVAlign :: WidgetClass self => self -> Align -> IO ()

-- | The name of the widget.
--   
--   Default value: Nothing
widgetName :: (WidgetClass self, GlibString string) => Attr self (Maybe string)

-- | The parent widget of this widget. Must be a Container widget.
widgetParent :: (WidgetClass self, ContainerClass container) => ReadWriteAttr self (Maybe Container) (Maybe container)

-- | Override for width request of the widget, or -1 if natural request
--   should be used.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
widgetWidthRequest :: WidgetClass self => Attr self Int

-- | Override for height request of the widget, or -1 if natural request
--   should be used.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
widgetHeightRequest :: WidgetClass self => Attr self Int
widgetMarginLeft :: WidgetClass self => Attr self Int
widgetMarginRight :: WidgetClass self => Attr self Int
widgetMarginStart :: WidgetClass self => Attr self Int
widgetMarginEnd :: WidgetClass self => Attr self Int
widgetMarginTop :: WidgetClass self => Attr self Int
widgetMarginBottom :: WidgetClass self => Attr self Int

-- | Whether the widget is visible.
--   
--   Default value: False
widgetVisible :: WidgetClass self => Attr self Bool

-- | The opacity of the widget
--   
--   Default value: 1.0
widgetOpacity :: WidgetClass self => Attr self Double

-- | Whether the widget responds to input.
--   
--   Default value: True
widgetSensitive :: WidgetClass self => Attr self Bool

-- | Whether the application will paint directly on the widget.
--   
--   Default value: False
widgetAppPaintable :: WidgetClass self => Attr self Bool

-- | Whether the widget can accept the input focus.
--   
--   Default value: False
widgetCanFocus :: WidgetClass self => Attr self Bool

-- | Whether the widget has the input focus.
--   
--   Default value: False
widgetHasFocus :: WidgetClass self => Attr self Bool

-- | Whether the widget is the focus widget within the toplevel.
--   
--   Default value: False
widgetIsFocus :: WidgetClass self => Attr self Bool

-- | Whether the widget can be the default widget.
--   
--   Default value: False
widgetCanDefault :: WidgetClass self => Attr self Bool

-- | Whether the widget is the default widget.
--   
--   Default value: False
widgetHasDefault :: WidgetClass self => Attr self Bool

-- | If True, the widget will receive the default action when it
--   is focused.
--   
--   Default value: False
widgetReceivesDefault :: WidgetClass self => Attr self Bool

-- | Whether the widget is part of a composite widget.
--   
--   Default value: False
widgetCompositeChild :: WidgetClass self => ReadAttr self Bool

-- | The style of the widget, which contains information about how it will
--   look (colors etc).
widgetStyle :: WidgetClass self => Attr self Style

-- | The current visual user interaction state of the widget (insensitive,
--   prelighted, selected etc). See StateType for more information.
widgetState :: WidgetClass self => Attr self StateType

-- | The event mask that decides what kind of GdkEvents this widget gets.
--   
--   Default value: StructureMask
widgetEvents :: WidgetClass self => Attr self [EventMask]

-- | Whether to expand in both directions. Setting this sets both
--   widgetHExpand and widgetVExpand
--   
--   Default value: False
widgetExpand :: WidgetClass self => Attr self Bool

-- | Whether to expand horizontally. See widgetSetHExpand
--   
--   Default value: False
widgetHExpand :: WidgetClass self => Attr self Bool

-- | Whether to use the “hexpand” property. See
--   widgetGetHExpandSet.
--   
--   Default value: False
widgetHExpandSet :: WidgetClass self => Attr self Bool

-- | Whether to expand vertically. See widgetSetVExpand.
--   
--   Default value: False
widgetVExpand :: WidgetClass self => Attr self Bool

-- | Whether to use the “vexpand” property. See
--   widgetGetVExpandSet.
--   
--   Default value: False
widgetVExpandSet :: WidgetClass self => Attr self Bool

-- | Whether widgetShowAll should not affect this widget.
--   
--   Default value: False
widgetNoShowAll :: WidgetClass self => Attr self Bool

-- | 'childVisible' property. See widgetGetChildVisible and
--   widgetSetChildVisible
widgetChildVisible :: WidgetClass self => Attr self Bool

-- | 'compositeName' property. See widgetGetCompositeName and
--   widgetSetCompositeName
widgetCompositeName :: (WidgetClass self, GlibString string) => ReadWriteAttr self (Maybe string) string

-- | 'direction' property. See widgetGetDirection and
--   widgetSetDirection
widgetDirection :: WidgetClass self => Attr self TextDirection

-- | Sets the text of tooltip to be the given string, which is marked up
--   with the Pango text markup language. Also see
--   tooltipSetMarkup.
--   
--   This is a convenience property which will take care of getting the
--   tooltip shown if the given string is not "": hasTooltip will
--   automatically be set to True and there will be taken care of
--   queryTooltip in the default signal handler.
--   
--   Default value: ""
--   
--   
--   
- Available since Gtk+ version 2.12
--   
widgetTooltipMarkup :: (WidgetClass self, GlibString markup) => Attr self (Maybe markup)

-- | Sets the text of tooltip to be the given string.
--   
--   Also see tooltipSetText.
--   
--   This is a convenience property which will take care of getting the
--   tooltip shown if the given string is not "": hasTooltip will
--   automatically be set to True and there will be taken care of
--   queryTooltip in the default signal handler.
--   
--   Default value: ""
--   
--   
--   
- Available since Gtk+ version 2.12
--   
widgetTooltipText :: (WidgetClass self, GlibString string) => Attr self (Maybe string)

-- | Enables or disables the emission of queryTooltip on widget. A
--   value of True indicates that widget can have a tooltip, in this
--   case the widget will be queried using queryTooltip to determine
--   whether it will provide a tooltip or not.
--   
--   Note that setting this property to True for the first time will
--   change the event masks of the Windows of this widget to
--   include leave-notify and motion-notify events. This cannot and will
--   not be undone when the property is set to False again.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.12
--   
widgetHasTooltip :: WidgetClass self => Attr self Bool

-- | Determines if the widget style has been looked up through the rc
--   mechanism.
widgetHasRcStyle :: WidgetClass self => self -> IO Bool

-- | Determines whether widget is realized.
widgetGetRealized :: WidgetClass self => self -> IO Bool

-- | Whether the widget is mapped.
widgetGetMapped :: WidgetClass self => self -> IO Bool

-- | Marks the widget as being realized. This function must only
--   be called after all DrawWindows for the widget have been
--   created and registered.
--   
--   This function should only ever be called in a derived widget's
--   “realize” or “unrealize” implementation.
widgetSetRealized :: WidgetClass widget => widget -> Bool -> IO ()

-- | Marks the widget as being realized.
--   
--   This function should only ever be called in a derived widget's “map”
--   or “unmap” implementation.
widgetSetMapped :: WidgetClass widget => widget -> Bool -> IO ()

-- | Returns the style context associated to widget.
widgetGetStyleContext :: WidgetClass widget => widget -> IO StyleContext

-- | The widget should allocate any resources needed, in particular, the
--   widget's DrawWindow is created. If you connect to this signal
--   and you rely on some of these resources to be present, you have to use
--   after.
realize :: WidgetClass self => Signal self (IO ())

-- | The widget should deallocate any resources. This signal is emitted
--   before the widget is destroyed.
unrealize :: WidgetClass self => Signal self (IO ())

-- | The widget appears on screen.
mapSignal :: WidgetClass self => Signal self (IO ())

-- | The widget disappears from the screen.
unmapSignal :: WidgetClass self => Signal self (IO ())

-- | Query the widget for the size it likes to have.
--   
--   
--   
- A parent container emits this signal to its child to query the
--   needed height and width of the child. There is not guarantee that the
--   widget will actually get this area.
--   
sizeRequest :: WidgetClass self => Signal self (IO Requisition)

-- | Inform widget about the size it has.
--   
--   
--   
- After querying a widget for the size it wants to have (through
--   emitting the "sizeRequest" signal) a container will emit this
--   signal to inform the widget about the real size it should occupy.
--   
sizeAllocate :: WidgetClass self => Signal self (Allocation -> IO ())

-- | The widget is shown.
showSignal :: WidgetClass self => Signal self (IO ())

-- | The widget is hidden.
hideSignal :: WidgetClass self => Signal self (IO ())

-- | The widget gains focus via the given user action.
focus :: WidgetClass self => Signal self (DirectionType -> IO Bool)

-- | The state of the widget (input focus, insensitive, etc.) has changed.
stateChanged :: WidgetClass self => Signal self (StateType -> IO ())

-- | The state of the widget (input focus, insensitive, etc.) has changed.
stateFlagsChanged :: WidgetClass self => Signal self ([StateFlags] -> IO ())

-- | The parentSet signal is emitted when a new parent has been set
--   on a widget. The parameter is the new parent.
parentSet :: WidgetClass self => Signal self (Maybe Widget -> IO ())

-- | Emitted when there is a change in the hierarchy to which a widget
--   belong. More precisely, a widget is anchored when its toplevel
--   ancestor is a Window. This signal is emitted when a widget
--   changes from un-anchored to anchored or vice-versa.
hierarchyChanged :: WidgetClass self => Signal self (Maybe Widget -> IO ())

-- | The styleSet signal is emitted when a new style has been set on
--   a widget. Note that style-modifying functions like
--   widgetModifyBase also cause this signal to be emitted.
styleSet :: WidgetClass self => Signal self (Style -> IO ())

-- | The default direction of text writing has changed.
directionChanged :: WidgetClass self => Signal self (TextDirection -> IO ())

-- | The grabNotify signal is emitted when a widget becomes shadowed
--   by a Gtk+ grab (not a pointer or keyboard grab) on another widget, or
--   when it becomes unshadowed due to a grab being removed.
--   
--   A widget is shadowed by a grabAdd when the topmost grab
--   widget in the grab stack of its window group is not its ancestor.
grabNotify :: WidgetClass self => Signal self (Bool -> IO ())

-- | This signal gets emitted whenever a widget should pop up a
--   context-sensitive menu. This usually happens through the standard key
--   binding mechanism; by pressing a certain key while a widget is
--   focused, the user can cause the widget to pop up a menu. For example,
--   the Entry widget creates a menu with clipboard commands.
popupMenuSignal :: WidgetClass self => Signal self (IO Bool)

-- | Tell the widget to show an explanatory help text. Should return
--   True if help has been shown.
showHelp :: WidgetClass self => Signal self (WidgetHelpType -> IO Bool)

-- | The set of keyboard accelerators has changed.
accelClosuresChanged :: WidgetClass self => Signal self (IO ())

-- | The widget moved to a new screen.
screenChanged :: WidgetClass self => Signal self (Screen -> IO ())

-- | Emitted when hasTooltip is True and the
--   gtkTooltipTimeout has expired with the cursor hovering
--   "above" widget; or emitted when widget got focus in keyboard mode.
--   
--   Using the given coordinates, the signal handler should determine
--   whether a tooltip should be shown for widget. If this is the case
--   True should be returned, False otherwise. Note if widget
--   got focus in keyboard mode, Point is Nothing.
--   
--   The signal handler is free to manipulate tooltip with the therefore
--   destined function calls.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
queryTooltip :: WidgetClass self => Signal self (Widget -> Maybe Point -> Tooltip -> IO Bool)
draw :: WidgetClass self => Signal self (Render ())

-- | A mouse button has been depressed while the mouse pointer was within
--   the widget area. Sets the widget's ButtonPressMask flag.
buttonPressEvent :: WidgetClass self => Signal self (EventM EButton Bool)

-- | A mouse button has been released. Sets the widget's
--   ButtonReleaseMask flag.
buttonReleaseEvent :: WidgetClass self => Signal self (EventM EButton Bool)

-- | The size of the window has changed.
configureEvent :: WidgetClass self => Signal self (EventM EConfigure Bool)

-- | The deleteEvent signal is emitted if a user requests that a
--   toplevel window is closed. The default handler for this signal
--   destroys the window. Calling widgetHide and returning
--   True on reception of this signal will cause the window to be
--   hidden instead, so that it can later be shown again without
--   reconstructing it.
deleteEvent :: WidgetClass self => Signal self (EventM EAny Bool)

-- | The destroyEvent signal is emitted when a DrawWindow is
--   destroyed. You rarely get this signal, because most widgets disconnect
--   themselves from their window before they destroy it, so no widget owns
--   the window at destroy time. However, you might want to connect to the
--   objectDestroy signal of Object.
destroyEvent :: WidgetClass self => Signal self (EventM EAny Bool)

-- | The mouse pointer has entered the widget. Sets the widget's
--   EnterNotifyMask flag.
enterNotifyEvent :: WidgetClass self => Signal self (EventM ECrossing Bool)

-- | Instructs the widget to redraw.
--   
--   
--   
- The DrawWindow that needs to be redrawn is available via
--   eventWindow.
--   
- The part that needs to be redrawn is available via
--   eventArea and eventRegion. The options are, in order
--   of efficiency: (a) redraw the entire window, (b) ask for the
--   eventArea and redraw that rectangle, (c) ask for the
--   eventRegion and redraw each of those rectangles.
--   
--   
--   Only the exposed region will be updated; see also
--   drawWindowBeginPaintRegion.
exposeEvent :: WidgetClass self => Signal self (EventM EExpose Bool)

-- | The widget gets the input focus. Sets the widget's
--   FocusChangeMask flag.
focusInEvent :: WidgetClass self => Signal self (EventM EFocus Bool)

-- | The widget lost the input focus. Sets the widget's
--   FocusChangeMask flag.
focusOutEvent :: WidgetClass self => Signal self (EventM EFocus Bool)

-- | Emitted when a pointer or keyboard grab on a window belonging to
--   widget gets broken.
--   
--   On X11, this happens when the grab window becomes unviewable (i.e. it
--   or one of its ancestors is unmapped), or if the same application grabs
--   the pointer or keyboard again.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
grabBrokenEvent :: WidgetClass self => Signal self (EventM EGrabBroken Bool)

-- | A key has been depressed. Sets the widget's KeyPressMask flag.
keyPressEvent :: WidgetClass self => Signal self (EventM EKey Bool)

-- | A key has been released. Sets the widget's KeyReleaseMask flag.
keyReleaseEvent :: WidgetClass self => Signal self (EventM EKey Bool)

-- | The mouse pointer has left the widget. Sets the widget's
--   LeaveNotifyMask flag.
leaveNotifyEvent :: WidgetClass self => Signal self (EventM ECrossing Bool)

-- | The window is put onto the screen.
mapEvent :: WidgetClass self => Signal self (EventM EAny Bool)

-- | The mouse pointer has moved. Since receiving all mouse movements is
--   expensive, it is necessary to specify exactly what mouse motions are
--   required by calling widgetAddEvents on this widget with one or
--   more of the following flags:
--   
--   
--   
- PointerMotionMask: Track all movements.
--   
- ButtonMotionMask: Only track movements if a button is
--   depressed.
--   
- Button1MotionMask: Only track movements if the left button
--   is depressed.
--   
- Button2MotionMask: Only track movements if the middle
--   button is depressed.
--   
- Button3MotionMask: Only track movements if the right button
--   is depressed. PointerMotionHintMask is a special flag which can
--   be used in combination with any of the above and is used to reduce the
--   number of motionNotifyEvents received. Normally a
--   motionNotifyEvent event is received each time the mouse moves.
--   However, if the application spends a lot of time processing the event
--   (updating the display, for example), it can lag behind the position of
--   the mouse. When using PointerMotionHintMask, fewer
--   motionNotifyEvents will be sent, some of which are marked as a
--   hint. To receive more motion events after a motion hint event, the
--   application needs to asks for more, by calling
--   eventRequestMotions. This effectively limits the rate at which
--   new motion events are received. (Note that you don't need to check if
--   the hint is set as eventRequestMotions does so
--   automatically.)
--   
motionNotifyEvent :: WidgetClass self => Signal self (EventM EMotion Bool)

-- | Generated when the area of a Drawable being copied using,
--   e.g. drawDrawable, is completely available.
noExposeEvent :: WidgetClass self => Signal self (EventM EAny Bool)

-- | The pen of a graphics tablet was put down. Sets the widget's
--   ProximityInMask flag.
proximityInEvent :: WidgetClass self => Signal self (EventM EProximity Bool)

-- | The pen of a graphics tablet was lifted off the tablet. Sets the
--   widget's ProximityOutMask flag.
proximityOutEvent :: WidgetClass self => Signal self (EventM EProximity Bool)

-- | The scroll wheel of the mouse has been used. Sets the widget's
--   ScrollMask flag.
scrollEvent :: WidgetClass self => Signal self (EventM EScroll Bool)

-- | The window is taken off the screen.
unmapEvent :: WidgetClass self => Signal self (EventM EAny Bool)

-- | Emitted when the window visibility status has changed. Sets the
--   widget's VisibilityNotifyMask flag.
visibilityNotifyEvent :: WidgetClass self => Signal self (EventM EVisibility Bool)

-- | Emitted when the state of the window changes, i.e. when it is
--   minimized, moved to the top, etc.
windowStateEvent :: WidgetClass self => Signal self (EventM EWindowState Bool)
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Abstract.Widget.WidgetHelpType
instance GHC.Classes.Eq Graphics.UI.Gtk.Abstract.Widget.WidgetHelpType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Abstract.Widget.WidgetHelpType

-- | Base class for widgets which visualize an adjustment
module Graphics.UI.Gtk.Abstract.Range
data Range
class WidgetClass o => RangeClass o
castToRange :: GObjectClass obj => obj -> Range
gTypeRange :: GType
toRange :: RangeClass o => o -> Range

-- | Get the Adjustment which is the "model" object for
--   Range. See rangeSetAdjustment for details.
rangeGetAdjustment :: RangeClass self => self -> IO Adjustment

-- | Sets the adjustment to be used as the "model" object for this range
--   widget. The adjustment indicates the current range value, the minimum
--   and maximum range values, the step/page increments used for
--   keybindings and scrolling, and the page size. The page size is
--   normally 0 for Scale and nonzero for Scrollbar, and
--   indicates the size of the visible area of the widget being scrolled.
--   The page size affects the size of the scrollbar slider.
rangeSetAdjustment :: RangeClass self => self -> Adjustment -> IO ()

-- | Gets the value set by rangeSetInverted.
rangeGetInverted :: RangeClass self => self -> IO Bool

-- | Ranges normally move from lower to higher values as the slider moves
--   from top to bottom or left to right. Inverted ranges have higher
--   values at the top or on the right rather than on the bottom or left.
rangeSetInverted :: RangeClass self => self -> Bool -> IO ()

-- | Gets the current value of the range.
rangeGetValue :: RangeClass self => self -> IO Double

-- | Sets the current value of the range; if the value is outside the
--   minimum or maximum range values, it will be clamped to fit inside
--   them. The range emits the valueChanged signal if the value
--   changes.
rangeSetValue :: RangeClass self => self -> Double -> IO ()

-- | Sets the step and page sizes for the range. The step size is used when
--   the user clicks the Scrollbar arrows or moves Scale via
--   arrow keys. The page size is used for example when moving via Page Up
--   or Page Down keys.
rangeSetIncrements :: RangeClass self => self -> Double -> Double -> IO ()

-- | Sets the allowable values in the Range, and clamps the range
--   value to be between min and max. (If the range has a
--   non-zero page size, it is clamped between min and
--   max - page-size.)
rangeSetRange :: RangeClass self => self -> Double -> Double -> IO ()

-- | Scrolling type
data ScrollType
ScrollNone :: ScrollType
ScrollJump :: ScrollType
ScrollStepBackward :: ScrollType
ScrollStepForward :: ScrollType
ScrollPageBackward :: ScrollType
ScrollPageForward :: ScrollType
ScrollStepUp :: ScrollType
ScrollStepDown :: ScrollType
ScrollPageUp :: ScrollType
ScrollPageDown :: ScrollType
ScrollStepLeft :: ScrollType
ScrollStepRight :: ScrollType
ScrollPageLeft :: ScrollType
ScrollPageRight :: ScrollType
ScrollStart :: ScrollType
ScrollEnd :: ScrollType

-- | Determines how Gtk+ handles the sensitivity of stepper arrows at the
--   end of range widgets.
--   
--   
--   
- SensitivityAuto: the arrow is made insensitive if the thumb
--   is at the end
--   
- SensitivityOn: the arrow is always sensitive
--   
- SensitivityOff: the arrow is always insensitive
--   
data SensitivityType
SensitivityAuto :: SensitivityType
SensitivityOn :: SensitivityType
SensitivityOff :: SensitivityType

-- | Sets the sensitivity policy for the stepper that points to the 'lower'
--   end of the Range's adjustment.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
rangeSetLowerStepperSensitivity :: RangeClass self => self -> SensitivityType -> IO ()

-- | Gets the sensitivity policy for the stepper that points to the 'lower'
--   end of the Range's adjustment.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
rangeGetLowerStepperSensitivity :: RangeClass self => self -> IO SensitivityType

-- | Sets the sensitivity policy for the stepper that points to the 'upper'
--   end of the Range's adjustment.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
rangeSetUpperStepperSensitivity :: RangeClass self => self -> SensitivityType -> IO ()

-- | Gets the sensitivity policy for the stepper that points to the 'upper'
--   end of the Range's adjustment.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
rangeGetUpperStepperSensitivity :: RangeClass self => self -> IO SensitivityType

-- | This function is useful mainly for Range subclasses.
--   
--   See rangeSetMinSliderSize.
rangeGetMinSliderSize :: RangeClass self => self -> IO Int

-- | This function returns the area that contains the range's through and
--   its steppers, in DrawWindow coordinates.
--   
--   This function is useful mainly for Range subclasses.
rangeGetRangeRect :: RangeClass self => self -> IO Rectangle

-- | This function returns sliders range along the long dimension, in
--   DrawWindow coordinates.
--   
--   This function is useful mainly for Range subclasses.
rangeGetSliderRange :: RangeClass self => self -> IO (Maybe (Int, Int))

-- | This function is useful mainly for Range subclasses.
--   
--   See rangeSetSliderSizeFixed.
rangeGetSliderSizeFixed :: RangeClass self => self -> IO Bool

-- | Sets the minimum size of the range's slider.
--   
--   This function is useful mainly for Range subclasses.
rangeSetMinSliderSize :: RangeClass self => self -> Bool -> IO ()

-- | Sets whether the range's slider has a fixed size, or a size that
--   depends on it's adjustment's page size.
--   
--   This function is useful mainly for Range subclasses.
rangeSetSliderSizeFixed :: RangeClass self => self -> Bool -> IO ()

-- | The Adjustment that contains the current value of this range
--   object.
rangeAdjustment :: RangeClass self => Attr self Adjustment

-- | Invert direction slider moves to increase range value.
--   
--   Default value: False
rangeInverted :: RangeClass self => Attr self Bool

-- | The sensitivity policy for the stepper that points to the adjustment's
--   lower side.
--   
--   Default value: SensitivityAuto
rangeLowerStepperSensitivity :: RangeClass self => Attr self SensitivityType

-- | The sensitivity policy for the stepper that points to the adjustment's
--   upper side.
--   
--   Default value: SensitivityAuto
rangeUpperStepperSensitivity :: RangeClass self => Attr self SensitivityType

-- | 'value' property. See rangeGetValue and rangeSetValue
rangeValue :: RangeClass self => Attr self Double

-- | Whether range's slikder has a fixed size, or a size that depends on
--   it's adjustment's page size.
rangeSliderSizeFixed :: RangeClass self => Attr self Bool

-- | Get/Set sliders range along the long dimension, in DrawWindow
--   coordinates.
rangeMinSliderSize :: RangeClass self => ReadWriteAttr self Int Bool
adjustBounds :: RangeClass self => Signal self (Double -> IO ())

-- | Emitted when the range value changes.
valueChanged :: RangeClass self => Signal self (IO ())

-- | The changeValue signal is emitted when a scroll action is
--   performed on a range. It allows an application to determine the type
--   of scroll event that occurred and the resultant new value. The
--   application can handle the event itself and return True to
--   prevent further processing. Or, by returning False, it can
--   pass the event to other handlers until the default Gtk+ handler is
--   reached.
--   
--   The value parameter is unrounded. An application that overrides the
--   changeValue signal is responsible for clamping the value to the
--   desired number of decimal digits.
--   
--   It is not possible to use delayed update policies in an overridden
--   changeValue handler.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
changeValue :: RangeClass self => Signal self (ScrollType -> Double -> IO Bool)
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Abstract.Range.SensitivityType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Abstract.Range.SensitivityType
instance GHC.Classes.Eq Graphics.UI.Gtk.Abstract.Range.SensitivityType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Abstract.Range.SensitivityType

-- | Base class for widgets with alignments and padding
module Graphics.UI.Gtk.Abstract.Misc
data Misc
class WidgetClass o => MiscClass o
castToMisc :: GObjectClass obj => obj -> Misc
gTypeMisc :: GType
toMisc :: MiscClass o => o -> Misc

-- | Sets the alignment of the widget.
miscSetAlignment :: MiscClass self => self -> Float -> Float -> IO ()

-- | Gets the X and Y alignment of the widget within its allocation. See
--   miscSetAlignment.
miscGetAlignment :: MiscClass self => self -> IO (Double, Double)

-- | Sets the amount of space to add around the widget.
miscSetPadding :: MiscClass self => self -> Int -> Int -> IO ()

-- | Gets the padding in the X and Y directions of the widget. See
--   miscSetPadding.
miscGetPadding :: MiscClass self => self -> IO (Int, Int)

-- | The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL
--   layouts.
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
miscXalign :: MiscClass self => Attr self Float

-- | The vertical alignment, from 0 (top) to 1 (bottom).
--   
--   Allowed values: [0,1]
--   
--   Default value: 0.5
miscYalign :: MiscClass self => Attr self Float

-- | The amount of space to add on the left and right of the widget, in
--   pixels.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
miscXpad :: MiscClass self => Attr self Int

-- | The amount of space to add on the top and bottom of the widget, in
--   pixels.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
miscYpad :: MiscClass self => Attr self Int

-- | Base class for input method contexts
module Graphics.UI.Gtk.Abstract.IMContext
data IMContext
class GObjectClass o => IMContextClass o
castToIMContext :: GObjectClass obj => obj -> IMContext
gTypeIMContext :: GType
toIMContext :: IMContextClass o => o -> IMContext

-- | Set the client window for the input context; this is the
--   DrawWindow in which the input appears. This window is used in
--   order to correctly position status windows, and may also be used for
--   purposes internal to the input method.
imContextSetClientWindow :: IMContextClass self => self -> Maybe DrawWindow -> IO ()

-- | Retrieve the current preedit string for the input context, and a list
--   of attributes to apply to the string. This string should be displayed
--   inserted at the insertion point.
imContextGetPreeditString :: (IMContextClass self, GlibString string) => self -> IO (string, [[PangoAttribute]], Int)

-- | Allow an input method to internally handle key press and release
--   events. If this function returns True, then no further
--   processing should be done for this key event.
imContextFilterKeypress :: IMContextClass self => self -> EventM EKey Bool

-- | Notify the input method that the widget to which this input context
--   corresponds has gained focus. The input method may, for example,
--   change the displayed feedback to reflect this change.
imContextFocusIn :: IMContextClass self => self -> IO ()

-- | Notify the input method that the widget to which this input context
--   corresponds has lost focus. The input method may, for example, change
--   the displayed feedback or reset the contexts state to reflect this
--   change.
imContextFocusOut :: IMContextClass self => self -> IO ()

-- | Notify the input method that a change such as a change in cursor
--   position has been made. This will typically cause the input method to
--   clear the preedit state.
imContextReset :: IMContextClass self => self -> IO ()

-- | Notify the input method that a change in cursor position has been
--   made. The location is relative to the client window.
imContextSetCursorLocation :: IMContextClass self => self -> Rectangle -> IO ()

-- | Sets whether the IM context should use the preedit string to display
--   feedback. If usePreedit is False (default is
--   True), then the IM context may use some other method to
--   display feedback, such as displaying it in a child of the root window.
imContextSetUsePreedit :: IMContextClass self => self -> Bool -> IO ()

-- | Sets surrounding context around the insertion point and preedit
--   string. This function is expected to be called in response to the
--   imContextRetrieveSurrounding signal, and will likely have no
--   effect if called at other times.
imContextSetSurrounding :: (IMContextClass self, GlibString string) => self -> string -> Int -> IO ()

-- | Retrieves context around the insertion point. Input methods typically
--   want context in order to constrain input text based on existing text;
--   this is important for languages such as Thai where only some sequences
--   of characters are allowed.
--   
--   This function is implemented by emitting the
--   imContextRetrieveSurrounding signal on the input method; in
--   response to this signal, a widget should provide as much context as is
--   available, up to an entire paragraph, by calling
--   imContextSetSurrounding. Note that there is no obligation for a
--   widget to respond to the imContextRetrieveSurrounding signal,
--   so input methods must be prepared to function without context.
imContextGetSurrounding :: (IMContextClass self, GlibString string) => self -> IO (Maybe (string, Int))

-- | Asks the widget that the input context is attached to to delete
--   characters around the cursor position by emitting the
--   imContextDeleteSurrounding signal.
--   
--   In order to use this function, you should first call
--   imContextGetSurrounding to get the current context, and call
--   this function immediately afterwards to make sure that you know what
--   you are deleting. You should also account for the fact that even if
--   the signal was handled, the input context might not have deleted all
--   the characters that were requested to be deleted.
--   
--   This function is used by an input method that wants to make
--   substitutions in the existing text in response to new input. It is not
--   useful for applications.
imContextDeleteSurrounding :: IMContextClass self => self -> Int -> Int -> IO Bool

-- | This signal is emitted when a new preediting sequence starts.
imContextPreeditStart :: IMContextClass self => Signal self (IO ())

-- | This signal is emitted when a preediting sequence has been completed
--   or canceled.
imContextPreeditEnd :: IMContextClass self => Signal self (IO ())

-- | This signal is emitted whenever the preedit sequence currently being
--   entered has changed. It is also emitted at the end of a preedit
--   sequence, in which case imContextGetPreeditString returns the
--   empty string.
imContextPreeditChanged :: IMContextClass self => Signal self (IO ())

-- | This signal is emitted when a complete input sequence has been entered
--   by the user. This can be a single character immediately after a key
--   press or the final result of preediting. Parameters:
--   
--   str - the completed character(s) entered by the user
imContextCommit :: (IMContextClass self, GlibString string) => Signal self (string -> IO ())

-- | This signal is emitted when the input method requires the context
--   surrounding the cursor. The callback should set the input method
--   surrounding context by calling imContextSetSurrounding.
--   
--   Returns True if the signal was handled.
imContextRetrieveSurrounding :: IMContextClass self => Signal self (IO Bool)

-- | This signal is emitted when the input method needs to delete all or
--   part of the context surrounding the cursor. Parameters:
--   
--   offset - the character offset from the cursor position of the
--   text to be deleted. A negative value indicates a position before the
--   cursor.
--   
--   n_chars - the number of characters to be deleted.
--   
--   Returns True if the signal was handled.
imContextDeleteSurrounding' :: IMContextClass self => Signal self (Int -> Int -> IO Bool)

-- | Create bars of buttons and other widgets
module Graphics.UI.Gtk.MenuComboToolbar.Toolbar
data Toolbar
class ContainerClass o => ToolbarClass o
castToToolbar :: GObjectClass obj => obj -> Toolbar
gTypeToolbar :: GType
toToolbar :: ToolbarClass o => o -> Toolbar

-- | Orientation is good
data Orientation
OrientationHorizontal :: Orientation
OrientationVertical :: Orientation

-- | Where to place the toolbar?
data ToolbarStyle
ToolbarIcons :: ToolbarStyle
ToolbarText :: ToolbarStyle
ToolbarBoth :: ToolbarStyle
ToolbarBothHoriz :: ToolbarStyle

-- | Creates a new toolbar.
toolbarNew :: IO Toolbar

-- | Alters the view of the toolbar to display either icons only, text
--   only, or both.
toolbarSetStyle :: ToolbarClass self => self -> ToolbarStyle -> IO ()

-- | Retrieves whether the toolbar has text, icons, or both. See
--   toolbarSetStyle.
toolbarGetStyle :: ToolbarClass self => self -> IO ToolbarStyle

-- | Unsets a toolbar style set with toolbarSetStyle, so that user
--   preferences will be used to determine the toolbar style.
toolbarUnsetStyle :: ToolbarClass self => self -> IO ()

-- | The size of an icon in pixels.
--   
--   
--   
- This enumeration contains one case that is not exported and which
--   is used when new sizes are registered using
--   iconSizeRegister.
--   
- Applying show to this type will reveal the name of the size
--   that is registered with Gtk+.
--   
data IconSize

-- | Don't scale but use any of the available sizes.
IconSizeInvalid :: IconSize

-- | Icon size to use in next to menu items in drop-down menus.
IconSizeMenu :: IconSize

-- | Icon size for small toolbars.
IconSizeSmallToolbar :: IconSize

-- | Icon size for larger toolbars.
IconSizeLargeToolbar :: IconSize

-- | Icon size for icons in buttons, next to the label.
IconSizeButton :: IconSize

-- | Icon size for icons in drag-and-drop.
IconSizeDnd :: IconSize

-- | Icon size for icons next to dialog text.
IconSizeDialog :: IconSize
IconSizeUser :: Int -> IconSize

-- | Retrieves the icon size for the toolbar. See
--   toolbarSetIconSize.
toolbarGetIconSize :: ToolbarClass self => self -> IO IconSize

-- | Insert a ToolItem into the toolbar at position pos. If
--   pos is 0 the item is prepended to the start of the toolbar.
--   If pos is negative, the item is appended to the end of the
--   toolbar.
--   
--   
--   
- Available since Gtk version 2.4
--   
toolbarInsert :: (ToolbarClass self, ToolItemClass item) => self -> item -> Int -> IO ()

-- | Returns the position of item on the toolbar, starting from 0.
--   It is an error if item is not a child of the toolbar.
--   
--   
--   
- Available since Gtk version 2.4
--   
toolbarGetItemIndex :: (ToolbarClass self, ToolItemClass item) => self -> item -> IO Int

-- | Returns the number of items on the toolbar.
--   
--   
--   
- Available since Gtk version 2.4
--   
toolbarGetNItems :: ToolbarClass self => self -> IO Int

-- | Returns the n'th item on toolbar, or Nothing if the
--   toolbar does not contain an n'th item.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
toolbarGetNthItem :: ToolbarClass self => self -> Int -> IO (Maybe ToolItem)

-- | Returns the position corresponding to the indicated point on toolbar.
--   This is useful when dragging items to the toolbar: this function
--   returns the position a new item should be inserted.
--   
--   
--   
- Available since Gtk version 2.4
--   
toolbarGetDropIndex :: ToolbarClass self => self -> (Int, Int) -> IO Int

-- | Highlights the toolbar to give an idea of what it would look like if
--   item was added to toolbar at the position indicated by
--   index. If item is Nothing, highlighting is
--   turned off (and the index is ignored).
--   
--   The toolItem passed to this function must not be part of any
--   widget hierarchy. When an item is set as a drop highlight item it can
--   not added to any widget hierarchy or used as highlight item for
--   another toolbar.
--   
--   
--   
- Available since Gtk version 2.4
--   
toolbarSetDropHighlightItem :: (ToolbarClass self, ToolItemClass toolItem) => self -> Maybe toolItem -> Int -> IO ()

-- | Sets whether to show an overflow menu when the toolbar doesn't have
--   room for all items on it. If True, items that there are not
--   room are available through an overflow menu.
--   
--   
--   
- Available since Gtk version 2.4
--   
toolbarSetShowArrow :: ToolbarClass self => self -> Bool -> IO ()

-- | Returns whether the toolbar has an overflow menu. See
--   toolbarSetShowArrow.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
toolbarGetShowArrow :: ToolbarClass self => self -> IO Bool

-- | I don't have a clue.
data ReliefStyle
ReliefNormal :: ReliefStyle
ReliefHalf :: ReliefStyle
ReliefNone :: ReliefStyle

-- | Returns the relief style of buttons on the toolbar. See
--   buttonSetRelief.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
toolbarGetReliefStyle :: ToolbarClass self => self -> IO ReliefStyle

-- | If an arrow should be shown if the toolbar doesn't fit.
--   
--   Default value: True
toolbarShowArrow :: ToolbarClass self => Attr self Bool

-- | How to draw the toolbar.
--   
--   Default value: ToolbarIcons
toolbarStyle :: ToolbarClass self => Attr self ToolbarStyle

-- | Whether the item should receive extra space when the toolbar grows.
--   
--   Default value: True
toolbarChildExpand :: (ToolbarClass self, WidgetClass child) => child -> Attr self Bool

-- | Whether the item should be the same size as other homogeneous items.
--   
--   Default value: True
toolbarChildHomogeneous :: (ToolbarClass self, WidgetClass child) => child -> Attr self Bool

-- | Emitted when the orientation of the toolbar changes.
onOrientationChanged :: ToolbarClass self => self -> (Orientation -> IO ()) -> IO (ConnectId self)

-- | Emitted when the orientation of the toolbar changes.
afterOrientationChanged :: ToolbarClass self => self -> (Orientation -> IO ()) -> IO (ConnectId self)

-- | Emitted when the style of the toolbar changes.
onStyleChanged :: ToolbarClass self => self -> (ToolbarStyle -> IO ()) -> IO (ConnectId self)

-- | Emitted when the style of the toolbar changes.
afterStyleChanged :: ToolbarClass self => self -> (ToolbarStyle -> IO ()) -> IO (ConnectId self)

-- | Emitted when the user right-clicks the toolbar or uses the keybinding
--   to display a popup menu.
--   
--   Application developers should handle this signal if they want to
--   display a context menu on the toolbar. The context-menu should appear
--   at the coordinates given by x and y. The mouse
--   button number is given by the button parameter. If the menu
--   was popped up using the keyboard, button is -1.
onPopupContextMenu :: ToolbarClass self => self -> (Int -> Int -> Int -> IO Bool) -> IO (ConnectId self)

-- | Emitted when the user right-clicks the toolbar or uses the keybinding
--   to display a popup menu.
--   
--   Application developers should handle this signal if they want to
--   display a context menu on the toolbar. The context-menu should appear
--   at the coordinates given by x and y. The mouse
--   button number is given by the button parameter. If the menu
--   was popped up using the keyboard, button is -1.
afterPopupContextMenu :: ToolbarClass self => self -> (Int -> Int -> Int -> IO Bool) -> IO (ConnectId self)

-- | A menu widget
module Graphics.UI.Gtk.MenuComboToolbar.Menu
data Menu
class MenuShellClass o => MenuClass o
castToMenu :: GObjectClass obj => obj -> Menu
gTypeMenu :: GType
toMenu :: MenuClass o => o -> Menu

-- | Creates a new Menu.
menuNew :: IO Menu

-- | Moves a MenuItem to a new position within the Menu.
menuReorderChild :: (MenuClass self, MenuItemClass child) => self -> child -> Int -> IO ()

-- | Popup a context menu where a button press occurred.
--   
--   
--   
- This function must be called in response to a button click. It
--   opens the given menu at a place determined by the last emitted event
--   (hence the requirement that this function is called as response to a
--   button press signal).
--   
menuPopup :: MenuClass self => self -> Maybe (MouseButton, TimeStamp) -> IO ()

-- | Set the AccelGroup which holds global accelerators for the
--   menu. This accelerator group needs to also be added to all windows
--   that this menu is being used in with windowAddAccelGroup, in
--   order for those windows to support all the accelerators contained in
--   this group.
menuSetAccelGroup :: MenuClass self => self -> AccelGroup -> IO ()

-- | Gets the AccelGroup which holds global accelerators for the
--   menu. See menuSetAccelGroup.
menuGetAccelGroup :: MenuClass self => self -> IO AccelGroup

-- | Sets an accelerator path for this menu from which accelerator paths
--   for its immediate children, its menu items, can be constructed. The
--   main purpose of this function is to spare the programmer the
--   inconvenience of having to call menuItemSetAccelPath on each
--   menu item that should support runtime user changeable accelerators.
--   Instead, by just calling menuSetAccelPath on their parent, each
--   menu item of this menu, that contains a label describing its purpose,
--   automatically gets an accel path assigned.
--   
--   For example, a menu containing menu items "New" and "Exit", will,
--   after calling
--   
--   
--   menu `menuSetAccelPath` "<Gnumeric-Sheet>/File"
--   
--   
--   assign its items the accel paths:
--   "<Gnumeric-Sheet>/File/New" and
--   "<Gnumeric-Sheet>/File/Exit".
--   
--   Assigning accel paths to menu items then enables the user to change
--   their accelerators at runtime. More details about accelerator paths
--   and their default setups can be found at accelMapAddEntry.
menuSetAccelPath :: (MenuClass self, GlibString string) => self -> string -> IO ()

-- | Sets the title string for the menu. The title is displayed when the
--   menu is shown as a tearoff menu.
menuSetTitle :: (MenuClass self, GlibString string) => self -> string -> IO ()

-- | Returns the title of the menu. See menuSetTitle.
menuGetTitle :: (MenuClass self, GlibString string) => self -> IO (Maybe string)

-- | Removes the menu from the screen.
menuPopdown :: MenuClass self => self -> IO ()

-- | Repositions the menu according to its position function.
menuReposition :: MenuClass self => self -> IO ()

-- | Returns the selected menu item from the menu. This is used by the
--   OptionMenu.
menuGetActive :: MenuClass self => self -> IO MenuItem

-- | Selects the specified menu item within the menu. This is used by the
--   OptionMenu and should not be used by anyone else.
menuSetActive :: MenuClass self => self -> Int -> IO ()

-- | Changes the tearoff state of the menu. A menu is normally displayed as
--   drop down menu which persists as long as the menu is active. It can
--   also be displayed as a tearoff menu which persists until it is closed
--   or reattached.
menuSetTearoffState :: MenuClass self => self -> Bool -> IO ()

-- | Returns whether the menu is torn off. See menuSetTearoffState.
menuGetTearoffState :: MenuClass self => self -> IO Bool

-- | Attach this menu to another widget.
menuAttachToWidget :: (MenuClass self, WidgetClass attachWidget) => self -> attachWidget -> IO ()

-- | Detach this menu from the widget it is attached to.
menuDetach :: MenuClass self => self -> IO ()

-- | Get the widget this menu is attached to. Returns Nothing if this is a
--   tearoff (context) menu.
menuGetAttachWidget :: MenuClass self => self -> IO (Maybe Widget)

-- | Sets the Screen on which the menu will be displayed.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
menuSetScreen :: MenuClass self => self -> Maybe Screen -> IO ()

-- | Informs Gtk+ on which monitor a menu should be popped up. See
--   screenGetMonitorGeometry.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
menuSetMonitor :: MenuClass self => self -> Int -> IO ()

-- | Adds a new MenuItem to a (table) menu. The number of 'cells'
--   that an item will occupy is specified by leftAttach,
--   rightAttach, topAttach and bottomAttach.
--   These each represent the leftmost, rightmost, uppermost and lower
--   column and row numbers of the table. (Columns and rows are indexed
--   from zero).
--   
--   Note that this function is not related to menuDetach.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
menuAttach :: (MenuClass self, MenuItemClass child) => self -> child -> Int -> Int -> Int -> Int -> IO ()

-- | Returns a list of the menus which are attached to this widget.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
menuGetForAttachWidget :: WidgetClass widget => widget -> IO [Menu]

-- | A boolean that indicates whether the menu is torn-off.
--   
--   Default value: False
menuTearoffState :: MenuClass self => Attr self Bool

-- | 'accelGroup' property. See menuGetAccelGroup and
--   menuSetAccelGroup
menuAccelGroup :: MenuClass self => Attr self AccelGroup

-- | 'active' property. See menuGetActive and menuSetActive
menuActive :: MenuClass self => ReadWriteAttr self MenuItem Int

-- | A title that may be displayed by the window manager when this menu is
--   torn-off.
--   
--   Default value: ""
menuTitle :: (MenuClass self, GlibString string) => Attr self string

-- | The column number to attach the left side of the child to.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
menuChildLeftAttach :: (MenuClass self, WidgetClass child) => child -> Attr self Int

-- | The column number to attach the right side of the child to.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
menuChildRightAttach :: (MenuClass self, WidgetClass child) => child -> Attr self Int

-- | The row number to attach the top of the child to.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
menuChildTopAttach :: (MenuClass self, WidgetClass child) => child -> Attr self Int

-- | The row number to attach the bottom of the child to.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
menuChildBottomAttach :: (MenuClass self, WidgetClass child) => child -> Attr self Int

-- | The table widget is a container in which widgets can be aligned in
--   cells.
module Graphics.UI.Gtk.Layout.Table
data Table
class ContainerClass o => TableClass o
castToTable :: GObjectClass obj => obj -> Table
gTypeTable :: GType
toTable :: TableClass o => o -> Table

-- | Used to create a new table widget. An initial size must be given by
--   specifying how many rows and columns the table should have, although
--   this can be changed later with tableResize. rows and
--   columns must both be in the range 0 .. 65535.
tableNew :: Int -> Int -> Bool -> IO Table

-- | Change the dimensions of an already existing table.
tableResize :: TableClass self => self -> Int -> Int -> IO ()

-- | Child widget attach options for table containers
data AttachOptions
Expand :: AttachOptions
Shrink :: AttachOptions
Fill :: AttachOptions

-- | Adds a widget to a table. The number of 'cells' that a widget will
--   occupy is specified by leftAttach, rightAttach,
--   topAttach and bottomAttach. These each represent the
--   leftmost, rightmost, uppermost and lowest column and row numbers of
--   the table. (Columns and rows are indexed from zero).
tableAttach :: (TableClass self, WidgetClass child) => self -> child -> Int -> Int -> Int -> Int -> [AttachOptions] -> [AttachOptions] -> Int -> Int -> IO ()

-- | As there are many options associated with tableAttach, this
--   convenience function provides the programmer with a means to add
--   children to a table with identical padding and expansion options. The
--   values used for the AttachOptions are [Expand,
--   Fill], and the padding is set to 0.
tableAttachDefaults :: (TableClass self, WidgetClass widget) => self -> widget -> Int -> Int -> Int -> Int -> IO ()

-- | Changes the space between a given table row and its surrounding rows.
tableSetRowSpacing :: TableClass self => self -> Int -> Int -> IO ()

-- | Gets the amount of space between row row, and row
--   row + 1. See tableSetRowSpacing.
tableGetRowSpacing :: TableClass self => self -> Int -> IO Int

-- | Alters the amount of space between a given table column and the
--   adjacent columns.
tableSetColSpacing :: TableClass self => self -> Int -> Int -> IO ()

-- | Gets the amount of space between column col, and column
--   col + 1. See tableSetColSpacing.
tableGetColSpacing :: TableClass self => self -> Int -> IO Int

-- | Sets the space between every row in table equal to
--   spacing.
tableSetRowSpacings :: TableClass self => self -> Int -> IO ()

-- | Gets the default row spacing for the table. This is the spacing that
--   will be used for newly added rows. (See tableSetRowSpacings)
tableGetDefaultRowSpacing :: TableClass self => self -> IO Int

-- | Sets the space between every column in table equal to
--   spacing.
tableSetColSpacings :: TableClass self => self -> Int -> IO ()

-- | Gets the default column spacing for the table. This is the spacing
--   that will be used for newly added columns. (See
--   tableSetColSpacings)
tableGetDefaultColSpacing :: TableClass self => self -> IO Int

-- | Changes the homogeneous property of table cells, ie. whether all cells
--   are an equal size or not.
tableSetHomogeneous :: TableClass self => self -> Bool -> IO ()

-- | Returns whether the table cells are all constrained to the same width
--   and height. (See tableSetHomogeneous)
tableGetHomogeneous :: TableClass self => self -> IO Bool

-- | Returns the size of Table.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
tableGetSize :: TableClass self => self -> IO (Int, Int)

-- | The number of rows in the table.
--   
--   Default value: 0
tableNRows :: TableClass self => Attr self Int

-- | The number of columns in the table.
--   
--   Default value: 0
tableNColumns :: TableClass self => Attr self Int

-- | The amount of space between two consecutive rows.
--   
--   Default value: 0
tableRowSpacing :: TableClass self => Attr self Int

-- | The amount of space between two consecutive columns.
--   
--   Default value: 0
tableColumnSpacing :: TableClass self => Attr self Int

-- | If True this means the table cells are all the same
--   width/height.
--   
--   Default value: False
tableHomogeneous :: TableClass self => Attr self Bool

-- | The column number to attach the left side of the child to.
--   
--   Allowed values: <= 65535
--   
--   Default value: 0
tableChildLeftAttach :: (TableClass self, WidgetClass child) => child -> Attr self Int

-- | The column number to attach the right side of a child widget to.
--   
--   Allowed values: [1,65535]
--   
--   Default value: 1
tableChildRightAttach :: (TableClass self, WidgetClass child) => child -> Attr self Int

-- | The row number to attach the top of a child widget to.
--   
--   Allowed values: <= 65535
--   
--   Default value: 0
tableChildTopAttach :: (TableClass self, WidgetClass child) => child -> Attr self Int

-- | The row number to attach the bottom of the child to.
--   
--   Allowed values: [1,65535]
--   
--   Default value: 1
tableChildBottomAttach :: (TableClass self, WidgetClass child) => child -> Attr self Int

-- | Options specifying the horizontal behaviour of the child.
--   
--   Default value: [Expand, Fill]
tableChildXOptions :: (TableClass self, WidgetClass child) => child -> Attr self [AttachOptions]

-- | Options specifying the vertical behaviour of the child.
--   
--   Default value: [Expand, Fill]
tableChildYOptions :: (TableClass self, WidgetClass child) => child -> Attr self [AttachOptions]

-- | Extra space to put between the child and its left and right neighbors,
--   in pixels.
--   
--   Allowed values: <= 65535
--   
--   Default value: 0
tableChildXPadding :: (TableClass self, WidgetClass child) => child -> Attr self Int

-- | Extra space to put between the child and its upper and lower
--   neighbors, in pixels.
--   
--   Allowed values: <= 65535
--   
--   Default value: 0
tableChildYPadding :: (TableClass self, WidgetClass child) => child -> Attr self Int

-- | A tabbed notebook container
module Graphics.UI.Gtk.Layout.Notebook
data Notebook
class ContainerClass o => NotebookClass o
castToNotebook :: GObjectClass obj => obj -> Notebook
gTypeNotebook :: GType
toNotebook :: NotebookClass o => o -> Notebook

-- | Creates a new Notebook widget with no pages.
notebookNew :: IO Notebook

-- | Appends a page to notebook.
--   
--   The given label will be used for the label widget of the new tab. In
--   case the context menu is enabled, this name will also appear in the
--   popup menu. If you want to specify something else to go in the tab,
--   use notebookAppendPageMenu.
--   
--   
--   
- This function returned () in Gtk+ version 2.2.X and
--   earlier
--   
notebookAppendPage :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> IO Int

-- | Appends a page to notebook, specifying the widget to use as
--   the label in the popup menu.
--   
--   Like notebookAppendPage but allows any widget to be used for
--   the label of the new tab and the entry in the page-switch popup menu.
--   
--   
--   
- This function returned () in Gtk version 2.2.X and
--   earlier
--   
notebookAppendPageMenu :: (NotebookClass self, WidgetClass child, WidgetClass tabLabel, WidgetClass menuLabel) => self -> child -> tabLabel -> menuLabel -> IO Int

-- | Prepends a page to notebook.
--   
--   
--   
- The given label will be used for the label widget of the new tab.
--   In case the context menu is enabled, this name will also appear in the
--   popup menu. If you want to specify something else to go in the tab,
--   use notebookPrependPageMenu.
--   
- This function returned () in Gtk version 2.2.X and
--   earlier
--   
notebookPrependPage :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> IO Int

-- | Prepends a page to notebook, specifying the widget to use as
--   the label in the popup menu.
--   
--   Like notebookPrependPage but allows any widget to be used for
--   the label of the new tab and then entry in the page-switch popup menu.
--   
--   
--   
- This function returned () in Gtk version 2.2.X and
--   earlier
--   
notebookPrependPageMenu :: (NotebookClass self, WidgetClass child, WidgetClass tabLabel, WidgetClass menuLabel) => self -> child -> tabLabel -> menuLabel -> IO Int

-- | Insert a page into notebook at the given position.
--   
--   
--   
- The given label will be used for the label widget of the new tab.
--   In case the context menu is enabled, this name will also appear in the
--   popup menu. If you want to specify something else to go in the tab,
--   use notebookInsertPageMenu.
--   
- This function returned () in Gtk version 2.2.X and
--   earlier
--   
notebookInsertPage :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> Int -> IO Int

-- | Insert a page into notebook at the given position, specifying
--   the widget to use as the label in the popup menu.
--   
--   Like notebookInsertPage but allows any widget to be used for
--   the label of the new tab and then entry in the page-switch popup menu.
--   
--   
--   
- This function returned () in Gtk version 2.2.X and
--   earlier
--   
notebookInsertPageMenu :: (NotebookClass self, WidgetClass child, WidgetClass tabLabel, WidgetClass menuLabel) => self -> child -> tabLabel -> menuLabel -> Int -> IO Int

-- | Removes a page from the notebook given its index in the notebook.
notebookRemovePage :: NotebookClass self => self -> Int -> IO ()

-- | Query the page the child widget is contained in.
--   
--   
--   
- The function returns the page number if the child was found,
--   Nothing otherwise.
--   
notebookPageNum :: (NotebookClass self, WidgetClass w) => self -> w -> IO (Maybe Int)

-- | Switches to the page number pageNum. Page numbers start from
--   0. Use -1 to request the last page.
--   
--   
--   
- Note that due to historical reasons, GtkNotebook refuses to switch
--   to a page unless the child widget is visible. Therefore, it is
--   recommended to show child widgets before adding them to a
--   notebook.
--   
notebookSetCurrentPage :: NotebookClass self => self -> Int -> IO ()

-- | Switches to the next page. Nothing happens if the current page is the
--   last page.
notebookNextPage :: NotebookClass self => self -> IO ()

-- | Switches to the previous page. Nothing happens if the current page is
--   the first page.
notebookPrevPage :: NotebookClass self => self -> IO ()

-- | Reorders the page containing child, so that it appears in
--   position position. If position is greater than or
--   equal to the number of children in the list or negative,
--   child will be moved to the end of the list.
notebookReorderChild :: (NotebookClass self, WidgetClass child) => self -> child -> Int -> IO ()

-- | Position a scale's value is drawn relative to the through
data PositionType
PosLeft :: PositionType
PosRight :: PositionType
PosTop :: PositionType
PosBottom :: PositionType

-- | Sets the edge at which the tabs for switching pages in the notebook
--   are drawn.
notebookSetTabPos :: NotebookClass self => self -> PositionType -> IO ()

-- | Gets the edge at which the tabs for switching pages in the notebook
--   are drawn.
notebookGetTabPos :: NotebookClass self => self -> IO PositionType

-- | Sets whether to show the tabs for the notebook or not.
notebookSetShowTabs :: NotebookClass self => self -> Bool -> IO ()

-- | Returns whether the tabs of the notebook are shown. See
--   notebookSetShowTabs.
notebookGetShowTabs :: NotebookClass self => self -> IO Bool

-- | Sets whether a bevel will be drawn around the notebook pages. This
--   only has a visual effect when the tabs are not shown. See
--   notebookSetShowTabs.
notebookSetShowBorder :: NotebookClass self => self -> Bool -> IO ()

-- | Returns whether a bevel will be drawn around the notebook pages. See
--   notebookSetShowBorder.
notebookGetShowBorder :: NotebookClass self => self -> IO Bool

-- | Sets whether the tab label area will have arrows for scrolling if
--   there are too many tabs to fit in the area.
notebookSetScrollable :: NotebookClass self => self -> Bool -> IO ()

-- | Returns whether the tab label area has arrows for scrolling. See
--   notebookSetScrollable.
notebookGetScrollable :: NotebookClass self => self -> IO Bool

-- | Enables or disables the popup menu: if the user clicks with the right
--   mouse button on the bookmarks, a menu with all the pages will be
--   popped up.
notebookSetPopup :: NotebookClass self => self -> Bool -> IO ()

-- | Returns the page number of the current page.
notebookGetCurrentPage :: NotebookClass self => self -> IO Int

-- | Changes the menu label for the page containing child.
notebookSetMenuLabel :: (NotebookClass self, WidgetClass child, WidgetClass menuLabel) => self -> child -> Maybe menuLabel -> IO ()

-- | Retrieves the menu label widget of the page containing child.
notebookGetMenuLabel :: (NotebookClass self, WidgetClass child) => self -> child -> IO (Maybe Widget)

-- | Creates a new label and sets it as the menu label of child.
notebookSetMenuLabelText :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> IO ()

-- | Retrieves the text of the menu label for the page containing
--   child.
notebookGetMenuLabelText :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> IO (Maybe string)

-- | Returns the child widget contained in page number pageNum.
notebookGetNthPage :: NotebookClass self => self -> Int -> IO (Maybe Widget)

-- | Gets the number of pages in a notebook.
--   
--   
--   
- Available since Gtk version 2.2
--   
notebookGetNPages :: NotebookClass self => self -> IO Int

-- | Returns the tab label widget for the page child.
--   Nothing is returned if child is not in
--   notebook or if no tab label has specifically been set for
--   child.
notebookGetTabLabel :: (NotebookClass self, WidgetClass child) => self -> child -> IO (Maybe Widget)

-- | Retrieves the text of the tab label for the page containing
--   child.
notebookGetTabLabelText :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> IO (Maybe string)

-- | Packing parameters of a widget
--   
--   
--   
- The Packing parameter determines how the child behaves in
--   the horizontal or vertical way in an HBox or VBox,
--   respectively. PackNatural means the child is as big as it
--   requests. It will stay at the start or end of a 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 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.
--   
data Packing
PackRepel :: Packing
PackGrow :: Packing
PackNatural :: Packing

-- | Packing of widgets at start or end in a box
data PackType
PackStart :: PackType
PackEnd :: PackType

-- | Changes the tab label for child.
notebookSetTabLabel :: (NotebookClass self, WidgetClass child, WidgetClass tabLabel) => self -> child -> tabLabel -> IO ()

-- | Creates a new label and sets it as the tab label for the page
--   containing child.
notebookSetTabLabelText :: (NotebookClass self, WidgetClass child, GlibString string) => self -> child -> string -> IO ()

-- | Sets whether the notebook tab can be reordered via drag and drop or
--   not.
--   
--   
--   
- Available since Gtk version 2.10
--   
notebookSetTabReorderable :: (NotebookClass self, WidgetClass child) => self -> child -> Bool -> IO ()

-- | Gets whether the tab can be reordered via drag and drop or not.
--   
--   
--   
- Available since Gtk version 2.10
--   
notebookGetTabReorderable :: (NotebookClass self, WidgetClass child) => self -> child -> IO Bool

-- | Sets whether the tab can be detached from notebook to another notebook
--   or widget.
--   
--   Note that 2 notebooks must share a common group identificator (see
--   gtk_notebook_set_group_id()) to allow automatic tabs interchange
--   between them.
--   
--   If you want a widget to interact with a notebook through DnD (i.e.:
--   accept dragged tabs from it) it must be set as a drop destination and
--   accept the target GTK_NOTEBOOK_TAB. The notebook will fill the
--   selection with a GtkWidget** pointing to the child widget that
--   corresponds to the dropped tab.
--   
--   If you want a notebook to accept drags from other widgets, you will
--   have to set your own DnD code to do it.
--   
--   
--   
- Available since Gtk version 2.10
--   
notebookSetTabDetachable :: (NotebookClass self, WidgetClass child) => self -> child -> Bool -> IO ()

-- | Returns whether the tab contents can be detached from notebook.
--   
--   
--   
- Available since Gtk version 2.10
--   
notebookGetTabDetachable :: (NotebookClass self, WidgetClass child) => self -> child -> IO Bool

-- | Sets widget as one of the action widgets. Depending on the pack type
--   the widget will be placed before or after the tabs. You can use a
--   Box if you need to pack more than one widget on the same side.
--   
--   Note that action widgets are "internal" children of the notebook and
--   thus not included in the list returned from containerForeach.
--   
--   
--   
- Available since Gtk version 2.20
--   
notebookSetActionWidget :: (NotebookClass self, WidgetClass widget) => self -> widget -> PackType -> IO ()

-- | Gets one of the action widgets. See notebookSetActionWidget.
--   
--   
--   
- Available since Gtk version 2.20
--   
notebookGetActionWidget :: NotebookClass self => self -> PackType -> IO (Maybe Widget)

-- | The index of the current page.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
notebookPage :: NotebookClass self => Attr self Int

-- | Which side of the notebook holds the tabs.
--   
--   Default value: PosTop
notebookTabPos :: NotebookClass self => Attr self PositionType

-- | Width of the border around the tab labels.
--   
--   Default value: 2
notebookTabBorder :: NotebookClass self => WriteAttr self Int

-- | Width of the horizontal border of tab labels.
--   
--   Default value: 2
notebookTabHborder :: NotebookClass self => Attr self Int

-- | Width of the vertical border of tab labels.
--   
--   Default value: 2
notebookTabVborder :: NotebookClass self => Attr self Int

-- | Whether tabs should be shown or not.
--   
--   Default value: True
notebookShowTabs :: NotebookClass self => Attr self Bool

-- | Whether the border should be shown or not.
--   
--   Default value: True
notebookShowBorder :: NotebookClass self => Attr self Bool

-- | If True, scroll arrows are added if there are too many tabs
--   to fit.
--   
--   Default value: False
notebookScrollable :: NotebookClass self => Attr self Bool

-- | If True, pressing the right mouse button on the notebook pops
--   up a menu that you can use to go to a page.
--   
--   Default value: False
notebookEnablePopup :: NotebookClass self => Attr self Bool

-- | Whether tabs should have homogeneous sizes.
--   
--   Default value: False
notebookHomogeneous :: NotebookClass self => Attr self Bool

-- | Switches to the page number pageNum.
--   
--   Note that due to historical reasons, Notebook refuses to switch
--   to a page unless the child widget is visible. Therefore, it is
--   recommended to show child widgets before adding them to a notebook.
--   
--   Returns the page number of the current page.
notebookCurrentPage :: NotebookClass self => Attr self Int

-- | The string displayed on the child's tab label.
--   
--   Default value: Nothing
notebookChildTabLabel :: (NotebookClass self, WidgetClass child, GlibString string) => child -> Attr self string

-- | The string displayed in the child's menu entry.
--   
--   Default value: Nothing
notebookChildMenuLabel :: (NotebookClass self, WidgetClass child, GlibString string) => child -> Attr self string

-- | The index of the child in the parent.
--   
--   Allowed values: >= -1
--   
--   Default value: 0
notebookChildPosition :: (NotebookClass self, WidgetClass child) => child -> Attr self Int

-- | The packing style of the child's tab.
--   
--   Default value: PackGrow
notebookChildTabPacking :: (NotebookClass self, WidgetClass child) => child -> Attr self Packing

-- | A PackType indicating whether the child is packed with
--   reference to the start or end of the parent.
--   
--   Default value: PackStart
notebookChildTabPackType :: (NotebookClass self, WidgetClass child) => child -> Attr self PackType

-- | Whether the tab is detachable.
--   
--   Default value: False
notebookChildDetachable :: NotebookClass self => Attr self Bool

-- | Whether the tab is reorderable by user action or not.
--   
--   Default value: False
notebookChildReorderable :: NotebookClass self => Attr self Bool

-- | Whether to expand the child's tab or not.
--   
--   Default value : False
notebookChildTabExpand :: NotebookClass self => Attr self Bool

-- | Whether the child's tab should fill the allocated area or not.
--   
--   Default value : False
notebookChildTabFill :: NotebookClass self => Attr self Bool

-- | The notebookStyleArrowSpacing property defines the spacing
--   between the scroll arrows and the tabs.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk version 2.10
--   
notebookStyleArrowSpacing :: NotebookClass self => ReadAttr self Bool

-- | The notebookStyleHasBackwardStepper property determines whether
--   the standard backward arrow button is displayed.
--   
--   Default value: True
--   
--   
--   
- Available since Gtk version 2.4
--   
notebookStyleHasBackwardStepper :: NotebookClass self => ReadAttr self Bool

-- | The notebookStyleHasForwardStepper property determines whether
--   the standard forward arrow button is displayed.
--   
--   Default value : True
--   
--   
--   
- Available since Gtk version 2.4
--   
notebookStyleHasForwardStepper :: NotebookClass self => ReadAttr self Bool

-- | The notebookStyleHasSecondaryBackwardStepper property
--   determines whether a second backward arrow button is displayed on the
--   opposite end of the tab area.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk version 2.4
--   
notebookStyleHasSecondaryBackwardStepper :: NotebookClass self => ReadAttr self Bool

-- | The notebookStyleHasSecondaryForwardStepper property determines
--   whether a second forward arrow button is displayed on the opposite end
--   of the tab area.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk version 2.4
--   
notebookStyleHasSecondaryForwardStepper :: NotebookClass self => ReadAttr self Bool

-- | The notebookStyleTabCurvature property defines size of tab
--   curvature.
--   
--   Allowed values: >= 0
--   
--   Default value: 1
--   
--   
--   
- Available since Gtk version 2.10
--   
notebookStyleTabCurvature :: NotebookClass self => ReadAttr self Int

-- | The notebookStyleTabOverlap property defines size of tab
--   overlap area.
--   
--   Default value: 2
--   
--   
--   
- Available since Gtk version 2.10
--   
notebookStyleTabOverlap :: NotebookClass self => ReadAttr self Int

-- | Emitted when the user or a function changes the current page.
switchPage :: NotebookClass self => Signal self (Int -> IO ())

-- | The pageAdded signal is emitted in the notebook right after a
--   page is added to the notebook.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
pageAdded :: NotebookClass self => Signal self (Widget -> Int -> IO ())

-- | The pageRemoved signal is emitted in the notebook right after a
--   page is removed from the notebook.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
pageRemoved :: NotebookClass self => Signal self (Widget -> Int -> IO ())

-- | The pageReordered signal is emitted in the notebook right after
--   a page has been reordered.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
pageReordered :: NotebookClass self => Signal self (Widget -> Int -> IO ())

-- | Infinite scrollable area containing child widgets and/or custom
--   drawing
module Graphics.UI.Gtk.Layout.Layout
data Layout
class ContainerClass o => LayoutClass o
castToLayout :: GObjectClass obj => obj -> Layout
gTypeLayout :: GType
toLayout :: LayoutClass o => o -> Layout

-- | Creates a new Layout. Unless you have a specific adjustment
--   you'd like the layout to use for scrolling, pass Nothing for
--   hadjustment and vadjustment.
layoutNew :: Maybe Adjustment -> Maybe Adjustment -> IO Layout

-- | Adds childWidget to layout, at position
--   (x,y). layout becomes the new parent container of
--   childWidget.
layoutPut :: (LayoutClass self, WidgetClass childWidget) => self -> childWidget -> Int -> Int -> IO ()

-- | Moves a current child of layout to a new position.
layoutMove :: (LayoutClass self, WidgetClass childWidget) => self -> childWidget -> Int -> Int -> IO ()

-- | Sets the size of the scrollable area of the layout.
layoutSetSize :: LayoutClass self => self -> Int -> Int -> IO ()

-- | Gets the size that has been set on the layout, and that determines the
--   total extents of the layout's scrollbar area. See
--   layoutSetSize.
layoutGetSize :: LayoutClass self => self -> IO (Int, Int)

-- | This function should only be called after the layout has been placed
--   in a ScrolledWindow or otherwise configured for scrolling. It
--   returns the Adjustment used for communication between the
--   horizontal scrollbar and layout.
--   
--   See ScrolledWindow, Scrollbar, Adjustment for
--   details.
layoutGetHAdjustment :: LayoutClass self => self -> IO Adjustment

-- | This function should only be called after the layout has been placed
--   in a ScrolledWindow or otherwise configured for scrolling. It
--   returns the Adjustment used for communication between the
--   vertical scrollbar and layout.
--   
--   See ScrolledWindow, Scrollbar, Adjustment for
--   details.
layoutGetVAdjustment :: LayoutClass self => self -> IO Adjustment

-- | Sets the horizontal scroll adjustment for the layout.
--   
--   See ScrolledWindow, Scrollbar, Adjustment for
--   details.
layoutSetHAdjustment :: LayoutClass self => self -> Adjustment -> IO ()

-- | Sets the vertical scroll adjustment for the layout.
--   
--   See ScrolledWindow, Scrollbar, Adjustment for
--   details.
layoutSetVAdjustment :: LayoutClass self => self -> Adjustment -> IO ()

-- | Retrieves the Drawable part of the layout used for drawing
--   operations.
layoutGetDrawWindow :: Layout -> IO DrawWindow

-- | The Adjustment for the horizontal position.
layoutHAdjustment :: LayoutClass self => Attr self Adjustment

-- | The Adjustment for the vertical position.
layoutVAdjustment :: LayoutClass self => Attr self Adjustment

-- | The width of the layout.
--   
--   Allowed values: <= (maxBound :: Int)
--   
--   Default value: 100
layoutWidth :: LayoutClass self => Attr self Int

-- | The height of the layout.
--   
--   Allowed values: <= (maxBound :: Int)
--   
--   Default value: 100
layoutHeight :: LayoutClass self => Attr self Int

-- | X position of child widget.
--   
--   Default value: 0
layoutChildX :: (LayoutClass self, WidgetClass child) => child -> Attr self Int

-- | Y position of child widget.
--   
--   Default value: 0
layoutChildY :: (LayoutClass self, WidgetClass child) => child -> Attr self Int

-- | In case the adjustments are replaced, this signal is emitted.
onSetScrollAdjustments :: LayoutClass self => self -> (Adjustment -> Adjustment -> IO ()) -> IO (ConnectId self)

-- | In case the adjustments are replaced, this signal is emitted.
afterSetScrollAdjustments :: LayoutClass self => self -> (Adjustment -> Adjustment -> IO ()) -> IO (ConnectId self)

-- | A container which allows you to position widgets at fixed coordinates
module Graphics.UI.Gtk.Layout.Fixed
data Fixed
class ContainerClass o => FixedClass o
castToFixed :: GObjectClass obj => obj -> Fixed
gTypeFixed :: GType
toFixed :: FixedClass o => o -> Fixed

-- | Creates a new Fixed.
fixedNew :: IO Fixed

-- | Adds a widget to a Fixed container at the given position.
fixedPut :: (FixedClass self, WidgetClass widget) => self -> widget -> (Int, Int) -> IO ()

-- | Moves a child of a Fixed container to the given position.
fixedMove :: (FixedClass self, WidgetClass widget) => self -> widget -> (Int, Int) -> IO ()

-- | X position of child widget.
--   
--   Default value: 0
fixedChildX :: (FixedClass self, WidgetClass child) => child -> Attr self Int

-- | Y position of child widget.
--   
--   Default value: 0
fixedChildY :: (FixedClass self, WidgetClass child) => child -> Attr self Int

-- | Base class for widgets with two adjustable panes
module Graphics.UI.Gtk.Abstract.Paned
data Paned
class ContainerClass o => PanedClass o
castToPaned :: GObjectClass obj => obj -> Paned
gTypePaned :: GType
toPaned :: PanedClass o => o -> Paned

-- | Adds a child to the top or left pane with default parameters. This is
--   equivalent to panedPack1 paned child False True.
panedAdd1 :: (PanedClass self, WidgetClass child) => self -> child -> IO ()

-- | Adds a child to the bottom or right pane with default parameters. This
--   is equivalent to panedPack2 paned child True True.
panedAdd2 :: (PanedClass self, WidgetClass child) => self -> child -> IO ()

-- | Adds a child to the top or left pane.
panedPack1 :: (PanedClass self, WidgetClass child) => self -> child -> Bool -> Bool -> IO ()

-- | Adds a child to the bottom or right pane.
panedPack2 :: (PanedClass self, WidgetClass child) => self -> child -> Bool -> Bool -> IO ()

-- | Sets the position of the divider between the two panes.
panedSetPosition :: PanedClass self => self -> Int -> IO ()

-- | Obtains the position of the divider between the two panes.
panedGetPosition :: PanedClass self => self -> IO Int

-- | Obtains the first child of the paned widget.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
panedGetChild1 :: PanedClass self => self -> IO (Maybe Widget)

-- | Obtains the second child of the paned widget.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
panedGetChild2 :: PanedClass self => self -> IO (Maybe Widget)

-- | Returns the Window of the handle. This function is useful when
--   handling button or motion events because it enables the callback to
--   distinguish between the window of the paned, a child and the handle.
panedGetHandleWindow :: PanedClass self => self -> IO DrawWindow

-- | Position of paned separator in pixels (0 means all the way to the
--   left/top).
--   
--   Allowed values: >= 0
--   
--   Default value: 0
panedPosition :: PanedClass self => Attr self Int

-- | True if the Position property should be used.
--   
--   Default value: False
panedPositionSet :: PanedClass self => Attr self Bool

-- | The smallest possible value for the position property. This property
--   is derived from the size and shrinkability of the widget's children.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
panedMinPosition :: PanedClass self => ReadAttr self Int

-- | The largest possible value for the position property. This property is
--   derived from the size and shrinkability of the widget's children.
--   
--   Allowed values: >= 0
--   
--   Default value: 2147483647
panedMaxPosition :: PanedClass self => ReadAttr self Int

-- | The "resize" child property determines whether the child expands and
--   shrinks along with the paned widget.
--   
--   Default value: True
panedChildResize :: (PanedClass self, WidgetClass child) => child -> Attr self Bool

-- | The "shrink" child property determines whether the child can be made
--   smaller than its requisition.
--   
--   Default value: True
panedChildShrink :: (PanedClass self, WidgetClass child) => child -> Attr self Bool

-- | Base class for widgets which contain other widgets
module Graphics.UI.Gtk.Abstract.Container
data Container
class WidgetClass o => ContainerClass o
castToContainer :: GObjectClass obj => obj -> Container
gTypeContainer :: GType
toContainer :: ContainerClass o => o -> Container

-- | A function that is invoked for all widgets in a container.
type ContainerForeachCB = Widget -> IO ()

-- | Resize mode, for containers
--   
--   
--   
- ResizeParent Pass resize request to the parent
--   
- ResizeQueue Queue resizes on this widget
--   
- ResizeImmediate Perform the resizes now
--   
data ResizeMode
ResizeParent :: ResizeMode
ResizeQueue :: ResizeMode
ResizeImmediate :: ResizeMode

-- | Adds widget to the container. Typically used for simple
--   containers such as Window, Frame, or Button; for
--   more complicated layout containers such as Box or Table,
--   this function will pick default packing parameters that may not be
--   correct. So consider functions such as boxPackStart and
--   tableAttach as an alternative to containerAdd in those
--   cases. A widget may be added to only one container at a time; you
--   can't place the same widget inside two different containers.
containerAdd :: (ContainerClass self, WidgetClass widget) => self -> widget -> IO ()

-- | Removes widget from container. widget must
--   be inside container.
containerRemove :: (ContainerClass self, WidgetClass widget) => self -> widget -> IO ()

-- | Maps callback over each non-internal child of
--   container. See containerForall for details on what
--   constitutes an "internal" child. Most applications should use
--   containerForeach, rather than containerForall.
containerForeach :: ContainerClass self => self -> ContainerForeachCB -> IO ()

-- | Maps callback over each child of container,
--   including children that are considered "internal" (implementation
--   details of the container). "Internal" children generally weren't added
--   by the user of the container, but were added by the container
--   implementation itself. Most applications should use
--   containerForeach, rather than containerForall.
containerForall :: ContainerClass self => self -> ContainerForeachCB -> IO ()

-- | Returns the container's non-internal children. See
--   containerForall for details on what constitutes an "internal"
--   child.
containerGetChildren :: ContainerClass self => self -> IO [Widget]

-- | Give the focus to a specific child of the container.
containerSetFocusChild :: (ContainerClass self, WidgetClass child) => self -> child -> IO ()

-- | Sets a focus chain, overriding the one computed automatically by Gtk+.
--   
--   In principle each widget in the chain should be a descendant of the
--   container, but this is not enforced by this method, since it's allowed
--   to set the focus chain before you pack the widgets, or have a widget
--   in the chain that isn't always packed. The necessary checks are done
--   when the focus chain is actually traversed.
containerSetFocusChain :: ContainerClass self => self -> [Widget] -> IO ()

-- | Retrieves the focus chain of the container, if one has been set
--   explicitly. If no focus chain has been explicitly set, Gtk+ computes
--   the focus chain based on the positions of the children. In that case
--   the function returns Nothing.
containerGetFocusChain :: ContainerClass self => self -> IO (Maybe [Widget])

-- | Removes a focus chain explicitly set with
--   containerSetFocusChain.
containerUnsetFocusChain :: ContainerClass self => self -> IO ()

-- | Hooks up an adjustment to focus handling in a container, so when a
--   child of the container is focused, the adjustment is scrolled to show
--   that widget. This function sets the vertical alignment. See
--   scrolledWindowGetVAdjustment for a typical way of obtaining
--   the adjustment and containerSetFocusHAdjustment for setting the
--   horizontal adjustment.
--   
--   The adjustments have to be in pixel units and in the same coordinate
--   system as the allocation for immediate children of the container.
containerSetFocusVAdjustment :: ContainerClass self => self -> Adjustment -> IO ()

-- | Retrieves the vertical focus adjustment for the container. See
--   containerSetFocusVAdjustment.
containerGetFocusVAdjustment :: ContainerClass self => self -> IO (Maybe Adjustment)

-- | Hooks up an adjustment to focus handling in a container, so when a
--   child of the container is focused, the adjustment is scrolled to show
--   that widget. This function sets the horizontal alignment. See
--   scrolledWindowGetHAdjustment for a typical way of obtaining
--   the adjustment and containerSetFocusVAdjustment for setting the
--   vertical adjustment.
--   
--   The adjustments have to be in pixel units and in the same coordinate
--   system as the allocation for immediate children of the container.
containerSetFocusHAdjustment :: ContainerClass self => self -> Adjustment -> IO ()

-- | Retrieves the horizontal focus adjustment for the container. See
--   containerSetFocusHAdjustment.
containerGetFocusHAdjustment :: ContainerClass self => self -> IO (Maybe Adjustment)

-- | Make the container resize its children.
containerResizeChildren :: ContainerClass self => self -> IO ()

-- | Sets the border width of the container.
--   
--   The border width of a container is the amount of space to leave around
--   the outside of the container. The only exception to this is
--   Window; because toplevel windows can't leave space outside,
--   they leave the space inside. The border is added on all sides of the
--   container. To add space to only one side, one approach is to create a
--   Alignment widget, call widgetSetSizeRequest to give it
--   a size, and place it on the side of the container as a spacer.
containerSetBorderWidth :: ContainerClass self => self -> Int -> IO ()

-- | Retrieves the border width of the container. See
--   containerSetBorderWidth.
containerGetBorderWidth :: ContainerClass self => self -> IO Int

-- | Returns the resize mode for the container. See
--   containerSetResizeMode.
containerGetResizeMode :: ContainerClass self => self -> IO ResizeMode

-- | Sets the resize mode for the container.
--   
--   The resize mode of a container determines whether a resize request
--   will be passed to the container's parent, queued for later execution
--   or executed immediately.
containerSetResizeMode :: ContainerClass self => self -> ResizeMode -> IO ()

-- | Specify how resize events are handled.
--   
--   Default value: ResizeParent
containerResizeMode :: ContainerClass self => Attr self ResizeMode

-- | The width of the empty border outside the containers children.
--   
--   Allowed values: <= (maxBound :: Int)
--   
--   Default value: 0
containerBorderWidth :: ContainerClass self => Attr self Int

-- | Can be used to add a new child to the container.
containerChild :: (ContainerClass self, WidgetClass widget) => WriteAttr self widget

-- | 'focusHadjustment' property. See containerGetFocusHAdjustment
--   and containerSetFocusHAdjustment
containerFocusHAdjustment :: ContainerClass self => ReadWriteAttr self (Maybe Adjustment) Adjustment

-- | 'focusVadjustment' property. See containerGetFocusVAdjustment
--   and containerSetFocusVAdjustment
containerFocusVAdjustment :: ContainerClass self => ReadWriteAttr self (Maybe Adjustment) Adjustment

-- | A widget was added to the container.
add :: ContainerClass self => Signal self (Widget -> IO ())

-- | Emitted when widgets need to be queried again for their preferred
--   size.
checkResize :: ContainerClass self => Signal self (IO ())

-- | A widget was removed from the container.
remove :: ContainerClass self => Signal self (Widget -> IO ())

-- | A widget in the container received or lost the input focus.
setFocusChild :: ContainerClass self => Signal self (Maybe Widget -> IO ())

-- | Base class for HButtonBox and VButtonBox
module Graphics.UI.Gtk.Abstract.ButtonBox
data ButtonBox
class BoxClass o => ButtonBoxClass o
castToButtonBox :: GObjectClass obj => obj -> ButtonBox
gTypeButtonBox :: GType
toButtonBox :: ButtonBoxClass o => o -> ButtonBox

-- | Dictate the style that a ButtonBox uses to align it contents
data ButtonBoxStyle
ButtonboxSpread :: ButtonBoxStyle
ButtonboxEdge :: ButtonBoxStyle
ButtonboxStart :: ButtonBoxStyle
ButtonboxEnd :: ButtonBoxStyle
ButtonboxCenter :: ButtonBoxStyle
ButtonboxExpand :: ButtonBoxStyle

-- | Retrieves the method being used to arrange the buttons in the button
--   box.
buttonBoxGetLayout :: ButtonBoxClass self => self -> IO ButtonBoxStyle

-- | Changes the way buttons are arranged in their container.
buttonBoxSetLayout :: ButtonBoxClass self => self -> ButtonBoxStyle -> IO ()

-- | Sets whether child should appear in a secondary group of
--   children. A typical use of a secondary child is the help button in a
--   dialog.
--   
--   This group appears after the other children if the style is
--   ButtonboxStart, ButtonboxSpread or ButtonboxEdge,
--   and before the other children if the style is ButtonboxEnd. For
--   horizontal button boxes, the definition of before/after depends on
--   direction of the widget (see widgetSetDirection). If the
--   style is ButtonboxStart or ButtonboxEnd, then the
--   secondary children are aligned at the other end of the button box from
--   the main children. For the other styles, they appear immediately next
--   to the main children.
buttonBoxSetChildSecondary :: (ButtonBoxClass self, WidgetClass child) => self -> child -> Bool -> IO ()

-- | Returns whether child should appear in a secondary group of
--   children.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
buttonBoxGetChildSecondary :: (ButtonBoxClass self, WidgetClass child) => self -> child -> IO Bool

-- | Sets whether the child is exempted from homogeous sizing.
buttonBoxSetChildNonHomogeneous :: (ButtonBoxClass self, WidgetClass child) => self -> child -> Bool -> IO ()

-- | Returns whether the child is exempted from homogeneous sizing.
buttonBoxGetChildNonHomogeneous :: (ButtonBoxClass self, WidgetClass child) => self -> child -> IO Bool

-- | How to layout the buttons in the box. Possible values are default,
--   spread, edge, start and end.
--   
--   Default value: ButtonboxDefaultStyle
buttonBoxLayoutStyle :: ButtonBoxClass self => Attr self ButtonBoxStyle

-- | If True, the child appears in a secondary group of children,
--   suitable for, e.g., help buttons.
--   
--   Default value: False
buttonBoxChildSecondary :: (ButtonBoxClass self, WidgetClass child) => child -> Attr self Bool

-- | If True, the child will not be subject to homogeneous sizing.
--   
--   Default value: False
buttonBoxChildNonHomogeneous :: (ButtonBoxClass self, WidgetClass child) => child -> Attr self Bool

-- | Base class for box containers
module Graphics.UI.Gtk.Abstract.Box
data Box
class ContainerClass o => BoxClass o
castToBox :: GObjectClass obj => obj -> Box
gTypeBox :: GType
toBox :: BoxClass o => o -> Box

-- | Packing parameters of a widget
--   
--   
--   
- The Packing parameter determines how the child behaves in
--   the horizontal or vertical way in an HBox or VBox,
--   respectively. PackNatural means the child is as big as it
--   requests. It will stay at the start or end of a 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 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.
--   
data Packing
PackRepel :: Packing
PackGrow :: Packing
PackNatural :: Packing

-- | Adds the child widget to the box, packed with reference to
--   the start of the box. The child is packed after any other
--   child packed with reference to the start of the box.
boxPackStart :: (BoxClass self, WidgetClass child) => self -> child -> Packing -> Int -> IO ()

-- | Adds the child widget to the box, packed with reference to
--   the end of the box. The child is packed after (away from end
--   of) any other child packed with reference to the end of the box.
--   
--   Note that for boxPackEnd the PackNatural option will
--   move a child to the right in an HBox or to the bottom in an
--   VBox if there is more space available.
boxPackEnd :: (BoxClass self, WidgetClass child) => self -> child -> Packing -> Int -> IO ()

-- | Returns whether the box is homogeneous (all children are the same
--   size). See boxSetHomogeneous.
boxGetHomogeneous :: BoxClass self => self -> IO Bool

-- | Sets the homogeneous property, controlling whether or not all children
--   of the box are given equal space
boxSetHomogeneous :: BoxClass self => self -> Bool -> IO ()

-- | Retrieves the standard spacing between widgets.
boxGetSpacing :: BoxClass self => self -> IO Int

-- | Set the standard spacing between two children.
--   
--   This space is in addition to the padding parameter that is given for
--   each child.
boxSetSpacing :: BoxClass self => self -> Int -> IO ()

-- | Moves child to a new position in the list of
--   box children. The list contains both widgets packed
--   PackStart as well as widgets packed PackEnd, in the
--   order that these widgets were added to the box.
--   
--   A widget's position in the box children list determines where the
--   widget is packed into the box. A child widget at some position in the
--   list will be packed just after all other widgets of the same packing
--   type that appear earlier in the list.
boxReorderChild :: (BoxClass self, WidgetClass child) => self -> child -> Int -> IO ()

-- | Returns information about how child is packed into the box.
--   
--   Returns information on the behaviour if free space is available (in
--   Packing), the additional padding for this widget and if the
--   widget was inserted at the start or end of the container
--   (PackType).
boxQueryChildPacking :: (BoxClass self, WidgetClass child) => self -> child -> IO (Packing, Int, PackType)

-- | Sets the way child is packed into the box.
boxSetChildPacking :: (BoxClass self, WidgetClass child) => self -> child -> Packing -> Int -> PackType -> IO ()

-- | Gets the value set by boxSetBaselinePosition
boxGetBaselinePosition :: BoxClass self => self -> IO BaselinePosition

-- | Sets the baseline position of a box. This affects only horizontal
--   boxes with at least one baseline aligned child. If there is more
--   vertical space available than requested, and the baseline is not
--   allocated by the parent then position is used to allocate the
--   baseline wrt the extra space available.
boxSetBaselinePosition :: BoxClass self => self -> BaselinePosition -> IO ()

-- | Retrieves the center widget of the box.
boxGetCenterWidget :: BoxClass self => self -> IO Widget

-- | Sets a center widget; that is a child widget that will be centered
--   with respect to the full width of the box, even if the children at
--   either side take up different amounts of space.
boxSetCenterWidget :: (BoxClass self, WidgetClass widget) => self -> widget -> IO ()

-- | The amount of space between children.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
boxSpacing :: BoxClass self => Attr self Int

-- | Whether the children should all be the same size.
--   
--   Default value: False
boxHomogeneous :: BoxClass self => Attr self Bool

-- | The position of the baseline aligned widgets if extra space is
--   available.
boxBaselinePosition :: BoxClass self => Attr self BaselinePosition

-- | A child widget that will be centered with respect to the full width of
--   the box, even if the children at either side take up different amounts
--   of space.
boxCenterWidget :: (BoxClass self, WidgetClass widget) => ReadWriteAttr self Widget widget

-- | The packing style of the child.
--   
--   Default value: PackGrow
boxChildPacking :: (BoxClass self, WidgetClass child) => child -> Attr self Packing

-- | Extra space to put between the child and its neighbors, in pixels.
--   
--   Allowed values: <= (maxBound :: Int)
--   
--   Default value: 0
boxChildPadding :: (BoxClass self, WidgetClass child) => child -> Attr self Int

-- | A PackType indicating whether the child is packed with
--   reference to the start or end of the parent.
--   
--   Default value: PackStart
boxChildPackType :: (BoxClass self, WidgetClass child) => child -> Attr self PackType

-- | The index of the child in the parent.
--   
--   Allowed values: >= -1
--   
--   Default value: 0
boxChildPosition :: (BoxClass self, WidgetClass child) => child -> Attr self Int

-- | A container with just one child
module Graphics.UI.Gtk.Abstract.Bin
data Bin
class ContainerClass o => BinClass o
castToBin :: GObjectClass obj => obj -> Bin
gTypeBin :: GType
toBin :: BinClass o => o -> Bin

-- | Gets the child of the Bin, or Nothing if the bin
--   contains no child widget.
binGetChild :: BinClass self => self -> IO (Maybe Widget)

-- | Display information about an application
--   
--   
--   
- Module available since Gtk+ version 2.6
--   
module Graphics.UI.Gtk.Windows.AboutDialog
data AboutDialog
class DialogClass o => AboutDialogClass o
castToAboutDialog :: GObjectClass obj => obj -> AboutDialog
gTypeAboutDialog :: GType
toAboutDialog :: AboutDialogClass o => o -> AboutDialog

-- | Creates a new AboutDialog.
aboutDialogNew :: IO AboutDialog

-- | The name of the program. If this is not set, it defaults to
--   gGetApplicationName.
aboutDialogProgramName :: (AboutDialogClass self, GlibString string) => Attr self string

-- | The name of the program. If this is not set, it defaults to
--   gGetApplicationName.
aboutDialogName :: (AboutDialogClass self, GlibString string) => Attr self string

-- | The version of the program.
aboutDialogVersion :: (AboutDialogClass self, GlibString string) => Attr self string

-- | Copyright information for the program.
aboutDialogCopyright :: (AboutDialogClass self, GlibString string) => Attr self string

-- | Comments about the program. This string is displayed in a label in the
--   main dialog, thus it should be a short explanation of the main purpose
--   of the program, not a detailed list of features.
aboutDialogComments :: (AboutDialogClass self, GlibString string) => Attr self string

-- | The license of the program. This string is displayed in a text view in
--   a secondary dialog, therefore it is fine to use a long multi-paragraph
--   text. Note that the text is only wrapped in the text view if the
--   aboutDialogWrapLicense property is set to True;
--   otherwise the text itself must contain the intended linebreaks.
--   
--   Default value: Nothing
aboutDialogLicense :: (AboutDialogClass self, GlibString string) => Attr self (Maybe string)

-- | The URL for the link to the website of the program. This should be a
--   string starting with "http://.
aboutDialogWebsite :: (AboutDialogClass self, GlibString string) => Attr self string

-- | The label for the link to the website of the program. If this is not
--   set, it defaults to the URL specified in the website property.
aboutDialogWebsiteLabel :: (AboutDialogClass self, GlibString string) => Attr self string

-- | The authors of the program. Each string may contain email addresses
--   and URLs, which will be displayed as links, see the introduction for
--   more details.
aboutDialogAuthors :: (AboutDialogClass self, GlibString string) => Attr self [string]

-- | The people documenting the program. Each string may contain email
--   addresses and URLs, which will be displayed as links, see the
--   introduction for more details.
aboutDialogDocumenters :: (AboutDialogClass self, GlibString string) => Attr self [string]

-- | The people who contributed artwork to the program. Each string may
--   contain email addresses and URLs, which will be displayed as links,
--   see the introduction for more details.
aboutDialogArtists :: (AboutDialogClass self, GlibString string) => Attr self [string]

-- | Credits to the translators. This string should be marked as
--   translatable. The string may contain email addresses and URLs, which
--   will be displayed as links, see the introduction for more details.
aboutDialogTranslatorCredits :: (AboutDialogClass self, GlibString string) => Attr self string

-- | A logo for the about box. If this is not set, it defaults to
--   windowGetDefaultIconList.
aboutDialogLogo :: AboutDialogClass self => ReadWriteAttr self Pixbuf (Maybe Pixbuf)

-- | A named icon to use as the logo for the about box. This property
--   overrides the logo property.
--   
--   Default value: Nothing
aboutDialogLogoIconName :: (AboutDialogClass self, GlibString string) => ReadWriteAttr self string (Maybe string)

-- | Whether to wrap the text in the license dialog.
--   
--   Default value: False
aboutDialogWrapLicense :: AboutDialogClass self => Attr self Bool

-- | A widget used to guide users through multi-step operations
--   
--   
--   
- Module available since Gtk+ version 2.10
--   
module Graphics.UI.Gtk.Windows.Assistant
data Assistant
class WindowClass o => AssistantClass o
castToAssistant :: GObjectClass obj => obj -> Assistant
toAssistant :: AssistantClass o => o -> Assistant
data AssistantPageType
AssistantPageContent :: AssistantPageType
AssistantPageIntro :: AssistantPageType
AssistantPageConfirm :: AssistantPageType
AssistantPageSummary :: AssistantPageType
AssistantPageProgress :: AssistantPageType
AssistantPageCustom :: AssistantPageType

-- | Creates a new Assistant.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantNew :: IO Assistant

-- | Returns the number of pages in the assistant
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantGetNPages :: AssistantClass self => self -> IO Int

-- | Returns the child widget contained in page number pageNum.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantGetNthPage :: AssistantClass self => self -> Int -> IO (Maybe Widget)

-- | Prepends a page to the assistant.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantPrependPage :: (AssistantClass self, WidgetClass page) => self -> page -> IO Int

-- | Appends a page to the assistant.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantAppendPage :: (AssistantClass self, WidgetClass page) => self -> page -> IO Int

-- | Inserts a page in the assistant at a given position.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantInsertPage :: (AssistantClass self, WidgetClass page) => self -> page -> Int -> IO Int

-- | Sets the page forwarding function to be pageFunc, this
--   function will be used to determine what will be the next page when the
--   user presses the forward button. Setting pageFunc to
--   Nothing will make the assistant to use the default forward
--   function, which just goes to the next visible page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantSetForwardPageFunc :: AssistantClass self => self -> Maybe (Int -> IO Int) -> IO ()

-- | Adds a widget to the action area of a Assistant.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantAddActionWidget :: (AssistantClass self, WidgetClass child) => self -> child -> IO ()

-- | Removes a widget from the action area of a Assistant.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantRemoveActionWidget :: (AssistantClass self, WidgetClass child) => self -> child -> IO ()

-- | Forces assistant to recompute the buttons state.
--   
--   Gtk+ automatically takes care of this in most situations, e.g. when
--   the user goes to a different page, or when the visibility or
--   completeness of a page changes.
--   
--   One situation where it can be necessary to call this function is when
--   changing a value on the current page affects the future page flow of
--   the assistant.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantUpdateButtonsState :: AssistantClass self => self -> IO ()

-- | Sets the page type for page. The page type determines the
--   page behavior in the assistant.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantSetPageType :: (AssistantClass self, WidgetClass page) => self -> page -> AssistantPageType -> IO ()

-- | Gets the page type of page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantGetPageType :: (AssistantClass self, WidgetClass page) => self -> page -> IO AssistantPageType

-- | Sets a title for page. The title is displayed in the header
--   area of the assistant when page is the current page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantSetPageTitle :: (AssistantClass self, WidgetClass page, GlibString string) => self -> page -> string -> IO ()

-- | Gets the title for page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantGetPageTitle :: (AssistantClass self, WidgetClass page, GlibString string) => self -> page -> IO string

-- | Sets a header image for page. This image is displayed in the
--   header area of the assistant when page is the current page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantSetPageHeaderImage :: (AssistantClass self, WidgetClass page) => self -> page -> Pixbuf -> IO ()

-- | Gets the header image for page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantGetPageHeaderImage :: (AssistantClass self, WidgetClass page) => self -> page -> IO (Maybe Pixbuf)

-- | Sets a header image for page. This image is displayed in the
--   side area of the assistant when page is the current page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantSetPageSideImage :: (AssistantClass self, WidgetClass page) => self -> page -> Pixbuf -> IO ()

-- | Gets the header image for page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantGetPageSideImage :: (AssistantClass self, WidgetClass page) => self -> page -> IO (Maybe Pixbuf)

-- | Sets whether page contents are complete. This will make
--   assistant update the buttons state to be able to continue the
--   task.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantSetPageComplete :: (AssistantClass self, WidgetClass page) => self -> page -> Bool -> IO ()

-- | Gets whether page is complete.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantGetPageComplete :: (AssistantClass self, WidgetClass page) => self -> page -> IO Bool

-- | Erases the visited page history so the back button is not shown on the
--   current page, and removes the cancel button from subsequent pages.
--   
--   Use this when the information provided up to the current page is
--   hereafter deemed permanent and cannot be modified or undone. For
--   example, showing a progress page to track a long-running, unreversible
--   operation after the user has clicked apply on a confirmation page.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
assistantCommit :: AssistantClass self => self -> IO ()

-- | Switches the page to pageNum. Note that this will only be
--   necessary in custom buttons, as the assistant flow can be set
--   with assistantSetForwardPageFunc.
--   
--   Returns the page number of the current page
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantCurrentPage :: AssistantClass self => Attr self Int

-- | The type of the assistant page.
--   
--   Default value: AssistantPageContent
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantChildPageType :: AssistantClass self => Attr self AssistantPageType

-- | The title that is displayed in the page header.
--   
--   If title and header-image are both, no header is displayed.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantChildTitle :: (AssistantClass self, GlibString string) => Attr self string

-- | The image that is displayed next to the page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantChildHeaderImage :: AssistantClass self => Attr self Pixbuf

-- | Sidebar image for the assistant page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantChildSidebarImage :: AssistantClass self => Attr self Pixbuf

-- | Setting the "complete" child property to True marks a page as
--   complete (i.e.: all the required fields are filled out). Gtk+ uses
--   this information to control the sensitivity of the navigation buttons.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantChildComplete :: AssistantClass self => Attr self Bool

-- | The ::assistantCancel signal is emitted when then the assistantCancel
--   button is clicked.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantCancel :: AssistantClass self => Signal self (IO ())

-- | The ::assistantPrepare signal is emitted when a new page is set as the
--   assistant's current page, before making the new page visible. A
--   handler for this signal can do any preparation which are necessary
--   before showing page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantPrepare :: AssistantClass self => Signal self (Widget -> IO ())

-- | The ::assistantApply signal is emitted when the assistantApply button
--   is clicked. The default behavior of the Assistant is to switch
--   to the page after the current page, unless the current page is the
--   last one.
--   
--   A handler for the ::assistantApply signal should carry out the actions
--   for which the wizard has collected data. If the action takes a long
--   time to complete, you might consider to put a page of type
--   AssistantPageProgress after the confirmation page and handle
--   this operation within the assistantPrepare signal of the
--   progress page.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
assistantApply :: AssistantClass self => Signal self (IO ())

-- | The ::assistantClose signal is emitted either when the assistantClose
--   button of a summary page is clicked, or when the apply button in the
--   last page in the flow (of type AssistantPageConfirm) is
--   clicked.
assistantClose :: AssistantClass self => Signal self (IO ())
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Windows.Assistant.AssistantPageType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Windows.Assistant.AssistantPageType
instance GHC.Classes.Eq Graphics.UI.Gtk.Windows.Assistant.AssistantPageType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Windows.Assistant.AssistantPageType

-- | Create popup windows
--   
--   NOTE: Now FFI haven't support variadic function
--   gtk_dialog_set_alternative_button_order
module Graphics.UI.Gtk.Windows.Dialog
data Dialog
class WindowClass o => DialogClass o
castToDialog :: GObjectClass obj => obj -> Dialog
gTypeDialog :: GType
toDialog :: DialogClass o => o -> Dialog

-- | Some constructors that can be used as response numbers for dialogs.
data ResponseId

-- | GTK returns this if a response widget has no response_id, or
--   if the dialog gets programmatically hidden or destroyed.
ResponseNone :: ResponseId

-- | GTK won't return these unless you pass them in as the response for an
--   action widget. They are for your convenience.
ResponseReject :: ResponseId

-- | (as above)
ResponseAccept :: ResponseId

-- | If the dialog is deleted.
ResponseDeleteEvent :: ResponseId

-- | "Ok" was pressed.
--   
--   
--   
- This value is returned from the "Ok" stock dialog button.
--   
ResponseOk :: ResponseId

-- | "Cancel" was pressed.
--   
--   
--   
- These value is returned from the "Cancel" stock dialog
--   button.
--   
ResponseCancel :: ResponseId

-- | "Close" was pressed.
--   
--   
--   
- This value is returned from the "Close" stock dialog button.
--   
ResponseClose :: ResponseId

-- | "Yes" was pressed.
--   
--   
--   
- This value is returned from the "Yes" stock dialog button.
--   
ResponseYes :: ResponseId

-- | "No" was pressed.
--   
--   
--   
- This value is returned from the "No" stock dialog button.
--   
ResponseNo :: ResponseId

-- | "Apply" was pressed.
--   
--   
--   
- This value is returned from the "Apply" stock dialog button.
--   
ResponseApply :: ResponseId

-- | "Help" was pressed.
--   
--   
--   
- This value is returned from the "Help" stock dialog button.
--   
ResponseHelp :: ResponseId

-- | A user-defined response
--   
--   
--   
- This value is returned from a user defined button
--   
ResponseUser :: Int -> ResponseId

-- | Creates a new dialog box. Widgets should not be packed into this
--   Window directly, but into the "upper" and "action area", which
--   are obtained using dialogGetUpper and
--   dialogGetActionArea.
dialogNew :: IO Dialog

-- | Returns the content area of dialog.
dialogGetContentArea :: DialogClass self => self -> IO Widget

-- | Returns the action area of dialog.
--   
--   
--   
- This is useful to add some special widgets that cannot be added
--   with dialogAddActionWidget.
--   
dialogGetActionArea :: DialogClass self => self -> IO Widget

-- | Blocks in a recursive main loop until the dialog either emits the
--   response signal, or is destroyed. If the dialog is destroyed during
--   the call to dialogRun, it returns ResponseNone.
--   Otherwise, it returns the response ID from the "response" signal
--   emission. Before entering the recursive main loop, dialogRun
--   calls widgetShow on the dialog for you. Note that you still
--   need to show any children of the dialog yourself.
--   
--   During dialogRun, the default behavior of "delete_event" is
--   disabled; if the dialog receives "delete_event", it will not be
--   destroyed as windows usually are, and dialogRun will return
--   ResponseDeleteEvent. Also, during dialogRun the dialog
--   will be modal. You can force dialogRun to return at any time by
--   calling dialogResponse to emit the "response" signal.
--   Destroying the dialog during dialogRun is a very bad idea,
--   because your post-run code won't know whether the dialog was destroyed
--   or not. Hence, you should not call widgetDestroy before
--   dialogRun has returned.
--   
--   After dialogRun returns, you are responsible for hiding or
--   destroying the dialog if you wish to do so.
--   
--   Note that even though the recursive main loop gives the effect of a
--   modal dialog (it prevents the user from interacting with other windows
--   while the dialog is run), callbacks such as timeouts, IO channel
--   watches, DND drops, etc, will be triggered during a
--   dialogRun call.
dialogRun :: DialogClass self => self -> IO ResponseId

-- | Emits the "response" signal with the given response ID. Used to
--   indicate that the user has responded to the dialog in some way;
--   typically either you or dialogRun will be monitoring the
--   "response" signal and take appropriate action.
--   
--   This function can be used to add a custom widget to the action area
--   that should close the dialog when activated or to close the dialog
--   otherwise.
dialogResponse :: DialogClass self => self -> ResponseId -> IO ()

-- | Adds a button with the given text (or a stock button, if
--   buttonText is a stock ID) and sets things up so that clicking
--   the button will emit the "response" signal with the given
--   responseId. The button is appended to the end of the dialog's
--   action area. The button widget is returned, but usually you don't need
--   it.
dialogAddButton :: (DialogClass self, GlibString string) => self -> string -> ResponseId -> IO Button

-- | Adds an activatable widget to the action area of a Dialog,
--   connecting a signal handler that will emit the "response" signal on
--   the dialog when the widget is activated. The widget is appended to the
--   end of the dialog's action area. If you want to add a non-activatable
--   widget, simply pack it into the action area.
dialogAddActionWidget :: (DialogClass self, WidgetClass child) => self -> child -> ResponseId -> IO ()

-- | Sets the last widget in the dialog's action area with the given
--   ResponseId as the default widget for the dialog. Pressing
--   "Enter" normally activates the default widget.
--   
--   
--   
- The default response is reset once it is triggered. Hence, if you
--   hide the dialog (rather than closing it) and re-display it later, you
--   need to call this function again.
--   
dialogSetDefaultResponse :: DialogClass self => self -> ResponseId -> IO ()

-- | Calls widgetSetSensitive widget setting for each
--   widget in the dialog's action area with the given responseId.
--   A convenient way to sensitize/desensitize dialog buttons.
dialogSetResponseSensitive :: DialogClass self => self -> ResponseId -> Bool -> IO ()

-- | Gets the response id of a widget in the action area of a dialog.
dialogGetResponseForWidget :: (DialogClass self, WidgetClass widget) => self -> widget -> IO ResponseId

-- | Returns True if dialogs are expected to use an alternative
--   button order on the screen screen. See
--   dialogSetAlternativeButtonOrder for more details about
--   alternative button order.
--   
--   If you need to use this function, you should probably connect to the
--   alternativeButtonOrder signal on the GtkSettings object
--   associated to screen, in order to be notified if the button order
--   setting changes.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
dialogAlternativeDialogButtonOrder :: Maybe Screen -> IO Bool

-- | Sets an alternative button order.
--   
--   If the alternativeButtonOrder setting is set to
--   True, the dialog buttons are reordered according to the order
--   of the response ids in newOrder.
--   
--   See dialogSetAlternativeButtonOrder for more information.
--   
--   This function is for use by language bindings.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
dialogSetAlternativeButtonOrderFromArray :: DialogClass self => self -> [ResponseId] -> IO ()

-- | Gets the widget button that uses the given response ID in the action
--   area of a dialog.
dialogGetWidgetForResponse :: DialogClass self => self -> ResponseId -> IO (Maybe Widget)

-- | Width of border around the button area at the bottom of the dialog.
--   
--   Allowed values: >= 0
--   
--   Default value: 5
dialogActionAreaBorder :: DialogClass self => ReadAttr self Int

-- | Spacing between buttons.
--   
--   Allowed values: >= 0
--   
--   Default value: 6
dialogButtonSpacing :: DialogClass self => ReadAttr self Int

-- | Width of border around the main dialog area.
--   
--   Allowed values: >= 0
--   
--   Default value: 2
dialogContentAreaBorder :: DialogClass self => ReadAttr self Int

-- | The default spacing used between elements of the content area of the
--   dialog, as returned by dialogSetContentArea, unless
--   boxSetSpacing was called on that widget directly.
--   
--   Allowed values: >= 0
--   
--   Default value: 0
--   
--   
--   
- Available since Gtk+ version 2.16
--   
dialogContentAreaSpacing :: DialogClass self => ReadAttr self Int

-- | Emitted when an action widget is clicked, the dialog receives a delete
--   event, or the application programmer calls dialogResponse. On a
--   delete event, the response ID is ResponseNone. Otherwise, it
--   depends on which action widget was clicked.
response :: DialogClass self => Signal self (ResponseId -> IO ())

-- | A widget which is not displayed The Invisible widget is used
--   internally in GTK+, and is probably not very useful for application
--   developers. It is used for reliable pointer grabs and selection
--   handling in the code for drag-and-drop.
module Graphics.UI.Gtk.Windows.Invisible
data Invisible

-- | Creates a new Invisible.
invisibleNew :: IO Invisible

-- | Creates a new Invisible object for a specified screen
--   
--   
--   
- Available since Gdk version 2.2
--   
invisibleNewForScreen :: Screen -> IO Invisible

-- | Sets the Screen where the Invisible object will be
--   displayed.
--   
--   
--   
- Available since Gdk version 2.2
--   
invisibleSetScreen :: Invisible -> Screen -> IO ()

-- | Returns the Screen object associated with invisible
--   
--   
--   
- Available since Gdk version 2.2
--   
invisibleGetScreen :: Invisible -> IO Screen

-- | A convenient message window
module Graphics.UI.Gtk.Windows.MessageDialog
data MessageDialog
class DialogClass o => MessageDialogClass o
castToMessageDialog :: GObjectClass obj => obj -> MessageDialog
gTypeMessageDialog :: GType
toMessageDialog :: MessageDialogClass o => o -> MessageDialog
data MessageType
MessageInfo :: MessageType
MessageWarning :: MessageType
MessageQuestion :: MessageType
MessageError :: MessageType
MessageOther :: MessageType

-- | Specify what buttons this dialog should show.
--   
--   
--   
- Prebuilt sets of buttons for the dialog. If none of these choices
--   are appropriate, simply use ButtonsNone then call
--   dialogAddButton.
--   
data ButtonsType
ButtonsNone :: ButtonsType
ButtonsOk :: ButtonsType
ButtonsClose :: ButtonsType
ButtonsCancel :: ButtonsType
ButtonsYesNo :: ButtonsType
ButtonsOkCancel :: ButtonsType

-- | Flags used to influence dialog construction.
--   
--   
--   
- Marking a dialog as model will call widgetSetModal on the
--   dialog window, the DialogDestroyWithParent will call
--   windowSetDestroyWithParent on the dialog window. Note that in
--   case the dialog is simply destroyed, no response signal is ever
--   emitted. Finally, DialogNoSeparator omits the separator
--   between the action area and the dialog content which is preferable for
--   very simple messages, i.e. those that only contain one button.
--   
data DialogFlags
DialogModal :: DialogFlags
DialogDestroyWithParent :: DialogFlags
DialogUseHeaderBar :: DialogFlags

-- | Create a new message dialog, which is a simple dialog with an icon
--   indicating the dialog type (error, warning, etc.) and some text the
--   user may want to see. When the user clicks a button a "response"
--   signal is emitted with response IDs from ResponseType. See
--   Dialog for more details.
messageDialogNew :: GlibString string => Maybe Window -> [DialogFlags] -> MessageType -> ButtonsType -> string -> IO MessageDialog

-- | Creates a new message dialog, which is a simple dialog with an icon
--   indicating the dialog type (error, warning, etc.) and some text which
--   is marked up with the Pango text markup language. When the user clicks
--   a button a "response" signal is emitted with response IDs from
--   ResponseType. See Dialog and PangoMarkup for
--   more details.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
messageDialogNewWithMarkup :: GlibString string => Maybe Window -> [DialogFlags] -> MessageType -> ButtonsType -> string -> IO MessageDialog

-- | Sets the text of the message dialog to be str, which is
--   marked up with the Pango text markup language.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
messageDialogSetMarkup :: (MessageDialogClass self, GlibString string) => self -> string -> IO ()

-- | Sets the dialog's image to image.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
messageDialogSetImage :: (MessageDialogClass self, WidgetClass image) => self -> image -> IO ()
messageDialogSetSecondaryMarkup :: (MessageDialogClass self, GlibString string) => self -> string -> IO ()
messageDialogSetSecondaryText :: (MessageDialogClass self, GlibString string) => self -> string -> IO ()

-- | The type of message.
--   
--   Default value: MessageInfo
messageDialogMessageType :: MessageDialogClass self => Attr self MessageType

-- | The primary text of the message dialog. If the dialog has a secondary
--   text, this will appear as the title.
--   
--   Default value: Nothing
--   
--   
--   
- Available since Gtk+ version 2.10
--   
messageDialogText :: (MessageDialogClass self, GlibString string) => Attr self (Maybe string)

-- | Interpret the string messageDialogText as markup.
--   
--   Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
messageDialogUseMarkup :: MessageDialogClass self => Attr self Bool

-- | The secondary text of the message dialog.
--   
--   Default value: Nothing
--   
--   
--   
- Available since Gtk+ version 2.10
--   
messageDialogSecondaryText :: (MessageDialogClass self, GlibString string) => Attr self (Maybe string)

-- | Default value: False
--   
--   
--   
- Available since Gtk+ version 2.10
--   
messageDialogSecondaryUseMarkup :: MessageDialogClass self => Attr self Bool

-- | The image for this dialog.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
messageDialogImage :: (MessageDialogClass self, WidgetClass widget) => ReadWriteAttr self Widget widget

-- | The buttons shown in the message dialog.
--   
--   Default value: ButtonsNone
messageDialogButtons :: MessageDialogClass self => WriteAttr self ButtonsType

-- | The VBox that corresponds to the message area of this dialog.
--   
--   
--   
- Available since Gtk+ version 2.22
--   
messageDialogMessageArea :: MessageDialogClass self => ReadAttr self VBox
instance GHC.Internal.Enum.Bounded Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Windows.MessageDialog.ButtonsType
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Windows.MessageDialog.MessageType
instance GHC.Classes.Eq Graphics.UI.Gtk.Windows.MessageDialog.ButtonsType
instance GHC.Classes.Eq Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance GHC.Classes.Eq Graphics.UI.Gtk.Windows.MessageDialog.MessageType
instance System.Glib.Flags.Flags Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Windows.MessageDialog.ButtonsType
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Windows.MessageDialog.DialogFlags
instance GHC.Internal.Show.Show Graphics.UI.Gtk.Windows.MessageDialog.MessageType

-- | Report important messages to the user
module Graphics.UI.Gtk.Display.InfoBar
data InfoBar
class HBoxClass o => InfoBarClass o
castToInfoBar :: GObjectClass obj => obj -> InfoBar
toInfoBar :: InfoBarClass o => o -> InfoBar

-- | Creates a new InfoBar object.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarNew :: IO InfoBar

-- | Add an activatable widget to the action area of a InfoBar,
--   connecting a signal handler that will emit the "response" signal on
--   the message area when the widget is activated. The widget is appended
--   to the end of the message areas action area.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarAddActionWidget :: (InfoBarClass self, WidgetClass child) => self -> child -> Int -> IO ()

-- | Adds a button with the given text (or a stock button, if buttonText is
--   a stock ID) and sets things up so that clicking the button will emit
--   the "response" signal with the given responseId. The button is
--   appended to the end of the info bars's action area. The button widget
--   is returned, but usually you don't need it.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarAddButton :: (InfoBarClass self, GlibString string) => self -> string -> Int -> IO Button

-- | Calls widgetSetSensitive for each widget in the info bars's
--   action area with the given responseId. A convenient way to
--   sensitize/desensitize dialog buttons.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarSetResponseSensitive :: InfoBarClass self => self -> Int -> Bool -> IO ()

-- | Sets the last widget in the info bar's action area with the given
--   responseId as the default widget for the dialog. Pressing "Enter"
--   normally activates the default widget.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarSetDefaultResponse :: InfoBarClass self => self -> Int -> IO ()

-- | Emits the 'response' signal with the given responseId.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarEmitResponse :: InfoBarClass self => self -> Int -> IO ()

-- | Returns the action area of infoBar.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarGetActionArea :: InfoBarClass self => self -> IO Widget

-- | Returns the content area of infoBar.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarGetContentArea :: InfoBarClass self => self -> IO Widget

-- | The type of the message.
--   
--   The type is used to determine the colors to use in the info bar.
--   
--   If the type is MessageOther, no info bar is painted but the
--   colors are still set.
--   
--   Default value: MessageInfo
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarMessageType :: InfoBarClass self => Attr self MessageType

-- | Emitted when an action widget is clicked or the application programmer
--   calls dialogResponse. The responseId depends on
--   which action widget was clicked.
--   
--   
--   
- Available since Gtk+ version 2.18
--   
infoBarResponse :: InfoBarClass self => Signal self (Int -> IO ())

-- | The close signal is a keybinding signal which gets emitted
--   when the user uses a keybinding to dismiss the info bar.
--   
--   The default binding for this signal is the Escape key.
--   
--   Since 2.18
infoBarClose :: InfoBarClass self => Signal self (IO ())

-- | A toplevel container widget used to manage offscreen rendering of
--   child widgets.
--   
--   
--   
- Module available since Gtk+ version 2.20
--   
module Graphics.UI.Gtk.Windows.OffscreenWindow
data OffscreenWindow
class WindowClass o => OffscreenWindowClass o
castToOffscreenWindow :: GObjectClass obj => obj -> OffscreenWindow
gTypeOffscreenWindow :: GType
toOffscreenWindow :: OffscreenWindowClass o => o -> OffscreenWindow

-- | Creates a toplevel container widget that is used to retrieve snapshots
--   of widgets without showing them on the screen. For widgets that are on
--   the screen and part of a normal widget hierarchy,
--   widgetGetSnapshot can be used instead.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
offscreenWindowNew :: IO OffscreenWindow

-- | Retrieves a snapshot of the contained widget in the form of a
--   Pixbuf.
--   
--   
--   
- Available since Gtk+ version 2.20
--   
offscreenWindowGetPixbuf :: OffscreenWindowClass self => self -> IO (Maybe Pixbuf)

-- | Toplevel which can contain other widgets
module Graphics.UI.Gtk.Windows.Window
data Window
class BinClass o => WindowClass o
castToWindow :: GObjectClass obj => obj -> Window
gTypeWindow :: GType
toWindow :: WindowClass o => o -> Window

-- | Interaction of a window with window manager
data WindowType
WindowToplevel :: WindowType
WindowPopup :: WindowType

-- | Determines a window edge or corner.
data WindowEdge
WindowEdgeNorthWest :: WindowEdge
WindowEdgeNorth :: WindowEdge
WindowEdgeNorthEast :: WindowEdge
WindowEdgeWest :: WindowEdge
WindowEdgeEast :: WindowEdge
WindowEdgeSouthWest :: WindowEdge
WindowEdgeSouth :: WindowEdge
WindowEdgeSouthEast :: WindowEdge

-- | 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.
data WindowTypeHint
WindowTypeHintNormal :: WindowTypeHint
WindowTypeHintDialog :: WindowTypeHint
WindowTypeHintMenu :: WindowTypeHint
WindowTypeHintToolbar :: WindowTypeHint
WindowTypeHintSplashscreen :: WindowTypeHint
WindowTypeHintUtility :: WindowTypeHint
WindowTypeHintDock :: WindowTypeHint
WindowTypeHintDesktop :: WindowTypeHint
WindowTypeHintDropdownMenu :: WindowTypeHint
WindowTypeHintPopupMenu :: WindowTypeHint
WindowTypeHintTooltip :: WindowTypeHint
WindowTypeHintNotification :: WindowTypeHint
WindowTypeHintCombo :: WindowTypeHint
WindowTypeHintDnd :: WindowTypeHint
data Gravity
GravityNorthWest :: Gravity
GravityNorth :: Gravity
GravityNorthEast :: Gravity
GravityWest :: Gravity
GravityCenter :: Gravity
GravityEast :: Gravity
GravitySouthWest :: Gravity
GravitySouth :: Gravity
GravitySouthEast :: Gravity
GravityStatic :: Gravity

-- | Create a new top level window.
windowNew :: IO Window

-- | Create a popup window.
windowNewPopup :: IO Window

-- | Activates the current focused widget within the window.
windowActivateFocus :: WindowClass self => self -> IO Bool

-- | Activates the default widget for the window, unless the current
--   focused widget has been configured to receive the default action (see
--   ReceivesDefault in WidgetFlags), in which case the
--   focused widget is activated.
windowActivateDefault :: WindowClass self => self -> IO Bool

-- | Sets the default size of a window. If the window's "natural" size (its
--   size request) is larger than the default, the default will be ignored.
--   More generally, if the default size does not obey the geometry hints
--   for the window (windowSetGeometryHints can be used to set these
--   explicitly), the default size will be clamped to the nearest permitted
--   size.
--   
--   Unlike widgetSetSizeRequest, which sets a size request for a
--   widget and thus would keep users from shrinking the window, this
--   function only sets the initial size, just as if the user had resized
--   the window themselves. Users can still shrink the window again as they
--   normally would. Setting a default size of -1 means to use the
--   "natural" default size (the size request of the window).
--   
--   For more control over a window's initial size and how resizing works,
--   investigate windowSetGeometryHints.
--   
--   For some uses, windowResize is a more appropriate function.
--   windowResize changes the current size of the window, rather
--   than the size to be used on initial display. windowResize
--   always affects the window itself, not the geometry widget.
--   
--   The default size of a window only affects the first time a window is
--   shown; if a window is hidden and re-shown, it will remember the size
--   it had prior to hiding, rather than using the default size.
--   
--   Windows can't actually be 0x0 in size, they must be at least 1x1, but
--   passing 0 for width and height is OK, resulting in a
--   1x1 default size.
windowSetDefaultSize :: WindowClass self => self -> Int -> Int -> IO ()

-- | Gets the default size of the window. A value of -1 for the width or
--   height indicates that a default size has not been explicitly set for
--   that dimension, so the "natural" size of the window will be used.
windowGetDefaultSize :: WindowClass self => self -> IO (Int, Int)

-- | Sets a position constraint for this window. If the old or new
--   constraint is WinPosCenterAlways, this will also cause the
--   window to be repositioned to satisfy the new constraint.
windowSetPosition :: WindowClass self => self -> WindowPosition -> IO ()

-- | Window position types
data WindowPosition
WinPosNone :: WindowPosition
WinPosCenter :: WindowPosition
WinPosMouse :: WindowPosition
WinPosCenterAlways :: WindowPosition
WinPosCenterOnParent :: WindowPosition

-- | Returns whether the window is part of the current active toplevel.
--   (That is, the toplevel window receiving keystrokes.) The return value
--   is True if the window is active toplevel itself, but also if
--   it is, say, a Plug embedded in the active toplevel. You might
--   use this function if you wanted to draw a widget differently in an
--   active window from a widget in an inactive window. See
--   windowHasToplevelFocus
--   
--   
--   
- Available since Gtk+ version 2.4
--   
windowIsActive :: WindowClass self => self -> IO Bool

-- | Returns whether the input focus is within this Window. For real
--   toplevel windows, this is identical to windowIsActive, but for
--   embedded windows, like Plug, the results will differ.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
windowHasToplevelFocus :: WindowClass self => self -> IO Bool

-- | Returns a list of all existing toplevel windows.
windowListToplevels :: IO [Window]

-- | The default widget is the widget that's activated when the user
--   presses Enter in a dialog (for example). This function sets or unsets
--   the default widget for a Window about. When setting (rather than
--   unsetting) the default widget it's generally easier to call
--   widgetGrabDefault on the widget. Before making a widget the default
--   widget, you must set the widgetCanDefault flag on the widget.
windowSetDefault :: (WindowClass self, WidgetClass widget) => self -> Maybe widget -> IO ()

-- | Returns the default widget for window. See windowSetDefault for
--   more details.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
windowGetDefaultWidget :: WindowClass self => self -> IO (Maybe Widget)

-- | Adds a mnemonic to this window.
windowAddMnemonic :: (WindowClass self, WidgetClass widget) => self -> KeyVal -> widget -> IO ()

-- | Removes a mnemonic from this window.
windowRemoveMnemonic :: (WindowClass self, WidgetClass widget) => self -> KeyVal -> widget -> IO ()

-- | Activates the targets associated with the mnemonic.
windowMnemonicActivate :: WindowClass self => self -> KeyVal -> [Modifier] -> IO Bool

-- | Activates mnemonics and accelerators for this Window. This is
--   normally called by the default keyPressEvent handler for
--   toplevel windows, however in some cases it may be useful to call this
--   directly when overriding the standard key handling for a toplevel
--   window.
windowActivateKey :: WindowClass self => self -> EventM EKey Bool

-- | Propagate a key press or release event to the focus widget and up the
--   focus container chain until a widget handles event. This is normally
--   called by the default keyPressEvent and
--   keyReleaseEvent handlers for toplevel windows, however in
--   some cases it may be useful to call this directly when overriding the
--   standard key handling for a toplevel window.
windowPropagateKeyEvent :: WindowClass self => self -> EventM EKey Bool

-- | Presents a window to the user. This may mean raising the window in the
--   stacking order, deiconifying it, moving it to the current desktop,
--   and/or giving it the keyboard focus, possibly dependent on the user's
--   platform, window manager, and preferences.
--   
--   If window is hidden, this function calls widgetShow
--   as well.
--   
--   This function should be used when the user tries to open a window
--   that's already open. Say for example the preferences dialog is
--   currently open, and the user chooses Preferences from the menu a
--   second time; use windowPresent to move the already-open dialog
--   where the user can see it.
--   
--   If you are calling this function in response to a user interaction, it
--   is preferable to use windowPresentWithTime.
windowPresent :: WindowClass self => self -> IO ()

-- | Asks to deiconify (i.e. unminimize) the specified window.
--   Note that you shouldn't assume the window is definitely deiconified
--   afterward, because other entities (e.g. the user or window manager)
--   could iconify it again before your code which assumes deiconification
--   gets to run.
--   
--   You can track iconification via the windowStateEvent signal
--   on Widget.
windowDeiconify :: WindowClass self => self -> IO ()

-- | Asks to iconify (i.e. minimize) the specified window. Note
--   that you shouldn't assume the window is definitely iconified
--   afterward, because other entities (e.g. the user or window manager)
--   could deiconify it again, or there may not be a window manager in
--   which case iconification isn't possible, etc. But normally the window
--   will end up iconified. Just don't write code that crashes if not.
--   
--   It's permitted to call this function before showing a window, in which
--   case the window will be iconified before it ever appears onscreen.
--   
--   You can track iconification via the windowStateEvent signal
--   on Widget.
windowIconify :: WindowClass self => self -> IO ()

-- | Asks to maximize the window, so that it becomes full-screen. Note that
--   you shouldn't assume the window is definitely maximized afterward,
--   because other entities (e.g. the user or window manager) could
--   unmaximize it again, and not all window managers support maximization.
--   But normally the window will end up maximized. Just don't write code
--   that crashes if not.
--   
--   It's permitted to call this function before showing a window, in which
--   case the window will be maximized when it appears onscreen initially.
--   
--   You can track maximization via the windowStateEvent signal on
--   Widget.
windowMaximize :: WindowClass self => self -> IO ()

-- | Asks to unmaximize the window. Note that you shouldn't assume the
--   window is definitely unmaximized afterward, because other entities
--   (e.g. the user or window manager) could maximize it again, and not all
--   window managers honor requests to unmaximize. But normally the window
--   will end up unmaximized. Just don't write code that crashes if not.
--   
--   You can track maximization via the windowStateEvent signal on
--   Widget.
windowUnmaximize :: WindowClass self => self -> IO ()

-- | Asks to place window in the fullscreen state. Note that you
--   shouldn't assume the window is definitely full screen afterward,
--   because other entities (e.g. the user or window manager) could
--   unfullscreen it again, and not all window managers honor requests to
--   fullscreen windows. But normally the window will end up fullscreen.
--   Just don't write code that crashes if not.
--   
--   You can track the fullscreen state via the windowStateEvent
--   signal on Widget.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
windowFullscreen :: WindowClass self => self -> IO ()

-- | Asks to toggle off the fullscreen state for window. Note that
--   you shouldn't assume the window is definitely not full screen
--   afterward, because other entities (e.g. the user or window manager)
--   could fullscreen it again, and not all window managers honor requests
--   to unfullscreen windows. But normally the window will end up restored
--   to its normal state. Just don't write code that crashes if not.
--   
--   You can track the fullscreen state via the windowStateEvent
--   signal on Widget.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
windowUnfullscreen :: WindowClass self => self -> IO ()

-- | Asks to keep window above, so that it stays on top. Note that
--   you shouldn't assume the window is definitely above afterward, because
--   other entities (e.g. the user or window manager) could not keep it
--   above, and not all window managers support keeping windows above. But
--   normally the window will end kept above. Just don't write code that
--   crashes if not.
--   
--   It's permitted to call this function before showing a window, in which
--   case the window will be kept above when it appears onscreen initially.
--   
--   You can track the above state via the windowStateEvent signal
--   on Widget.
--   
--   Note that, according to the Extended Window Manager Hints
--   specification, the above state is mainly meant for user preferences
--   and should not be used by applications e.g. for drawing attention to
--   their dialogs.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
windowSetKeepAbove :: WindowClass self => self -> Bool -> IO ()

-- | Asks to keep window below, so that it stays in bottom. Note
--   that you shouldn't assume the window is definitely below afterward,
--   because other entities (e.g. the user or window manager) could not
--   keep it below, and not all window managers support putting windows
--   below. But normally the window will be kept below. Just don't write
--   code that crashes if not.
--   
--   It's permitted to call this function before showing a window, in which
--   case the window will be kept below when it appears onscreen initially.
--   
--   You can track the below state via the windowStateEvent signal
--   on Widget.
--   
--   Note that, according to the Extended Window Manager Hints
--   specification, the above state is mainly meant for user preferences
--   and should not be used by applications e.g. for drawing attention to
--   their dialogs.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
windowSetKeepBelow :: WindowClass self => self -> Bool -> IO ()

-- | Startup notification identifiers are used by desktop environment to
--   track application startup, to provide user feedback and other
--   features. This function changes the corresponding property on the
--   underlying GdkWindow. Normally, startup identifier is managed
--   automatically and you should only use this function in special cases
--   like transferring focus from other processes. You should use this
--   function before calling windowPresent or any equivalent
--   function generating a window map event.
--   
--   This function is only useful on X11, not with other GTK+ targets.
--   
--   
--   
- Available since Gtk+ version 2.12
--   
windowSetStartupId :: (WindowClass self, GlibString string) => self -> string -> IO ()

-- | Asks to stick window, which means that it will appear on all
--   user desktops. Note that you shouldn't assume the window is definitely
--   stuck afterward, because other entities (e.g. the user or window
--   manager) could unstick it again, and some window managers do not
--   support sticking windows. But normally the window will end up stuck.
--   Just don't write code that crashes if not.
--   
--   It's permitted to call this function before showing a window.
--   
--   You can track stickiness via the windowStateEvent signal on
--   Widget.
windowStick :: WindowClass self => self -> IO ()

-- | Asks to unstick window, which means that it will appear on
--   only one of the user's desktops. Note that you shouldn't assume the
--   window is definitely unstuck afterward, because other entities (e.g.
--   the user or window manager) could stick it again. But normally the
--   window will end up stuck. Just don't write code that crashes if not.
--   
--   You can track stickiness via the windowStateEvent signal on
--   Widget.
windowUnstick :: WindowClass self => self -> IO ()

-- | Associate accelGroup with window, such that calling
--   accelGroupsActivate on window will activate
--   accelerators in accelGroup.
windowAddAccelGroup :: WindowClass self => self -> AccelGroup -> IO ()

-- | Reverses the effects of windowAddAccelGroup.
windowRemoveAccelGroup :: WindowClass self => self -> AccelGroup -> IO ()

-- | Sets an icon list to be used as fallback for windows that haven't had
--   windowSetIconList called on them to set up a window-specific
--   icon list. This function allows you to set up the icon for all windows
--   in your app at once.
--   
--   See windowSetIconList for more details.
windowSetDefaultIconList :: [Pixbuf] -> IO ()

-- | Gets the value set by windowSetDefaultIconList.
windowGetDefaultIconList :: IO [Pixbuf]

-- | Sets an icon to be used as fallback for windows that haven't had
--   windowSetIcon called on them from a pixbuf.
--   
--   
--   
- Available since Gtk+ version 2.4
--   
windowSetDefaultIcon :: Maybe Pixbuf -> IO ()

-- | Sets an icon to be used as fallback for windows that haven't had
--   windowSetIconList called on them from a file on disk. May throw
--   a GError if the file cannot be loaded.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
windowSetDefaultIconFromFile :: GlibString string => string -> IO Bool

-- | Sets an icon to be used as fallback for windows that haven't had
--   windowSetIconList called on them from a named themed icon, see
--   windowSetIconName.
--   
--   
--   
- Available since Gtk+ version 2.6
--   
windowSetDefaultIconName :: GlibString string => string -> IO ()

-- | Returns the fallback icon name for windows that has been set with
--   windowSetDefaultIconName.
--   
--   
--   
- Available since Gtk+ version 2.16
--   
windowGetDefaultIconName :: GlibString string => IO string

-- | Window gravity defines the meaning of coordinates passed to
--   windowMove. See windowMove and Gravity for more
--   details.
--   
--   The default window gravity is GravityNorthWest which will
--   typically "do what you mean."
windowSetGravity :: WindowClass self => self -> Gravity -> IO ()

-- | Gets the value set by windowSetGravity.
windowGetGravity :: WindowClass self => self -> IO Gravity

-- | Sets the Screen where the window is displayed; if the
--   window is already mapped, it will be unmapped, and then remapped on
--   the new screen.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
windowSetScreen :: WindowClass self => self -> Screen -> IO ()

-- | Returns the Screen associated with the window.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
windowGetScreen :: WindowClass self => self -> IO Screen

-- | Starts resizing a window. This function is used if an application has
--   window resizing controls. When GDK can support it, the resize will be
--   done using the standard mechanism for the window manager or windowing
--   system. Otherwise, GDK will try to emulate window resizing,
--   potentially not all that well, depending on the windowing system.
windowBeginResizeDrag :: WindowClass self => self -> WindowEdge -> MouseButton -> Int -> Int -> TimeStamp -> IO ()

-- | Starts moving a window. This function is used if an application has
--   window movement grips. When GDK can support it, the window movement
--   will be done using the standard mechanism for the window manager or
--   windowing system. Otherwise, GDK will try to emulate window movement,
--   potentially not all that well, depending on the windowing system.
windowBeginMoveDrag :: WindowClass self => self -> MouseButton -> Int -> Int -> TimeStamp -> IO ()

-- | By setting the type hint for the window, you allow the window manager
--   to decorate and handle the window in a way which is suitable to the
--   function of the window in your application.
--   
--   This function should be called before the window becomes visible.
windowSetTypeHint :: WindowClass self => self -> WindowTypeHint -> IO ()

-- | Gets the type hint for this window. See windowSetTypeHint.
windowGetTypeHint :: WindowClass self => self -> IO WindowTypeHint

-- | Gets the value set by windowSetIcon (or if you've called
--   windowSetIconList, gets the first icon in the icon list).
windowGetIcon :: WindowClass self => self -> IO (Maybe Pixbuf)

-- | This function returns the position you need to pass to
--   windowMove to keep window in its current position.
--   This means that the meaning of the returned value varies with window
--   gravity. See windowMove for more details.
--   
--   If you haven't changed the window gravity, its gravity will be
--   GravityNorthWest. This means that windowGetPosition gets
--   the position of the top-left corner of the window manager frame for
--   the window. windowMove sets the position of this same top-left
--   corner.
--   
--   Moreover, nearly all window managers are historically broken with
--   respect to their handling of window gravity. So moving a window to its
--   current position as returned by windowGetPosition tends to
--   result in moving the window slightly. Window managers are slowly
--   getting better over time.
--   
--   If a window has gravity GravityStatic the window manager frame
--   is not relevant, and thus windowGetPosition will always produce
--   accurate results. However you can't use static gravity to do things
--   like place a window in a corner of the screen, because static gravity
--   ignores the window manager decorations.
--   
--   If you are saving and restoring your application's window positions,
--   you should know that it's impossible for applications to do this
--   without getting it somewhat wrong because applications do not have
--   sufficient knowledge of window manager state. The Correct Mechanism is
--   to support the session management protocol (see the "GnomeClient"
--   object in the GNOME libraries for example) and allow the window
--   manager to save your window sizes and positions.
windowGetPosition :: WindowClass self => self -> IO (Int, Int)

-- | Obtains the current size of the window. If the window is not onscreen,
--   it returns the size Gtk+ will suggest to the window manager for the
--   initial window size (but this is not reliably the same as the size the
--   window manager will actually select). The size obtained by
--   windowGetSize is the last size received in a
--   EventConfigure, that is, Gtk+ uses its locally-stored size,
--   rather than querying the X server for the size. As a result, if you
--   call windowResize then immediately call windowGetSize,
--   the size won't have taken effect yet. After the window manager
--   processes the resize request, Gtk+ receives notification that the size
--   has changed via a configure event, and the size of the window gets
--   updated.
--   
--   Note 1: Nearly any use of this function creates a race condition,
--   because the size of the window may change between the time that you
--   get the size and the time that you perform some action assuming that
--   size is the current size. To avoid race conditions, connect to
--   "configure_event" on the window and adjust your size-dependent state
--   to match the size delivered in the EventConfigure.
--   
--   Note 2: The returned size does not include the size of the
--   window manager decorations (aka the window frame or border). Those are
--   not drawn by Gtk+ and Gtk+ has no reliable method of determining their
--   size.
--   
--   Note 3: If you are getting a window size in order to position the
--   window onscreen, there may be a better way. The preferred way is to
--   simply set the window's semantic type with windowSetTypeHint,
--   which allows the window manager to e.g. center dialogs. Also, if you
--   set the transient parent of dialogs with windowSetTransientFor
--   window managers will often center the dialog over its parent window.
--   It's much preferred to let the window manager handle these things
--   rather than doing it yourself, because all apps will behave
--   consistently and according to user prefs if the window manager handles
--   it. Also, the window manager can take the size of the window
--   decorations/border into account, while your application cannot.
--   
--   In any case, if you insist on application-specified window
--   positioning, there's still a better way than doing it yourself
--   - windowSetPosition will frequently handle the details for you.
windowGetSize :: WindowClass self => self -> IO (Int, Int)

-- | Asks the window manager to move window to the given position.
--   Window managers are free to ignore this; most window managers ignore
--   requests for initial window positions (instead using a user-defined
--   placement algorithm) and honor requests after the window has already
--   been shown.
--   
--   Note: the position is the position of the gravity-determined reference
--   point for the window. The gravity determines two things: first, the
--   location of the reference point in root window coordinates; and
--   second, which point on the window is positioned at the reference
--   point.
--   
--   By default the gravity is GravityNorthWest, so the reference
--   point is simply the x, y supplied to
--   windowMove. The top-left corner of the window decorations (aka
--   window frame or border) will be placed at x, y.
--   Therefore, to position a window at the top left of the screen, you
--   want to use the default gravity (which is GravityNorthWest) and
--   move the window to 0,0.
--   
--   To position a window at the bottom right corner of the screen, you
--   would set GravitySouthEast, which means that the reference
--   point is at x + the window width and y + the window
--   height, and the bottom-right corner of the window border will be
--   placed at that reference point. So, to place a window in the bottom
--   right corner you would first set gravity to south east, then write:
--   gtk_window_move (window, gdk_screen_width() - window_width,
--   gdk_screen_height() - window_height).
--   
--   The Extended Window Manager Hints specification at
--   http://www.freedesktop.org/Standards/wm-spec has a nice table of
--   gravities in the "implementation notes" section.
--   
--   The windowGetPosition documentation may also be relevant.
windowMove :: WindowClass self => self -> Int -> Int -> IO ()

-- | Parses a standard X Window System geometry string - see the manual
--   page for X (type 'man X') for details on this.
--   windowParseGeometry does work on all GTK+ ports including Win32
--   but is primarily intended for an X environment.
--   
--   If either a size or a position can be extracted from the geometry
--   string, windowParseGeometry returns True and calls
--   gtk_window_set_default_size() andor gtk_window_move() to
--   resizemove the window.
--   
--   If windowParseGeometry returns True, it will also set
--   the HintUserPos andor HintUserSize hints
--   indicating to the window manager that the sizeposition of the
--   window was user-specified This causes most window managers to honor
--   the geometry.
--   
--   Note that for windowParseGeometry to work as expected, it has
--   to be called when the window has its "final" size, i.e. after calling
--   widgetShowAll on the contents and
--   windowSetGeometryHints on the window.
windowParseGeometry :: (WindowClass self, GlibString string) => self -> string -> IO Bool

-- | Hides window, then reshows it, resetting the default size and position
--   of the window. Used by GUI builders only.
windowReshowWithInitialSize :: WindowClass self => self -> IO ()

-- | Resizes the window as if the user had done so, obeying geometry
--   constraints. The default geometry constraint is that windows may not
--   be smaller than their size request; to override this constraint, call
--   widgetSetSizeRequest to set the window's request to a smaller
--   value.
--   
--   If windowResize is called before showing a window for the first
--   time, it overrides any default size set with
--   windowSetDefaultSize.
--   
--   Windows may not be resized smaller than 1 by 1 pixels.
windowResize :: WindowClass self => self -> Int -> Int -> IO ()

-- | Sets the icon for window.
--   
--   This function is equivalent to calling windowSetIcon with a
--   pixbuf created by loading the image from filename.
--   
--   This may throw an exception if the file cannot be loaded.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
windowSetIconFromFile :: (WindowClass self, GlibFilePath fp) => self -> fp -> IO ()

-- | By default, after showing the first Window for each
--   Screen, Gtk+ calls screenNotifyStartupComplete. Call
--   this function to disable the automatic startup notification. You might
--   do this if your first window is a splash screen, and you want to delay
--   notification until after your real main window has been shown, for
--   example.
--   
--   In that example, you would disable startup notification temporarily,
--   show your splash screen, then re-enable it so that showing the main
--   window would automatically result in notification.
--   
--   
--   
- Available since Gtk+ version 2.2
--   
windowSetAutoStartupNotification :: Bool -> IO ()

-- | Presents a window to the user in response to a user interaction. If
--   you need to present a window without a timestamp, use
--   windowPresent. See windowPresent for details.
--   
--   
--   
- Available since Gtk+ version 2.8
--   
windowPresentWithTime :: WindowClass self => self -> TimeStamp -> IO ()

-- | This function sets up hints about how a window can be resized by the
--   user. You can set a minimum and maximum size, the allowed resize
--   increments (e.g. for xterm, you can only resize by the size of a
--   character) and aspect ratios.
--   
--   If you set a geometry widget, the hints will apply to the geometry
--   widget instead of directly to the toplevel window. Of course since the
--   geometry widget is a child widget of the top level window,
--   constraining the sizing behaviour of the widget will have a knock-on
--   effect on the sizing of the toplevel window.
--   
--   The
--   minWidth/minHeight/maxWidth/maxHeight
--   fields may be set to -1, to use the size request of the
--   window or geometry widget. If the minimum size hint is not provided,
--   Gtk+ will use the size requisition of the window (or the geometry
--   widget if it set) as the minimum size. The base size is treated
--   similarly.
--   
--   The canonical use-case for windowSetGeometryHints is to get a
--   terminal widget to resize properly. Here, the terminal text area
--   should be the geometry widget. Gtk+ will then automatically set the
--   base size of the terminal window to the size of other widgets in the
--   terminal window, such as the menubar and scrollbar. Then, the
--   widthInc and heightInc values should be set to the
--   size of one character in the terminal. Finally, the base size should
--   be set to the size of one character. The net effect is that the
--   minimum size of the terminal will have a 1x1 character terminal area,
--   and only terminal sizes on the "character grid" will be allowed.
--   
--   The other useful settings are minAspect and
--   maxAspect. These specify a width/height ratio as a floating
--   point number. If a geometry widget is set, the aspect applies to the
--   geometry widget rather than the entire window. The most common use of
--   these hints is probably to set minAspect and
--   maxAspect to the same value, thus forcing the window to keep
--   a constant aspect ratio.
windowSetGeometryHints :: (WindowClass self, WidgetClass widget) => self -> Maybe widget -> Maybe (Int, Int) -> Maybe (Int, Int) -> Maybe (Int, Int) -> Maybe (Int, Int) -> Maybe (Double, Double) -> IO ()

-- | Returns the group for window or the default group, if window is
--   Nothing or if window does not have an explicit window group.
--   
--   
--   
- Available since Gtk+ version 2.10
--   
windowGetGroup :: WindowClass self => Maybe self -> IO WindowGroup

-- | Gets the type of the window. See WindowType.
--   
--   
--   
- Available since Gtk version 2.20
--   
windowGetWindowType :: WindowClass self => self -> IO WindowType

-- | The title of the window.
windowTitle :: (WindowClass self, GlibString string) => Attr self string

-- | The type of the window.
--   
--   Default value: WindowToplevel
windowType :: WindowClass self => ReadAttr self WindowType

-- | If True, the window has no minimum size. Setting this to
--   True is 99% of the time a bad idea.
--   
--   Default value: False
windowAllowShrink :: WindowClass self => Attr self Bool

-- | If True, users can expand the window beyond its minimum size.
--   
--   Default value: True
windowAllowGrow :: WindowClass self => Attr self Bool

-- | If True, users can resize the window.
--   
--   Default value: True
windowResizable :: WindowClass self => Attr self Bool

-- | If True, window has a resize grip.
--   
--   Default value: True
windowHasResizeGrip :: WindowClass self => Attr self Bool

-- | If True, the window is modal (other windows are not usable
--   while this one is up).
--   
--   Default value: False
windowModal :: WindowClass self => Attr self Bool

-- | The requested opacity of the window. See windowSetOpacity for
--   more details about window opacity.
--   
--   Allowed values: [0,1]
--   
--   Default values: 1
--   
--   
--   
- Available since Gtk+ version 2.12
--   
windowOpacity :: WindowClass self => Attr self Double

-- | Unique identifier for the window to be used when restoring a session.
--   
--   Default value: "\"
windowRole :: (WindowClass self, GlibString string) => Attr self string

-- | The windowStartupId is a write-only property for setting
--   window's startup notification identifier.
--   
--   Default value: "\"
--   
--   
--   
- Available since Gtk+ version 2.12
--   
windowStartupId :: (WindowClass self, GlibString string) => Attr self string

-- | The initial position of the window.
--   
--   Default value: WinPosNone
windowWindowPosition :: WindowClass self => Attr self WindowPosition

-- | The default width of the window, used when initially showing the
--   window.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
windowDefaultWidth :: WindowClass self => Attr self Int

-- | The default height of the window, used when initially showing the
--   window.
--   
--   Allowed values: >= -1
--   
--   Default value: -1
windowDefaultHeight :: WindowClass self => Attr self Int

-- | Whether the window frame should have a close button.
--   
--   Default values: True
--   
--   
--   
- Available since Gtk+ version 2.10
--   
windowDeletable :: WindowClass self => Attr self Bool

-- | If this window should be destroyed when the parent is destroyed.
--   
--   Default value: False
windowDestroyWithParent :: WindowClass self => Attr self Bool

-- | Icon for this window.
windowIcon :: WindowClass self => Attr self (Maybe Pixbuf)

-- | The windowIconName property specifies the name of the themed
--   icon to use as the window icon. See IconTheme for more details.
--   
--   Default values: "\"
--   
--   
--   
- Available since Gtk+ version 2.6
--   
windowIconName :: (WindowClass self, GlibString string) => Attr self string

-- | The screen where this window will be displayed.
windowScreen :: WindowClass self => Attr self Screen

-- | Hint to help the desktop environment understand what kind of window
--   this is and how to treat it.
--   
--   Default value: WindowTypeHintNormal
windowTypeHint :: WindowClass self => Attr self WindowTypeHint

-- | True if the window should not be in the task bar.
--   
--   Default value: False
windowSkipTaskbarHint :: WindowClass self => Attr self Bool

-- | True if the window should not be in the pager.
--   
--   Default value: False
windowSkipPagerHint :: WindowClass self => Attr self Bool

-- | True if the window should be brought to the user's attention.
--   
--   Default value: False
windowUrgencyHint :: WindowClass self => Attr self Bool

-- | True if the window should receive the input focus.
--   
--   Default value: True
windowAcceptFocus :: WindowClass self => Attr self Bool

-- | True if the window should receive the input focus when
--   mapped.
--   
--   Default value: True
windowFocusOnMap :: WindowClass self => Attr self Bool

-- | Whether the window should be decorated by the window manager.
--   
--   Default value: True
windowDecorated :: WindowClass self => Attr self Bool

-- | The window gravity of the window. See windowMove and
--   Gravity for more details about window gravity.
--   
--   Default value: GravityNorthWest
windowGravity :: WindowClass self => Attr self Gravity

-- | Whether the input focus is within this GtkWindow.
--   
--   Note: If add window before HasToplevelFocus
--   (has-toplevel-focus attribute) will conflicts with function
--   windowHasToplevelFocus, so we named this attribute to
--   windowToplevelFocus.
--   
--   Default values: False
windowToplevelFocus :: WindowClass self => Attr self Bool

-- | 'transientFor' property. See windowGetTransientFor and
--   windowSetTransientFor
windowTransientFor :: (WindowClass self, WindowClass parent) => ReadWriteAttr self (Maybe Window) parent

-- | If focus is not the current focus widget, and is focusable,
--   sets it as the focus widget for the window. If focus is
--   Nothing, unsets the focus widget for this window. To set the
--   focus to a particular widget in the toplevel, it is usually more
--   convenient to use widgetGrabFocus instead of this function.
windowFocus :: WindowClass self => Attr self (Maybe Widget)

-- | Sets up the icon representing a Window. The icon is used when
--   the window is minimized (also known as iconified). Some window
--   managers or desktop environments may also place it in the window
--   frame, or display it in other contexts.
--   
--   By passing several sizes, you may improve the final image quality of
--   the icon, by reducing or eliminating automatic image scaling.
--   
--   Recommended sizes to provide: 16x16, 32x32, 48x48 at minimum, and
--   larger images (64x64, 128x128) if you have them.
--   
--   See also windowSetDefaultIconList to set the icon for all
--   windows in your application in one go.
--   
--   Note that transient windows (those who have been set transient for
--   another window using windowSetTransientFor) will inherit their
--   icon from their transient parent. So there's no need to explicitly set
--   the icon on transient windows.
windowIconList :: WindowClass self => Attr self [Pixbuf]

-- | The mnemonic modifier for this window.
windowMnemonicModifier :: WindowClass self => Attr self [Modifier]
windowMnemonicVisible :: WindowClass self => Attr self Bool

-- | Observe events that are emitted on the frame of this window.
frameEvent :: WindowClass self => Signal self (EventM EAny Bool)

-- | The keysChanged signal gets emitted when the set of
--   accelerators or mnemonics that are associated with window changes.
keysChanged :: WindowClass self => Signal self (IO ())

-- | Observe a change in input focus.
setFocus :: WindowClass self => Signal self (Maybe Widget -> IO ())
instance GHC.Internal.Enum.Enum Graphics.UI.Gtk.Windows.Window.GdkWindowHints

-- | A file chooser dialog, suitable for "File/Open" or "File/Save"
--   commands
--   
--   
--   
- Module available since Gtk+ version 2.4
--   
module Graphics.UI.Gtk.Selectors.FileChooserDialog
data FileChooserDialog
class DialogClass o => FileChooserDialogClass o
castToFileChooserDialog :: GObjectClass obj => obj -> FileChooserDialog
gTypeFileChooserDialog :: GType
toFileChooserDialog :: FileChooserDialogClass o => o -> FileChooserDialog

-- | Creates a new FileChooserDialog.
fileChooserDialogNew :: GlibString string => Maybe string -> Maybe Window -> FileChooserAction -> [(string, ResponseId)] -> IO FileChooserDialog

-- | Creates a new FileChooserDialog with a specified backend. This
--   is especially useful if you use fileChooserSetLocalOnly to
--   allow non-local files and you use a more expressive vfs, such as
--   gnome-vfs, to load files.
fileChooserDialogNewWithBackend :: GlibString string => Maybe string -> Maybe Window -> FileChooserAction -> [(string, ResponseId)] -> string -> IO FileChooserDialog
instance Graphics.UI.Gtk.Types.FileChooserClass Graphics.UI.Gtk.Types.FileChooserDialog

-- | Limit the effect of grabs
module Graphics.UI.Gtk.Windows.WindowGroup
data WindowGroup
class GObjectClass o => WindowGroupClass o
castToWindowGroup :: GObjectClass obj => obj -> WindowGroup
gTypeWindowGroup :: GType
toWindowGroup :: WindowGroupClass o => o -> WindowGroup

-- | Creates a new WindowGroup object. Grabs added with
--   grabAdd only affect windows within the same WindowGroup.
windowGroupNew :: IO WindowGroup

-- | Adds a window to a WindowGroup.
windowGroupAddWindow :: (WindowGroupClass self, WindowClass window) => self -> window -> IO ()

-- | Removes a window from a WindowGroup.
windowGroupRemoveWindow :: (WindowGroupClass self, WindowClass window) => self -> window -> IO ()

-- | Returns a list of the Windows that belong to
--   windowGroup.
--   
--   
--   
- Available since Gtk+ version 2.14
--   
windowGroupListWindows :: WindowGroupClass self => self -> IO [Window]

-- | This module gathers all publicly available functions from the Gtk
--   binding.
module Graphics.UI.Gtk
type GWeakNotify = FunPtr Ptr () -> Ptr GObject -> IO ()

-- | Attach a callback that will be called after the destroy hooks have
--   been called
objectWeakref :: GObjectClass o => o -> IO () -> IO GWeakNotify

-- | Detach a weak destroy callback function
objectWeakunref :: GObjectClass o => o -> GWeakNotify -> IO ()

-- | Signals that all holders of a reference to the Object should
--   release the reference that they hold. May result in finalization of
--   the object if all references are released.
objectDestroy :: WidgetClass self => Signal self (IO ())

-- | Register a notify callback that is triggered when the given property
--   has been modified.
--   
--   
--   
- Note that this callback is triggered even if the actual value of
--   the property has not changed.
--   
- Not all attributes are properties. A warning will be generated at
--   runtime if the passed-in attribute is not a property of the class with
--   which it was registered.
--   
notifyProperty :: GObjectClass self => ReadWriteAttr self a b -> Signal self (IO ())
class GObjectClass o

-- | Safe upcast.
toGObject :: GObjectClass o => o -> GObject
data GObject
castToGObject :: GObjectClass obj => obj -> obj

-- | The type constant to check if an instance is of GObject type.
gTypeGObject :: GType

-- | Create a unique id based on the given string.
quarkFromString :: GlibString string => string -> IO Quark

-- | Add an attribute to this object.
--   
--   
--   
- The function returns a new attribute that can be set or retrieved
--   from any GObject. The attribute is wrapped in a Maybe
--   type to reflect the circumstance when the attribute is not set or if
--   it should be unset.
--   
objectCreateAttribute :: GObjectClass o => IO (Attr o (Maybe a))

-- | Set the value of an association.
objectSetAttribute :: GObjectClass o => Quark -> o -> Maybe a -> IO ()

-- | Get the value of an association.
--   
--   
--   
- Note that this function may crash the Haskell run-time since the
--   returned type can be forced to be anything. See
--   objectCreateAttribute for a safe wrapper around this
--   function.
--   
objectGetAttributeUnsafe :: GObjectClass o => Quark -> o -> IO (Maybe a)

-- | Determine if this is an instance of a particular GTK type
isA :: GObjectClass o => o -> GType -> Bool
