Beispiel #1
0
        public idRectangle GetRectangle(string key, idRectangle defaultValue)
        {
            string str;

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

            return(defaultValue);
        }
Beispiel #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);
        }
Beispiel #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));
		}
Beispiel #4
0
		public idRectangle GetRectangle(string key, idRectangle defaultValue)
		{
			string str;

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

			return defaultValue;
		}
Beispiel #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));
 }