|
Graphics.UI.ObjectIO.StdIOCommon | Portability | portable | Stability | provisional | Maintainer | ka2_mail@yahoo.com |
|
|
|
Description |
StdIOCommon defines common types and access functions for the I/O library.
|
|
Synopsis |
|
|
|
Documentation |
|
data SelectState |
SelectState is similar to Bool but it shows whether an object is enabled or disabled.
| Constructors | | Instances | |
|
|
data MarkState |
MarkState is similar to Bool but it shows whether the CheckControl is marked.
| Constructors | | Instances | |
|
|
enabled :: SelectState -> Bool |
|
marked :: MarkState -> Bool |
|
data KeyboardState |
KeyboardState is passed to keyboard handler for every keyboard event.
| Constructors | | Instances | |
|
|
data KeyState |
The KeyState type
| Constructors | | Instances | |
|
|
type IsRepeatKey = Bool |
Flag on key down (True iff key is repeating)
|
|
data Key |
|
|
type KeyboardStateFilter = KeyboardState -> Bool |
Predicate on KeyboardState
|
|
getKeyboardStateKeyState :: KeyboardState -> KeyState |
getKeyboardStateKeyState gets KeyState from KeyboardState (KeyUp if KeyboardState is KeyLost)
|
|
getKeyboardStateKey :: KeyboardState -> Maybe Key |
getKeyboardStateKey gets Key value from KeyboardState (Nothing if KeyboardState is KeyLost)
|
|
data MouseState |
The MouseState type.
| Constructors | | Instances | |
|
|
data ButtonState |
The ButtonState type.
| Constructors | ButtonStillUp | MouseMove
| ButtonDown | MouseDown _ _ 1
| ButtonDoubleDown | _ _ 2
| ButtonTripleDown | _ _ >2
| ButtonStillDown | MouseDrag
| ButtonUp | MouseUp/MouseLost
|
| Instances | |
|
|
type MouseStateFilter = MouseState -> Bool |
Predicate on MouseState
|
|
getMouseStatePos :: MouseState -> Point2 |
|
getMouseStateModifiers :: MouseState -> Modifiers |
|
getMouseStateButtonState :: MouseState -> ButtonState |
|
data SliderState |
Constructors | SliderState | | sliderMin :: !Int | | sliderMax :: !Int | | sliderThumb :: !Int | |
|
| Instances | |
|
|
data UpdateState |
Constructors | | Instances | |
|
|
type ViewDomain = Rectangle |
ViewDomain is the Rectangle, which specifies the logical drawing area of the CompoundControl or Window.
|
|
type ViewFrame = Rectangle |
ViewFrame is the current visible Rectangle of CompoundControl or Window.
When there are horizontal and vertical scroll bars then the changing of
the scroller thumb will change the ViewFrame.
|
|
type UpdateArea = [ViewFrame] |
|
rectangleToUpdateState :: Rectangle -> UpdateState |
|
viewDomainRange :: ViewDomain |
viewDomainRange defines the minimum and maximum values for ViewDomains
|
|
viewFrameRange :: ViewFrame |
viewFrameRange defines the minimum and maximum values for ViewFrames.
|
|
data Modifiers |
Modifiers indicates the meta keys that have been pressed (True) or not (False).
| Constructors | Modifiers | | shiftDown :: !Bool | True iff shift down
| optionDown :: !Bool | True iff option down
| commandDown :: !Bool | True iff command down
| controlDown :: !Bool | True iff control down
| altDown :: !Bool | True iff alt down
|
|
| Instances | |
|
|
type ItemPos = (ItemLoc, ItemOffset) |
The layout language used for windows and controls. -}
|
|
data ItemLoc |
Constructors | Fix | | LeftTop | | RightTop | | LeftBottom | | RightBottom | | Left | | Center | | Right | | LeftOf Id | | RightTo Id | | Above Id | | Below Id | | LeftOfPrev | | RightToPrev | | AbovePrev | | BelowPrev | |
| Instances | |
|
|
type ItemOffset = Vector2 |
|
data Direction |
Constructors | | Instances | |
|
|
data CursorShape |
Constructors | StandardCursor | | BusyCursor | | IBeamCursor | | CrossCursor | | FatCrossCursor | | ArrowCursor | | HiddenCursor | |
| Instances | |
|
|
data DocumentInterface |
The document interface type of interactive processes.
| Constructors | NDI | No document interface
| SDI | Single document interface
| MDI | Multiple document interface
|
| Instances | |
|
|
data SliderMove |
Constructors | SliderIncSmall | | SliderDecSmall | | SliderIncLarge | | SliderDecLarge | | SliderThumb Int | |
| Instances | |
|
|
data ErrorReport |
Common error report type.
| Constructors | ErrorViolateDI | Violation against DocumentInterface
| ErrorIdsInUse | Object contains Ids that are bound
| ErrorUnknownObject | Object can not be found
| ErrorNotifierOpen | It was tried to open a second send notifier
| ErrorUnableReceiver | Sending to receiver that exists, but its ReceiverSelectState is Unable.
| OtherError !String | Some other kind of error
|
| Instances | |
|
|
handleErrorReport :: Monad m => ErrorReport -> m a |
|
module Graphics.UI.ObjectIO.StdIOBasic |
|
module Graphics.UI.ObjectIO.StdKey |
|
module Data.Maybe |
|
type Id = Unique |
|
data R2Id mess resp |
Instances | |
|
|
data RId mess |
Instances | |
|
|
rIdtoId :: RId mess -> Id |
|
r2IdtoId :: R2Id mess resp -> Id |
|
Produced by Haddock version 0.8 |