gi-gtk-0.3.18.13: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Functions

Contents

Description

 

Synopsis

Methods

accelGroupsActivate

accelGroupsActivate :: (MonadIO m, ObjectK a) => a -> Word32 -> [ModifierType] -> m Bool Source

accelGroupsFromObject

accelGroupsFromObject :: (MonadIO m, ObjectK a) => a -> m [AccelGroup] Source

acceleratorGetDefaultModMask

acceleratorGetLabel

acceleratorGetLabel :: MonadIO m => Word32 -> [ModifierType] -> m Text Source

acceleratorGetLabelWithKeycode

acceleratorGetLabelWithKeycode :: (MonadIO m, DisplayK a) => Maybe a -> Word32 -> Word32 -> [ModifierType] -> m Text Source

acceleratorName

acceleratorName :: MonadIO m => Word32 -> [ModifierType] -> m Text Source

acceleratorNameWithKeycode

acceleratorNameWithKeycode :: (MonadIO m, DisplayK a) => Maybe a -> Word32 -> Word32 -> [ModifierType] -> m Text Source

acceleratorParse

acceleratorParse :: MonadIO m => Text -> m (Word32, [ModifierType]) Source

acceleratorParseWithKeycode

acceleratorParseWithKeycode :: MonadIO m => Text -> m (Word32, [Word32], [ModifierType]) Source

acceleratorSetDefaultModMask

acceleratorSetDefaultModMask :: MonadIO m => [ModifierType] -> m () Source

acceleratorValid

acceleratorValid :: MonadIO m => Word32 -> [ModifierType] -> m Bool Source

alternativeDialogButtonOrder

alternativeDialogButtonOrder :: (MonadIO m, ScreenK a) => Maybe a -> m Bool Source

Deprecated: (Since version 3.10)Deprecated

bindingsActivate

bindingsActivate :: (MonadIO m, ObjectK a) => a -> Word32 -> [ModifierType] -> m Bool Source

bindingsActivateEvent

bindingsActivateEvent :: (MonadIO m, ObjectK a) => a -> EventKey -> m Bool Source

cairoShouldDrawWindow

cairoShouldDrawWindow :: (MonadIO m, WindowK a) => Context -> a -> m Bool Source

cairoTransformToWindow

cairoTransformToWindow :: (MonadIO m, WidgetK a, WindowK b) => Context -> a -> b -> m () Source

checkVersion

deviceGrabAdd

deviceGrabAdd :: (MonadIO m, WidgetK a, DeviceK b) => a -> b -> Bool -> m () Source

deviceGrabRemove

deviceGrabRemove :: (MonadIO m, WidgetK a, DeviceK b) => a -> b -> m () Source

disableSetlocale

distributeNaturalAllocation

dragCancel

dragCancel :: (MonadIO m, DragContextK a) => a -> m () Source

dragFinish

dragFinish :: (MonadIO m, DragContextK a) => a -> Bool -> Bool -> Word32 -> m () Source

dragGetSourceWidget

dragGetSourceWidget :: (MonadIO m, DragContextK a) => a -> m Widget Source

dragSetIconDefault

dragSetIconDefault :: (MonadIO m, DragContextK a) => a -> m () Source

dragSetIconGicon

dragSetIconGicon :: (MonadIO m, DragContextK a, IconK b) => a -> b -> Int32 -> Int32 -> m () Source

dragSetIconName

dragSetIconName :: (MonadIO m, DragContextK a) => a -> Text -> Int32 -> Int32 -> m () Source

dragSetIconPixbuf

dragSetIconPixbuf :: (MonadIO m, DragContextK a, PixbufK b) => a -> b -> Int32 -> Int32 -> m () Source

dragSetIconStock

dragSetIconStock :: (MonadIO m, DragContextK a) => a -> Text -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.10)Use gtk_drag_set_icon_name() instead.

dragSetIconSurface

dragSetIconSurface :: (MonadIO m, DragContextK a) => a -> Surface -> m () Source

dragSetIconWidget

dragSetIconWidget :: (MonadIO m, DragContextK a, WidgetK b) => a -> b -> Int32 -> Int32 -> m () Source

drawInsertionCursor

drawInsertionCursor :: (MonadIO m, WidgetK a) => a -> Context -> Rectangle -> Bool -> TextDirection -> Bool -> m () Source

Deprecated: (Since version 3.4)Use gtk_render_insertion_cursor() instead.

eventsPending

false

getBinaryAge

getCurrentEvent

getCurrentEventDevice

getCurrentEventState

getCurrentEventState :: MonadIO m => m (Bool, [ModifierType]) Source

getCurrentEventTime

getDebugFlags

getDefaultLanguage

getDefaultLanguage :: MonadIO m => m Language Source

getEventWidget

getEventWidget :: MonadIO m => Event -> m Widget Source

getInterfaceAge

getLocaleDirection

getMajorVersion

getMicroVersion

getMinorVersion

getOptionGroup

getOptionGroup :: MonadIO m => Bool -> m OptionGroup Source

grabGetCurrent

init

init :: MonadIO m => Maybe [Text] -> m (Maybe [Text]) Source

initCheck

initWithArgs

initWithArgs :: MonadIO m => Maybe [Text] -> Maybe Text -> [OptionEntry] -> Maybe Text -> m (Maybe [Text]) Source

keySnooperRemove

keySnooperRemove :: MonadIO m => Word32 -> m () Source

Deprecated: (Since version 3.4)Key snooping should not be done. Events should be handled by widgets.

main

main :: MonadIO m => m () Source

mainDoEvent

mainDoEvent :: MonadIO m => Event -> m () Source

mainIteration

mainIterationDo

mainLevel

mainQuit

mainQuit :: MonadIO m => m () Source

paintArrow

paintArrow :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> ArrowType -> Bool -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_arrow() instead

paintBox

paintBox :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_frame() and gtk_render_background() instead

paintBoxGap

paintBoxGap :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> PositionType -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_frame_gap() instead

paintCheck

paintCheck :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_check() instead

paintDiamond

paintDiamond :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use cairo instead

paintExpander

paintExpander :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> ExpanderStyle -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_expander() instead

paintExtension

paintExtension :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> PositionType -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_extension() instead

paintFlatBox

paintFlatBox :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_frame() and gtk_render_background() instead

paintFocus

paintFocus :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_focus() instead

paintHandle

paintHandle :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> Orientation -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_handle() instead

paintHline

paintHline :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_line() instead

paintLayout

paintLayout :: (MonadIO m, StyleK a, WidgetK b, LayoutK c) => a -> Context -> StateType -> Bool -> Maybe b -> Maybe Text -> Int32 -> Int32 -> c -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_layout() instead

paintOption

paintOption :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_option() instead

paintResizeGrip

paintResizeGrip :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> Maybe b -> Maybe Text -> WindowEdge -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_handle() instead

paintShadow

paintShadow :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_frame() instead

paintShadowGap

paintShadowGap :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> PositionType -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_frame_gap() instead

paintSlider

paintSlider :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> Orientation -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_slider() instead

paintSpinner

paintSpinner :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> Maybe b -> Maybe Text -> Word32 -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_activity() instead

paintTab

paintTab :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> ShadowType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use cairo instead

paintVline

paintVline :: (MonadIO m, StyleK a, WidgetK b) => a -> Context -> StateType -> Maybe b -> Maybe Text -> Int32 -> Int32 -> Int32 -> m () Source

Deprecated: (Since version 3.0)Use gtk_render_line() instead

parseArgs

parseArgs :: MonadIO m => [Text] -> m (Bool, [Text]) Source

printRunPageSetupDialog

printRunPageSetupDialogAsync

propagateEvent

propagateEvent :: (MonadIO m, WidgetK a) => a -> Event -> m () Source

rcAddDefaultFile

rcAddDefaultFile :: MonadIO m => [Char] -> m () Source

Deprecated: (Since version 3.0)Use GtkStyleProvider instead

rcFindModuleInPath

rcFindModuleInPath :: MonadIO m => Text -> m [Char] Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcFindPixmapInPath

rcFindPixmapInPath :: (MonadIO m, SettingsK a) => a -> Scanner -> Text -> m [Char] Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcGetDefaultFiles

rcGetDefaultFiles :: MonadIO m => m [[Char]] Source

Deprecated: (Since version 3.0)Use #GtkStyleContext instead

rcGetImModuleFile

rcGetImModuleFile :: MonadIO m => m [Char] Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcGetImModulePath

rcGetImModulePath :: MonadIO m => m [Char] Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcGetModuleDir

rcGetModuleDir :: MonadIO m => m [Char] Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcGetStyle

rcGetStyle :: (MonadIO m, WidgetK a) => a -> m Style Source

Deprecated: (Since version 3.0)Use #GtkStyleContext instead

rcGetStyleByPaths

rcGetStyleByPaths :: (MonadIO m, SettingsK a) => a -> Maybe Text -> Maybe Text -> GType -> m Style Source

Deprecated: (Since version 3.0)Use #GtkStyleContext instead

rcGetThemeDir

rcGetThemeDir :: MonadIO m => m Text Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcParse

rcParse :: MonadIO m => Text -> m () Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcParseColor

rcParseColor :: MonadIO m => Scanner -> m (Word32, Color) Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead

rcParseColorFull

rcParseColorFull :: (MonadIO m, RcStyleK a) => Scanner -> Maybe a -> m (Word32, Color) Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead

rcParsePriority

rcParsePriority :: MonadIO m => Scanner -> PathPriorityType -> m Word32 Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead

rcParseState

rcParseState :: MonadIO m => Scanner -> m (Word32, StateType) Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead

rcParseString

rcParseString :: MonadIO m => Text -> m () Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcReparseAll

rcReparseAll :: MonadIO m => m Bool Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcReparseAllForSettings

rcReparseAllForSettings :: (MonadIO m, SettingsK a) => a -> Bool -> m Bool Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcResetStyles

rcResetStyles :: (MonadIO m, SettingsK a) => a -> m () Source

Deprecated: (Since version 3.0)Use #GtkCssProvider instead.

rcSetDefaultFiles

rcSetDefaultFiles :: MonadIO m => [[Char]] -> m () Source

Deprecated: (Since version 3.0)Use GtkStyleProvider instead

renderActivity

renderActivity :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderArrow

renderArrow :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderBackground

renderBackground :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderCheck

renderCheck :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderExpander

renderExpander :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderExtension

renderExtension :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> PositionType -> m () Source

renderFocus

renderFocus :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderFrame

renderFrame :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderFrameGap

renderFrameGap :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> PositionType -> Double -> Double -> m () Source

renderHandle

renderHandle :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderIcon

renderIcon :: (MonadIO m, StyleContextK a, PixbufK b) => a -> Context -> b -> Double -> Double -> m () Source

renderIconPixbuf

renderIconPixbuf :: (MonadIO m, StyleContextK a) => a -> IconSource -> Int32 -> m Pixbuf Source

Deprecated: (Since version 3.10)Use gtk_icon_theme_load_icon() instead.

renderIconSurface

renderIconSurface :: (MonadIO m, StyleContextK a) => a -> Context -> Surface -> Double -> Double -> m () Source

renderInsertionCursor

renderInsertionCursor :: (MonadIO m, StyleContextK a, LayoutK b) => a -> Context -> Double -> Double -> b -> Int32 -> Direction -> m () Source

renderLayout

renderLayout :: (MonadIO m, StyleContextK a, LayoutK b) => a -> Context -> Double -> Double -> b -> m () Source

renderLine

renderLine :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderOption

renderOption :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source

renderSlider

renderSlider :: (MonadIO m, StyleContextK a) => a -> Context -> Double -> Double -> Double -> Double -> Orientation -> m () Source

rgbToHsv

selectionAddTarget

selectionAddTarget :: (MonadIO m, WidgetK a) => a -> Atom -> Atom -> Word32 -> m () Source

selectionAddTargets

selectionAddTargets :: (MonadIO m, WidgetK a) => a -> Atom -> [TargetEntry] -> m () Source

selectionClearTargets

selectionClearTargets :: (MonadIO m, WidgetK a) => a -> Atom -> m () Source

selectionConvert

selectionConvert :: (MonadIO m, WidgetK a) => a -> Atom -> Atom -> Word32 -> m Bool Source

selectionOwnerSet

selectionOwnerSet :: (MonadIO m, WidgetK a) => Maybe a -> Atom -> Word32 -> m Bool Source

selectionOwnerSetForDisplay

selectionOwnerSetForDisplay :: (MonadIO m, DisplayK a, WidgetK b) => a -> Maybe b -> Atom -> Word32 -> m Bool Source

selectionRemoveAll

selectionRemoveAll :: (MonadIO m, WidgetK a) => a -> m () Source

setDebugFlags

showUri

showUri :: (MonadIO m, ScreenK a) => Maybe a -> Text -> Word32 -> m () Source

stockAdd

stockAdd :: MonadIO m => [StockItem] -> m () Source

Deprecated: (Since version 3.10)

stockAddStatic

stockAddStatic :: MonadIO m => [StockItem] -> m () Source

Deprecated: (Since version 3.10)

stockListIds

stockListIds :: MonadIO m => m [Text] Source

Deprecated: (Since version 3.10)

stockLookup

stockLookup :: MonadIO m => Text -> m (Bool, StockItem) Source

Deprecated: (Since version 3.10)

stockSetTranslateFunc

stockSetTranslateFunc :: MonadIO m => Text -> TranslateFunc -> m () Source

Deprecated: (Since version 3.10)

targetTableFree

targetTableNewFromList

targetsIncludeImage

targetsIncludeImage :: MonadIO m => [Atom] -> Bool -> m Bool Source

targetsIncludeRichText

targetsIncludeRichText :: (MonadIO m, TextBufferK a) => [Atom] -> a -> m Bool Source

targetsIncludeText

targetsIncludeUri

targetsIncludeUri :: MonadIO m => [Atom] -> m Bool Source

testCreateSimpleWindow

testFindLabel

testFindSibling

testFindWidget

testListAllTypes

testRegisterAllTypes

testSliderGetValue

testSliderSetPerc

testSliderSetPerc :: (MonadIO m, WidgetK a) => a -> Double -> m () Source

testSpinButtonClick

testTextGet

testTextGet :: (MonadIO m, WidgetK a) => a -> m Text Source

testTextSet

testTextSet :: (MonadIO m, WidgetK a) => a -> Text -> m () Source

testWidgetClick

testWidgetClick :: (MonadIO m, WidgetK a) => a -> Word32 -> [ModifierType] -> m Bool Source

testWidgetSendKey

testWidgetSendKey :: (MonadIO m, WidgetK a) => a -> Word32 -> [ModifierType] -> m Bool Source

testWidgetWaitForDraw

treeGetRowDragData

treeSetRowDragData

true