Copyright | Copyright (c) Daan Leijen 2003 2004 |
---|---|
License | wxWindows |
Maintainer | wxhaskell-devel@lists.sourceforge.net |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Haskell class info definitions for the wxWidgets C library (wxc.dll
).
Do not edit this file manually! This file was automatically generated by wxDirect.
And contains 406 class info definitions.
- data ClassType a
- classInfo :: ClassType a -> ClassInfo ()
- instanceOf :: WxObject b -> ClassType a -> Bool
- instanceOfName :: WxObject a -> String -> Bool
- safeCast :: WxObject b -> ClassType (WxObject a) -> Maybe (WxObject a)
- ifInstanceOf :: WxObject a -> ClassType (WxObject b) -> (WxObject b -> c) -> c -> c
- whenInstanceOf :: WxObject a -> ClassType (WxObject b) -> (WxObject b -> IO ()) -> IO ()
- whenValidInstanceOf :: WxObject a -> ClassType (WxObject b) -> (WxObject b -> IO ()) -> IO ()
Class Info
classInfo :: ClassType a -> ClassInfo () Source #
Return the ClassInfo
belonging to a class type. (Do not delete this object, it is statically allocated)
instanceOf :: WxObject b -> ClassType a -> Bool Source #
Test if an object is of a certain kind. (Returns also True
when the object is null.)
instanceOfName :: WxObject a -> String -> Bool Source #
Test if an object is of a certain kind, based on a full wxWidgets class name. (Use with care).
Safe casts
safeCast :: WxObject b -> ClassType (WxObject a) -> Maybe (WxObject a) Source #
A safe object cast. Returns Nothing
if the object is of the wrong type. Note that a null object can always be cast.
ifInstanceOf :: WxObject a -> ClassType (WxObject b) -> (WxObject b -> c) -> c -> c Source #
Perform an action when the object has the right kind. Perform the default action if the kind is not correct. Note that a null object has always the right kind.
whenInstanceOf :: WxObject a -> ClassType (WxObject b) -> (WxObject b -> IO ()) -> IO () Source #
Perform an action when the object has the right kind. Note that a null object has always the right kind.
whenValidInstanceOf :: WxObject a -> ClassType (WxObject b) -> (WxObject b -> IO ()) -> IO () Source #
Perform an action when the object has the right type and is not null.