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

using System;


namespace Css.Properties{
	
	/// <summary>
	/// Should this element be clipped at all? clip-mode:clip (default) or clip-mode:none.
	/// This is similar to the effect seen when using overflow:visible, but this
	/// applies to the main screen also.
	/// Useful if you've got transformations (e.g. a rotation) which go over the edge of the screen.
	/// </summary>
	
	public class ClipMode:CssProperty{
		
		public static ClipMode GlobalProperty;
		
		
		public ClipMode(){
			Inherits=true;
			GlobalProperty=this;
		}
		
		public override string[] GetProperties(){
			return new string[]{"clip-mode"};
		}
		
		/// <summary>True if this property is specific to Spark.</summary>
		public override bool NonStandard{
			get{
				return true;
			}
		}
		
		public override ApplyState Apply(ComputedStyle style,Value value){
			
			style.RequestLayout();
			
			// Ok!
			return ApplyState.Ok;
			
		}
		
	}
	
}



