Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18849] Windows: Working prototype of Native API wrappers

GitHub Issuen/a
TypeStory
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-05-07T21:49:36.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2015-04-23T20:30:37.000+0000
Updated2017-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;

Comments

  1. Christopher Williams 2015-05-07

    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.
  2. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source