ParentContentsIndex
Graphics.UI.Port.Window
Portability portable
Stability provisional
Maintainer ka2_mail@yahoo.com
Contents
Creation
Operations
Properties
Drawing
Description
Windows.
Synopsis
createWindow :: IO WindowHandle
createDialog :: WindowHandle -> IO WindowHandle
runDialog :: WindowHandle -> IO ()
dismissWindow :: WindowHandle -> IO Bool
dismissAllWindows :: IO Bool
destroyWindow :: WindowHandle -> IO ()
destroyAllWindows :: IO ()
invalidateWindowFrame :: WindowHandle -> Rect -> IO ()
invalidateWindow :: WindowHandle -> IO ()
setDialogMinSize :: WindowHandle -> Size -> IO ()
setWindowVisible :: WindowHandle -> Bool -> IO ()
getWindowVisible :: WindowHandle -> IO Bool
setWindowFrame :: WindowHandle -> Rect -> IO ()
getWindowFrame :: WindowHandle -> IO Rect
setWindowResizeable :: WindowHandle -> Bool -> IO ()
setWindowColor :: WindowHandle -> Color -> Color -> HatchStyle -> IO ()
setWindowDomainSize :: WindowHandle -> Size -> IO ()
setWindowScrollOrigin :: WindowHandle -> Point -> IO ()
getWindowScrollOrigin :: WindowHandle -> IO Point
setWindowViewSize :: WindowHandle -> Size -> IO ()
getWindowViewSize :: WindowHandle -> IO Size
setWindowTitle :: WindowHandle -> String -> IO ()
getWindowTitle :: WindowHandle -> IO String
setWindowPageSize :: WindowHandle -> Size -> IO ()
getWindowPageSize :: WindowHandle -> IO Size
setWindowLineSize :: WindowHandle -> Size -> IO ()
getWindowLineSize :: WindowHandle -> IO Size
setWindowEnabled :: WindowHandle -> Bool -> IO ()
getWindowEnabled :: WindowHandle -> IO Bool
drawInWindow :: WindowHandle -> (CanvasHandle -> IO a) -> IO a
Creation
createWindow :: IO WindowHandle
Create a new (invisible) window. If the function succeeds, the return value is a handle to the new window. If the function fails, the return value is nullHandle.
createDialog
:: WindowHandle Handle to the owner window of the dialog being created. If this parameter is nullHandle or is a handle of a window instead of dialog then the dialog owner is the process window.
-> IO WindowHandle If the function succeeds, the return value is a handle to the new dialog. If the function fails, the return value is nullHandle.
Create a new (invisible) dialog window.
Operations
runDialog :: WindowHandle -> IO ()
Run a modal dialog.
dismissWindow :: WindowHandle -> IO Bool
Dismiss a window.
dismissAllWindows :: IO Bool
destroyWindow :: WindowHandle -> IO ()
Destroy a window.
destroyAllWindows :: IO ()
invalidateWindowFrame :: WindowHandle -> Rect -> IO ()
Force a repaint of a part of the window.
invalidateWindow :: WindowHandle -> IO ()
Force a repaint the window.
setDialogMinSize :: WindowHandle -> Size -> IO ()
Set the minimal size of the dialog.
Properties
setWindowVisible :: WindowHandle -> Bool -> IO ()
Make the window visible/invisible.
getWindowVisible :: WindowHandle -> IO Bool
Retrieves whether is visible.
setWindowFrame :: WindowHandle -> Rect -> IO ()
Move and resize the outer frame of a window.
getWindowFrame :: WindowHandle -> IO Rect
Get the outer frame of a window.
setWindowResizeable :: WindowHandle -> Bool -> IO ()
Make the window resizeable or not.
setWindowColor :: WindowHandle -> Color -> Color -> HatchStyle -> IO ()
Set the default foreground color, background color and hatch style.
setWindowDomainSize :: WindowHandle -> Size -> IO ()
Set the size of the view domain, if the domain is larger than the view size, scroll bars will appear automatically.
setWindowScrollOrigin :: WindowHandle -> Point -> IO ()
Set the scroll origin for the specified window
getWindowScrollOrigin :: WindowHandle -> IO Point
Get the scroll origin for the specified window
setWindowViewSize :: WindowHandle -> Size -> IO ()
Set the size of the view frame.
getWindowViewSize :: WindowHandle -> IO Size
Get the size of the view frame.
setWindowTitle :: WindowHandle -> String -> IO ()
Set the text of the title bar.
getWindowTitle :: WindowHandle -> IO String
Get the text of the title bar.
setWindowPageSize :: WindowHandle -> Size -> IO ()
Set the horizontal and vertical scroll distance for a large scroll action.
getWindowPageSize :: WindowHandle -> IO Size
Get the horizontal and vertical scroll distance for a large scroll action.
setWindowLineSize :: WindowHandle -> Size -> IO ()
Set the horizontal and vertical scroll distance for a small scroll action.
getWindowLineSize :: WindowHandle -> IO Size
Get the horizontal and vertical scroll distance for a small scroll action.
setWindowEnabled :: WindowHandle -> Bool -> IO ()
getWindowEnabled :: WindowHandle -> IO Bool
Drawing
drawInWindow :: WindowHandle -> (CanvasHandle -> IO a) -> IO a
Draw directly on the window. In general however, one should register a paint event handler for drawing in a window (registerWindowPaint). The function passed to drawInWindow should be wrapped with withCanvas function.
Produced by Haddock version 0.4