Class ccui.Margin

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for ccui.Margin

Method Summary

Class Detail

ccui.Margin()
Base class for ccui.Margin

Field Detail

{Number} bottom
- bottom of margin
{Number} left
- Left of margin
- right of margin
{Number} top
- Top of margin

Method Detail

  • ctor(margin, top, right, bottom)
    Constructor of ccui.Margin.
    Parameters:
    {Number|ccui.Margin} margin
    a margin or left
    {Number} top Optional
    {Number} right Optional
    {Number} bottom Optional
  • {boolean} equals(target)
    Checks target whether equals itself.
    Parameters:
    {ccui.Margin} target
    Returns:
    {boolean}
  • setMargin(l, t, r, b)
    Sets boundary of margin
    Parameters:
    {Number} l
    left
    {Number} t
    top
    {Number} r
    right
    {Number} b
    bottom