wxcore-0.92.2.0: wxHaskell core

CopyrightCopyright (c) Daan Leijen 2003, 2004
LicensewxWindows
Maintainerwxhaskell-devel@lists.sourceforge.net
Stabilityprovisional
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Graphics.UI.WXCore.WxcClassInfo

Contents

Description

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.

Synopsis

Class Info

data ClassType a Source

The type of a class.

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.

Class Types

Down casts

downcastDC :: DC a -> DC () Source