glazier-react-1.0.0.0: ReactJS binding using Glazier.Command.

Safe HaskellNone
LanguageHaskell2010

Glazier.React.Event.Mouse

Synopsis

Documentation

data MouseEvent Source #

Mouse and Drag/Drop events MouseEvent must only be used in the first part of handleEvent. https://facebook.github.io/react/docs/events.html#mouse-events https://developer.mozilla.org/en-US/docs/Web/Events Event names (eventType) onClick (click) onContextMenu (contextmenu) onDoubleClick (dblclick) onDrag (drag) onDragEnd (dragend) onDragEnter (dragenter) onDragExit (dragexit) onDragLeave (dragleave) onDragOver (dragover) onDragStart (dragstart) onDrop (drop) onMouseDown (mousedown) onMouseEnter (mouseenter) onMouseLeave (mouseleave) onMouseMove (mousemove) onMouseOut (mouseout) onMouseOver (mouseover) onMouseUp (mouseup)

Instances
Generic MouseEvent Source # 
Instance details

Defined in Glazier.React.Event.Mouse

Associated Types

type Rep MouseEvent :: * -> * #

NFData MouseEvent Source # 
Instance details

Defined in Glazier.React.Event.Mouse

Methods

rnf :: MouseEvent -> () #

type Rep MouseEvent Source # 
Instance details

Defined in Glazier.React.Event.Mouse

type Rep MouseEvent = D1 (MetaData "MouseEvent" "Glazier.React.Event.Mouse" "glazier-react-1.0.0.0-DAsVOnciJu1LqT93cng4yY" False) (C1 (MetaCons "MouseEvent" PrefixI True) (((S1 (MetaSel (Just "altKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: (S1 (MetaSel (Just "button") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "buttons") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) :*: ((S1 (MetaSel (Just "clientX") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "clientY") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :*: (S1 (MetaSel (Just "ctrlKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Just "getModifierState") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (JSString -> Bool))))) :*: ((S1 (MetaSel (Just "metaKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: (S1 (MetaSel (Just "pageX") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "pageY") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) :*: ((S1 (MetaSel (Just "relatedTarget") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 EventTarget) :*: S1 (MetaSel (Just "screenX") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) :*: (S1 (MetaSel (Just "screenY") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "shiftKey") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))))))

toMouseEvent :: Notice -> Maybe MouseEvent Source #

We can lie about this not being in IO because within the strict part of handleEventM the Notice is effectively immutable.