DockRequest.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*
  2. * $Id$
  3. *
  4. * Copyright (C) 2004 Todd Berman <tberman@off.net>
  5. * Copyright (C) 2004 Jeroen Zwartepoorte <jeroen@xs4all.nl>
  6. * Copyright (C) 2005 John Luke <john.luke@gmail.com>
  7. *
  8. * based on work by:
  9. * Copyright (C) 2002 Gustavo Giráldez <gustavo.giraldez@gmx.net>
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place - Suite 330,
  24. * Boston, MA 02111-1307, USA.
  25. */
  26. using System;
  27. using Gtk;
  28. using Gdk;
  29. namespace Gdl
  30. {
  31. public class DockRequest
  32. {
  33. private DockObject applicant;
  34. private DockObject target;
  35. private DockPlacement position;
  36. private int x, y, width, height;
  37. private object extra;
  38. public DockRequest ()
  39. {
  40. }
  41. public DockRequest (DockRequest copy)
  42. {
  43. applicant = copy.Applicant;
  44. target = copy.Target;
  45. x = copy.X;
  46. y = copy.Y;
  47. width = copy.Width;
  48. height = copy.Height;
  49. position = copy.Position;
  50. extra = copy.Extra;
  51. }
  52. public DockObject Applicant {
  53. get { return applicant; }
  54. set { applicant = value; }
  55. }
  56. public DockObject Target {
  57. get { return target; }
  58. set { target = value; }
  59. }
  60. public DockPlacement Position {
  61. get { return position; }
  62. set { position = value; }
  63. }
  64. public int X {
  65. get {
  66. return x;
  67. }
  68. set {
  69. x = value;
  70. }
  71. }
  72. public int Y {
  73. get {
  74. return y;
  75. }
  76. set {
  77. y = value;
  78. }
  79. }
  80. public int Width {
  81. get {
  82. return width;
  83. }
  84. set {
  85. width = value;
  86. }
  87. }
  88. public int Height {
  89. get {
  90. return height;
  91. }
  92. set {
  93. height = value;
  94. }
  95. }
  96. public object Extra {
  97. get { return extra; }
  98. set { extra = value; }
  99. }
  100. }
  101. }