Cocos Creator API

1.0.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

ContainerStrategy

Module: cc

cc.ContainerStrategy class is the root strategy class of container's scale strategy, it controls the behavior of how to scale the cc.container and cc.game.canvas object

Methods

preApply
(
  • view
)

Manipulation before appling the strategy

name type description
view View

The target view

apply
(
  • view
  • designedResolution
)

Function to apply this strategy

name type description
view View
designedResolution Size

postApply
(
  • view
)

Manipulation after applying the strategy

name type description
view View

The target view

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index