-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 307fd21
Showing
121 changed files
with
12,762 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
*.sln merge=union | ||
*.csproj merge=union | ||
*.vbproj merge=union | ||
*.fsproj merge=union | ||
*.dbproj merge=union | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
################# | ||
## Eclipse | ||
################# | ||
|
||
*.pydevproject | ||
.project | ||
.metadata | ||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.classpath | ||
.settings/ | ||
.loadpath | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# CDT-specific | ||
.cproject | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
|
||
################# | ||
## Visual Studio | ||
################# | ||
|
||
## Ignore Visual Studio temporary files, build results, and | ||
## files generated by popular Visual Studio add-ons. | ||
|
||
# User-specific files | ||
*.suo | ||
*.user | ||
*.sln.docstates | ||
|
||
# Build results | ||
[Dd]ebug/ | ||
[Rr]elease/ | ||
*_i.c | ||
*_p.c | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pch | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.vspscc | ||
.builds | ||
*.dotCover | ||
|
||
## TODO: If you have NuGet Package Restore enabled, uncomment this | ||
#packages/ | ||
|
||
# Visual C++ cache files | ||
ipch/ | ||
*.aps | ||
*.ncb | ||
*.opensdf | ||
*.sdf | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper* | ||
|
||
# Installshield output folder | ||
[Ee]xpress | ||
|
||
# DocProject is a documentation generator add-in | ||
DocProject/buildhelp/ | ||
DocProject/Help/*.HxT | ||
DocProject/Help/*.HxC | ||
DocProject/Help/*.hhc | ||
DocProject/Help/*.hhk | ||
DocProject/Help/*.hhp | ||
DocProject/Help/Html2 | ||
DocProject/Help/html | ||
|
||
# Click-Once directory | ||
publish | ||
|
||
# Others | ||
[Bb]in | ||
[Oo]bj | ||
sql | ||
TestResults | ||
*.Cache | ||
ClientBin | ||
stylecop.* | ||
~$* | ||
*.dbmdl | ||
Generated_Code #added for RIA/Silverlight projects | ||
|
||
# Backup & report files from converting an old project file to a newer | ||
# Visual Studio version. Backup files are not needed, because we have git ;-) | ||
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
|
||
|
||
|
||
############ | ||
## Windows | ||
############ | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
|
||
############# | ||
## Python | ||
############# | ||
|
||
*.py[co] | ||
|
||
# Packages | ||
*.egg | ||
*.egg-info | ||
dist | ||
build | ||
eggs | ||
parts | ||
bin | ||
var | ||
sdist | ||
develop-eggs | ||
.installed.cfg | ||
|
||
# Installer logs | ||
pip-log.txt | ||
|
||
# Unit test / coverage reports | ||
.coverage | ||
.tox | ||
|
||
#Translations | ||
*.mo | ||
|
||
#Mr Developer | ||
.mr.developer.cfg | ||
|
||
# Mac crap | ||
.DS_Store |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<project name="waxe" url="http://code.google.com/p/waxe/" license="MIT"> | ||
<user name="elyon"/> | ||
<user name="gamehaxe"/> | ||
<tag v="cpp"/> | ||
<tag v="neko"/> | ||
<description>The waxe project allows haxe to access the wxWidgets library via the neko or c++ targets. The combination of functional and object-oriented aspects of the haxe language make this a very natural fit.</description> | ||
<version name="1.0.1">Included an updated NDLL for Mac</version> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project> | ||
|
||
<set name="waxe" /> | ||
<ndll name="waxe" /> | ||
|
||
</project> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
import wx.EventID; | ||
import wx.Sizer; | ||
|
||
class Simple | ||
{ | ||
var mFrame : wx.Frame; | ||
var mWindow : wx.Window; | ||
var mDrawArea : wx.Window; | ||
|
||
function new() | ||
{ | ||
mFrame = ApplicationMain.frame; | ||
/* | ||
var count = 0; | ||
mFrame.onClose = function(ioEvent) | ||
{ | ||
count++; | ||
if (count<2) | ||
{ | ||
trace("Sorry, try again..."); | ||
ioEvent.veto = true; | ||
} | ||
else | ||
ioEvent.skip = true; | ||
} | ||
*/ | ||
var me = this; | ||
mFrame.onSize = function(evt) { me.layout(); evt.skip=true; } | ||
|
||
mWindow = wx.Panel.create(mFrame); | ||
mDrawArea = wx.Panel.create(mWindow); | ||
|
||
|
||
var vertical_sizer = wx.FlexGridSizer.create(null,1); | ||
vertical_sizer.addGrowableCol(0); | ||
var items_sizer = wx.FlexGridSizer.create(null,2); | ||
var button_sizer = wx.BoxSizer.create(false); | ||
vertical_sizer.add(items_sizer,0,Sizer.EXPAND); | ||
vertical_sizer.add(mDrawArea,1,Sizer.EXPAND); | ||
//var scintilla = wx.Scintilla.create(mWindow,null); | ||
//vertical_sizer.add(scintilla,1,Sizer.EXPAND); | ||
vertical_sizer.add(button_sizer,0, | ||
Sizer.ALIGN_CENTRE | Sizer.BORDER_TOP | Sizer.BORDER_BOTTOM, 10); | ||
vertical_sizer.addGrowableRow(1); | ||
var close = wx.Button.create(mWindow,null,"Close"); | ||
button_sizer.add(close); | ||
|
||
|
||
items_sizer.addGrowableCol(1,1); | ||
items_sizer.add(wx.StaticText.create(mWindow,null,"TextCtrl"),0,Sizer.ALIGN_CENTRE_VERTICAL); | ||
var text = wx.TextCtrl.create(mWindow,null,"Here is some text" ); | ||
items_sizer.add(text,1,Sizer.EXPAND | Sizer.BORDER_ALL, 10); | ||
|
||
items_sizer.add(wx.StaticText.create(mWindow,null,"ComboBox"),0,Sizer.ALIGN_CENTRE_VERTICAL); | ||
var combo = wx.ComboBox.create(mWindow,null,"Some Text", ["Choice 1","Choice 2"]); | ||
items_sizer.add(combo,1,Sizer.EXPAND | Sizer.BORDER_ALL, 10); | ||
|
||
items_sizer.add(wx.StaticText.create(mWindow,null,"Text 3"),0,Sizer.ALIGN_CENTRE_VERTICAL); | ||
var text = wx.TextCtrl.create(mWindow,null,"Hello !" ); | ||
items_sizer.add(text,1,Sizer.EXPAND | Sizer.BORDER_ALL, 10); | ||
|
||
|
||
|
||
mWindow.sizer = vertical_sizer; | ||
|
||
mDrawArea.backgroundColour = 0xffffff; | ||
close.onClick = function(_) wx.App.quit(); | ||
|
||
layout(); | ||
|
||
mDrawArea.onPaint = paintWindow; | ||
wx.App.setTopWindow(mFrame); | ||
mFrame.shown = true; | ||
} | ||
|
||
function paintWindow(dc:wx.DC) | ||
{ | ||
dc.clear(); | ||
dc.pen = new wx.Pen( wx.Colour.Pink(), 3 ); | ||
dc.drawLine(0,0,300,250); | ||
dc.brush = new wx.Brush( wx.Colour.Yellow(), wx.Brush.SOLID ); | ||
dc.drawRectangle(100,100,100,200); | ||
dc.brush = new wx.Brush( wx.Colour.DarkGreen(), wx.Brush.SOLID ); | ||
dc.pen = new wx.Pen( wx.Colour.Black(), 3, wx.Pen.SHORT_DASH ); | ||
dc.drawCircle(100,10,50); | ||
dc.drawEllipse(100,200,200,40); | ||
dc.font = new wx.Font(20); | ||
dc.drawText("Hello!",20,20); | ||
} | ||
|
||
function layout() | ||
{ | ||
mWindow.size = mFrame.clientSize; | ||
} | ||
|
||
public static function main() | ||
{ | ||
new Simple(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<project> | ||
|
||
<app | ||
file="Simple01" | ||
title="Simple01" | ||
package="org.haxe.waxe.Simple01" | ||
version="1.0" | ||
company="waxe" | ||
main="Simple" | ||
/> | ||
|
||
<window | ||
width="800" | ||
height="600" | ||
orientation="landscape" | ||
fps="24" | ||
background="0xffffff" | ||
resizeable="true" | ||
hardware="true" | ||
/> | ||
|
||
<!--<icon name="../icon.svg" />--> | ||
|
||
|
||
<haxelib name="waxe" /> | ||
|
||
<ndll name="waxe" haxelib="waxe" /> | ||
<ndll name="std" /> | ||
<ndll name="zlib" /> | ||
<ndll name="regexp" /> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-main Simple | ||
-cp ../.. | ||
-neko Simple.n |
Oops, something went wrong.