Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes

# EnumTypeDescriptor Class Reference

Inheritance diagram for EnumTypeDescriptor:

List of all members.

## Public Member Functions
def | __init__
def | generateCode
def | generateGlobalCode
def | outputComment
def | outputValues
## Public Attributes
| enumName
| nestedTypes
| parentTypes
| values

## Detailed Description

    EnumTypeDescriptors represent enums in C++

## Constructor & Destructor Documentation

def __init__ | ( |  | self | ) |

Reimplemented from PrimitiveTypeDescriptor.

## Member Function Documentation

def generateCode | ( |  | self,
|  |  | file,
|  |  | nesting
| ) |  |

def generateGlobalCode | ( |  | self,
|  |  | dir,
|  |  | extensionsDir
| ) |  |

    Generate enum code for this type.

Reimplemented from BaseTypeDescriptor.

def outputComment | ( |  | self,
|  |  | file,
|  |  | nesting
| ) |  |

def outputValues | ( |  | self,
|  |  | file,
|  |  | nesting
| ) |  |

    For each entry in the dictionary, output a line for name, value pairs
    Example:
    off = 0
    on = 1

## Member Data Documentation

enumName

nestedTypes

parentTypes

Reimplemented from BaseTypeDescriptor.

values

All Classes Namespaces Functions Variables Enumerations Enumerator Properties