Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContainerStrategy

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

Hierarchy

  • ContainerStrategy

Index

Properties

name

name: string = "ContainerStrategy"

Static EQUAL_TO_FRAME

EQUAL_TO_FRAME: any

Static PROPORTION_TO_FRAME

PROPORTION_TO_FRAME: any

Methods

Protected fixContainer

  • _fixContainer(): void

Protected setupContainer

  • setupContainer(_view: any, w: any, h: any): void

apply

  • apply(_view: View, designedResolution: Size): void

postApply

  • postApply(_view: View): void

preApply

  • preApply(_view: View): void

Generated using TypeDoc