External/Aga.Controls/Tree/DrawContext.cs
author StephaneLenclud
Mon, 04 Feb 2013 00:47:01 +0100
branchMiniDisplay
changeset 435 9ffcd8ed8537
permissions -rw-r--r--
Now calling display init. Not getting the expected error code though.
     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 }