Module imageLayer :: Class ImageLayer
[hide private]
[frames] | no frames]

Class ImageLayer

source code

                   object --+        
                            |        
    cocos.cocosnode.CocosNode --+    
                                |    
                   object --+   |    
                            |   |    
cocos.scene.EventHandlerMixin --+    
                                |    
    cocos.layer.base_layers.Layer --+
                                    |
                                   ImageLayer

Instance Methods [hide private]
 
__init__(self, img)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
draw(self)
This is the function you will have to override if you want your subclassed to draw something on screen.
source code

Inherited from cocos.layer.base_layers.Layer: on_enter, on_exit, push_all_handlers, remove_all_handlers

Inherited from cocos.cocosnode.CocosNode: __contains__, add, are_actions_running, do, get, get_ancestor, get_children, get_local_inverse, get_local_transform, get_world_inverse, get_world_transform, kill, pause, pause_scheduler, point_to_local, point_to_world, remove, remove_action, resume, resume_scheduler, schedule, schedule_interval, stop, transform, unschedule, visit, walk

Inherited from cocos.cocosnode.CocosNode (private): _get_parent, _get_position, _get_rotation, _get_scale, _get_x, _get_y, _remove, _set_parent, _set_position, _set_rotation, _set_scale, _set_x, _set_y, _step

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

Class Variables [hide private]

Inherited from cocos.layer.base_layers.Layer: is_event_handler

Properties [hide private]

Inherited from cocos.cocosnode.CocosNode: anchor, anchor_x, anchor_y, parent, position, rotation, scale, transform_anchor, x, y

Inherited from object: __class__

Method Details [hide private]

__init__(self, img)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

draw(self)

source code 

This is the function you will have to override if you want your
subclassed to draw something on screen.

You *must* respect the position, scale, rotation and anchor attributes.
If you want OpenGL to do the scaling for you, you can::

    def draw(self):
        glPushMatrix()
        self.transform()
        # ... draw ..
        glPopMatrix()

Overrides: cocos.cocosnode.CocosNode.draw
(inherited documentation)