External/Aga.Controls/Tree/DrawContext.cs
author moel.mich
Sun, 23 Sep 2012 18:37:43 +0000
changeset 380 573f1fff48b2
permissions -rw-r--r--
Fixed Issue 387. The new implementation does not try to start a ring 0 driver that already exists, but could not be opened. It tries to delete the driver and install it new. The driver is now stored temporarily in the application folder. The driver is not correctly removed on system shutdown.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Text;
     4 using System.Drawing;
     5 using Aga.Controls.Tree.NodeControls;
     6 
     7 namespace Aga.Controls.Tree
     8 {
     9 	public struct DrawContext
    10 	{
    11 		private Graphics _graphics;
    12 		public Graphics Graphics
    13 		{
    14 			get { return _graphics; }
    15 			set { _graphics = value; }
    16 		}
    17 
    18 		private Rectangle _bounds;
    19 		public Rectangle Bounds
    20 		{
    21 			get { return _bounds; }
    22 			set { _bounds = value; }
    23 		}
    24 
    25 		private Font _font;
    26 		public Font Font
    27 		{
    28 			get { return _font; }
    29 			set { _font = value; }
    30 		}
    31 
    32 		private DrawSelectionMode _drawSelection;
    33 		public DrawSelectionMode DrawSelection
    34 		{
    35 			get { return _drawSelection; }
    36 			set { _drawSelection = value; }
    37 		}
    38 
    39 		private bool _drawFocus;
    40 		public bool DrawFocus
    41 		{
    42 			get { return _drawFocus; }
    43 			set { _drawFocus = value; }
    44 		}
    45 
    46 		private NodeControl _currentEditorOwner;
    47 		public NodeControl CurrentEditorOwner
    48 		{
    49 			get { return _currentEditorOwner; }
    50 			set { _currentEditorOwner = value; }
    51 		}
    52 
    53 		private bool _enabled;
    54 		public bool Enabled
    55 		{
    56 			get { return _enabled; }
    57 			set { _enabled = value; }
    58 		}
    59 	}
    60 }