hbro-0.6.2: A suckless minimal KISSy browser

Safe HaskellNone

Hbro.Types

Synopsis

Documentation

data Browser Source

Constructors

Browser 

Fields

mOptions :: CliOptions

Commandline options

mConfiguration :: Configuration

Custom configuration provided by user

mGUI :: GUI

Graphical widgets

data CliOptions Source

Constructors

CliOptions 

Fields

mURI :: Maybe String

URI to load at start-up

data Configuration Source

Constructors

Configuration 

Fields

mHomePage :: String

Startup page

mSocketDir :: String

Directory where 0MQ will be created (/tmp for example)

mUIFile :: String

Path to XML file describing UI (used by GtkBuilder)

mKeys :: KeysList

List of keybindings

mWebSettings :: IO WebSettings

Web settings provided by webkit (see Webkit::WebSettings documentation)

mSetup :: Browser -> IO ()

Custom startup instructions

mCommands :: CommandsList

Custom commands to use with IPC sockets

mError :: Maybe String

Error

data GUI Source

Constructors

GUI 

Fields

mWindow :: Window

Main window

mInspectorWindow :: Window

WebInspector window

mScrollWindow :: ScrolledWindow

ScrolledWindow containing the webview

mWebView :: WebView

Browser's webview

mPromptLabel :: Label

Description of current prompt

mPromptEntry :: Entry

Prompt entry

mStatusBox :: HBox

Status bar's horizontal box

mBuilder :: Builder

Builder object created from XML file

type KeysList = [(([Modifier], String), Browser -> IO ())]Source

List of bound keys All callbacks are fed with the Browser instance Note 1 : for modifiers, lists are used for convenience purposes, but are transformed into sets in hbro's internal machinery, so that order and repetition don't matter Note 2 : for printable characters accessed via the shift modifier, you do have to include Shift in modifiers list

type CommandsList = [(String, [String] -> Socket Rep -> Browser -> IO ())]Source