//--------------------------------------
//               PowerUI
//
//        For documentation or 
//    if you have any issues, visit
//        powerUI.kulestar.com
//
//    Copyright © 2013 Kulestar Ltd
//          www.kulestar.com
//--------------------------------------

using System;
using Css;


namespace Svg{
	
	/// <summary>
	/// Provides viewport relative axis values for use with e.g. Css.Value.GetDecimal.
	/// They describe what relative units like % are actually relative to (the viewport, in this case).
	/// </summary>
	
	public static class ViewportAxis{
		
		private static CssProperty _X;
		private static CssProperty _Y;
		private static CssProperty _None;
		
		/// <summary>A CSS property to use for relativity to the x axis.
		/// Note that this is actually just the width property.</summary>
		public static CssProperty X{
			get{
				if(_X==null){
					
					// Create the X property:
					_X=new CssProperty();
					_X.RelativeTo=ValueRelativity.Viewport;
					_X.Axis=ValueAxis.X;
					
				}
				return _X;
			}
		}
		
		/// <summary>A CSS property to use for relativity to the y axis.
		/// Note that this is actually just the height property.</summary>
		public static CssProperty Y{
			get{
				if(_Y==null){
					
					// Create the Y property:
					_Y=new CssProperty();
					_Y.RelativeTo=ValueRelativity.Viewport;
					_Y.Axis=ValueAxis.Y;
					
				}
				return _Y;
			}
		}
		
		/// <summary>A CSS property to use for relativity to the y axis.
		/// Note that this is actually just the height property.</summary>
		public static CssProperty None{
			get{
				if(_None==null){
					
					// Create the none property:
					_None=new CssProperty();
					_None.RelativeTo=ValueRelativity.Viewport;
					_None.Axis=ValueAxis.None;
					
				}
				return _None;
			}
		}
		
	}
	
}