Code Bucket …

possible IComponent intererface version 95

You can visit http://www.the-barn.org/codebucket.php?id=71 to view this snippet directly.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using System.Collections.Generic;
using Incah.Core.Geo;
using Incah.Core.Input;
using Microsoft.Xna.Framework;

namespace Incah.Core.UI
{
	public interface IComponent
	{
		#region Mouse Events

		event EventHandler<IComponent, Position> MouseEnter;
		event EventHandler<IComponent, Position> MouseExit;
		event EventHandler<IComponent, Position, Position> MouseMove;
		event EventHandler<IComponent, Position> MouseDown;
		event EventHandler<IComponent, Position> MouseUp;
		event EventHandler<IComponent, Position> MouseClick;
		event EventHandler<IComponent, Position> MouseHold;

		#endregion

		UIManager Manager { get; }

		void Update(GameTime time, InputManager input);


		#region Heirarchy Management

		IComponent Parent { get; set; }

		IEnumerable<IComponent> Children(ComponentOrder order);

		void AddChild(IComponent child);

		void RemoveChild(IComponent child);

		int SetOrder(IComponent child, int order);

		int GetOrder(IComponent child);

		bool IsRoot { get; }

		bool IsLeaf { get; }

		#endregion


		#region Geometry

		Position Position { get; set; }

		Position ScreenPosition { get; }

		Size OuterSize { get; set; }

		Size InnerSize { get; }

		Margin Padding { get; set; }

		Area OuterArea { get; }

		Area InnerArea { get; }

		Area ScreenOuterArea { get; }

		Area ScreenInnerArea { get; }

		#endregion


		#region Rendering

		Area ClippingArea { get; }

		bool IsVisible { get; set; }

		float Opacity { get; set; }

		float ScreenOpacity { get; }

		bool DrawingRequired { get; }

		void Draw();

		#endregion

	}
}
  • Posted on 09.02.2010 at 11:04 PM by stoffle
  • Language: C#

Snippets

 
36 Results
Page 1 of 3
TitleLanguagePosted ByPostedExpiresActions
Python first-class classes for KodenPythonstoffle04.07.2010 8:19 AM (64 days 3h 48m ago)-view
mLAN Activation ScriptPlain Textstoffle23.06.2010 6:42 AM (75 days 5h 25m ago)-view
areaC#stoffle27.02.2010 3:51 AM (191 days 9h 16m ago)-view
list extensionsC#stoffle09.02.2010 11:12 PM (208 days 13h 54m ago)-view
possible IComponent intererface version 95C#stoffle09.02.2010 11:04 PM (208 days 14h 3m ago)-view
Render SystemC++spam05.06.2009 12:14 PM (457 days 23h 53m ago)-view
Effect SampleC++spam03.06.2009 2:40 PM (459 days 21h 26m ago)-view
Rho LambdasC++spam03.06.2009 2:38 PM (459 days 21h 29m ago)-view
Example VSM implC++spam02.06.2009 1:21 PM (460 days 22h 46m ago)-view
Vector3 Interface (public)C++kalin11.02.2008 9:53 PM (937 days 15h 14m ago)-view
TimesTablesC++kalin09.02.2008 6:04 PM (939 days 19h 3m ago)-view
Skruje Account Search PagePHPstoffle03.02.2008 5:12 PM (945 days 19h 55m ago)-view
C++ is still bork...C++spam26.01.2008 5:58 PM (953 days 19h 9m ago)-view
C++ is bork #3C++spam26.01.2008 5:47 PM (953 days 19h 20m ago)-view
C++ is bork #2C++spam26.01.2008 5:46 PM (953 days 19h 21m ago)-view
36 Results
Page 1 of 3