1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/Windows/FrameworkElement.h
Tom Lint b0dd58a08b Added file comments and TypeInfos
Added some implementations
Added auto_ptr and gc_ptr for easier memory management
2013-08-20 11:14:55 +02:00

62 lines
1.8 KiB
C++

/*****************************************************************************
* FrameworkElement.h *
* *
* System::Windows::FrameworkElement definition file *
* Copyright (c) XFX Team. All rights reserved *
*****************************************************************************/
#ifndef _SYSTEM_WINDOWS_FRAMEWORKELEMENT_
#define _SYSTEM_WINDOWS_FRAMEWORKELEMENT_
#include <System/Int32.h>
#include <System/Windows/Thickness.h>
#include <System/Windows/UIElement.h>
namespace System
{
namespace Windows
{
class DependencyObject;
struct Size;
/**
* Provides a framework of common APIs for objects that participate in layout.
*/
class FrameworkElement : public UIElement
{
protected:
FrameworkElement();
virtual Size ArrangeOverride(const Size finalSize);
virtual Size MeasureOverride(const Size finalSize);
public:
int getHeight() const;
void setHeight(const int value);
static const DependencyProperty<int> HeightProperty;
HorizontalAlignment_t HorizontalAlignment;
static const DependencyProperty<HorizontalAlignment_t> HorizontalAlignmentProperty;
/**
* Gets the outer margin of a System::Windows::FrameworkElement.
*/
Thickness getMargin() const;
/**
* Sets the outer margin of a System::Windows::FrameworkElement.
*/
void setMargin(const Thickness value);
static const DependencyProperty<Thickness> MarginProperty;
DependencyObject* Parent;
VerticalAlignment_t VerticalAlignment;
static const DependencyProperty<VerticalAlignment_t> VerticalAlignmentProperty;
int getWidth() const;
void setWidth(const int value);
static const DependencyProperty<int> WidthProperty;
virtual ~FrameworkElement();
static const Type& GetType();
};
}
}
#endif //_SYSTEM_WINDOWS_FRAMEWORKELEMENT_