gi-gtk-3.0.7: 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, IsObject a) => a -> Word32 -> [ModifierType] -> m Bool Source #

accelGroupsFromObject

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

acceleratorGetDefaultModMask

acceleratorGetDefaultModMask :: MonadIO m => m [ModifierType] Source #

acceleratorGetLabel

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

acceleratorGetLabelWithKeycode

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

acceleratorName

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

acceleratorNameWithKeycode

acceleratorNameWithKeycode :: (MonadIO m, IsDisplay 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, IsScreen a) => Maybe a -> m Bool Source #

Deprecated: (Since version 3.10)Deprecated

bindingsActivate

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

bindingsActivateEvent

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

cairoShouldDrawWindow

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

cairoTransformToWindow

cairoTransformToWindow :: (MonadIO m, IsWidget a, IsWindow b) => Context -> a -> b -> m () Source #

checkVersion

checkVersion :: MonadIO m => Word32 -> Word32 -> Word32 -> m (Maybe Text) Source #

deviceGrabAdd

deviceGrabAdd :: (MonadIO m, IsWidget a, IsDevice b) => a -> b -> Bool -> m () Source #

deviceGrabRemove

deviceGrabRemove :: (MonadIO m, IsWidget a, IsDevice b) => a -> b -> m () Source #

disableSetlocale

distributeNaturalAllocation

dragCancel

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

dragFinish

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

dragGetSourceWidget

dragGetSourceWidget :: (MonadIO m, IsDragContext a) => a -> m (Maybe Widget) Source #

dragSetIconDefault

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

dragSetIconGicon

dragSetIconGicon :: (MonadIO m, IsDragContext a, IsIcon b) => a -> b -> Int32 -> Int32 -> m () Source #

dragSetIconName

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

dragSetIconPixbuf

dragSetIconPixbuf :: (MonadIO m, IsDragContext a, IsPixbuf b) => a -> b -> Int32 -> Int32 -> m () Source #

dragSetIconStock

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

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

dragSetIconSurface

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

dragSetIconWidget

dragSetIconWidget :: (MonadIO m, IsDragContext a, IsWidget b) => a -> b -> Int32 -> Int32 -> m () Source #

drawInsertionCursor

drawInsertionCursor :: (MonadIO m, IsWidget 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 (Maybe 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

initCheck :: MonadIO m => Maybe [Text] -> m (Bool, Maybe [Text]) Source #

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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget b, IsLayout 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsStyle a, IsWidget 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, IsWidget 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, IsSettings 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, IsWidget a) => a -> m Style Source #

Deprecated: (Since version 3.0)Use #GtkStyleContext instead

rcGetStyleByPaths

rcGetStyleByPaths :: (MonadIO m, IsSettings a) => a -> Maybe Text -> Maybe Text -> GType -> m (Maybe 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, IsRcStyle 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, IsSettings a) => a -> Bool -> m Bool Source #

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

rcResetStyles

rcResetStyles :: (MonadIO m, IsSettings 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, IsStyleContext a) => a -> Context -> Double -> Double -> Double -> Double -> m () Source #

renderArrow

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

renderBackground

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

renderBackgroundGetClip

renderBackgroundGetClip :: (MonadIO m, IsStyleContext a) => a -> Double -> Double -> Double -> Double -> m Rectangle Source #

renderCheck

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

renderExpander

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

renderExtension

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

renderFocus

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

renderFrame

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

renderFrameGap

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

renderHandle

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

renderIcon

renderIcon :: (MonadIO m, IsStyleContext a, IsPixbuf b) => a -> Context -> b -> Double -> Double -> m () Source #

renderIconPixbuf

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

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

renderIconSurface

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

renderInsertionCursor

renderInsertionCursor :: (MonadIO m, IsStyleContext a, IsLayout b) => a -> Context -> Double -> Double -> b -> Int32 -> Direction -> m () Source #

renderLayout

renderLayout :: (MonadIO m, IsStyleContext a, IsLayout b) => a -> Context -> Double -> Double -> b -> m () Source #

renderLine

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

renderOption

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

renderSlider

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

rgbToHsv

selectionAddTarget

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

selectionAddTargets

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

selectionClearTargets

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

selectionConvert

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

selectionOwnerSet

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

selectionOwnerSetForDisplay

selectionOwnerSetForDisplay :: (MonadIO m, IsDisplay a, IsWidget b) => a -> Maybe b -> Atom -> Word32 -> m Bool Source #

selectionRemoveAll

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

setDebugFlags

showUri

showUri :: (MonadIO m, IsScreen 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, IsTextBuffer a) => [Atom] -> a -> m Bool Source #

targetsIncludeText

targetsIncludeText :: MonadIO m => [Atom] -> m Bool Source #

targetsIncludeUri

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

testCreateSimpleWindow

testCreateSimpleWindow :: MonadIO m => Text -> Text -> m Widget Source #

Deprecated: (Since version 3.20)This testing infrastructure is phased out in favor of reftests.

testFindLabel

testFindLabel :: (MonadIO m, IsWidget a) => a -> Text -> m Widget Source #

testFindSibling

testFindSibling :: (MonadIO m, IsWidget a) => a -> GType -> m Widget Source #

testFindWidget

testFindWidget :: (MonadIO m, IsWidget a) => a -> Text -> GType -> m (Maybe Widget) Source #

testListAllTypes

testListAllTypes :: MonadIO m => m ([GType], Word32) Source #

testRegisterAllTypes

testSliderGetValue

testSliderGetValue :: (MonadIO m, IsWidget a) => a -> m Double Source #

Deprecated: (Since version 3.20)This testing infrastructure is phased out in favor of reftests.

testSliderSetPerc

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

Deprecated: (Since version 3.20)This testing infrastructure is phased out in favor of reftests.

testSpinButtonClick

testSpinButtonClick :: (MonadIO m, IsSpinButton a) => a -> Word32 -> Bool -> m Bool Source #

Deprecated: (Since version 3.20)This testing infrastructure is phased out in favor of reftests.

testTextGet

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

Deprecated: (Since version 3.20)This testing infrastructure is phased out in favor of reftests.

testTextSet

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

Deprecated: (Since version 3.20)This testing infrastructure is phased out in favor of reftests.

testWidgetClick

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

Deprecated: (Since version 3.20)This testing infrastructure is phased out in favor of reftests.

testWidgetSendKey

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

testWidgetWaitForDraw

treeGetRowDragData

treeSetRowDragData

true