Module libtcodpy :: Class Color
[hide private]
[frames] | no frames]

Class Color

source code

   object --+        
            |        
    ??._CData --+    
                |    
_ctypes.Structure --+
                    |
                   Color

Instance Methods [hide private]
 
__init__(self, r=0, g=0, b=0)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__eq__(self, c) source code
 
__mul__(self, c) source code
 
__add__(self, c) source code
 
__sub__(self, c) source code

Inherited from _ctypes.Structure: __new__

Inherited from unreachable._CData: __ctypes_from_outparam__, __hash__, __reduce__, __setstate__

Inherited from object: __delattr__, __format__, __getattribute__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _fields_ = [('r', <class 'ctypes.c_ulong'>, 8), ('g', <class '...
  b = <Field type=c_ulong, ofs=0:16, bits=8>
  g = <Field type=c_ulong, ofs=0:8, bits=8>
  r = <Field type=c_ulong, ofs=0:0, bits=8>
Properties [hide private]

Inherited from unreachable._CData: _b_base_, _b_needsfree_

Inherited from unreachable._CData (private): _objects

Inherited from object: __class__

Method Details [hide private]

__init__(self, r=0, g=0, b=0)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

_fields_

Value:
[('r', <class 'ctypes.c_ulong'>, 8),
 ('g', <class 'ctypes.c_ulong'>, 8),
 ('b', <class 'ctypes.c_ulong'>, 8)]