fltkhs-0.4.0.7: FLTK bindings

Safe HaskellNone
LanguageHaskell2010

Graphics.UI.FLTK.LowLevel.Dispatch

Contents

Synopsis

FindOp

type family FindOp orig hierarchy needle :: * Source

Equations

FindOp orig () n = NoFunction n orig 
FindOp orig hierarchy needle = FindOpHelper orig hierarchy needle (Contains (Functions hierarchy) needle) 

Functions

type family Functions x :: * Source

Associate a "class" with it's member functions

Instances

type Functions Base = () Source 
type Functions PNMImage = () Source 
type Functions PNGImage = () Source 
type Functions XPMImage = () Source 
type Functions XBMImage = () Source 
type Functions GIFImage = () Source 
type Functions BMPImage = () Source 
type Functions JPEGImage = () Source 
type Functions RGBImage Source 
type Functions FileBrowser Source 
type Functions ColorChooser Source 
type Functions Spinner Source 
type Functions Tabs Source 
type Functions Scrolled Source 
type Functions Pack Source 
type Functions Tile Source 
type Functions NativeFileChooser Source 
type Functions TextEditor Source 
type Functions TextDisplay Source 
type Functions TextBuffer Source 
type Functions TextSelection Source 
type Functions Tree Source 
type Functions TreeItem Source 
type Functions TreePrefs Source 
type Functions Clock Source 
type Functions IntInput = () Source 
type Functions SelectBrowser = () Source 
type Functions Browser Source 
type Functions Box = () Source 
type Functions GlWindow Source 
type Functions TableRow Source 
type Functions Table Source 
type Functions Wizard Source 
type Functions Positioner Source 
type Functions Progress Source 
type Functions ValueTimer = () Source 
type Functions HiddenTimer = () Source 
type Functions Timer Source 
type Functions ValueOutput Source 
type Functions ValueInput Source 
type Functions Output Source 
type Functions Input Source 
type Functions HorValueSlider = () Source 
type Functions ValueSlider Source 
type Functions Scrollbar Source 
type Functions SimpleCounter = () Source 
type Functions Counter Source 
type Functions Roller Source 
type Functions LineDial = () Source 
type Functions FillDial = () Source 
type Functions Dial Source 
type Functions Adjuster Source 
type Functions ImageSurface Source 
type Functions CopySurface Source 
type Functions Pixmap Source 
type Functions Bitmap Source 
type Functions Image Source 
type Functions MenuButton Source 
type Functions Choice Source 
type Functions SysMenuBar Source 
type Functions MenuBar Source 
type Functions MenuPrim Source 
type Functions MenuItem Source 
type Functions HorNiceSlider = () Source 
type Functions NiceSlider = () Source 
type Functions HorFillSlider = () Source 
type Functions HorSlider = () Source 
type Functions FillSlider = () Source 
type Functions Slider Source 
type Functions Valuator Source 
type Functions ToggleButton Source 
type Functions RepeatButton Source 
type Functions RoundButton Source 
type Functions ReturnButton Source 
type Functions CheckButton Source 
type Functions RadioLightButton = () Source 
type Functions LightButton Source 
type Functions Button Source 
type Functions OverlayWindow Source 
type Functions DoubleWindow Source 
type Functions SingleWindow Source 
type Functions Window Source 
type Functions Group Source 
type Functions Widget = WidgetFuncs Source 
type Functions GlContext = () Source 
type Functions Region = () Source 

Match

data Match a Source

See FindOp for more details.

NoFunction

data NoFunction a b Source

See FindOp for more details.

Op

class Op op obj origObj impl where Source

Implementations of methods on various types of objects.

  • op - name of the function
  • obj - the class that implements op
  • origObj - the class in the hierarchy where the search for op started. Kept around in case the type in needed. The best example is setCallback whose implementation is usually found much lower in the hierarchy but where we also want to enforce that the implementation take the type of the widget calling it.
  • impl - a function that takes the a Ref origobj, casted down to Ref obj and whatever other parameters the instance specifies.

Methods

runOp :: op -> origObj -> Ref obj -> impl Source

dispatch

dispatch :: forall op obj origObj impl. (Match obj ~ FindOp origObj origObj op, Op op obj origObj impl) => op -> Ref origObj -> impl Source

Given some member function op and a Ref to some class origObj return the implementation of op. See Op for more details.

Every FLTK function called on some Ref uses this function to figure out what arguments it needs.

runOp

castTo

castTo :: Ref a -> Ref r Source

Cast any reference to any other reference. Unsafe, intended to be used by Op.

safeCast

safeCast :: Parent a r => Ref a -> Ref r Source

Cast any reference to one of its ancestors.

Parent

class Parent a b Source

A class with a single instance that is found only if b is an ancestor of a.

Used by some Op implementations to enforce that certain parameters have to be at least a b.

Instances

(~) * InHierarchy (FindInHierarchy a a b) => Parent a b Source