libui/wpf/uipriv_wpf.hpp

33 lines
715 B
C++
Raw Normal View History

2015-11-25 13:38:40 -06:00
// 25 november 2015
#include <vcclr.h>
#include "../ui.h"
#include "ui_wpf.hpp"
#include "../common/uipriv.h"
#include "unmanaged.h"
#using <System.dll>
#using <WindowsBase.dll>
#using <PresentationCore.dll>
#using <PresentationFramework.dll>
using namespace System;
using namespace System::ComponentModel;
using namespace System::Windows;
using namespace System::Windows::Controls;
2015-11-25 13:38:40 -06:00
// text.cpp
2015-11-25 21:08:14 -06:00
extern String ^fromUTF8(const char *);
// control.cpp
2015-11-26 00:26:30 -06:00
extern UIElement ^genericHandle(uiControl *c);
2015-11-26 17:27:23 -06:00
typedef gcroot<Label ^> *DUMMY;
static inline DUMMY mkdummy(String ^classname)
{
DUMMY t;
t = new gcroot<Label ^>();
*t = gcnew Label();
(*t)->Content = L"TODO " + classname + L" not implemented";
return t;
}