Safe Haskell | Safe-Infered |
---|
WASH.CGI.Frames
- data FrameLayout
- data FrameSpacing
- = FrameAbsolute Int
- | FrameRelative Int
- | FramePercent Int
- data FrameSet = FrameSet {
- unFrameSet :: WithHTML () IO ()
- makeFrameset :: CGIMonad cgi => FrameLayout -> [(FrameSpacing, cgi FrameSet)] -> cgi FrameSet
- makeFrame :: CGIMonad cgi => WithHTML x IO () -> cgi () -> cgi FrameSet
- frameFileName :: (Show a1, Show a) => a1 -> a -> [Char]
- frameFullPath :: (Show a, Show a1) => a1 -> a -> [Char]
- framesetPage :: CGIMonad cgi => String -> cgi FrameSet -> cgi ()
Documentation
data FrameLayout Source
Overall layout of a frame set: row-wise or column-wise.
Instances
Show FrameLayout |
data FrameSpacing Source
Division of space between elements of a frameset. See http://wp.netscape.com/assist/net_sites/frame_syntax.html
Constructors
FrameAbsolute Int | in pixels |
FrameRelative Int | the |
FramePercent Int | the |
Instances
Show FrameSpacing |
Abstract data type of frame set generators.
Constructors
FrameSet | |
Fields
|
makeFrameset :: CGIMonad cgi => FrameLayout -> [(FrameSpacing, cgi FrameSet)] -> cgi FrameSetSource
Create a frameset, given a layout, its spacing, and its subframe(set)s.
Arguments
:: CGIMonad cgi | |
=> WithHTML x IO () | additional attributes to frame |
-> cgi () | contents of the frame |
-> cgi FrameSet | returns HTML generator for the frame |
Create a single frame. Returns the assigned name of the frame.
frameFileName :: (Show a1, Show a) => a1 -> a -> [Char]Source
frameFullPath :: (Show a, Show a1) => a1 -> a -> [Char]Source
framesetPage :: CGIMonad cgi => String -> cgi FrameSet -> cgi ()Source
Required wrapper for pages with frames. Takes a title and a FrameSet generator and displays the page.