Back to index

plt-scheme  4.2.1
Classes | Defines | Functions | Variables
TypeTree.cc File Reference
#include "wx.h"

Go to the source code of this file.

Classes

struct  wxInitType

Defines

#define Uses_wxTypeTree

Functions

Bool wxSubType (WXTYPE type1, WXTYPE type2)
char * wxGetTypeName (WXTYPE type)

Variables

static wxInitType init_types []

Class Documentation

struct wxInitType

Definition at line 41 of file TypeTree.cc.

Class Members
char * my_name
WXTYPE my_type
WXTYPE parent_type

Define Documentation

#define Uses_wxTypeTree

Definition at line 31 of file TypeTree.cc.


Function Documentation

char* wxGetTypeName ( WXTYPE  type)

Definition at line 158 of file TypeTree.cc.

{
  wxTypeDef *typ;

  if (type == wxTYPE_ANY)
    return "any";
  typ = (wxTypeDef *)wxAllTypes->Get((long)type);
  if (!typ)
    return NULL;
  return typ->name;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Bool wxSubType ( WXTYPE  type1,
WXTYPE  type2 
)

Definition at line 139 of file TypeTree.cc.

{
  WXTYPE t;

  if (type1 == type2)
    return TRUE;
  
  t = type1;
  while (TRUE) {
    wxTypeDef *typ;
    typ = (wxTypeDef*)wxAllTypes->Get((long)t);
    if (!typ)
      return FALSE;
    if (type2 == typ->parent)
      return TRUE;
    t = typ->parent;
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

wxInitType init_types[] [static]

Definition at line 47 of file TypeTree.cc.