# CCLayoutBox Class Reference

Inherits from | CCLayout : CCNode : CCResponder : NSObject
Declared in | CCLayoutBox.h

## Overview

The box layout lays out its children in a horizontal or vertical row. Optionally you can set a spacing between the child nodes.

## Tasks

- `direction` property
- `spacing` property

## Properties

### direction

The direction is either horizontal or vertical.

`@property (nonatomic, assign) CCLayoutBoxDirection direction`

#### Declared In

`CCLayoutBox.h`

### spacing

The spacing in points between the child nodes.

`@property (nonatomic, assign) float spacing`

#### Declared In

`CCLayoutBox.h`