1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00

Added file comments and TypeInfos

Fixed spacing
Fixed Button.h header include guard conflicting with Control.h
This commit is contained in:
Tom Lint 2013-10-07 12:10:17 +02:00
parent ca63aaa9a5
commit 39ba6d598e
31 changed files with 591 additions and 549 deletions

View File

@ -4,8 +4,8 @@
* System::Windows::Controls::Button definition file * * System::Windows::Controls::Button definition file *
* Copyright (c) XFX Team. All rights reserved * * Copyright (c) XFX Team. All rights reserved *
*****************************************************************************/ *****************************************************************************/
#ifndef _SYSTEM_WINDOWS_CONTROLS_CONTROL_ #ifndef _SYSTEM_WINDOWS_CONTROLS_BUTTON_
#define _SYSTEM_WINDOWS_CONTROLS_CONTROL_ #define _SYSTEM_WINDOWS_CONTROLS_BUTTON_
#include <System/Windows/Controls/Primitives/ButtonBase.h> #include <System/Windows/Controls/Primitives/ButtonBase.h>
@ -38,4 +38,4 @@ namespace System
} }
} }
#endif //_SYSTEM_WINDOWS_CONTROLS_CONTROL_ #endif //_SYSTEM_WINDOWS_CONTROLS_BUTTON_

View File

@ -19,19 +19,19 @@ namespace System
Size MeasureOverride(const Size constraint); Size MeasureOverride(const Size constraint);
public: public:
static const DependencyProperty<int> LeftProperty; static const DependencyProperty<Int32> LeftProperty;
static const DependencyProperty<int> TopProperty; static const DependencyProperty<Int32> TopProperty;
static const DependencyProperty<int> ZIndexProperty; static const DependencyProperty<Int32> ZIndexProperty;
Canvas(); Canvas();
static int GetLeft(const UIElement& element); static int GetLeft(UIElement * const element);
static int GetTop(const UIElement& element); static int GetTop(UIElement * const element);
static int GetZIndex(const UIElement& element); static int GetZIndex(UIElement * const element);
static const Type& GetType(); static const Type& GetType();
static void SetLeft(const UIElement& element, const int left); static void SetLeft(UIElement * const element, const int left);
static void SetTop(const UIElement& element, const int top); static void SetTop(UIElement * const element, const int top);
static void SetZIndex(const UIElement& element, const int zIndex); static void SetZIndex(UIElement * const element, const int zIndex);
bool operator==(const Canvas& right) const; bool operator==(const Canvas& right) const;
bool operator!=(const Canvas& right) const; bool operator!=(const Canvas& right) const;

View File

@ -7,6 +7,7 @@
#ifndef _SYSTEM_WINDOWS_CONTROLS_CONTENTCONTROL_ #ifndef _SYSTEM_WINDOWS_CONTROLS_CONTENTCONTROL_
#define _SYSTEM_WINDOWS_CONTROLS_CONTENTCONTROL_ #define _SYSTEM_WINDOWS_CONTROLS_CONTENTCONTROL_
#include <xmem.h>
#include <System/String.h> #include <System/String.h>
#include <System/Windows/Controls/Control.h> #include <System/Windows/Controls/Control.h>
@ -22,14 +23,16 @@ namespace System
class ContentControl : public Control class ContentControl : public Control
{ {
protected: protected:
virtual void AddChild(Object* value); virtual void AddChild(Object * const value);
virtual void AddText(const String& text); virtual void AddText(const String& text);
virtual void OnContentChanged(Object* oldContent, Object* newContent); virtual void OnContentChanged(Object * oldContent, Object * newContent);
virtual void OnContentStringFormatChanged(String& oldContentStringFormat, String& newContentStringFormat); virtual void OnContentStringFormatChanged(String& oldContentStringFormat, String& newContentStringFormat);
public: public:
Object* Content; Object* Content;
static const DependencyProperty<Object *> ContentProperty;
String ContentStringFormat; String ContentStringFormat;
static const DependencyProperty<String> ContentStringFormatProperty;
bool HasContent() const; bool HasContent() const;
ContentControl(); ContentControl();

View File

@ -21,6 +21,8 @@ namespace System
Orientation_t Orientation; Orientation_t Orientation;
StackPanel(); StackPanel();
static const Type& GetType();
}; };
} }
} }

View File

@ -46,18 +46,33 @@ namespace System
template <typename T> template <typename T>
T GetValue(DependencyProperty<T> p) const T GetValue(DependencyProperty<T> p) const
{
return *dependencyProperties[p.Name];
}
template <typename T>
T *GetValue(DependencyProperty<T *> p) const
{ {
return dependencyProperties[p.Name]; return dependencyProperties[p.Name];
} }
template <typename T> template <typename T>
void SetValue(DependencyProperty<T> p, T value) void SetValue(DependencyProperty<T> p, const T value)
{ {
if (!dependencyProperties.ContainsKey(p.Name)) if (!dependencyProperties.ContainsKey(p.Name))
dependencyProperties.Add(p.Name, value); dependencyProperties.Add(p.Name, value);
else else
dependencyProperties[p.Name] = value; dependencyProperties[p.Name] = value;
} }
template <typename T>
void SetValue(DependencyProperty<T *> p, T * const value)
{
if (!dependencyProperties.ContainsKey(p.Name))
dependencyProperties.Add(p.Name, value)
else
dependencyProperties[p.Name] = value;
}
}; };
} }
} }

View File

@ -50,7 +50,7 @@ namespace System
/** /**
* Registers a dependency property with the specified property name, owner type, and property metadata for the property. * Registers a dependency property with the specified property name, owner type, and property metadata for the property.
* *
@param propertyName * @param propertyName
* The name of the dependency property to register. * The name of the dependency property to register.
* *
* @param type * @param type
@ -59,7 +59,7 @@ namespace System
* @param * @param
* A PropertyMetadata instance. This can contain a System::Windows::PropertyChangedCallback implementation reference. * A PropertyMetadata instance. This can contain a System::Windows::PropertyChangedCallback implementation reference.
* *
@return * @return
* A dependency property identifier that should be used to set the value of a public static readonly field in your class. The identifier is then used both by your own code and any third-party user code to reference the dependency property later, for operations such as setting its value programmatically, or attaching a System::Windows::Data::Binding in code. * A dependency property identifier that should be used to set the value of a public static readonly field in your class. The identifier is then used both by your own code and any third-party user code to reference the dependency property later, for operations such as setting its value programmatically, or attaching a System::Windows::Data::Binding in code.
*/ */
static DependencyProperty<T> Register(const String& propertyName, const Type& type, PropertyMetadata<T> const * propertyMetadata); static DependencyProperty<T> Register(const String& propertyName, const Type& type, PropertyMetadata<T> const * propertyMetadata);

View File

@ -57,8 +57,8 @@ namespace System
bool operator!=(const UIElement& right) const; bool operator!=(const UIElement& right) const;
RoutedEventHandler GotFocus; RoutedEventHandler GotFocus;
KeyEventHandler KeyDown; KeyEventHandler KeyDown;
KeyEventHandler KeyUp; KeyEventHandler KeyUp;
RoutedEventHandler LostFocus; RoutedEventHandler LostFocus;
MouseEventHandler MouseEnter; MouseEventHandler MouseEnter;
MouseEventHandler MouseLeave; MouseEventHandler MouseLeave;

View File

@ -26,6 +26,7 @@
// POSSIBILITY OF SUCH DAMAGE. // POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Controls/Border.h> #include <System/Windows/Controls/Border.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -33,6 +34,8 @@ namespace System
{ {
namespace Controls namespace Controls
{ {
const Type BorderTypeInfo("Border", "System::Windows::Controls::Border", TypeCode::Object);
Border::Border() Border::Border()
: BorderThickness(0), CornerRadius(0), Padding(0) : BorderThickness(0), CornerRadius(0), Padding(0)
{ {
@ -45,8 +48,9 @@ namespace System
delete Child; delete Child;
} }
int Border::GetType() const Type& Border::GetType()
{ {
return BorderTypeInfo;
} }
} }
} }

View File

@ -1,4 +1,32 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Media/Brush.h> #include <System/Windows/Media/Brush.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -6,6 +34,8 @@ namespace System
{ {
namespace Media namespace Media
{ {
const Type BrushTypeInfo("Brush", "System::Windows::Media::Brush", TypeCode::Object);
Brush::Brush() Brush::Brush()
{ {
} }
@ -14,9 +44,9 @@ namespace System
{ {
} }
int Brush::GetType() const Type& Brush::GetType()
{ {
// TODO: implement return BrushTypeInfo;
} }
} }
} }

View File

@ -1,486 +0,0 @@
Build started 17-1-2013 16:36:05.
1>Project "C:\Users\Tom\Dropbox\XFX\src\libSystem.Windows\libSystem.Windows.vcxproj" on node 2 (rebuild target(s)).
1>CoreClean:
make clean 2>&1 | sed -e 's/\(\w\+\):\([0-9]\+\):/\1(\2):/'
rm -f *.o *.exe *.dll *.xbe *.cxbe *.lib *.a
Rebuild:
make rebuild 2>&1 | sed -e 's/\(\w\+\):\([0-9]\+\):/\1(\2):/'
rm -f *.o *.exe *.dll *.xbe *.cxbe *.lib *.a
g++ -c Border.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Border.h:4,
from Border.cpp(28):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Border.h:4,
from Border.cpp(28):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Border.h:4,
from Border.cpp(28):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
Border.cpp: In memberfunctie ævirtual int System::Windows::Controls::Border::GetType() constÆ:
Border.cpp(50):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Brush.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
Brush.cpp: In memberfunctie ævirtual int System::Windows::Media::Brush::GetType() constÆ:
Brush.cpp(20):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c ButtonBase.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ../../include/System/Windows/Controls/Primitives/ButtonBase.h:3,
from ButtonBase.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ../../include/System/Windows/Controls/Primitives/ButtonBase.h:3,
from ButtonBase.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ../../include/System/Windows/Controls/Primitives/ButtonBase.h:3,
from ButtonBase.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c ClosingEventArgs.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
ClosingEventArgs.cpp: In memberfunctie ævirtual int System::ComponentModel::ClosingEventArgs::GetType() constÆ:
ClosingEventArgs.cpp(40):3: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Color.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
Color.cpp: In memberfunctie ævirtual int System::Windows::Media::Color::GetType() constÆ:
Color.cpp(57):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c ContentControl.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ContentControl.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ContentControl.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ContentControl.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
ContentControl.cpp: In memberfunctie ævirtual int System::Windows::Controls::ContentControl::GetType() constÆ:
ContentControl.cpp(23):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Control.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from Control.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from Control.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from Control.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
Control.cpp: In memberfunctie ævirtual int System::Windows::Controls::Control::GetType() constÆ:
Control.cpp(67):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c CornerRadius.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
CornerRadius.cpp: In memberfunctie ævirtual int System::Windows::CornerRadius::GetType() constÆ:
CornerRadius.cpp(76):3: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c FrameworkElement.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from FrameworkElement.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from FrameworkElement.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from FrameworkElement.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
FrameworkElement.cpp: In memberfunctie ævirtual System::Windows::Size System::Windows::FrameworkElement::ArrangeOverride(System::Windows::Size)Æ:
FrameworkElement.cpp(22):3: let op: no return statement in function returning non-void [-Wreturn-type]
FrameworkElement.cpp: In memberfunctie ævirtual int System::Windows::FrameworkElement::GetType() constÆ:
FrameworkElement.cpp(26):3: let op: no return statement in function returning non-void [-Wreturn-type]
FrameworkElement.cpp: In memberfunctie ævirtual System::Windows::Size System::Windows::FrameworkElement::MeasureOverride(System::Windows::Size)Æ:
FrameworkElement.cpp(30):3: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Grid.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from ../../include/System/Windows/Controls/Grid.h:3,
from Grid.cpp(2):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from ../../include/System/Windows/Controls/Grid.h:3,
from Grid.cpp(2):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from ../../include/System/Windows/Controls/Grid.h:3,
from Grid.cpp(2):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
Grid.cpp: In memberfunctie ævirtual System::Windows::Size System::Windows::Controls::Grid::ArrangeOverride(System::Windows::Size)Æ:
Grid.cpp(18):4: let op: no return statement in function returning non-void [-Wreturn-type]
Grid.cpp: In memberfunctie ævirtual System::Windows::Size System::Windows::Controls::Grid::MeasureOverride(System::Windows::Size)Æ:
Grid.cpp(22):4: let op: no return statement in function returning non-void [-Wreturn-type]
Grid.cpp: In memberfunctie ævirtual int System::Windows::Controls::Grid::GetType() constÆ:
Grid.cpp(58):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c MessageBox.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
MessageBox.cpp: In static member function æstatic System::Windows::MessageBoxResult_t System::Windows::MessageBox::Show(const System::String&, const System::String&, System::Windows::MessageBoxButton_t)Æ:
MessageBox.cpp(16):3: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Panel.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from Panel.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from Panel.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from Panel.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
Panel.cpp: In memberfunctie ævirtual int System::Windows::Controls::Panel::GetType() constÆ:
Panel.cpp(26):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Point.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
Point.cpp: In memberfunctie ævirtual int System::Windows::Point::GetType() constÆ:
Point.cpp(41):3: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c RangeBase.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/Primitives/RangeBase.h:3,
from RangeBase.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/Primitives/RangeBase.h:3,
from RangeBase.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/Primitives/RangeBase.h:3,
from RangeBase.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Size.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
Size.cpp: In memberfunctie ævirtual int System::Windows::Size::GetType() constÆ:
Size.cpp(48):3: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c SolidColorBrush.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
SolidColorBrush.cpp: In memberfunctie ævirtual int System::Windows::Media::SolidColorBrush::GetType() constÆ:
SolidColorBrush.cpp(22):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c StackPanel.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from ../../include/System/Windows/Controls/StackPanel.h:4,
from StackPanel.cpp(30):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from ../../include/System/Windows/Controls/StackPanel.h:4,
from StackPanel.cpp(30):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Panel.h:3,
from ../../include/System/Windows/Controls/StackPanel.h:4,
from StackPanel.cpp(30):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
StackPanel.cpp: In memberfunctie ævirtual System::Windows::Size System::Windows::Controls::StackPanel::MeasureOverride(System::Windows::Size)Æ:
StackPanel.cpp(73):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c SystemColors.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
g++ -c TextBlock.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/TextBlock.h:4,
from TextBlock.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/TextBlock.h:4,
from TextBlock.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/TextBlock.h:4,
from TextBlock.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c TextBox.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/TextBox.h:3,
from TextBox.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/TextBox.h:3,
from TextBox.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/TextBox.h:3,
from TextBox.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
TextBox.cpp: In memberfunctie ævirtual int System::Windows::Controls::TextBox::GetType() constÆ:
TextBox.cpp(34):4: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Thickness.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
Thickness.cpp: In memberfunctie ævirtual int System::Windows::Thickness::GetType() constÆ:
Thickness.cpp(46):3: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Thumb.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/Primitives/Thumb.h:3,
from Thumb.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/Primitives/Thumb.h:3,
from Thumb.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/Primitives/Thumb.h:3,
from Thumb.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
Thumb.cpp: In memberfunctie ævirtual int System::Windows::Controls::Primitives::Thumb::GetType() constÆ:
Thumb.cpp(23):5: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c ToggleButton.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ../../include/System/Windows/Controls/Primitives/ButtonBase.h:3,
from ../../include/System/Windows/Controls/Primitives/ToggleButton.h:3,
from ToggleButton.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ../../include/System/Windows/Controls/Primitives/ButtonBase.h:3,
from ../../include/System/Windows/Controls/Primitives/ToggleButton.h:3,
from ToggleButton.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Controls/Control.h:3,
from ../../include/System/Windows/Controls/ContentControl.h:4,
from ../../include/System/Windows/Controls/Primitives/ButtonBase.h:3,
from ../../include/System/Windows/Controls/Primitives/ToggleButton.h:3,
from ToggleButton.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
ToggleButton.cpp: In memberfunctie ævirtual int System::Windows::Controls::Primitives::ToggleButton::GetType() constÆ:
ToggleButton.cpp(23):5: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c UIElement.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from UIElement.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(15):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from UIElement.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from UIElement.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
UIElement.cpp: In memberfunctie ævirtual int System::Windows::UIElement::GetType() constÆ:
UIElement.cpp(14):3: let op: no return statement in function returning non-void [-Wreturn-type]
g++ -c Window.cpp -c -O2 -Wall -nostdlib -fno-builtin -fno-exceptions -fno-rtti -march=i386 -mmmx -msse -mfpmath=sse -DENABLE_XBOX -DDEBUG -I/openxdk/i386-pc-xbox/include -I/openxdk/include -I/openxdk/include/SDL -I../../include
In file included from ../../include/System/Event.h(4):0,
from ../../include/System/Windows/Window.h:3,
from Window.cpp(1):
../../include/System/Collections/Generic/List.h: In memberfunctie æint System::Collections::Generic::List<T>::GetType() constÆ:
../../include/System/Collections/Generic/List.h(193):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Collections/Generic/Dictionary.h(14):0,
from ../../include/System/Windows/DependencyObject.h:3,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Window.h:8,
from Window.cpp(1):
../../include/System/Collections/Generic/KeyValuePair.h: In memberfunctie æint System::Collections::Generic::KeyValuePair<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/KeyValuePair.h(38):5: let op: no return statement in function returning non-void [-Wreturn-type]
In file included from ../../include/System/Windows/DependencyObject.h(3):0,
from ../../include/System/Windows/UIElement.h:3,
from ../../include/System/Windows/FrameworkElement.h:4,
from ../../include/System/Windows/Window.h:8,
from Window.cpp(1):
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æint System::Collections::Generic::Dictionary<TKey, TValue>::GetType() constÆ:
../../include/System/Collections/Generic/Dictionary.h(359):4: let op: no return statement in function returning non-void [-Wreturn-type]
../../include/System/Collections/Generic/Dictionary.h: In memberfunctie æbool System::Collections::Generic::Dictionary<TKey, TValue>::DictionaryEnumerator::MoveNext()Æ:
../../include/System/Collections/Generic/Dictionary.h(618):4: let op: no return statement in function returning non-void [-Wreturn-type]
Window.cpp: In memberfunctie ævirtual int System::Windows::Window::GetType() constÆ:
Window.cpp(47):3: let op: no return statement in function returning non-void [-Wreturn-type]
ar rcu libSystem.Windows.a Border.o Brush.o ButtonBase.o ClosingEventArgs.o Color.o ContentControl.o Control.o CornerRadius.o FrameworkElement.o Grid.o MessageBox.o Panel.o Point.o RangeBase.o Size.o SolidColorBrush.o StackPanel.o SystemColors.o TextBlock.o TextBox.o Thickness.o Thumb.o ToggleButton.o UIElement.o Window.o
ranlib libSystem.Windows.a
1>Done Building Project "C:\Users\Tom\Dropbox\XFX\src\libSystem.Windows\libSystem.Windows.vcxproj" (rebuild target(s)).
Build succeeded.
Time Elapsed 00:00:07.60

View File

@ -1,4 +1,32 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Controls/Primitives/ButtonBase.h> #include <System/Windows/Controls/Primitives/ButtonBase.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -8,12 +36,21 @@ namespace System
{ {
namespace Primitives namespace Primitives
{ {
const Type ButtonBaseTypeInfo("ButtonBase", "System::Windows::Controls::Primitives::ButtonBase", TypeCode::Object);
ButtonBase::ButtonBase() ButtonBase::ButtonBase()
{ {
// TODO: implement
} }
ButtonBase::~ButtonBase() ButtonBase::~ButtonBase()
{ {
// TODO: implement
}
const Type& ButtonBase::GetType()
{
return ButtonBaseTypeInfo;
} }
bool ButtonBase::IsFocused() const bool ButtonBase::IsFocused() const
@ -28,7 +65,7 @@ namespace System
Click(this, rea); Click(this, rea);
} }
void ButtonBase::OnGotFocus(RoutedEventArgs* e) void ButtonBase::OnGotFocus(RoutedEventArgs * const e)
{ {
Control::OnGotFocus(e); Control::OnGotFocus(e);
this->isFocused = true; this->isFocused = true;
@ -37,6 +74,7 @@ namespace System
void ButtonBase::UpdateVisualState(bool useTransitions) void ButtonBase::UpdateVisualState(bool useTransitions)
{ {
// TODO: implement
} }
bool ButtonBase::operator ==(const ButtonBase& right) const bool ButtonBase::operator ==(const ButtonBase& right) const

View File

@ -36,33 +36,35 @@ namespace System
{ {
namespace Controls namespace Controls
{ {
const DependencyProperty<int> Canvas::LeftProperty = DependencyProperty<int>::Register("Left", Canvas::GetType()); const DependencyProperty<Int32> Canvas::LeftProperty = DependencyProperty<Int32>::Register("Left", Canvas::GetType());
const DependencyProperty<int> Canvas::TopProperty = DependencyProperty<int>::Register("Top", Canvas::GetType()); const DependencyProperty<Int32> Canvas::TopProperty = DependencyProperty<Int32>::Register("Top", Canvas::GetType());
const DependencyProperty<int> Canvas::ZIndexProperty = DependencyProperty<int>::Register("ZIndex", Canvas::GetType()); const DependencyProperty<Int32> Canvas::ZIndexProperty = DependencyProperty<Int32>::Register("ZIndex", Canvas::GetType());
const Type CanvasTypeInfo("Canvas", "System::Windows::Controls::Canvas", TypeCode::Object); const Type CanvasTypeInfo("Canvas", "System::Windows::Controls::Canvas", TypeCode::Object);
Canvas::Canvas() Canvas::Canvas()
{ {
// TODO: implement
} }
Size Canvas::ArrangeOverride(const Size arrangeSize) Size Canvas::ArrangeOverride(const Size arrangeSize)
{ {
// TODO: implement
} }
int Canvas::GetLeft(const UIElement& element) int Canvas::GetLeft(UIElement * const element)
{ {
return element.GetValue(Canvas::LeftProperty); return element->GetValue(Canvas::LeftProperty);
} }
int Canvas::GetTop(const UIElement& element) int Canvas::GetTop(UIElement * const element)
{ {
return element.GetValue(Canvas::TopProperty); return element->GetValue(Canvas::TopProperty);
} }
int Canvas::GetZIndex(const UIElement& element) int Canvas::GetZIndex(UIElement * const element)
{ {
return element.GetValue(Canvas::ZIndexProperty); return element->GetValue(Canvas::ZIndexProperty);
} }
const Type& Canvas::GetType() const Type& Canvas::GetType()
@ -72,29 +74,32 @@ namespace System
Size Canvas::MeasureOverride(const Size constraint) Size Canvas::MeasureOverride(const Size constraint)
{ {
// TODO: implement
} }
void Canvas::SetLeft(const UIElement& element, const int left) void Canvas::SetLeft(UIElement * const element, const int left)
{ {
element.SetValue(Canvas::LeftProperty, left); element->SetValue(Canvas::LeftProperty, left);
} }
void Canvas::SetTop(const UIElement& element, const int top) void Canvas::SetTop(UIElement * const element, const int top)
{ {
element.SetValue(Canvas::TopProperty, top); element->SetValue(Canvas::TopProperty, top);
} }
void Canvas::SetZIndex(const UIElement& element, const int zIndex) void Canvas::SetZIndex(UIElement * const element, const int zIndex)
{ {
element.SetValue(Canvas::ZIndexProperty, new Int32(zIndex)); element->SetValue(Canvas::ZIndexProperty, zIndex);
} }
bool Canvas::operator ==(const Canvas& right) const bool Canvas::operator ==(const Canvas& right) const
{ {
return Object::ReferenceEquals(*this, right);
} }
bool Canvas::operator !=(const Canvas& right) const bool Canvas::operator !=(const Canvas& right) const
{ {
return !Object::ReferenceEquals(*this, right);
} }
} }
} }

View File

@ -1,5 +1,33 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Media/Color.h> #include <System/Windows/Media/Color.h>
#include <System/String.h> #include <System/String.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -7,6 +35,8 @@ namespace System
{ {
namespace Media namespace Media
{ {
const Type ColorTypeInfo("Color", "System::Windows::Media::Color", TypeCode::Object);
Color::Color(uint packedValue) Color::Color(uint packedValue)
: packedValue(packedValue) : packedValue(packedValue)
{ {
@ -34,7 +64,7 @@ namespace System
bool Color::Equals(Object const * const obj) const bool Color::Equals(Object const * const obj) const
{ {
return is(obj, this) ? *this == *(Color*)obj : false; return is(obj, this) ? *this == *(Color *)obj : false;
} }
bool Color::Equals(const Color other) const bool Color::Equals(const Color other) const
@ -52,8 +82,9 @@ namespace System
return (int)packedValue; return (int)packedValue;
} }
int Color::GetType() const Type& Color::GetType()
{ {
return ColorTypeInfo;
} }
const String Color::ToString() const const String Color::ToString() const

View File

@ -1,4 +1,32 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Controls/ContentControl.h> #include <System/Windows/Controls/ContentControl.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -6,24 +34,38 @@ namespace System
{ {
namespace Controls namespace Controls
{ {
ContentControl::ContentControl() const DependencyProperty<Object *> ContentControl::ContentProperty = DependencyProperty<Object *>::Register("Content", ContentControl::GetType());
const DependencyProperty<String> ContentControl::ContentStringFormatProperty = DependencyProperty<String>::Register("ContentStringFormat", ContentControl::GetType());
const Type ContentControlTypeInfo("ContentControl", "System::Windows::Controls::ContentControl", TypeCode::Object);
bool ContentControl::HasContent() const
{ {
return Content != NULL;
} }
void ContentControl::AddChild(Object* value) ContentControl::ContentControl()
{ {
// TODO: implement
}
void ContentControl::AddChild(Object * const value)
{
// TODO: implement
} }
void ContentControl::AddText(const String& text) void ContentControl::AddText(const String& text)
{ {
// TODO: implement
} }
int ContentControl::GetType() const Type& ContentControl::GetType()
{ {
return ContentControlTypeInfo;
} }
void ContentControl::OnContentChanged(Object* newContent, Object* oldContent) void ContentControl::OnContentChanged(Object * const newContent, Object * const oldContent)
{ {
// TODO: implement
} }
} }
} }

View File

@ -1,6 +1,34 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Controls/Control.h> #include <System/Windows/Controls/Control.h>
#include <System/Int32.h> #include <System/Int32.h>
#include <System/Windows/Media/SolidColorBrush.h> #include <System/Windows/Media/SolidColorBrush.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -8,6 +36,8 @@ namespace System
{ {
namespace Controls namespace Controls
{ {
const Type ControlTypeInfo("Control", "System::Windows::Controls::Control", TypeCode::Object);
Control::Control() Control::Control()
: Background(null), BorderBrush(null), BorderThickness(3), Foreground(new SolidColorBrush(Color::White)), Padding(0), TabIndex(Int32::MaxValue) : Background(null), BorderBrush(null), BorderThickness(3), Foreground(new SolidColorBrush(Color::White)), Padding(0), TabIndex(Int32::MaxValue)
{ {
@ -62,8 +92,9 @@ namespace System
return true; return true;
} }
int Control::GetType() const Type& Control::GetType()
{ {
return ControlTypeInfo;
} }
bool Control::operator ==(const Control& right) const bool Control::operator ==(const Control& right) const

View File

@ -27,11 +27,14 @@
#include <System/Windows/CornerRadius.h> #include <System/Windows/CornerRadius.h>
#include <System/String.h> #include <System/String.h>
#include <System/Type.h>
namespace System namespace System
{ {
namespace Windows namespace Windows
{ {
const Type CornerRadiusTypeInfo("CornerRadius", "System::Windows::CornerRadius", TypeCode::Object);
CornerRadius::CornerRadius() CornerRadius::CornerRadius()
: BottomLeft(0), BottomRight(0), TopLeft(0), TopRight(0) : BottomLeft(0), BottomRight(0), TopLeft(0), TopRight(0)
{ {
@ -57,7 +60,7 @@ namespace System
bool CornerRadius::Equals(Object const * const obj) const bool CornerRadius::Equals(Object const * const obj) const
{ {
return is(obj, this) ? *this == *(CornerRadius*)obj : false; return is(obj, this) ? *this == *(CornerRadius *)obj : false;
} }
bool CornerRadius::Equals(const CornerRadius other) const bool CornerRadius::Equals(const CornerRadius other) const
@ -70,9 +73,9 @@ namespace System
return (((TopLeft ^ TopRight) ^ BottomLeft) ^ BottomRight); return (((TopLeft ^ TopRight) ^ BottomLeft) ^ BottomRight);
} }
int CornerRadius::GetType() const Type& CornerRadius::GetType()
{ {
// TODO: implement return CornerRadiusTypeInfo;
} }
const String CornerRadius::ToString() const const String CornerRadius::ToString() const

View File

@ -85,11 +85,15 @@ namespace System
FrameworkElement::~FrameworkElement() FrameworkElement::~FrameworkElement()
{ {
delete Parent; if (Parent != NULL)
{
delete Parent;
}
} }
Size FrameworkElement::ArrangeOverride(const Size finalSize) Size FrameworkElement::ArrangeOverride(const Size finalSize)
{ {
// TODO: implement
} }
const Type& FrameworkElement::GetType() const Type& FrameworkElement::GetType()
@ -99,6 +103,7 @@ namespace System
Size FrameworkElement::MeasureOverride(const Size finalSize) Size FrameworkElement::MeasureOverride(const Size finalSize)
{ {
// TODO: implement
} }
} }
} }

View File

@ -45,14 +45,17 @@ namespace System
Size Grid::ArrangeOverride(const Size arrangeSize) Size Grid::ArrangeOverride(const Size arrangeSize)
{ {
// TODO: implement
} }
Size Grid::MeasureOverride(const Size constraint) Size Grid::MeasureOverride(const Size constraint)
{ {
// TODO: implement
} }
Grid::Grid() Grid::Grid()
{ {
// TODO: implement
} }
Grid::~Grid() Grid::~Grid()
@ -87,7 +90,9 @@ namespace System
void Grid::SetColumn(FrameworkElement * const element, const int column) void Grid::SetColumn(FrameworkElement * const element, const int column)
{ {
if (!element) if (!element)
{
return; return;
}
element->SetValue(Grid::ColumnProperty, column); element->SetValue(Grid::ColumnProperty, column);
} }
@ -95,7 +100,9 @@ namespace System
void Grid::SetColumnSpan(FrameworkElement * const element, const int columnSpan) void Grid::SetColumnSpan(FrameworkElement * const element, const int columnSpan)
{ {
if (!element) if (!element)
{
return; return;
}
element->SetValue(Grid::ColumnSpanProperty, columnSpan); element->SetValue(Grid::ColumnSpanProperty, columnSpan);
} }
@ -103,7 +110,9 @@ namespace System
void Grid::SetRow(FrameworkElement * const element, const int row) void Grid::SetRow(FrameworkElement * const element, const int row)
{ {
if (!element) if (!element)
{
return; return;
}
element->SetValue(Grid::RowProperty, row); element->SetValue(Grid::RowProperty, row);
} }
@ -111,7 +120,9 @@ namespace System
void Grid::SetRowSpan(FrameworkElement * const element, const int rowSpan) void Grid::SetRowSpan(FrameworkElement * const element, const int rowSpan)
{ {
if (!element) if (!element)
{
return; return;
}
element->SetValue(Grid::RowSpanProperty, rowSpan); element->SetValue(Grid::RowSpanProperty, rowSpan);
} }

View File

@ -105,9 +105,15 @@ namespace System
const String GridLength::ToString() const const String GridLength::ToString() const
{ {
if (gridUnitType == GridUnitType::Auto) if (gridUnitType == GridUnitType::Auto)
{
return "Auto"; return "Auto";
}
if (gridUnitType == GridUnitType::Star) if (gridUnitType == GridUnitType::Star)
{
return "*"; return "*";
}
return String::Format("%i", value); return String::Format("%i", value);
} }
@ -117,6 +123,7 @@ namespace System
{ {
return (value == right.value); return (value == right.value);
} }
return false; return false;
} }

View File

@ -1,4 +1,32 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Controls/Panel.h> #include <System/Windows/Controls/Panel.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -6,6 +34,8 @@ namespace System
{ {
namespace Controls namespace Controls
{ {
const Type PanelTypeInfo("Panel", "System::Windows::Controls::Panel", TypeCode::Object);
Panel::Panel() Panel::Panel()
: Background(null) : Background(null)
{ {
@ -21,8 +51,9 @@ namespace System
} }
} }
int Panel::GetType() const Type& Panel::GetType()
{ {
return PanelTypeInfo;
} }
bool Panel::operator ==(const Panel& right) const bool Panel::operator ==(const Panel& right) const

View File

@ -1,3 +1,30 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Controls/Primitives/RangeBase.h> #include <System/Windows/Controls/Primitives/RangeBase.h>
#include <System/String.h> #include <System/String.h>
@ -9,6 +36,8 @@ namespace System
{ {
namespace Primitives namespace Primitives
{ {
const Type RangeBaseTypeInfo("RangeBase", "System::Windows::Controls::Primitives::RangeBase", TypeCode::Object);
int RangeBase::getMaximum() const int RangeBase::getMaximum() const
{ {
return maximum; return maximum;
@ -53,6 +82,12 @@ namespace System
RangeBase::RangeBase() RangeBase::RangeBase()
{ {
// TODO: implement
}
const Type& RangeBase::GetType()
{
return RangeBaseTypeInfo;
} }
void RangeBase::OnValueChanged(int oldValue, int newValue) void RangeBase::OnValueChanged(int oldValue, int newValue)

View File

@ -1,13 +1,42 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Rect.h> #include <System/Windows/Rect.h>
#include <System/Windows/Point.h> #include <System/Windows/Point.h>
#include <System/Windows/Size.h> #include <System/Windows/Size.h>
#include <System/String.h> #include <System/String.h>
#include <System/Type.h>
namespace System namespace System
{ {
namespace Windows namespace Windows
{ {
const Rect Rect::Empty = Rect(); const Rect Rect::Empty = Rect();
const Type RectTypeInfo("Rect", "System::Windows::Rect", TypeCode::Object);
int Rect::getBottom() const int Rect::getBottom() const
{ {
@ -62,7 +91,7 @@ namespace System
bool Rect::Equals(Object const * const obj) const bool Rect::Equals(Object const * const obj) const
{ {
return is(obj, this) ? this->Equals(*(Rect*)obj) : false; return is(obj, this) ? this->Equals(*(Rect *)obj) : false;
} }
bool Rect::Equals(const Rect other) const bool Rect::Equals(const Rect other) const
@ -72,17 +101,20 @@ namespace System
int Rect::GetHashCode() const int Rect::GetHashCode() const
{ {
// TODO: implement
} }
int Rect::GetType() const Type& Rect::GetType()
{ {
return RectTypeInfo;
} }
void Rect::Intersect(const Rect rect) void Rect::Intersect(const Rect rect)
{ {
// TODO: implement
} }
const char* Rect::ToString() const const String Rect::ToString() const
{ {
return String::Format("X:%i Y:%i Width:%i Height:%i", X, Y, Width, Height); return String::Format("X:%i Y:%i Width:%i Height:%i", X, Y, Width, Height);
} }
@ -113,6 +145,7 @@ namespace System
void Rect::Union(const Rect rect) void Rect::Union(const Rect rect)
{ {
// TODO: implement
} }
bool Rect::operator ==(const Rect& right) const bool Rect::operator ==(const Rect& right) const

View File

@ -1,11 +1,40 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Size.h> #include <System/Windows/Size.h>
#include <System/String.h> #include <System/String.h>
#include <System/Type.h>
namespace System namespace System
{ {
namespace Windows namespace Windows
{ {
const Size Size::Empty = Size(); const Size Size::Empty = Size();
const Type SizeTypeInfo("Size", "System::Windows::Size", TypeCode::Object);
Size::Size() Size::Size()
: Height(0), Width(0) : Height(0), Width(0)
@ -42,9 +71,9 @@ namespace System
return Width ^ Height; return Width ^ Height;
} }
int Size::GetType() const Type& Size::GetType()
{ {
// TODO: implement return SizeTypeInfo;
} }
const String Size::ToString() const const String Size::ToString() const

View File

@ -1,4 +1,32 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Media/SolidColorBrush.h> #include <System/Windows/Media/SolidColorBrush.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -6,6 +34,8 @@ namespace System
{ {
namespace Media namespace Media
{ {
const Type SolidColorBrushTypeInfo("SolidColorBrush", "System::Windows::Media::SolidColorBrush", TypeCode::Object);
SolidColorBrush::SolidColorBrush() SolidColorBrush::SolidColorBrush()
: Color(Color::Transparent) : Color(Color::Transparent)
{ {
@ -16,9 +46,9 @@ namespace System
{ {
} }
int SolidColorBrush::GetType() const Type& SolidColorBrush::GetType()
{ {
// TODO: implement return SolidColorBrushTypeInfo;
} }
} }
} }

View File

@ -28,6 +28,7 @@
#include <System/Math.h> #include <System/Math.h>
#include <System/Windows/Size.h> #include <System/Windows/Size.h>
#include <System/Windows/Controls/StackPanel.h> #include <System/Windows/Controls/StackPanel.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -35,6 +36,8 @@ namespace System
{ {
namespace Controls namespace Controls
{ {
const Type StackPanelTypeInfo("StackPanel", "System::Windows::Controls::StackPanel", TypeCode::Object);
StackPanel::StackPanel() StackPanel::StackPanel()
: Orientation(Orientation::Vertical) : Orientation(Orientation::Vertical)
{ {
@ -64,6 +67,11 @@ namespace System
return Size(vertSize, horSize); return Size(vertSize, horSize);
} }
const Type& StackPanel::GetType()
{
return StackPanelTypeInfo;
}
Size StackPanel::MeasureOverride(const Size constraint) Size StackPanel::MeasureOverride(const Size constraint)
{ {
for (int i = 0; i < Children.Count(); i++) for (int i = 0; i < Children.Count(); i++)

View File

@ -1,5 +1,33 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Controls/TextBlock.h> #include <System/Windows/Controls/TextBlock.h>
#include <System/Windows/Media/SolidColorBrush.h> #include <System/Windows/Media/SolidColorBrush.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -7,6 +35,8 @@ namespace System
{ {
namespace Controls namespace Controls
{ {
const Type TextBlockTypeInfo("TextBlock", "System::Windows::Controls::TextBlock", TypeCode::Object);
TextBlock::TextBlock() TextBlock::TextBlock()
: Foreground(new SolidColorBrush(Color::White)), Padding(0), Text(String::Empty) : Foreground(new SolidColorBrush(Color::White)), Padding(0), Text(String::Empty)
{ {
@ -17,6 +47,11 @@ namespace System
delete Foreground; delete Foreground;
} }
const Type& TextBlock::GetType()
{
return TextBlockTypeInfo;
}
const String TextBlock::ToString() const const String TextBlock::ToString() const
{ {
return Text; return Text;

View File

@ -1,5 +1,33 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Controls/TextBox.h> #include <System/Windows/Controls/TextBox.h>
#include <System/Windows/Media/SolidColorBrush.h> #include <System/Windows/Media/SolidColorBrush.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -7,6 +35,8 @@ namespace System
{ {
namespace Controls namespace Controls
{ {
const Type TextBoxTypeInfo("TextBox", "System::Windows::Controls::TextBox", TypeCode::Object);
TextBox::TextBox() TextBox::TextBox()
: _text(String::Empty) : _text(String::Empty)
{ {
@ -29,8 +59,9 @@ namespace System
_text = value; _text = value;
} }
int TextBox::GetType() const Type& TextBox::GetType()
{ {
return TextBoxTypeInfo;
} }
void TextBox::Select(const int start, const int length) void TextBox::Select(const int start, const int length)

View File

@ -1,10 +1,40 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/Thickness.h> #include <System/Windows/Thickness.h>
#include <System/String.h> #include <System/String.h>
#include <System/Type.h>
namespace System namespace System
{ {
namespace Windows namespace Windows
{ {
const Type ThicknessTypeInfo("Thickness", "System::Windows::Thickness", TypeCode::Object);
Thickness::Thickness() Thickness::Thickness()
: Bottom(0), Left(0), Right(0), Top(0) : Bottom(0), Left(0), Right(0), Top(0)
{ {
@ -40,9 +70,9 @@ namespace System
return (Left + Right + Top + Bottom); return (Left + Right + Top + Bottom);
} }
int Thickness::GetType() const Type& Thickness::GetType()
{ {
// TODO: implement return ThicknessTypeInfo;
} }
const String Thickness::ToString() const const String Thickness::ToString() const

View File

@ -40,6 +40,7 @@ namespace System
Thumb::Thumb() Thumb::Thumb()
{ {
// TODO: implement
} }
void Thumb::CancelDrag() void Thumb::CancelDrag()
@ -55,22 +56,27 @@ namespace System
void Thumb::OnGotFocus(RoutedEventArgs * const e) void Thumb::OnGotFocus(RoutedEventArgs * const e)
{ {
GotFocus(this, e);
} }
void Thumb::OnLostFocus(RoutedEventArgs * const e) void Thumb::OnLostFocus(RoutedEventArgs * const e)
{ {
LostFocus(this, e);
} }
void Thumb::OnMouseEnter(MouseEventArgs * const e) void Thumb::OnMouseEnter(MouseEventArgs * const e)
{ {
MouseEnter(this, e);
} }
void Thumb::OnMouseLeave(MouseEventArgs * const e) void Thumb::OnMouseLeave(MouseEventArgs * const e)
{ {
MouseLeave(this, e);
} }
void Thumb::OnMouseMove(MouseEventArgs * const e) void Thumb::OnMouseMove(MouseEventArgs * const e)
{ {
MouseMove(this, e);
} }
bool Thumb::operator ==(const Thumb& right) const bool Thumb::operator ==(const Thumb& right) const

View File

@ -42,10 +42,12 @@ namespace System
ToggleButton::ToggleButton() ToggleButton::ToggleButton()
{ {
// TODO: implement
} }
ToggleButton::~ToggleButton() ToggleButton::~ToggleButton()
{ {
// TODO: implement
} }
const Type& ToggleButton::GetType() const Type& ToggleButton::GetType()
@ -70,11 +72,11 @@ namespace System
Nullable<bool> isChecked = this->IsChecked; Nullable<bool> isChecked = this->IsChecked;
if (isChecked == true) if (isChecked == true)
{ {
this->IsChecked = this->IsThreeState ? Nullable<bool>::Null : ((Nullable<bool>) false); this->IsChecked = this->IsThreeState ? Nullable<bool>::Null : false;
} }
else else
{ {
this->IsChecked = Nullable<bool>(isChecked.HasValue()); this->IsChecked = isChecked.HasValue();
} }
} }

View File

@ -1,5 +1,33 @@
// Copyright (C) XFX Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of the copyright holder nor the names of any
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
#include <System/Windows/UIElement.h> #include <System/Windows/UIElement.h>
#include <System/Windows/Size.h> #include <System/Windows/Size.h>
#include <System/Type.h>
namespace System namespace System
{ {
@ -7,6 +35,8 @@ namespace System
{ {
const DependencyProperty<Visibility_t> UIElement::VisibilityProperty = DependencyProperty<Visibility_t>::Register("Visibility", UIElement::GetType()); const DependencyProperty<Visibility_t> UIElement::VisibilityProperty = DependencyProperty<Visibility_t>::Register("Visibility", UIElement::GetType());
const Type UIElementTypeInfo("UIElement", "System::Windows::UIElement", TypeCode::Object);
Visibility_t UIElement::getVisibility() const Visibility_t UIElement::getVisibility() const
{ {
return GetValue(VisibilityProperty); return GetValue(VisibilityProperty);
@ -21,8 +51,9 @@ namespace System
{ {
} }
int UIElement::GetType() const Type& UIElement::GetType()
{ {
return UIElementTypeInfo;
} }
void UIElement::InvalidateArrange() void UIElement::InvalidateArrange()