Public Member Functions

canvas_mgr Class Reference

iworld2d模块——2D画布管理. More...

List of all members.

Public Member Functions

def create_canvas_ui
 创建一个canvas_ui对象.
def get_canvas_ui
 根据canvas_ui的标识得到canvas_ui对象.
def destroy_canvas_ui
 根据canvas_ui的标识销毁canvas_ui对象.

Detailed Description

iworld2d模块——2D画布管理.

提示: 不需自己创建。通过iworld2d.canvases来使用.


Member Function Documentation

def create_canvas_ui (   self,
  layer,
  depth = 0 
)

创建一个canvas_ui对象.

Parameters:
layer: int 所创建的2D场景的层数.
depth: int 指定movie所在的层次,数字大的在上面.
Return values:
:int canvas_ui的标识.
def get_canvas_ui (   self,
  ui_id 
)

根据canvas_ui的标识得到canvas_ui对象.

Parameters:
ui_id: int canvas_ui的标识.
Return values:
:canvas_ui对象.
def destroy_canvas_ui (   self,
  ui_id 
)

根据canvas_ui的标识销毁canvas_ui对象.

Parameters:
ui_id: int canvas_ui的标识.
 All Classes Namespaces Functions Variables Properties