1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
#pragma once
#include <collection.h>
#include <ppl.h>
#include <amp.h>
#include <amp_math.h>
using namespace Windows::Foundation::Collections;
namespace UwpTestWinRtComponentCpp
{
//short, long
public delegate void PrimeFoundHandler(int result);
public delegate void PrimeFoundHandlerWithSpecificType(/*Windows::Foundation::Collections::*/IMap<double, float> ^ result);
public ref class Class1 sealed
{
public:
Class1();
public:
// Synchronous method.
Windows::Foundation::Collections::IVector<double> ^ ComputeResult(double input);
// Asynchronous methods
Windows::Foundation::IAsyncOperationWithProgress<Windows::Foundation::Collections::IVector<int>^, double>^
GetPrimesOrdered(int first, int last);
Windows::Foundation::IAsyncActionWithProgress<double>^ GetPrimesUnordered(int first, int last);
// Event whose type is a delegate "class"
event PrimeFoundHandler^ primeFoundEvent;
private:
bool is_prime(int n);
Windows::UI::Core::CoreDispatcher ^ m_dispatcher;
};
public delegate void SomethingHappenedEventHandler(Class1 ^ sender, Platform::String ^ s);
public ref class CustomAttribute1 sealed : Platform::Metadata::Attribute {
public: bool Field1;
public: Windows::Foundation::HResult Field2;
//public: Platform::CallbackContext Field3 = CallbackContext.Any;
private: delegate void SomethingHappenedEventHandler();
};
public enum class Color1 {
Red, Blue
};
}
namespace Namespace222 {
using namespace std::chrono;
using namespace Windows::ApplicationModel::Core;
using namespace Windows::Foundation;
using namespace Windows::UI::Core;
using namespace Windows::UI::Composition;
using namespace Windows::Media::Core;
using namespace Windows::Media::Playback;
using namespace Windows::System;
using namespace Windows::Storage;
using namespace Windows::Storage::Pickers;
public ref class App sealed: IFrameworkView
{
ref class NestedClass1 {};
public: virtual void Initialize(CoreApplicationView ^ applicationView)
{
};
void virtual Load(Platform::String ^ entryPoint)
{
};
void virtual Uninitialize()
{
};
void virtual Run()
{
};
void virtual SetWindow(CoreWindow ^ window) {};
void SetWindow1(CoreWindow ^ window) {};
public: property CoreWindow ^ m_activated;
public: property CompositionTarget ^ m_target;
};
}
|