External/Aga.Controls/Tree/DrawContext.cs
author StephaneLenclud
Thu, 18 Apr 2013 23:25:10 +0200
branchMiniDisplay
changeset 444 9b09e2ee0968
permissions -rw-r--r--
Front View plug-in does not init if no sensor added.
Fixing some format to make strings shorter.
Now trying to start SoundGraphAccess.exe process from same directory.
Packed mode now can display three sensors along with the current time.
     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 }