2013-07-11 17:25:49 +02:00
|
|
|
/*****************************************************************************
|
2013-08-20 11:14:55 +02:00
|
|
|
* FrameworkElement.h *
|
2013-07-11 17:25:49 +02:00
|
|
|
* *
|
|
|
|
* System::Windows::FrameworkElement definition file *
|
2013-08-20 11:14:55 +02:00
|
|
|
* Copyright (c) XFX Team. All rights reserved *
|
2013-07-11 17:25:49 +02:00
|
|
|
*****************************************************************************/
|
2013-06-12 19:21:00 +02:00
|
|
|
#ifndef _SYSTEM_WINDOWS_FRAMEWORKELEMENT_
|
|
|
|
#define _SYSTEM_WINDOWS_FRAMEWORKELEMENT_
|
2013-05-05 18:18:41 +02:00
|
|
|
|
2013-07-11 17:25:49 +02:00
|
|
|
#include <System/Int32.h>
|
2013-05-05 18:18:41 +02:00
|
|
|
#include <System/Windows/Thickness.h>
|
|
|
|
#include <System/Windows/UIElement.h>
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
{
|
|
|
|
namespace Windows
|
|
|
|
{
|
|
|
|
class DependencyObject;
|
|
|
|
struct Size;
|
|
|
|
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Provides a framework of common APIs for objects that participate in layout.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
class FrameworkElement : public UIElement
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
FrameworkElement();
|
|
|
|
|
|
|
|
virtual Size ArrangeOverride(const Size finalSize);
|
|
|
|
virtual Size MeasureOverride(const Size finalSize);
|
|
|
|
|
|
|
|
public:
|
2013-08-20 11:14:55 +02:00
|
|
|
int getHeight() const;
|
|
|
|
void setHeight(const int value);
|
2013-07-22 01:38:59 +02:00
|
|
|
static const DependencyProperty<int> HeightProperty;
|
2013-05-05 18:18:41 +02:00
|
|
|
HorizontalAlignment_t HorizontalAlignment;
|
2013-07-11 17:25:49 +02:00
|
|
|
static const DependencyProperty<HorizontalAlignment_t> HorizontalAlignmentProperty;
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Gets the outer margin of a System::Windows::FrameworkElement.
|
|
|
|
*/
|
2013-07-11 17:25:49 +02:00
|
|
|
Thickness getMargin() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Sets the outer margin of a System::Windows::FrameworkElement.
|
|
|
|
*/
|
2013-07-11 17:25:49 +02:00
|
|
|
void setMargin(const Thickness value);
|
|
|
|
static const DependencyProperty<Thickness> MarginProperty;
|
2013-05-05 18:18:41 +02:00
|
|
|
DependencyObject* Parent;
|
|
|
|
VerticalAlignment_t VerticalAlignment;
|
2013-07-11 17:25:49 +02:00
|
|
|
static const DependencyProperty<VerticalAlignment_t> VerticalAlignmentProperty;
|
|
|
|
int getWidth() const;
|
|
|
|
void setWidth(const int value);
|
2013-07-22 01:38:59 +02:00
|
|
|
static const DependencyProperty<int> WidthProperty;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
virtual ~FrameworkElement();
|
|
|
|
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-05-05 18:18:41 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
2013-06-12 19:21:00 +02:00
|
|
|
|
|
|
|
#endif //_SYSTEM_WINDOWS_FRAMEWORKELEMENT_
|