fixed haddock for UI
This commit is contained in:
parent
35364b50aa
commit
ef549eac4d
@ -122,19 +122,19 @@ data EventHandler m =
|
|||||||
-- A widget becomes mouse-active if no other button is currently pressed and the mouse
|
-- A widget becomes mouse-active if no other button is currently pressed and the mouse
|
||||||
-- coordinates are within the widget's extent ('isInside') until no button is pressed any
|
-- coordinates are within the widget's extent ('isInside') until no button is pressed any
|
||||||
-- more.
|
-- more.
|
||||||
_onMousePress :: MouseButton -- ^the pressed button
|
_onMousePress :: MouseButton -- the pressed button
|
||||||
-> Pixel -- ^screen position
|
-> Pixel -- screen position
|
||||||
-> GUIWidget m -- ^widget the event is invoked on
|
-> GUIWidget m -- widget the event is invoked on
|
||||||
-> m (GUIWidget m) -- ^widget after the event and the possibly altered mouse handler
|
-> m (GUIWidget m) -- widget after the event and the possibly altered mouse handler
|
||||||
,
|
,
|
||||||
-- |The function 'onMouseReleased' is called when a button is released
|
-- |The function 'onMouseReleased' is called when a button is released
|
||||||
-- while the widget is mouse-active.
|
-- while the widget is mouse-active.
|
||||||
--
|
--
|
||||||
-- Thus, the mouse is either within the widget or outside while still dragging.
|
-- Thus, the mouse is either within the widget or outside while still dragging.
|
||||||
_onMouseRelease :: MouseButton -- ^the released button
|
_onMouseRelease :: MouseButton -- the released button
|
||||||
-> Pixel -- ^screen position
|
-> Pixel -- screen position
|
||||||
-> GUIWidget m -- ^widget the event is invoked on
|
-> GUIWidget m -- widget the event is invoked on
|
||||||
-> m (GUIWidget m) -- ^widget after the event and the altered handler
|
-> m (GUIWidget m) -- widget after the event and the altered handler
|
||||||
}
|
}
|
||||||
|
|
|
|
||||||
-- |Handler to control the functionality of a 'GUIWidget' on mouse movement.
|
-- |Handler to control the functionality of a 'GUIWidget' on mouse movement.
|
||||||
@ -144,22 +144,22 @@ data EventHandler m =
|
|||||||
-- widget's extent ('isInside') while no button is pressed or when the mouse is inside the
|
-- widget's extent ('isInside') while no button is pressed or when the mouse is inside the
|
||||||
-- widget's extent while another button loses its mouse-active state. Triggered after
|
-- widget's extent while another button loses its mouse-active state. Triggered after
|
||||||
-- '_onMouseEnter'.
|
-- '_onMouseEnter'.
|
||||||
_onMouseMove :: Pixel -- ^screen position
|
_onMouseMove :: Pixel -- screen position
|
||||||
-> GUIWidget m -- ^widget the event is invoked on
|
-> GUIWidget m -- widget the event is invoked on
|
||||||
-> m (GUIWidget m) -- ^widget after the event and the altered handler
|
-> m (GUIWidget m) -- widget after the event and the altered handler
|
||||||
,
|
,
|
||||||
-- |The function 'onMouseMove' is invoked when the mouse enters the
|
-- |The function 'onMouseMove' is invoked when the mouse enters the
|
||||||
-- widget's extent ('isInside') or when the mouse is inside the
|
-- widget's extent ('isInside') or when the mouse is inside the
|
||||||
-- widget's extent while another button loses its mouse-active state..
|
-- widget's extent while another button loses its mouse-active state..
|
||||||
_onMouseEnter :: Pixel -- ^screen position
|
_onMouseEnter :: Pixel -- screen position
|
||||||
-> GUIWidget m -- ^widget the event is invoked on
|
-> GUIWidget m -- widget the event is invoked on
|
||||||
-> m (GUIWidget m) -- ^widget after the event and the altered handler
|
-> m (GUIWidget m) -- widget after the event and the altered handler
|
||||||
,
|
,
|
||||||
-- |The function 'onMouseLeave' is invoked when the mouse leaves the
|
-- |The function 'onMouseLeave' is invoked when the mouse leaves the
|
||||||
-- widget's extent ('isInside') while no other widget is mouse-active.
|
-- widget's extent ('isInside') while no other widget is mouse-active.
|
||||||
_onMouseLeave :: Pixel -- ^screen position
|
_onMouseLeave :: Pixel -- screen position
|
||||||
-> GUIWidget m -- ^widget the event is invoked on
|
-> GUIWidget m -- widget the event is invoked on
|
||||||
-> m (GUIWidget m) -- ^widget after the event and the altered handler
|
-> m (GUIWidget m) -- widget after the event and the altered handler
|
||||||
}
|
}
|
||||||
deriving ()
|
deriving ()
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ data GUIBaseProperties m = BaseProperties
|
|||||||
-- The default implementations tests if the point is within the rectangle specified by the
|
-- The default implementations tests if the point is within the rectangle specified by the
|
||||||
-- 'getBoundary' function.
|
-- 'getBoundary' function.
|
||||||
_isInside :: GUIWidget m
|
_isInside :: GUIWidget m
|
||||||
-> Pixel -- ^local coordinates
|
-> Pixel -- local coordinates
|
||||||
-> m Bool
|
-> m Bool
|
||||||
,
|
,
|
||||||
-- |The @_getPriority@ function returns the priority score of a @GUIWidget@.
|
-- |The @_getPriority@ function returns the priority score of a @GUIWidget@.
|
||||||
|
Loading…
Reference in New Issue
Block a user