2
// Copyright (C) 2009 GNOME Do
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
14
// You should have received a copy of the GNU General Public License
15
// along with this program. If not, see <http://www.gnu.org/licenses/>.
27
using Docky.Utilities;
29
namespace Docky.Interface
33
internal class HotSeatProxyItem : AbstractDockItem
35
AbstractDockItem inner;
37
public override ClickAnimationType AnimationType {
39
return inner.AnimationType;
43
public override DateTime DockAddItem {
45
return inner.DockAddItem;
48
inner.DockAddItem = value;
52
public override int Height {
58
public override int Width {
64
public override bool IsAcceptingDrops {
66
return inner.IsAcceptingDrops;
70
public override DateTime LastClick {
72
return inner.LastClick;
76
public override int WindowCount {
78
return inner.WindowCount;
82
public override DateTime AttentionRequestStartTime {
84
return inner.AttentionRequestStartTime;
88
public override ScalingType ScalingType {
90
return inner.ScalingType;
94
public override bool NeedsAttention {
96
return inner.NeedsAttention;
100
public override bool ReceiveItem (string item)
102
return inner.ReceiveItem (item);
105
public override void SetIconRegion (Gdk.Rectangle region)
107
inner.SetIconRegion (region);
111
public HotSeatProxyItem(AbstractDockItem inner) : base ()
116
public override Surface GetIconSurface (Cairo.Surface similar, int targetSize, out int actualSize)
118
return inner.GetIconSurface (similar, targetSize, out actualSize);
121
public override Surface GetTextSurface (Cairo.Surface similar)
123
return inner.GetTextSurface (similar);
126
public override void Clicked (uint button, Gdk.ModifierType state, PointD position)
128
DockServices.ItemsService.ResetHotSeat (inner);
129
base.Clicked (button, state, position);