1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2009 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
14 #ifndef __MOON_LAYOUTINFORMATION_H__
15 #define __MOON_LAYOUTINFORMATION_H__
17 /* @IncludeInKinds,Namespace=System.Windows.Controls.Primitives,ManagedDependencyProperties=Manual */
18 class LayoutInformation
{
20 /* @PropertyType=Geometry,Attached,GenerateAccessors */
21 const static int LayoutClipProperty
;
22 /* @PropertyType=Rect,Attached,GenerateAccessors */
23 const static int LayoutSlotProperty
;
24 /* @PropertyType=Size,Attached,GenerateAccessors */
25 const static int PreviousConstraintProperty
;
26 /* @PropertyType=Size,Attached,GenerateAccessors */
27 const static int FinalRectProperty
;
28 /* @PropertyType=Size,Attached,GenerateAccessors */
29 const static int LastRenderSizeProperty
;
30 /* @PropertyType=Point,Attached,GenerateAccessors */
31 const static int VisualOffsetProperty
;
33 static void SetLayoutClip (DependencyObject
*item
, Geometry
*clip
);
34 static Geometry
* GetLayoutClip (DependencyObject
*item
);
36 static void SetLayoutSlot (DependencyObject
*item
, Rect
*slot
);
37 static Rect
*GetLayoutSlot (DependencyObject
*item
);
39 static void SetPreviousConstraint (DependencyObject
*item
, Size
*size
);
40 static Size
*GetPreviousConstraint (DependencyObject
*item
);
42 static void SetFinalRect (DependencyObject
*item
, Size
*size
);
43 static Size
*GetFinalRect (DependencyObject
*item
);
45 static void SetLastRenderSize (DependencyObject
*item
, Size
*size
);
46 static Size
*GetLastRenderSize (DependencyObject
*item
);
48 static void SetVisualOffset (DependencyObject
*item
, Point
*offset
);
49 static Point
*GetVisualOffset (DependencyObject
*item
);
51 static void SetBounds (DependencyObject
*item
, Rect
*bounds
);
52 static Rect
*GetBounds (DependencyObject
*item
);
54 static Geometry
*GetClip (FrameworkElement
*item
);
56 #endif /* __MOON_LAYOUTINFORMATION_H__ */