Class cc.ContainerStrategy

Class Summary
Constructor Attributes Constructor Name and Description
 

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._canvas object

Method Summary

Class Detail

cc.ContainerStrategy()

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._canvas object

Method Detail

  • apply(view, designedResolution)
    Function to apply this strategy
    Parameters:
    {cc.view} view
    {cc.Size} designedResolution
  • postApply(view)
    Manipulation after applying the strategy
    Parameters:
    {cc.view} view
    The target view
  • preApply(The)
    Manipulation before appling the strategy
    Parameters:
    {cc.view} The
    target view