Пример #1
0
			void DrawBackground (Cairo.Context context, Gdk.Rectangle area)
			{
				if (Owner.BackgroundImage == null)
					return;

				context.RenderTiled (Owner.BackgroundImage, Allocation, Allocation, 1);
			}
Пример #2
0
			void DrawOverdraw (Cairo.Context context, double opacity)
			{
				if (Owner.BackgroundImage == null)
					return;

				context.RenderTiled (Owner.BackgroundImage, Allocation, new Gdk.Rectangle (Allocation.X, Allocation.Y + OverdrawOffset, Allocation.Width, Allocation.Height - OverdrawOffset), opacity);
			}