fltkhs-0.5.1.9: FLTK bindings

Safe HaskellNone
LanguageHaskell2010

Graphics.UI.FLTK.LowLevel.Window

Contents

Synopsis

Documentation

data CustomWindowFuncs a Source #

Constructors

CustomWindowFuncs 

Fields

fillCustomWidgetFunctionStruct :: forall a. Parent a Widget => Ptr () -> Maybe (Ref a -> IO ()) -> CustomWidgetFuncs a -> IO () Source #

Fill up a struct with pointers to functions on the Haskell side that will get called instead of the default ones.

Fill up the Widget part the function pointer struct.

Only of interest to Widget contributors

windowCustom Source #

Arguments

:: Size

Size of this window

-> Maybe Position

Optional position of this window

-> Maybe Text

Optional label

-> Maybe (Ref Window -> IO ())

Optional table drawing routine

-> CustomWidgetFuncs Window

Custom widget overrides

-> CustomWindowFuncs Window

Custom window overrides

-> IO (Ref Window) 

windowMaker :: forall a b. (Parent a Window, Parent b Widget) => Size -> Maybe Position -> Maybe Text -> Maybe (Ref b -> IO ()) -> CustomWidgetFuncs b -> CustomWindowFuncs a -> (Int -> Int -> Ptr () -> IO (Ptr ())) -> (Int -> Int -> Text -> Ptr () -> IO (Ptr ())) -> (Int -> Int -> Int -> Int -> Ptr () -> IO (Ptr ())) -> (Int -> Int -> Int -> Int -> Text -> Ptr () -> IO (Ptr ())) -> IO (Ref a) Source #

Hierarchy

Functions

changed :: Ref Window -> IO (Bool)

clearBorder :: Ref Window -> IO ()

copyLabel :: Ref Window -> Text -> IO ()

destroy :: Ref Window -> IO ()

drawBackdrop :: Ref Window -> IO ()

drawBox :: Ref Window -> IO ()

drawBoxWithBoxtype :: Ref Window -> Boxtype -> Color -> Maybe Rectangle -> IO ()

drawFocus :: Ref Window -> Maybe (Boxtype, Rectangle) -> IO ()

drawSuper :: Ref Window -> IO ()

flushSuper :: Ref Window -> IO ()

freePosition :: Ref Window -> IO ()

fullscreenOff :: Ref Window -> Maybe Rectangle -> IO ()

getBorder :: Ref Window -> IO (Bool)

getDecoratedH :: Ref Window -> IO (Int)

getDecoratedW :: Ref Window -> IO (Int)

getIcon :: Ref Window -> IO (Maybe (Ref Image))

getIconlabel :: Ref Window -> IO Text

getLabel :: Ref Window -> IO Text

getMenuWindow :: Ref Window -> IO (Bool)

getModal :: Ref Window -> IO (Bool)

getOverride :: Ref Window -> IO (Bool)

getTooltipWindow :: Ref Window -> IO (Bool)

getType_ :: Ref Window -> IO (WindowType)

getXRoot :: Ref Window -> IO (Int)

getXclass :: Ref Window -> IO Text

getYRoot :: Ref Window -> IO (Int)

handle :: Ref Window -> (Event -> IO (Either UnknownEvent ()))

handleSuper :: Ref Window -> Event -> IO (Int)

hide :: Ref Window -> IO ()

hideSuper :: Ref Window -> IO ()

hotSpot :: Ref Window -> PositionSpec -> Maybe Bool -> IO ()

iconize :: Ref Window -> IO ()

makeCurrent :: Ref Window -> IO ()

makeFullscreen :: Ref Window -> IO ()

nonModal :: Ref Window -> IO (Bool)

resize :: Ref Window -> Rectangle -> IO ()

resizeSuper :: Ref Window -> Rectangle -> IO ()

setBorder :: Ref Window -> Bool -> IO ()

setCallback :: Ref Window -> (Ref orig -> IO ()) -> IO ()

setCursor :: Ref Window -> Cursor -> IO ()

setCursorWithFgBg :: Ref Window -> Cursor -> (Maybe Color, Maybe Color) -> IO ()

setDefaultCursor :: Ref Window -> CursorType -> IO ()

setDefaultCursorWithFgBg :: Ref Window -> CursorType -> (Maybe Color, Maybe Color) -> IO ()

setIcon:: (Parent a Image) => Ref Window -> Maybe( Ref a ) -> IO ()

setIconlabel :: Ref Window -> Text -> IO ()

setLabel :: Ref Window -> Text -> IO ()

setLabelWithIconlabel :: Ref Window -> Text -> Text -> IO ()

setMenuWindow :: Ref Window -> IO ()

setModal :: Ref Window -> IO ()

setNonModal :: Ref Window -> IO ()

setOverride :: Ref Window -> IO ()

setTooltipWindow :: Ref Window -> IO ()

setType :: Ref Window -> WindowType -> IO ()

setXclass :: Ref Window -> Text -> IO ()

showWidget :: Ref Window -> IO ()

showWidgetSuper :: Ref Window -> IO ()

shown :: Ref Window -> IO (Bool)

sizeRange :: Ref Window -> Int -> Int -> IO ()

sizeRangeWithArgs :: Ref Window -> Int -> Int -> OptionalSizeRangeArgs -> IO ()

waitForExpose :: Ref Window -> IO ()

Orphan instances

(~) * impl (IO ()) => Op (WaitForExpose ()) Window orig impl Source # 

Methods

runOp :: WaitForExpose () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Int) => Op (GetDecoratedH ()) Window orig impl Source # 

Methods

runOp :: GetDecoratedH () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Int) => Op (GetDecoratedW ()) Window orig impl Source # 

Methods

runOp :: GetDecoratedW () -> orig -> Ref Window -> impl Source #

(~) * impl (CursorType -> (Maybe Color, Maybe Color) -> IO ()) => Op (SetDefaultCursorWithFgBg ()) Window orig impl Source # 

Methods

runOp :: SetDefaultCursorWithFgBg () -> orig -> Ref Window -> impl Source #

(~) * impl (CursorType -> IO ()) => Op (SetDefaultCursor ()) Window orig impl Source # 

Methods

runOp :: SetDefaultCursor () -> orig -> Ref Window -> impl Source #

(~) * impl (Cursor -> (Maybe Color, Maybe Color) -> IO ()) => Op (SetCursorWithFgBg ()) Window orig impl Source # 

Methods

runOp :: SetCursorWithFgBg () -> orig -> Ref Window -> impl Source #

(~) * impl (Cursor -> IO ()) => Op (SetCursor ()) Window orig impl Source # 

Methods

runOp :: SetCursor () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (MakeCurrent ()) Window orig impl Source # 

Methods

runOp :: MakeCurrent () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Int) => Op (GetYRoot ()) Window orig impl Source # 

Methods

runOp :: GetYRoot () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Int) => Op (GetXRoot ()) Window orig impl Source # 

Methods

runOp :: GetXRoot () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (Iconize ()) Window orig impl Source # 

Methods

runOp :: Iconize () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Bool) => Op (Shown ()) Window orig impl Source # 

Methods

runOp :: Shown () -> orig -> Ref Window -> impl Source #

(Parent a Image, (~) * impl (Maybe (Ref a) -> IO ())) => Op (SetIcon ()) Window orig impl Source # 

Methods

runOp :: SetIcon () -> orig -> Ref Window -> impl Source #

(~) * impl (IO (Maybe (Ref Image))) => Op (GetIcon ()) Window orig impl Source # 

Methods

runOp :: GetIcon () -> orig -> Ref Window -> impl Source #

(~) * impl (Text -> IO ()) => Op (SetXclass ()) Window orig impl Source # 

Methods

runOp :: SetXclass () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Text) => Op (GetXclass ()) Window orig impl Source # 

Methods

runOp :: GetXclass () -> orig -> Ref Window -> impl Source #

(~) * impl (Text -> Text -> IO ()) => Op (SetLabelWithIconlabel ()) Window orig impl Source # 

Methods

runOp :: SetLabelWithIconlabel () -> orig -> Ref Window -> impl Source #

(~) * impl (Text -> IO ()) => Op (SetIconlabel ()) Window orig impl Source # 

Methods

runOp :: SetIconlabel () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Text) => Op (GetIconlabel ()) Window orig impl Source # 

Methods

runOp :: GetIconlabel () -> orig -> Ref Window -> impl Source #

(~) * impl (Int -> Int -> OptionalSizeRangeArgs -> IO ()) => Op (SizeRangeWithArgs ()) Window orig impl Source # 

Methods

runOp :: SizeRangeWithArgs () -> orig -> Ref Window -> impl Source #

(~) * impl (Int -> Int -> IO ()) => Op (SizeRange ()) Window orig impl Source # 

Methods

runOp :: SizeRange () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (FreePosition ()) Window orig impl Source # 

Methods

runOp :: FreePosition () -> orig -> Ref Window -> impl Source #

(~) * impl (PositionSpec -> Maybe Bool -> IO ()) => Op (HotSpot ()) Window orig impl Source # 

Methods

runOp :: HotSpot () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Bool) => Op (GetTooltipWindow ()) Window orig impl Source # 

Methods

runOp :: GetTooltipWindow () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (SetTooltipWindow ()) Window orig impl Source # 

Methods

runOp :: SetTooltipWindow () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Bool) => Op (GetMenuWindow ()) Window orig impl Source # 

Methods

runOp :: GetMenuWindow () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (SetMenuWindow ()) Window orig impl Source # 

Methods

runOp :: SetMenuWindow () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Bool) => Op (NonModal ()) Window orig impl Source # 

Methods

runOp :: NonModal () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (SetNonModal ()) Window orig impl Source # 

Methods

runOp :: SetNonModal () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Bool) => Op (GetModal ()) Window orig impl Source # 

Methods

runOp :: GetModal () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (SetModal ()) Window orig impl Source # 

Methods

runOp :: SetModal () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Bool) => Op (GetOverride ()) Window orig impl Source # 

Methods

runOp :: GetOverride () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (SetOverride ()) Window orig impl Source # 

Methods

runOp :: SetOverride () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Bool) => Op (GetBorder ()) Window orig impl Source # 

Methods

runOp :: GetBorder () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (ClearBorder ()) Window orig impl Source # 

Methods

runOp :: ClearBorder () -> orig -> Ref Window -> impl Source #

(~) * impl (Bool -> IO ()) => Op (SetBorder ()) Window orig impl Source # 

Methods

runOp :: SetBorder () -> orig -> Ref Window -> impl Source #

(~) * impl (Maybe Rectangle -> IO ()) => Op (FullscreenOff ()) Window orig impl Source # 

Methods

runOp :: FullscreenOff () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (MakeFullscreen ()) Window orig impl Source # 

Methods

runOp :: MakeFullscreen () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Bool) => Op (Changed ()) Window orig impl Source # 

Methods

runOp :: Changed () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (FlushSuper ()) Window orig impl Source # 

Methods

runOp :: FlushSuper () -> orig -> Ref Window -> impl Source #

(~) * impl (Event -> IO (Either UnknownEvent ())) => Op (HandleSuper ()) Window orig impl Source # 

Methods

runOp :: HandleSuper () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (DrawSuper ()) Window orig impl Source # 

Methods

runOp :: DrawSuper () -> orig -> Ref Window -> impl Source #

(~) * impl (Maybe (Boxtype, Rectangle) -> IO ()) => Op (DrawFocus ()) Window orig impl Source # 

Methods

runOp :: DrawFocus () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (DrawBackdrop ()) Window orig impl Source # 

Methods

runOp :: DrawBackdrop () -> orig -> Ref Window -> impl Source #

(~) * impl (Boxtype -> Color -> Maybe Rectangle -> IO ()) => Op (DrawBoxWithBoxtype ()) Window orig impl Source # 

Methods

runOp :: DrawBoxWithBoxtype () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (DrawBox ()) Window orig impl Source # 

Methods

runOp :: DrawBox () -> orig -> Ref Window -> impl Source #

(~) * impl ((Ref orig -> IO ()) -> IO ()) => Op (SetCallback ()) Window orig impl Source # 

Methods

runOp :: SetCallback () -> orig -> Ref Window -> impl Source #

(~) * impl (Rectangle -> IO ()) => Op (Resize ()) Window orig impl Source # 

Methods

runOp :: Resize () -> orig -> Ref Window -> impl Source #

(~) * impl (Rectangle -> IO ()) => Op (ResizeSuper ()) Window orig impl Source # 

Methods

runOp :: ResizeSuper () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (Hide ()) Window orig impl Source # 

Methods

runOp :: Hide () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (HideSuper ()) Window orig impl Source # 

Methods

runOp :: HideSuper () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (ShowWidget ()) Window orig impl Source # 

Methods

runOp :: ShowWidget () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (ShowWidgetSuper ()) Window orig impl Source # 

Methods

runOp :: ShowWidgetSuper () -> orig -> Ref Window -> impl Source #

(~) * impl (Text -> IO ()) => Op (SetLabel ()) Window orig impl Source # 

Methods

runOp :: SetLabel () -> orig -> Ref Window -> impl Source #

(~) * impl (Text -> IO ()) => Op (CopyLabel ()) Window orig impl Source # 

Methods

runOp :: CopyLabel () -> orig -> Ref Window -> impl Source #

(~) * impl (IO Text) => Op (GetLabel ()) Window orig impl Source # 

Methods

runOp :: GetLabel () -> orig -> Ref Window -> impl Source #

(~) * impl (WindowType -> IO ()) => Op (SetType ()) Window orig impl Source # 

Methods

runOp :: SetType () -> orig -> Ref Window -> impl Source #

(~) * impl (IO WindowType) => Op (GetType_ ()) Window orig impl Source # 

Methods

runOp :: GetType_ () -> orig -> Ref Window -> impl Source #

(~) * impl (Event -> IO (Either UnknownEvent ())) => Op (Handle ()) Window orig impl Source # 

Methods

runOp :: Handle () -> orig -> Ref Window -> impl Source #

(~) * impl (IO ()) => Op (Destroy ()) Window orig impl Source # 

Methods

runOp :: Destroy () -> orig -> Ref Window -> impl Source #