wxcore-0.90.0.3: wxHaskell core

Portability | portable
Stability | provisional
Maintainer | wxhaskell-devel@lists.sourceforge.net
Safe Haskell | None

Graphics.UI.WXCore.Frame

Contents

- Frame
- Window
- Dialog
- Status bar

Description

Frame utility functions.

Synopsis

- frameCreateTopFrame :: String -> IO (Frame ())
- frameCreateDefault :: String -> IO (Frame ())
- frameSetTopFrame :: Frame a -> IO ()
- frameDefaultStyle :: Int
- frameCenter :: Frame a -> IO ()
- frameCenterHorizontal :: Frame a -> IO ()
- frameCenterVertical :: Frame a -> IO ()
- windowGetRootParent :: Window a -> IO (Window ())
- windowGetFrameParent :: Window a -> IO (Window ())
- windowGetMousePosition :: Window a -> IO Point
- windowGetScreenPosition :: Window a -> IO Point
- windowChildren :: Window a -> IO [Window ()]
- dialogDefaultStyle :: Int
- statusBarCreateFields :: Frame a -> [Int] -> IO (StatusBar ())

# Frame

frameCreateTopFrame :: String -> IO (Frame ())

Create a default frame and make it the top-level window.

frameCreateDefault :: String -> IO (Frame ())

Create a frame with default settings.

frameSetTopFrame :: Frame a -> IO ()

Set the top-level frame (calls `cAppSetTopWindow`).

frameDefaultStyle :: Int

The default frame style for a normal top-level `Frame`.

frameCenter :: Frame a -> IO ()

Center the frame on the screen.

frameCenterHorizontal :: Frame a -> IO ()

Center the frame horizontally on the screen.

frameCenterVertical :: Frame a -> IO ()

Center the frame vertically on the screen.

# Window

windowGetRootParent :: Window a -> IO (Window ())

The ultimate root parent of the widget.

windowGetFrameParent :: Window a -> IO (Window ())

The parent frame or dialog of a widget.

windowGetMousePosition :: Window a -> IO Point

Retrieve the current mouse position relative to the window position.

windowGetScreenPosition :: Window a -> IO Point

Get the window position relative to the origin of the display.

windowChildren :: Window a -> IO [Window ()]

Get the children of a window

# Dialog

dialogDefaultStyle :: Int

The default frame style for a normal `Dialog`.

# Status bar

statusBarCreateFields :: Frame a -> [Int] -> IO (StatusBar ())