Exemplo n.º 1
0
        public idRectangle GetRectangle(string key, idRectangle defaultValue)
        {
            string str;

            if (_dict.TryGetValue(key, out str) == true)
            {
                return(idHelper.ParseRectangle(str));
            }

            return(defaultValue);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj is idRectangle)
            {
                idRectangle r = (idRectangle)obj;

                return((this.X == r.X) && (this.Y == r.Y) && (this.Width == r.Width) && (this.Height == r.Height));
            }

            return(false);
        }
Exemplo n.º 3
0
		public void Set(string key, idRectangle value)
		{
			Set(key, string.Format("{0} {1} {2} {3}", value.X, value.Y, value.Width, value.Height));
		}
Exemplo n.º 4
0
		public idRectangle GetRectangle(string key, idRectangle defaultValue)
		{
			string str;

			if(_dict.TryGetValue(key, out str) == true)
			{
				return idHelper.ParseRectangle(str);
			}

			return defaultValue;
		}
Exemplo n.º 5
0
 public void Set(string key, idRectangle value)
 {
     Set(key, string.Format("{0} {1} {2} {3}", value.X, value.Y, value.Width, value.Height));
 }