tinyfiledialogs-0.2.0.0: Wrapper around the 'tiny file dialogs' C library

Safe HaskellSafe
LanguageHaskell2010

Graphics.UI.TinyFileDialogs

Contents

Synopsis

The functions

messageBox Source #

Arguments

:: MessageBox a 
=> Text

title

-> Text

message, may contain \n and \t

-> IconType 
-> a

default button

-> IO a 

inputBox Source #

Arguments

:: Text

title

-> Text

message, may NOT contain \n and \t on windows

-> Maybe Text

default input, if Nothing it's a passwordBox

-> IO (Maybe Text)

returns Nothing on cancel

saveFileDialog Source #

Arguments

:: Text

title

-> Text

default path and file

-> [Text]

filter patterns, ["*.jpg","*.png"]

-> Text

single filter description, "text files"

-> IO (Maybe Text)

returns Nothing on cancel

openFileDialog Source #

Arguments

:: Text

title

-> Text

default path and file

-> [Text]

filter patterns, ["*.jpg","*.png"]

-> Text

single filter description, "text files"

-> Bool

allow multiple selects

-> IO (Maybe [Text])

returns Nothing on cancel

selectFolderDialog Source #

Arguments

:: Text

title

-> Text

default path

-> IO (Maybe Text)

returns Nothing on cancel

colorChooser Source #

Arguments

:: Text

title

-> (Word8, Word8, Word8)

default RGB color

-> IO (Maybe (Word8, Word8, Word8))

returns Nothing on cancel

Message box options

data OK Source #

Constructors

OK 

Instances

Bounded OK Source # 

Methods

minBound :: OK #

maxBound :: OK #

Enum OK Source # 

Methods

succ :: OK -> OK #

pred :: OK -> OK #

toEnum :: Int -> OK #

fromEnum :: OK -> Int #

enumFrom :: OK -> [OK] #

enumFromThen :: OK -> OK -> [OK] #

enumFromTo :: OK -> OK -> [OK] #

enumFromThenTo :: OK -> OK -> OK -> [OK] #

Eq OK Source # 

Methods

(==) :: OK -> OK -> Bool #

(/=) :: OK -> OK -> Bool #

Ord OK Source # 

Methods

compare :: OK -> OK -> Ordering #

(<) :: OK -> OK -> Bool #

(<=) :: OK -> OK -> Bool #

(>) :: OK -> OK -> Bool #

(>=) :: OK -> OK -> Bool #

max :: OK -> OK -> OK #

min :: OK -> OK -> OK #

Read OK Source # 
Show OK Source # 

Methods

showsPrec :: Int -> OK -> ShowS #

show :: OK -> String #

showList :: [OK] -> ShowS #

MessageBox OK Source #