1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 39ba6d598e Added file comments and TypeInfos
Fixed spacing
Fixed Button.h header include guard conflicting with Control.h
2013-10-07 12:10:17 +02:00

44 lines
1.2 KiB
C++

#ifndef _SYSTEM_WINDOWS_CONTROLS_CANVAS_
#define _SYSTEM_WINDOWS_CONTROLS_CANVAS_
#include <System/Windows/Controls/Panel.h>
namespace System
{
namespace Windows
{
namespace Controls
{
/**
* Defines an area within which you can explicitly position child objects by using coordinates that are relative to the area.
*/
class Canvas : public Panel
{
protected:
Size ArrangeOverride(const Size arrangeSize);
Size MeasureOverride(const Size constraint);
public:
static const DependencyProperty<Int32> LeftProperty;
static const DependencyProperty<Int32> TopProperty;
static const DependencyProperty<Int32> ZIndexProperty;
Canvas();
static int GetLeft(UIElement * const element);
static int GetTop(UIElement * const element);
static int GetZIndex(UIElement * const element);
static const Type& GetType();
static void SetLeft(UIElement * const element, const int left);
static void SetTop(UIElement * const element, const int top);
static void SetZIndex(UIElement * const element, const int zIndex);
bool operator==(const Canvas& right) const;
bool operator!=(const Canvas& right) const;
};
}
}
}
#endif //_SYSTEM_WINDOWS_CONTROLS_CANVAS_