/*
 * @file	CNGraphics.swift
 * @brief	Define data type for graphics
 * @par Copyright
 *   Copyright (C) 2018 Steel Wheels Project
 */

import Foundation

public enum CNAxis: Int32
{
	case horizontal
	case vertical

	public var description: String {
		let result: String
		switch self {
		case .horizontal:	result = "horizontal"
		case .vertical:		result = "vertical"
		}
		return result
	}
}


public enum CNAlignment: Int32 {
	case leading
	case trailing
	case fill
	case center

	public var description: String {
		let result: String
		switch self {
		case .leading:		result = "leading"
		case .trailing:		result = "trailing"
		case .fill:		result = "fill"
		case .center:		result = "center"
		}
		return result
	}
}

public enum CNDistribution {
	case fill
	case fillEqually
	case equalSpacing

	public var description: String {
		let result: String
		switch self {
		case .fill:		result = "fill"
		case .fillEqually:	result = "fillEqually"
		case .equalSpacing:	result = "equalSpacing"
		}
		return result
	}
}


/*
 * @file	CNGraphics.swift
 * @brief	Define data type for graphics
 * @par Copyright
 *   Copyright (C) 2018 Steel Wheels Project
 */

import Foundation

public enum CNAxis: Int32
{
	case horizontal
	case vertical

	public var description: String {
		let result: String
		switch self {
		case .horizontal:	result = "horizontal"
		case .vertical:		result = "vertial"
		}
		return result
	}
}


public enum CNAlignment: Int32 {
	case leading
	case trailing
	case fill
	case center

	public var description: String {
		let result: String
		switch self {
		case .leading:		result = "leading"
		case .trailing:		result = "trailing"
		case .fill:		result = "fill"
		case .center:		result = "center"
		}
		return result
	}
}

public enum CNDistribution {
	case fill
	case fillEqually
	case equalSpacing

	public var description: String {
		let result: String
		switch self {
		case .fill:		result = "fill"
		case .fillEqually:	result = "fillEqually"
		case .equalSpacing:	result = "equalSpacing"
		}
		return result
	}
}


--- 
+++ 
@@ -16,7 +16,7 @@
 		let result: String
 		switch self {
 		case .horizontal:	result = "horizontal"
-		case .vertical:		result = "vertial"
+		case .vertical:		result = "vertical"
 		}
 		return result
 	}
CNAxis: Fix misspelling at the description
