[TIMOB-18849] Windows: Working prototype of Native API wrappers
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-05-07T21:49:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Christopher Williams |
Assignee | Christopher Williams |
Created | 2015-04-23T20:30:37.000+0000 |
Updated | 2017-03-16T22:31:35.000+0000 |
Description
We're taking an approach of generating C++ HAL wrappers for the Windows APIs from the metabase data. We should get a working prototype that could handle something like this:
var Canvas = require('Windows.UI.Xaml.Controls.Canvas'),
TextBlock = require('Windows.UI.Xaml.Controls.TextBlock'),
Page = require('Windows.UI.Xaml.Controls.Page'),
Window = require('Windows.UI.Xaml.Window');
var win = new Canvas();
// Add stuff to the window/canvas!
var label = new TextBlock();
label.FontSize = 20;
label.Text = "Hello World!";
win.Children.Append(label);
var rootFrame = Window.Current.Content;
rootFrame.Navigate(Page.typeid);
var page = rootFrame.Content;
page.Content = win;
A working prototype is available on the 'native' branch. it needs some additional work to get to more usable state automatically, but should be workable with a few extra tickets.
Closing ticket as fixed.