|
| Graphics.UI.Port.Window | | Portability | portable | | Stability | provisional | | Maintainer | ka2_mail@yahoo.com |
|
|
|
|
|
| Description |
| Windows.
|
|
| Synopsis |
|
|
|
|
| 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.6 |