commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
0ad8a46aeafbdc1cb4c6bb106d108f09ddff9a4a | test/data/RoomSystem.hx | test/data/RoomSystem.hx | package data;
import echo.GenericView;
import echo.System;
/**
* ...
* @author octocake1
*/
class RoomSystem extends System {
static public var LOG:Array<String> = [];
var names = new GenericView<{ name:Name }>();
var namesAndGreetings = new GenericView<{ name:Name, greeting:Greeting }>();
override... | package data;
import echo.GenericView;
import echo.System;
/**
* ...
* @author octocake1
*/
class RoomSystem extends System {
static public var LOG:Array<String> = [];
var names = new GenericView<{ name:Name }>();
var namesAndGreetings = new GenericView<{ name:Name, greeting:Greeting }>();
override... | Test fix for ViewData functional | Test fix for ViewData functional
| Haxe | mit | octocake1/echo,wimcake/echo |
9ebcf989be94c8662805586db0e6a2dc9178fb4c | src/cncta/ui/chat/ChatRoster.hx | src/cncta/ui/chat/ChatRoster.hx | package cncta.ui.chat;
class ChatRoster extends qx.ui.container.Scroll
{
private var nicklist:qx.ui.container.Composite;
private var nickmap:Hash<qx.ui.basic.Label>;
public function new()
{
var layout = new qx.ui.layout.VBox();
this.nicklist = new qx.ui.container.Composite(layout);
... | package cncta.ui.chat;
class ChatRoster extends qx.ui.container.Scroll
{
private var nicklist:qx.ui.container.Composite;
private var nickmap:Hash<qx.ui.basic.Label>;
public function new()
{
var layout = new qx.ui.layout.VBox();
this.nicklist = new qx.ui.container.Composite(layout);
... | Change roster nick colors to yellow. | Change roster nick colors to yellow.
I know, this may not fit into the design, but first of all: I'm not a designer
and second: It's just to visually separate it from the main chat area.
| Haxe | bsd-3-clause | imps/cncta |
b05816998804e2871b1c7d153f6709b91975abfe | Haxe/Externs/Common/unreal/UParticleSystemComponent_Extra.hx | Haxe/Externs/Common/unreal/UParticleSystemComponent_Extra.hx | package unreal;
extern class UParticleSystemComponent_Extra {
public function DeactivateSystem() : Void;
public var bAutoDestroy:Bool;
} | package unreal;
extern class UParticleSystemComponent_Extra {
public function DeactivateSystem() : Void;
/**
* Retrieve the Float parameter value for the given name.
*
* @param InName Name of the parameter
* @param OutFloat The value of the parameter found
*
* @return true Parameter... | Update to latest perforce change | [CL-35374] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
5a602e48b885aeb984cfef6fbb814bcf91c4acc6 | src/UserScript.hx | src/UserScript.hx | #if macro
import haxe.macro.Expr;
#end
class UserScript
{
@:macro public static function extract_meta(uscls:String, file:String):Expr
{
haxe.macro.Context.onGenerate(function (types) {
for (type in types) {
switch (type) {
case TInst(c, _):
... | #if macro
import haxe.macro.Expr;
#end
class UserScript
{
@:macro public static function extract_meta(uscls:String, file:String):Expr
{
haxe.macro.Context.onGenerate(function (types) {
for (type in types) {
switch (type) {
case TInst(c, _):
... | Remove userscript metadata from generated code. | Remove userscript metadata from generated code.
We don't want to have redundant information, besides: why would we want to keep
metadata anyway except for the version? And for the latter it should be enough
to just encode it using macros.
| Haxe | bsd-3-clause | imps/cncta |
578ee4128aa34177db9730c7e17266f287d1e88a | testData/annotation.semantic.body/UpdateUnknownOnLambdas.hx | testData/annotation.semantic.body/UpdateUnknownOnLambdas.hx | class Test {
public function demo(func:String -> Void):Void {
}
public function main() {
var out = 10;
this.demo(function(v) {
<error descr="Can't assign String to Int">out = v</error>;
});
}
}
| class Test {
public function demo(func:String -> Void):Void {
}
public function main() {
var out = 10;
this.demo(<error descr="Can't assign Int -> Int to String -> Void">function(v) {
out = v;
}</error>);
}
}
| Update unit test for passing function literals to expect a better error message. | Update unit test for passing function literals to expect a better error message.
| Haxe | apache-2.0 | EricBishton/intellij-haxe,eliasku/intellij-haxe,winmain/intellij-haxe,HaxeFoundation/intellij-haxe,TiVo/intellij-haxe,TiVo/intellij-haxe,eliasku/intellij-haxe,HaxeFoundation/intellij-haxe,EricBishton/intellij-haxe,TiVo/intellij-haxe,winmain/intellij-haxe,winmain/intellij-haxe,HaxeFoundation/intellij-haxe,EricBishton/in... |
ab12a2bab156384d5f098942bb54136747fd5bf6 | Haxe/Externs/Common/unreal/FStringImpl.hx | Haxe/Externs/Common/unreal/FStringImpl.hx | package unreal;
@:glueCppIncludes("Containers/UnrealString.h")
@:uname("FString")
@:ustruct
@:uextern extern class FStringImpl {
@:uname('.ctor') static function create(text:TCharStar):FStringImpl;
@:uname('new') static function createNew(text:TCharStar):POwnedPtr<FStringImpl>;
function op_Dereference() : TCharS... | package unreal;
@:glueCppIncludes("Containers/UnrealString.h")
@:uname("FString")
@:ustruct
@:uextern extern class FStringImpl {
@:uname('.ctor') static function create(text:TCharStar):FStringImpl;
@:uname('new') static function createNew(text:TCharStar):POwnedPtr<FStringImpl>;
function op_Dereference() : TCharS... | Update to latest perforce change | [CL-19813] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
093d4c68af26b02675b7071b32a3a00e215e9140 | tests/unit/src/flixel/system/frontEnds/SoundFrontEndTest.hx | tests/unit/src/flixel/system/frontEnds/SoundFrontEndTest.hx | package flixel.system.frontEnds;
import flixel.FlxG;
class SoundFrontEndTest
{
@Test // #1511
function testPlayInvalidSoundPathNoCrash()
{
FlxG.sound.play("assets/invalid");
}
@Test // #1511
function testPlayMusicInvalidSoundPathNoCrash()
{
FlxG.sound.playMusic("assets/invalid");
}
@Test // #1511
fu... | package flixel.system.frontEnds;
import flixel.FlxG;
class SoundFrontEndTest
{
#if FLX_SOUND_SYSTEM
@Test // #1511
function testPlayInvalidSoundPathNoCrash()
{
FlxG.sound.play("assets/invalid");
}
@Test // #1511
function testPlayMusicInvalidSoundPathNoCrash()
{
FlxG.sound.playMusic("assets/invalid");
}... | Fix unit test compilation with FLX_NO_SOUND_SYSTEM | Fix unit test compilation with FLX_NO_SOUND_SYSTEM
| Haxe | mit | HaxeFlixel/flixel |
eebaa2ce3b784f124f1100096acb2c550208078a | tools/command-line/src/installers/CPPInstaller.hx | tools/command-line/src/installers/CPPInstaller.hx | package installers;
import haxe.io.Path;
import sys.io.Process;
import neko.Lib;
class CPPInstaller extends DesktopInstaller {
override function getVM ():String {
return "cpp";
}
override function copyResultTo (path:String) {
var debugString:String = (debug ? "-debug" : "")... | package installers;
import haxe.io.Path;
import sys.io.Process;
import neko.Lib;
class CPPInstaller extends DesktopInstaller {
override function getVM ():String {
return "cpp";
}
override function copyResultTo (path:String) {
var debugString:String = (debug ? "-debug" : "")... | Use Clang by default for OS X applications. Xcode 4.4 has broken symlink for g++ | Use Clang by default for OS X applications. Xcode 4.4 has broken symlink for g++
git-svn-id: 6cc2fa9b7d2830c930c171b991ffcd5e23f23d5e@1842 1509560c-5e2a-0410-865c-31c25e1cfdef
| Haxe | mit | haxenme/nme,madrazo/nme,thomasuster/NME,madrazo/nme,haxenme/nme,madrazo/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,haxenme/nme,thomasuster/NME,haxenme/nme,haxenme/nme,thomasuster/NME,madrazo/nme,madrazo/nme,thomasuster/NME |
e86f85d57c75119237036047b72838c77e5551a4 | src/travix/commands/CsCommand.hx | src/travix/commands/CsCommand.hx | package travix.commands;
using StringTools;
class CsCommand extends Command {
override function execute() {
if (!Travix.isWindows)
if (tryToRun('mono', ['--version']).match(Failure(_, _))) {
if(Travix.isLinux) {
aptGet('mono-devel');
aptGet('mono-mcs');
} else {... | package travix.commands;
class CsCommand extends Command {
override function execute() {
if (Travix.isMac) {
aptGet('mono');
} else if (Travix.isLinux) {
// http://www.mono-project.com/download/#download-lin
exec('eval', ['sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --re... | Install newer mono version on Linux. | Install newer mono version on Linux.
This solves compile-time error "error CS1061: Type `System.Text.StringBuilder' does not contain a definition for `Clear' and no extension method `Clear' of type `System.Text.StringBuilder' could be found. Are you missing an assembly reference?" | Haxe | unlicense | back2dos/travix,back2dos/travix,back2dos/travix |
2c88cad2f7021aa37fd2c9013a4d173f5726e1b3 | src/unihx/pvt/editor/HaxeBuild.hx | src/unihx/pvt/editor/HaxeBuild.hx | package unihx.pvt.editor;
import unityengine.*;
import unityeditor.*;
@:nativeGen @:native("HaxeBuild") class HaxeBuild extends EditorWindow
{
@:meta(UnityEditor.MenuItem("Window/Haxe Build Properties"))
static function init()
{
var window:HaxeBuild = ScriptableObject.CreateInstance();
window.Show();
}
funct... | package unihx.pvt.editor;
import unityengine.*;
import unityeditor.*;
@:nativeGen class HaxeBuild extends EditorWindow
{
@:meta(UnityEditor.MenuItem("Window/Haxe Build Properties %&h"))
static function init()
{
var window:HaxeBuild = cast EditorWindow.GetWindow( cs.Lib.toNativeType(HaxeBuild), false, "build.hxml"... | Add shortcut for build properties; Only add a single window | Add shortcut for build properties; Only add a single window
| Haxe | mit | unihx/unihx,unihx/unihx |
6adb70d8a1aef45eb0bd7a23a76ba6efef4c77dd | src/flambe/server/SystemLogHander.hx | src/flambe/server/SystemLogHander.hx | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.server;
import flambe.util.Logger;
class SystemLogHander
implements LogHandler
{
public function new (syslog :Dynamic, tag :String)
{
_syslog = syslog;
_syslog.init(tag, 0, sys... | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.server;
import flambe.util.Logger;
class SystemLogHander
implements LogHandler
{
public function new (syslog :Dynamic, tag :String)
{
_syslog = syslog;
_syslog.init(tag, syslog... | Include the PID in server logging. | Include the PID in server logging.
| Haxe | mit | weilitao/flambe,mikedotalmond/flambe,mikedotalmond/flambe,playedonline/flambe,playedonline/flambe,Disar/flambe,aduros/flambe,playedonline/flambe,Disar/flambe,Disar/flambe,markknol/flambe,mikedotalmond/flambe,aduros/flambe,weilitao/flambe,weilitao/flambe,mikedotalmond/flambe,Disar/flambe,playedonline/flambe,markknol/fla... |
5d3d4ce7f30d485e4b7bf69e024fc90decb24a29 | nme/app/EventName.hx | nme/app/EventName.hx | package nme.app;
@:nativeProperty
class EventName
{
public static inline var KEY_DOWN = "keyDown";
public static inline var KEY_UP = "keyUp";
public static inline var MOUSE_MOVE = "mouseMove";
public static inline var MOUSE_DOWN = "mouseDown";
public static inline var MOUSE_UP = "mouseUp";
public sta... | package nme.app;
@:nativeProperty
class EventName
{
public static inline var KEY_DOWN = "keyDown";
public static inline var KEY_UP = "keyUp";
public static inline var MOUSE_MOVE = "mouseMove";
public static inline var MOUSE_DOWN = "mouseDown";
public static inline var MOUSE_UP = "mouseUp";
public sta... | Fix event names for joystick | Fix event names for joystick
Fix https://github.com/haxenme/nme/issues/362
| Haxe | mit | haxenme/nme,haxenme/nme,thomasuster/NME,madrazo/nme,madrazo/nme,madrazo/nme,haxenme/nme,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,thomasuster/NME,haxenme/nme,haxenme/nme |
3b86d5a90fef5909347407181271dd9e5bab0237 | Haxe/Externs/Common/unreal/AVolume_Extra.hx | Haxe/Externs/Common/unreal/AVolume_Extra.hx | package unreal;
extern class AVolume_Extra {
/** @returns true if a sphere/point (with optional radius CheckRadius) overlaps this volume */
public function EncompassesPoint(point:FVector, sphereRadius:Float32, OutDistanceToPoint:Ptr<Float32>) : Bool;
}
| package unreal;
extern class AVolume_Extra {
/** @returns true if a sphere/point (with optional radius CheckRadius) overlaps this volume */
public function EncompassesPoint(point:FVector, sphereRadius:Float32, OutDistanceToPoint:Ptr<Float32>) : Bool;
/** @returns the coarse bounds of this volume */
@:... | Update to latest perforce change | [CL-35149] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
f767abc01a5ca0107d408f051c901f333aa8be79 | Haxe/Externs/Common/unreal/UProjectileMovementComponent_Extra.hx | Haxe/Externs/Common/unreal/UProjectileMovementComponent_Extra.hx | package unreal;
extern class UProjectileMovementComponent_Extra
{
function HasStoppedSimulation() : Bool;
} | package unreal;
extern class UProjectileMovementComponent_Extra
{
function HasStoppedSimulation() : Bool;
/** Compute the distance we should move in the given time, at a given a velocity. */
@:thisConst
private function ComputeMoveDelta(InVelocity:PRef<Const<FVector>>, DeltaTime:Float32) : FVector;
}
| Update to latest perforce change | [CL-32685] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
f176a175d8bdfe02b252468b13551bd32f70153c | luxe/components/physics/nape/PolygonCollider.hx | luxe/components/physics/nape/PolygonCollider.hx | package luxe.components.physics.nape;
#if nape
import nape.geom.Vec2;
import nape.phys.Body;
import nape.phys.BodyType;
import nape.shape.Polygon;
import luxe.Vector;
import luxe.components.physics.nape.NapeBody;
typedef PolygonColliderOptions = {
> NapeBodyOptions,
/** the x position ... | package luxe.components.physics.nape;
#if nape
import nape.geom.Vec2;
import nape.phys.Body;
import nape.phys.BodyType;
import nape.shape.Polygon;
import luxe.Vector;
import luxe.components.physics.nape.NapeBody;
typedef PolygonColliderOptions = {
> NapeBodyOptions,
/** the x position ... | Align body after creating polygon collider | Align body after creating polygon collider | Haxe | mit | anissen/luxe,zollenz/luxe,underscorediscovery/luxe,anissen/luxe,underscorediscovery/luxe,zollenz/luxe |
97c45801dc3ed154274bfed7a3531be5d24bbb36 | lime/tools/helpers/DeploymentHelper.hx | lime/tools/helpers/DeploymentHelper.hx | package lime.tools.helpers;
import lime.project.HXProject;
class DeploymentHelper {
public static function deploy (project:HXProject, targetFlags:Map <String, String>, targetDirectory:String, targetName:String) {
var name = project.meta.title + " (" + project.meta.version + " build " + project.meta.buildN... | package lime.tools.helpers;
import lime.project.HXProject;
class DeploymentHelper {
public static function deploy (project:HXProject, targetFlags:Map <String, String>, targetDirectory:String, targetName:String) {
var name = project.meta.title + " (" + project.meta.version + " build " + project.meta.buildN... | Add "config" option for deployment helper | Add "config" option for deployment helper | Haxe | mit | MinoGames/lime,player-03/lime,madrazo/lime-1,player-03/lime,MinoGames/lime,fbricker/lime,player-03/lime,madrazo/lime-1,fbricker/lime,fbricker/lime,MinoGames/lime,openfl/lime,madrazo/lime-1,openfl/lime,player-03/lime,MinoGames/lime,player-03/lime,fbricker/lime,fbricker/lime,MinoGames/lime,fbricker/lime,MinoGames/lime,pl... |
877dea17a230da34ad49b86855df396ef69959b6 | haxelib/src/vshaxe/HaxeInstallationProvider.hx | haxelib/src/vshaxe/HaxeInstallationProvider.hx | package vshaxe;
/**
@since 2.13.0
**/
typedef HaxeInstallationProvider = {
/**
Called when vshaxe selects the provider for providing the Haxe installation.
@param provideInstallation A callback that should be cached by the provider, and called whenever the Haxe installation changes.
Should only be call... | package vshaxe;
/**
@since 2.13.0
**/
typedef HaxeInstallationProvider = {
/**
Called when vshaxe selects the provider for providing the Haxe installation.
@param provideInstallation A callback that should be cached by the provider, and called whenever the Haxe installation changes.
Should only be call... | Add `@since` to doc comment | Add `@since` to doc comment
| Haxe | mit | vshaxe/vshaxe |
76dbf6e3513f188d599bb4ef011722fe2e9d396c | Haxe/Externs/Common/unreal/umg/UScrollBox_Extra.hx | Haxe/Externs/Common/unreal/umg/UScrollBox_Extra.hx | package unreal.umg;
import unreal.slatecore.*;
extern class UScrollBox_Extra {
public function GetViewFraction() : Float32;
}
| package unreal.umg;
import unreal.slatecore.*;
extern class UScrollBox_Extra {
public function GetViewFraction() : Float32;
public function GetWidgetScrollOffset(WidgetToFind : UWidget, @:opt("IntoView") ScrollDestination : unreal.slate.EDescendantScrollDestination) : Float32;
}
| Update to latest perforce change | [CL-51144] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
dab47379817b217bb943150cce928c54e3a84ca3 | Haxe/Externs/Common/unreal/umg/UUMGSequencePlayer_Extra.hx | Haxe/Externs/Common/unreal/umg/UUMGSequencePlayer_Extra.hx | package unreal.umg;
import unreal.slatecore.*;
import unreal.umg.*;
@:glueCppIncludes("UserWidget.h", "Animation/UMGSequencePlayer.h")
extern class UUMGSequencePlayer_Extra {
public function GetAnimation() : UWidgetAnimation;
public function Pause() : Void;
public function Stop() : Void;
#if pro... | package unreal.umg;
import unreal.moviescene.EMovieScenePlayerStatus;
import unreal.slatecore.*;
import unreal.umg.*;
@:glueCppIncludes("UserWidget.h", "Animation/UMGSequencePlayer.h")
extern class UUMGSequencePlayer_Extra {
public function GetAnimation() : UWidgetAnimation;
public function Play(StartA... | Update to latest perforce change | [CL-67262] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
aac44aa9f3052011e4f210da78edcb0f57a0f1c1 | src/cncta/ui/ChatWindow.hx | src/cncta/ui/ChatWindow.hx | package cncta.ui;
class ChatWindow extends cncta.inject.ui.CustomWindow
{
private var view:cncta.ui.chat.ChatView;
private var input:cncta.ui.chat.ChatInput;
public function new()
{
super("Chat");
this.setLayout(new qx.ui.layout.VBox());
this.set({
allowMaximize: ... | package cncta.ui;
class ChatWindow extends cncta.inject.ui.CustomWindow
{
private var view:cncta.ui.chat.ChatView;
private var input:cncta.ui.chat.ChatInput;
public function new()
{
super("Chat");
this.setLayout(new qx.ui.layout.VBox());
this.set({
allowMaximize: ... | Bring to front and center chat win on appearance. | Bring to front and center chat win on appearance.
| Haxe | bsd-3-clause | imps/cncta |
854fe899bb7462b2ae2759e4eee33cf4b215c86b | Haxe/Externs/Common/unreal/assetregistry/IAssetRegistry.hx | Haxe/Externs/Common/unreal/assetregistry/IAssetRegistry.hx | package unreal.assetregistry;
@:noCopy
@:noEquals
@:glueCppIncludes("IAssetRegistry.h")
@:uextern extern class IAssetRegistry {
}
| package unreal.assetregistry;
@:noCopy
@:noEquals
@:glueCppIncludes("IAssetRegistry.h")
@:uextern extern interface IAssetRegistry {
}
| Update to latest perforce change | [CL-13429] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
7365c3e49dac2cffc391a57e551854d5fc0c28d7 | src/flambe/platform/HeavySignal1.hx | src/flambe/platform/HeavySignal1.hx | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform;
import flambe.util.Signal1;
import flambe.util.SignalConnection;
import flambe.util.Value;
/** An internal Signal1 with extra frills. */
class HeavySignal1<A> extends Signal1<A>
{
/**
*... | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform;
import flambe.util.Signal1;
import flambe.util.SignalConnection;
import flambe.util.Value;
/** An internal Signal1 with extra frills. */
class HeavySignal1<A> extends Signal1<A>
{
/**
*... | Update hasListenersValue after an emit. | Update hasListenersValue after an emit.
hasListeners() while dispatching may return the wrong value (disconnects
are deferred until the end of the current dispatch).
| Haxe | mit | playedonline/flambe,playedonline/flambe,weilitao/flambe,weilitao/flambe,weilitao/flambe,playedonline/flambe,weilitao/flambe,mikedotalmond/flambe,Disar/flambe,markknol/flambe,aduros/flambe,aduros/flambe,Disar/flambe,Disar/flambe,markknol/flambe,mikedotalmond/flambe,playedonline/flambe,aduros/flambe,aduros/flambe,markkno... |
e1895274ba0cf0ad1fac772900e1937a935eab79 | test/thx/fp/TestState.hx | test/thx/fp/TestState.hx | package thx.fp;
import thx.Tuple;
import thx.fp.State.*;
using thx.Functions;
import utest.Assert;
class TestState {
public function new() {}
public function testMap() {
var s: State<String, Int> = pure(1).map.fn(_ + 1);
Assert.same(new Tuple("a", 2), s("a"));
}
public function testFlatMap() {
... | package thx.fp;
import thx.Tuple;
import thx.fp.State.*;
using thx.Functions;
import utest.Assert;
class TestState {
public function new() {}
public function testMap() {
var s: State<String, Int> = pure(1).map.fn(_ + 1);
Assert.same(new Tuple("a", 2), s("a"));
}
public function testFlatMap() {
... | Fix removal of operator overload. | Fix removal of operator overload.
| Haxe | mit | andywhite37/thx.core,fponticelli/thx.core,0b1kn00b/thx.core,mlms13/thx.core |
4c9507bc3a647dc5eb2465313b1593ed9aaa5d91 | std/cpp/Function.hx | std/cpp/Function.hx | package cpp;
@:coreType @:structAccess @:include("cpp/Pointer.h")
extern class Function<T>
{
public function new(d:Dynamic);
// Actually a function pointer, but can be called using haxe notation
public var call(default,null):T;
public static function getProcAddress<T>(inModule:String, inFunction:String) : ... | package cpp;
@:coreType @:structAccess @:include("cpp/Pointer.h")
@:analyzer(no_simplification)
extern class Function<T>
{
public function new(d:Dynamic);
// Actually a function pointer, but can be called using haxe notation
public var call(default,null):T;
public static function getProcAddress<T>(inModule... | Mark cpp.Funciton class as no_simplification | Mark cpp.Funciton class as no_simplification
| Haxe | mit | pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe |
65da9f10ee799959efb1d5ddfa78d255205c034e | Haxe/Externs/Common/unreal/FSwitchPlatformMisc.hx | Haxe/Externs/Common/unreal/FSwitchPlatformMisc.hx | package unreal;
#if PLATFORM_SWITCH
@:glueCppIncludes("Switch/SwitchPlatformMisc.h")
@:noEquals @:noCopy @:uextern extern class FSwitchPlatformMisc {
#if proletariat
static function ShowErrorDialog(category:Int32, number:Int32):Void;
#end
}
#end
| package unreal;
#if PLATFORM_SWITCH
@:glueCppIncludes("Switch/SwitchPlatformMisc.h")
@:noEquals @:noCopy @:uextern extern class FSwitchPlatformMisc {
#if proletariat
static function ShowErrorDialog(category:Int32, number:Int32):Void;
static function IsNifmAvailable():Bool;
#end
}
#end
| Update to latest perforce change | [CL-66856] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
451cc3d1f5592c95fdbef49cccaf19293b4bad30 | std/java/internal/IEquatable.hx | std/java/internal/IEquatable.hx | /*
* Copyright (C)2005-2012 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge,... | /*
* Copyright (C)2005-2012 Haxe Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge,... | Allow classes to implement their own equals without HxObject | Allow classes to implement their own equals without HxObject | Haxe | mit | pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe |
a7e2827239929543854367cfafcb3cf661e722a8 | src/GetReady.hx | src/GetReady.hx | class GetReady implements IUserScriptTemplate
{
public function new()
{
}
private function make_loader(code:String)
{
var out = "";
out += "(function(){";
out += "inject__ = document.createElement('script');";
out += "inject__.type = 'text/javascript';";
... | class GetReady implements IUserScriptTemplate
{
public function new()
{
}
private function get_watcher_on(teststr:String, code:String)
{
var out = "";
out += "(function() {";
out += "var wtimer__;";
out += "function watch_timer__(){";
out += "if(" + test... | Implement preliminary watch for webfrontend. | Implement preliminary watch for webfrontend.
This is not working at the moment, as we really need to inject _twice_. But
do so a few commits later.
It is implemented as a timer using window.setInterval() and every function has
the whole body of the userscript itself. So _THAT_ could definitely become a big
memory hog... | Haxe | bsd-3-clause | imps/cncta |
d254a91d062d3b6995e566ceee738dd67a4a48b5 | Haxe/Externs/Common/unreal/slatecore/FSlateColor_Extra.hx | Haxe/Externs/Common/unreal/slatecore/FSlateColor_Extra.hx | package unreal.slatecore;
extern class FSlateColor_Extra {
@:uname(".ctor") static function create(color:Const<PRef<FLinearColor>>):FSlateColor;
@:uname("new") static function createNew(color:Const<PRef<FLinearColor>>):POwnedPtr<FSlateColor>;
}
| package unreal.slatecore;
extern class FSlateColor_Extra {
@:uname(".ctor") static function create(color:Const<PRef<FLinearColor>>):FSlateColor;
@:uname("new") static function createNew(color:Const<PRef<FLinearColor>>):POwnedPtr<FSlateColor>;
public function GetSpecifiedColor() : Const<FLinearColor>;
}
| Update to latest perforce change | [CL-14899] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
f96cf33803f66e912beef7fbcf7c2b2200da03f7 | src/coconut/ui/macros/HXX.hx | src/coconut/ui/macros/HXX.hx | package coconut.ui.macros;
#if !macro
#error
#end
import haxe.macro.*;
import tink.hxx.*;
using tink.MacroApi;
using tink.CoreApi;
class HXX {
static public var defaults(default, never) = new tink.priority.Queue<Lazy<Array<Named<Tag>>>>();
static public var generator = new Generator(function (... | package coconut.ui.macros;
#if !macro
#error
#end
import haxe.macro.*;
import tink.hxx.*;
using tink.MacroApi;
using tink.CoreApi;
class HXX {
static public var defaults(default, never) = new tink.priority.Queue<Lazy<Array<Named<Expr.Position->Tag>>>>();
static public var generator = new Gener... | Update to match latest hxx. | Update to match latest hxx.
| Haxe | unlicense | MVCoconut/coconut.ui |
25cdd2ffdb7401c4f21d12426186b36032afd591 | src/tinx/node/io/NativeIn.hx | src/tinx/node/io/NativeIn.hx | package tinx.node.io;
import tinx.node.events.Emitter;
typedef NativeIn = {>Emitter,
var readable(default, null):Bool;
function pause():Void;
function resume():Void;
function destroy():Void;
} | package tinx.node.io;
import tinx.node.events.Emitter;
typedef NativeIn = {>Emitter,
var readable(default, null):Bool;
function setEncoding(encoding:String):Void;
function pause():Void;
function resume():Void;
function destroy():Void;
} | Add setEncoding from native API. | Add setEncoding from native API.
| Haxe | mit | back2dos/tinkerbell,back2dos/tinkerbell |
4c72d31cb308cb4c0b107d6b71caaed7cef2fd2e | lime/tools/helpers/NodeJSHelper.hx | lime/tools/helpers/NodeJSHelper.hx | package lime.tools.helpers;
import haxe.io.Path;
import lime.project.Architecture;
import lime.project.Haxelib;
import lime.project.HXProject;
import lime.project.Platform;
class NodeJSHelper {
public static function run (project:HXProject, modulePath:String, args:Array<String> = null):Void {
/*var suffix... | package lime.tools.helpers;
import haxe.io.Path;
import lime.project.Architecture;
import lime.project.Haxelib;
import lime.project.HXProject;
import lime.project.Platform;
class NodeJSHelper {
public static function run (project:HXProject, modulePath:String, args:Array<String> = null):Void {
/*var suffix... | Use "node" instead of "iojs" | Use "node" instead of "iojs"
| Haxe | mit | madrazo/lime-1,MinoGames/lime,openfl/lime,MinoGames/lime,madrazo/lime-1,openfl/lime,MinoGames/lime,fbricker/lime,fbricker/lime,player-03/lime,fbricker/lime,openfl/lime,fbricker/lime,madrazo/lime-1,openfl/lime,openfl/lime,player-03/lime,fbricker/lime,player-03/lime,madrazo/lime-1,player-03/lime,player-03/lime,fbricker/l... |
a75e1b9808779cdd298dff83ab982f65b7831779 | js/npm/passport/Profile.hx | js/npm/passport/Profile.hx | package js.npm.passport;
typedef Profile = {
provider : String,
id : String,
displayName : String,
name : {
familyName : String,
givenName : String,
middleName : String
},
email : Array<{
value : String,
type : String
}>,
photos : Array<{
value : String
}>
} | package js.npm.passport;
typedef Profile = {
provider : String,
id : String,
displayName : String,
name : {
familyName : String,
givenName : String,
middleName : String
},
emails : Array<{
value : String,
type : String
}>,
photos : Array<{
value : String
}>
} | Allow multiple concurrent authentication strategies | Allow multiple concurrent authentication strategies
| Haxe | mit | JbIPS/haxe-js-kit,clemos/haxe-js-kit,MatthijsKamstra/haxe-js-kit |
b1aff08b0e94b6714821dec7fe7a46731ae49c88 | templates/haxe/ApplicationDocument.hx | templates/haxe/ApplicationDocument.hx |
class ApplicationDocument extends ::APP_MAIN::
{
public function new()
{
#if nme
var added:nme.display.DisplayObject = null;
ApplicationMain.setAndroidViewHaxeObject(this);
if (Std.is(this, nme.display.DisplayObject))
{
added = cast this;
nme.Lib.current... |
class ApplicationDocument extends ::APP_MAIN::
{
public function new()
{
#if nme
var added:nme.display.DisplayObject = null;
ApplicationMain.setAndroidViewHaxeObject(this);
if (Std.is(this, nme.display.DisplayObject))
{
added = cast this;
nme.Lib.current... | Send 'ADDED' event too at startup | Send 'ADDED' event too at startup
| Haxe | mit | thomasuster/NME,madrazo/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,haxenme/nme,madrazo/nme,thomasuster/NME,madrazo/nme,madrazo/nme,haxenme/nme,haxenme/nme,thomasuster/NME,madrazo/nme,haxenme/nme,haxenme/nme,thomasuster/NME |
a631947488f7d79c66bd028a6eb0361449edc374 | src/cncta/ui/chat/ChatLine.hx | src/cncta/ui/chat/ChatLine.hx | package cncta.ui.chat;
class ChatLine extends qx.ui.container.Composite
{
public inline var is_me(default, set_is_me):Bool;
private var nicklabel:qx.ui.basic.Label;
public function new(date:Date, nick:String, text:String)
{
super(new qx.ui.layout.HBox(5));
var time = DateTools.format(... | package cncta.ui.chat;
class ChatLine extends qx.ui.container.Composite
{
public inline var is_me(default, set_is_me):Bool;
private var nicklabel:qx.ui.basic.Label;
public function new(date:Date, nick:String, text:String)
{
super(new qx.ui.layout.HBox(5));
var time = DateTools.format(... | Allow word wrapping in chat line text. | Allow word wrapping in chat line text.
Qooxdoo doesn't seem to include support for that, so we're doing this using
<span/> with inline CSS around the rich text value.
| Haxe | bsd-3-clause | imps/cncta |
ec3b0c381e67cdf12990684ca9fd34c7fd83c190 | lime/app/Event.hx | lime/app/Event.hx | package lime.app;
import haxe.macro.Context;
import haxe.macro.Expr;
class Event<T> {
@:noCompletion public var listeners:Array<T>;
private var priorities:Array<Int>;
public function new () {
listeners = new Array<T> ();
priorities = new Array<Int> ();
}
public function add (listener:T,... | package lime.app;
import haxe.macro.Context;
import haxe.macro.Expr;
class Event<T> {
@:noCompletion public var listeners:Array<T>;
@:noCompletion public var repeat:Array<Bool>;
private var priorities:Array<Int>;
public function new () {
listeners = new Array<T> ();
priorities = new Array<Int> ... | Add support for events that fire only once | Add support for events that fire only once
| Haxe | mit | fbricker/lime,MinoGames/lime,madrazo/lime-1,madrazo/lime-1,madrazo/lime-1,fbricker/lime,fbricker/lime,madrazo/lime-1,player-03/lime,player-03/lime,MinoGames/lime,madrazo/lime-1,openfl/lime,openfl/lime,player-03/lime,MinoGames/lime,MinoGames/lime,fbricker/lime,MinoGames/lime,madrazo/lime-1,fbricker/lime,player-03/lime,o... |
2d38d09e874c9efd9007efc3f2c78d99d34b4e08 | Haxe/Externs/Common/unreal/rhi/FDynamicRHI.hx | Haxe/Externs/Common/unreal/rhi/FDynamicRHI.hx | package unreal.rhi;
@:glueCppIncludes("DynamicRHI.h")
@:noCopy
@:noEquals
@:umodule("RHI")
@:uextern extern class FDynamicRHI {
@:global static function RHIGetAvailableResolutions(Resolutions:PRef<TArray<FScreenResolutionRHI>>, bIgnoreRefreshRate:Bool) : Bool;
}
| package unreal.rhi;
@:glueCppIncludes("RHIResources.h", "DynamicRHI.h")
@:noCopy
@:noEquals
@:umodule("RHI")
@:uextern extern class FDynamicRHI {
@:global static function RHIGetAvailableResolutions(Resolutions:PRef<TArray<FScreenResolutionRHI>>, bIgnoreRefreshRate:Bool) : Bool;
}
| Update to latest perforce change | [CL-14438] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
d82ba1f6ac7de24b8dbbff24261c5e17fea9b346 | src/cncta/inject/data/Player.hx | src/cncta/inject/data/Player.hx | package cncta.inject.data;
@:native("ClientLib.Data.Player");
extern class Player
{
public function get_Name():String;
}
| package cncta.inject.data;
@:native("ClientLib.Data.Player")
extern class Player
{
public function get_Name():String;
}
| Remove stray semicolon that gave a compile error. | Remove stray semicolon that gave a compile error.
| Haxe | bsd-3-clause | imps/cncta |
43e148f8418b8cd3d5cc58c747ac00b7c8d5a9bd | src/cncta/watchers/PlayerWatch.hx | src/cncta/watchers/PlayerWatch.hx | package cncta.watchers;
class PlayerWatch extends Watch
{
public function new()
{
super(this.watcher);
}
private function watcher():Bool
{
var main_data = cncta.inject.MainData.GetInstance();
return cast main_data.get_Player().get_Name();
}
}
| package cncta.watchers;
class PlayerWatch extends Watch
{
public function new()
{
super(this.watcher);
}
private function watcher():Bool
{
var main_data = cncta.inject.MainData.GetInstance();
return cast main_data.get_Player().get_Name();
}
}
| Remove an empty line at EOF. | Remove an empty line at EOF.
I know, this commit is absolutely useless,
but stuff like this is driving me mad :-)
| Haxe | bsd-3-clause | imps/cncta |
41b330fb34abb55aee65030d65603d8beee6f54b | src/travix/commands/NodeCommand.hx | src/travix/commands/NodeCommand.hx | package travix.commands;
using sys.FileSystem;
class NodeCommand extends Command {
override function execute() {
if (Travix.isTravis && Travix.isMac) {
// TODO: remove this when travis decided to update their stock node version
foldOutput('upgrade-nodejs', function() {
exec('brew', ... | package travix.commands;
using sys.FileSystem;
class NodeCommand extends Command {
static var VERSION_RE = ~/^v?(\d{1,})\.\d{1,}\.\d{1,}$/;
override function execute() {
if (Travix.isTravis && Travix.isMac) {
// TODO: remove this when travis decided to update their stock node version
fol... | Fix failure of upgrading node more than once in the same build | Fix failure of upgrading node more than once in the same build
| Haxe | unlicense | back2dos/travix,back2dos/travix,back2dos/travix |
3746a9949e694910eaeeecf2e05e0a58f3076c34 | Haxe/Externs/Common/unreal/UGameplayStatics_Extra.hx | Haxe/Externs/Common/unreal/UGameplayStatics_Extra.hx | package unreal;
extern class UGameplayStatics_Extra {
@:ufunction(BlueprintCallable) @:uname("PlaySoundAtLocation")
static public function PlaySoundAtLocationWithOwner(WorldContextObject : unreal.Const<unreal.UObject>, Sound : unreal.USoundBase, Location : unreal.FVector, Rotation : unreal.FRotator, VolumeMultiplier... | package unreal;
extern class UGameplayStatics_Extra {
#if proletariat
@:ufunction(BlueprintCallable) @:uname("PlaySoundAtLocation")
static public function PlaySoundAtLocationWithOwner(WorldContextObject : unreal.Const<unreal.UObject>, Sound : unreal.USoundBase, Location : unreal.FVector, Rotation : unreal.FRotator, ... | Update to latest perforce change Change 16157 by waneck@wnk-razer on 2018/02/27 22:43:35 | [CL-16157] Update to latest perforce change
Change 16157 by waneck@wnk-razer on 2018/02/27 22:43:35
[unreal.hx] Isolate proletariat-specific changes
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
ea0d49389aa1eed98f5f66bf013dfc8350da8577 | src/builder/Configuration.hx | src/builder/Configuration.hx | package builder;
import haxe.Json;
class Configuration {
/**
* File names / patterns to ignore when building
*/
public var ignoreFilesOnBuild:Array<String>;
/* Init new configuration with sane defaults */
public function new() {
this.ignoreFilesOnBuild = new Array<String>();
... | package builder;
import haxe.Json;
class Configuration {
/**
* File names / patterns to ignore when building
*/
public var ignoreFilesOnBuild:Array<String>;
/* Init new configuration with sane defaults */
public function new() {
this.ignoreFilesOnBuild = new Array<String>();
... | Add CSSMin stub. Add loading/saving of .beaver.dam files. Add bvr init command. | Add CSSMin stub. Add loading/saving of .beaver.dam files. Add bvr init command.
| Haxe | mit | theimpossibleastronaut/beaver |
6bb3e9b4725cbf66ab6bee194bcdad996891d16c | src/travix/commands/HelpCommand.hx | src/travix/commands/HelpCommand.hx | package travix.commands;
import Sys.*;
class HelpCommand extends Command {
override function execute() {
println('Commands');
println(' ');
println(' init - initializes a project with a .travis.yml');
println(' install - installs dependencies');
println(' interp - run tests on interpreter... | package travix.commands;
import Sys.*;
class HelpCommand extends Command {
override function execute() {
println('Commands');
println(' ');
println(' init - initializes a project with a .travis.yml');
println(' install - installs dependencies');
println(' interp - run tests on interpreter... | Add js & lua in help command | Add js & lua in help command
| Haxe | unlicense | back2dos/travix,back2dos/travix,back2dos/travix |
070b1e2f09f437fdc141c5bd2a1d02638cc76816 | tests/issues/Issue68.hx | tests/issues/Issue68.hx | package issues;
class Issue68 extends coconut.vdom.View {
@:attr var f:(value:String, ?event:Int)->Void;
function render() return null;
static function fail() {
var f:(value:String, ?event:Int)->Void = null;
hxx('<Issue68 f=${f}/>');
}
} | package issues;
class Issue68 extends View {
@:attr var f:(value:String, ?event:Int)->Void;
function render() return null;
static function fail() {
var f:(value:String, ?event:Int)->Void = null;
hxx('<Issue68 f=${f}/>');
}
} | Make tests pass for React again. | Make tests pass for React again.
| Haxe | unlicense | MVCoconut/coconut.ui |
e6cfece80f1ca97666262f3eef688ff911d72e72 | Haxe/Externs/Common/unreal/umg/UWidgetComponent_Extra.hx | Haxe/Externs/Common/unreal/umg/UWidgetComponent_Extra.hx | package unreal.umg;
@:glueCppIncludes("Components/WidgetComponent.h")
extern class UWidgetComponent_Extra {
public function SetWidgetClass(InWidgetClass:TSubclassOf<UUserWidget>) : Void;
public function SetWidgetSpace(NewSpace:EWidgetSpace) : Void;
public function SetPivot(InPivot:Const<PRef<FVector2D>>) : Void;... | package unreal.umg;
@:glueCppIncludes("Components/WidgetComponent.h")
extern class UWidgetComponent_Extra {
public function GetUserWidgetObject() : UUserWidget;
public function SetWidgetClass(InWidgetClass:TSubclassOf<UUserWidget>) : Void;
public function SetWidgetSpace(NewSpace:EWidgetSpace) : Void;
public fu... | Update to latest perforce change | [CL-22425] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
64185f7a9c848df033457f77a2fb3cffe70af6b3 | src/ufront/web/module/TraceToFileModule.hx | src/ufront/web/module/TraceToFileModule.hx | package ufront.web.module;
import ufront.web.HttpApplication;
import haxe.PosInfos;
class TraceToFileModule implements ITraceModule
{
var file : haxe.io.Output;
var path : String;
static var REMOVENL = ~/[\n\r]/g;
public function new(path : String)
{
this.path = path;
}
public function init(application : Htt... | package ufront.web.module;
import ufront.web.HttpApplication;
import haxe.PosInfos;
class TraceToFileModule implements ITraceModule
{
var file : haxe.io.Output;
var path : String;
static var REMOVENL = ~/[\n\r]/g;
public function new(path : String)
{
this.path = path;
}
public function init(application : Htt... | Change Std.format() to haxe 3 string interpolation | Change Std.format() to haxe 3 string interpolation
| Haxe | mit | kevinresol/ufront-mvc,kevinresol/ufront-mvc,ufront/ufront-mvc,ufront/ufront-mvc-classic,ufront/ufront-mvc |
e2323e017eb4bdf5bc545a000c97284bb18a4e77 | source/Obstacle.hx | source/Obstacle.hx | package;
import flixel.FlxSprite;
import haxe.Log;
class Obstacle extends FlxSprite
{
private var dead:Bool;
private var player:Player;
private static var TILE_SIZE:Int = 16;
public function new(x:Float, y:Float, player:Player)
{
super(x,y-TILE_SIZE);
this.player = player;
//loadGraphicFromTexture("asse... | package;
import flixel.FlxSprite;
import haxe.Log;
class Obstacle extends FlxSprite
{
private var dead:Bool;
private var player:Player;
private static var TILE_SIZE:Int = 18;
public function new(x:Float, y:Float, player:Player)
{
super(x,y-TILE_SIZE);
this.player = player;
//loadGraphicFromTexture("asse... | Fix obstacle size + Flash compilation | Fix obstacle size + Flash compilation | Haxe | mit | jdbcdev/canabalt-haxeflixel |
3a5bd02ed2a3e1d910bba88819aaa3d1437d304a | Haxe/Externs/Common/unreal/FAudioDevice_Extra.hx | Haxe/Externs/Common/unreal/FAudioDevice_Extra.hx | package unreal;
extern class FAudioDevice_Extra {
/**
* Sets a sound class override in the given sound mix.
*/
function PushSoundMixModifier(SoundMix:USoundMix, bIsPassive:Bool, bIsRetrigger:Bool) : Void;
/**
* Sets a sound class override in the given sound mix.
*/
function PopSoundMixModifier(InSoundMix:USou... | package unreal;
extern class FAudioDevice_Extra {
/**
* Push a SoundMix onto the Audio Device's list.
*
* @param SoundMix The SoundMix to push.
* @param bIsPassive Whether this is a passive push from a playing sound.
*/
function PushSoundMixModifier(SoundMix:USoundMix, ?bIsPassive:Bool=false, ?bIsRetrigger... | Update to latest perforce change | [CL-21081] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
08867b33ee3cb1fe48f93bb22f19b018bff6ee6b | tests/unit/src/unit/issues/Issue3516.hx | tests/unit/src/unit/issues/Issue3516.hx | package unit.issues;
class Issue3516 extends Test
{
public function test()
{
var b = new B();
var c = b.uniqueFieldName(C);
t(Std.is(c, C));
t(c != null);
}
}
private class A<T> {
public function new() {}
public function uniqueFieldName(c:Class<T>):T {
return Type.createInstance(c, []);
... | package unit.issues;
class Issue3516 extends Test
{
public function test()
{
var b = new B();
var c = b.uniqueFieldName(C);
t(Std.is(c, C));
t(c != null);
}
}
private class A<T> {
public function new() {}
public function uniqueFieldName(c:Class<T>):T {
return Type.createInstance(c, []);
... | Fix createEmptyInstance on class without a constructor | [neko] Fix createEmptyInstance on class without a constructor
| Haxe | mit | pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe |
18509e3727f2fbc78fe57adf9f1b597c24704621 | Haxe/Externs/unreal/AGameMode.hx | Haxe/Externs/unreal/AGameMode.hx | package unreal;
@:glueCppIncludes("Engine.h")
@:uextern extern class AGameMode extends AInfo {
@:global("MatchState")
public static var EnterinMap:PStruct<FName>;
public static var WaitingToStart:PStruct<FName>;
public static var InProgress:PStruct<FName>;
public static var WaitingPostMatch:PStruct<FName>;
... | package unreal;
@:glueCppIncludes("Engine.h")
@:uextern extern class AGameMode extends AInfo {
@:global("MatchState")
public static var EnteringMap(default,never):Const<PStruct<FName>>;
@:global("MatchState")
public static var WaitingToStart(default,never):Const<PStruct<FName>>;
@:global("MatchState")
pu... | Fix MatchState definitions (needed Const and no setter) | Fix MatchState definitions (needed Const and no setter)
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
810d142ec8b3aa3d3f852bfdbc34660c482a1f17 | demo/Main.hx | demo/Main.hx | import electron.main.*;
import js.Node;
class Main {
static function main() {
CrashReporter.start();
App.on("window-all-closed", function() {
//if (Node.process.platform != 'darwin')
App.quit();
});
var mainWindow = null;
App.on("ready", function() {
mainWindow = new BrowserWindow({width: 800, ... |
import electron.main.App;
import electron.main.BrowserWindow;
import electron.main.CrashReporter;
import js.Node;
class Main {
static function main() {
CrashReporter.start();
App.on( window_all_closed, function() {
//if (Node.process.platform != 'darwin')
App.quit();
});
var mainWindow = null;
... | Use event types in demo app | Use event types in demo app
| Haxe | mit | tong/hxelectron,fponticelli/hxelectron |
8dd2f0c64003e8f65076ea20caeef1c7ae88b904 | Haxe/Externs/Common/unreal/AController_Extra.hx | Haxe/Externs/Common/unreal/AController_Extra.hx | package unreal;
extern class AController_Extra {
public function PawnPendingDestroy(inPawn:APawn) : Void;
@:thisConst
public function GetCharacter() : ACharacter;
@:thisConst
public function GetPawn() : APawn;
public function ChangeState(newState:FName) : Void;
@:thisConst
public function IsInState(... | package unreal;
extern class AController_Extra {
public function PawnPendingDestroy(inPawn:APawn) : Void;
@:thisConst
public function GetCharacter() : ACharacter;
@:thisConst
public function GetPawn() : APawn;
public function ChangeState(newState:FName) : Void;
@:thisConst
public functi... | Update to latest perforce change | [CL-62046] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
b7f3807877c094c33c709d80b5141a67d9bb18fb | jive/Dialog.hx | jive/Dialog.hx | package jive;
import flash.Lib;
import org.aswing.AsWingManager;
import org.aswing.event.ContainerEvent;
import org.aswing.geom.IntPoint;
import org.aswing.Container;
import org.aswing.JFrame;
class Dialog extends JFrame {
public function new(owner:Dynamic=null, title:String="", modal:Bool=false) {
super(... | package jive;
import flash.Lib;
import org.aswing.AsWingManager;
import org.aswing.event.ContainerEvent;
import org.aswing.geom.IntPoint;
import org.aswing.Container;
import org.aswing.JFrame;
class Dialog extends JFrame {
public function new(owner:Dynamic=null, title:String="", modal:Bool=false) {
super(... | Put dialog to front when it's appeared | Put dialog to front when it's appeared
| Haxe | bsd-3-clause | ngrebenshikov/jive,ngrebenshikov/jive,ngrebenshikov/jive |
b9da68b9d7f7cd8e31c4dfc4450c21901faa53e9 | src/test-haxe/com/qifun/jsonStream/Int64Test.hx | src/test-haxe/com/qifun/jsonStream/Int64Test.hx | package com.qifun.jsonStream;
import haxe.unit.TestCase;
import com.qifun.jsonStream.testUtil.JsonTestCase;
import com.qifun.jsonStream.crossPlatformTypes.StmRef;
import haxe.Int64;
enum Int64Enum
{
INT64(i:Int64);
}
class Int64Test extends JsonTestCase
{
function testInt64InEnum()
{
var i64 = INT64(Int64.... | package com.qifun.jsonStream;
import haxe.unit.TestCase;
import com.qifun.jsonStream.testUtil.JsonTestCase;
import com.qifun.jsonStream.crossPlatformTypes.StmRef;
import haxe.Int64;
class Int64Test extends JsonTestCase
{
/*
function testInt64AsRefParameter()
{
#if (scala && java)
var int64Stm:StmRef<In... | Delete test case for Haxe itself | Delete test case for Haxe itself
| Haxe | apache-2.0 | ThoughtWorksInc/json-stream-core |
2f1383a89f70817c246551447cdda3f5d70dea2b | lime/utils/GLUtils.hx | lime/utils/GLUtils.hx | package lime.utils;
import lime.graphics.opengl.GLProgram;
import lime.graphics.opengl.GLShader;
import lime.graphics.opengl.GL;
class GLUtils {
public static function compileShader (source:String, type:Int):GLShader {
var shader = GL.createShader (type);
GL.shaderSource (shader, source);
GL.compileSh... | package lime.utils;
import lime.graphics.opengl.GLProgram;
import lime.graphics.opengl.GLShader;
import lime.graphics.opengl.GL;
import lime.utils.Log;
class GLUtils {
public static function compileShader (source:String, type:Int):GLShader {
var shader = GL.createShader (type);
GL.shaderSource (shader, ... | Improve error handling when shader does not compile | Improve error handling when shader does not compile
| Haxe | mit | madrazo/lime-1,player-03/lime,madrazo/lime-1,madrazo/lime-1,MinoGames/lime,player-03/lime,openfl/lime,madrazo/lime-1,player-03/lime,MinoGames/lime,madrazo/lime-1,MinoGames/lime,MinoGames/lime,openfl/lime,openfl/lime,openfl/lime,player-03/lime,MinoGames/lime,player-03/lime,madrazo/lime-1,MinoGames/lime,openfl/lime,playe... |
9b20d04b08a98b359f65496bd54f63121b13358c | src/coconut/ui/View.hx | src/coconut/ui/View.hx | package coconut.ui;
import tink.state.Observable;
using tink.CoreApi;
@:autoBuild(coconut.ui.macros.ViewBuilder.build())
@:observable
class View extends Renderer {
@:keep public var viewId(default, null):Int = idCounter++; static var idCounter = 0;
public function new(render:Void->coconut.ui.RenderResult) ... | package coconut.ui;
import tink.state.Observable;
using tink.CoreApi;
#if !macro
@:autoBuild(coconut.ui.macros.ViewBuilder.build())
@:observable
class View extends Renderer {
@:keep public var viewId(default, null):Int = idCounter++; static var idCounter = 0;
public function new(render:Void->coconut.ui.Ren... | Add hxx macro right to view. | Add hxx macro right to view.
| Haxe | unlicense | MVCoconut/coconut.ui |
7c8bbe32fab41051e8b0eb5a3ca15053bbc800dc | test/Tests.hx | test/Tests.hx | package ;
import buddy.Buddy;
class Tests implements Buddy<[BaseTest, InheritanceTest, InlineTest, MetaTest, SignalTest, TestProperty, ChainBindTest, ExprBindTest]> {} | package ;
import buddy.BuddySuite;
import buddy.SuitesRunner;
@:build(buddy.GenerateMain.withSuites([
new BaseTest(),
new InheritanceTest(),
new InlineTest(),
new MetaTest(),
new SignalTest(),
new TestProperty(),
new ChainBindTest(),
new ExprBindTest(),
]))
class Tests extends BuddySui... | Revert "buddy tests file fix" | Revert "buddy tests file fix"
This reverts commit e972488062f7e18a8302bfce08e8155851aaf4ee.
| Haxe | mit | profelis/bindx2 |
60d4c7fadb5909a9737e1e05609d6507a9675d6b | test/widgets/NoTplWidget.hx | test/widgets/NoTplWidget.hx | package widgets;
@:noTpl
class NoTplWidget extends dtx.widget.Widget
{
} | package widgets;
@:noTemplate
class NoTplWidget extends dtx.widget.Widget
{
} | Fix test to reflect change in metadata | Fix test to reflect change in metadata
| Haxe | mit | jasononeil/detox,jasononeil/detox,jasononeil/detox |
2fd881ae314cb8374ab8b08043c54da46afb5083 | test/tests/haxe-haxelib-install/Container.hx | test/tests/haxe-haxelib-install/Container.hx | class Container {
static function main():Void {
switch (Sys.command("haxelib", ["newrepo"])) {
case 0: //pass
case code: Sys.exit(code);
}
switch (Sys.command("haxelib", ["install", "jQueryExtern"])) {
case 0: //pass
case code: Sys.exit(code);
... | class Container {
static function main():Void {
switch (Sys.command("haxelib", ["install", "jQueryExtern"])) {
case 0: //pass
case code: Sys.exit(code);
}
}
}
| Remove `haxelib newrepo`, which is not available in Haxe 3.1 and it's not necessary anyway. | haxe-haxelib-install: Remove `haxelib newrepo`, which is not available in Haxe 3.1 and it's not necessary anyway.
| Haxe | apache-2.0 | infosiftr/stackbrew,docker-flink/official-images,docker-solr/official-images,thresheek/official-images,thresheek/official-images,infosiftr/stackbrew,dinogun/official-images,docker-library/official-images,thresheek/official-images,docker-solr/official-images,thresheek/official-images,docker-solr/official-images,jperrin/... |
684059cb391f17f5058d08d79a32986fa12af1ce | Haxe/Externs/Common/unreal/UPrimitiveComponent_Extra.hx | Haxe/Externs/Common/unreal/UPrimitiveComponent_Extra.hx | package unreal;
extern class UPrimitiveComponent_Extra {
/** Event called when a component is 'damaged', allowing for component class specific behaviour */
function ReceiveComponentDamage(DamageAmount:Float32, DamageEvent:Const<PRef<FDamageEvent>>, EventInstigator:AController, DamageCauser:AActor) : Void;
/... | package unreal;
extern class UPrimitiveComponent_Extra {
/** Event called when a component is 'damaged', allowing for component class specific behaviour */
function ReceiveComponentDamage(DamageAmount:Float32, DamageEvent:Const<PRef<FDamageEvent>>, EventInstigator:AController, DamageCauser:AActor) : Void;
/... | Update to latest perforce change | [CL-35150] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
0a566840d5c2ddb173b3e43dec65ef43fd5b8589 | backend/html5/Preloader.hx | backend/html5/Preloader.hx | package backend.html5;
import haxepunk.assets.AssetCache;
import haxepunk.HXP;
import haxepunk.Scene;
import haxepunk.Entity;
import haxepunk.graphics.Image;
import backend.html5.Texture;
class Preloader extends Scene
{
var needLoaded:Int = 0;
var readyScene:Class<Scene>;
public function new(assets:Array<String>... | package backend.html5;
import haxepunk.Signal.Signal0;
import haxepunk.assets.AssetCache;
import haxepunk.HXP;
import haxepunk.Scene;
import backend.html5.Texture;
class Preloader extends Scene
{
public var onLoad:Signal0 = new Signal0();
public function new(assets:Array<String>) {
super();
for (asset in asse... | Change preloader to use signals | Change preloader to use signals
| Haxe | mit | MattTuttle/HaxePunk |
bebef2cd3817b0d1f26a78ac1a720f6311b32e76 | install-tool/haxe/ApplicationMain.hx | install-tool/haxe/ApplicationMain.hx | class ApplicationMain
{
public static function main()
{
nme.Lib.create(
function(){ ::APP_MAIN::.main(); },
::WIN_WIDTH::, ::WIN_HEIGHT::,
::WIN_FPS::,
::WIN_BACKGROUND::,
( ::WIN_HARDWARE:: ? nme.Lib.HARDWARE : 0) |
( ::WIN_RESIZEABLE... | class ApplicationMain
{
public static function main()
{
nme.Lib.create(
function(){ ::APP_MAIN::.main(); },
::WIN_WIDTH::, ::WIN_HEIGHT::,
::WIN_FPS::,
::WIN_BACKGROUND::,
( ::WIN_HARDWARE:: ? nme.Lib.HARDWARE : 0) |
( ::WIN_RESIZEABLE... | Add getAsset on nme platform too | Add getAsset on nme platform too
git-svn-id: 6cc2fa9b7d2830c930c171b991ffcd5e23f23d5e@662 1509560c-5e2a-0410-865c-31c25e1cfdef
| Haxe | mit | madrazo/nme,haxenme/nme,madrazo/nme,thomasuster/NME,madrazo/nme,haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,thomasuster/NME,thomasuster/NME,madrazo/nme,haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,thomasuster/NME |
6d9f6db3e72a5e37bf4b3f544b1f5291a2223ae1 | Haxe/Externs/unreal/AGameSession_Extra.hx | Haxe/Externs/unreal/AGameSession_Extra.hx | package unreal;
extern class AGameSession_Extra
{
public function HandleMatchIsWaitingToStart() : Void;
public function HandleMatchHasStarted() : Void;
public function HandleMatchHasEnded() : Void;
}
| package unreal;
extern class AGameSession_Extra
{
public function HandleMatchIsWaitingToStart() : Void;
public function HandleMatchHasStarted() : Void;
public function HandleMatchHasEnded() : Void;
public function KickPlayer(kickerPlayer:APlayerController, kickReason:Const<PRef<FText>>):Bool;
}
| Add kick player on AGameSession | Add kick player on AGameSession
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
e7738ba1eb6a9f1f122ba60ef50a207e118949f1 | src/ua/Event.hx | src/ua/Event.hx | package ua;
class Event extends Hit{
/*
* Specifies the event category.
*/
@param(ec)
private var category():String;
/*
* Specifies the event action.
*/
@param(ea)
private var action():String;
/*
* Optional. Specifies the event label.
*/
@param(el)
private var label():String;
/*
* Specifies th... | package ua;
class Event extends Hit {
static private var HIT_TYPE_EVENT:String = "event";
/*
* Specifies the event category.
*/
@param("ec")
public var category:String;
/*
* Specifies the event action.
*/
@param("ea")
public var action:String;
/*
* Optional. Specifies the event label.
*/
@p... | Fix param name format (added quotes). Add contructor. | Fix param name format (added quotes). Add contructor.
| Haxe | mit | luparral/haxe-ga |
7177905713774b3b76fb668891f4c3521abf12a8 | src/Background.hx | src/Background.hx | package ;
import chrome.Runtime;
import chrome.Tabs;
import com.barth.gob.ElementId;
import com.barth.gob.extend.RuntimeResponse;
import com.barth.gob.Method;
import js.Browser;
class Background {
static function main():Void{
new Background();
}
public function new():Void{
if(Browser.getL... | package ;
import chrome.Runtime;
import chrome.Tabs;
import com.barth.gob.ElementId;
import com.barth.gob.extend.RuntimeResponse;
import com.barth.gob.Method;
import js.Browser;
class Background {
static function main():Void{
new Background();
}
public function new():Void{
if(Browser.getL... | Fix open option when we reset the bugtracker url | Fix open option when we reset the bugtracker url
| Haxe | apache-2.0 | Jibbarth/Github-Other-bugtracker |
0b565abb757271b3f1e33101fe21a8b3808516eb | openfl/_internal/stage3D/GLUtils.hx | openfl/_internal/stage3D/GLUtils.hx | package openfl._internal.stage3D;
import openfl.errors.IllegalOperationError;
import openfl.gl.GL;
class GLUtils {
private static var debug = false;
// Comment the following line if you want the GL Error check in release mode on device
//[Conditional("DEBUG")]
public static function CheckGLError()... | package openfl._internal.stage3D;
import openfl.errors.IllegalOperationError;
import openfl.gl.GL;
class GLUtils {
private static var debug = false;
// Comment the following line if you want the GL Error check in release mode on device
//[Conditional("DEBUG")]
public static function CheckGLErro... | Print useful GL error messages. | Print useful GL error messages.
| Haxe | mit | NenadBojkovski/openfl,Gama11/openfl,openfl/openfl,NenadBojkovski/openfl,openfl/openfl,Gama11/openfl,Gama11/openfl,openfl/openfl,Gama11/openfl |
7e087f1e23d268a9bcf6dca6f972544c043a245b | templates/script/ScriptMain.hx | templates/script/ScriptMain.hx | class ScriptMain
{
public static function main()
{
#if nme
nme.app.Application.setPackage("::APP_COMPANY::", "::APP_FILE::", "::APP_PACKAGE::", "::APP_VERSION::");
nme.app.Application.setFixedOrientation(
::if (WIN_ORIENTATION == "portrait")::
nme.app.Applicati... | class ScriptMain
{
public static function main()
{
#if nme
nme.app.Application.setPackage("::APP_COMPANY::", "::APP_FILE::", "::APP_PACKAGE::", "::APP_VERSION::");
var stage = nme.Lib.current.stage;
stage.frameRate = ::WIN_FPS::;
stage.opaqueBackground = ::WIN_BACKGROUND... | Set window attribute from sciptable | Set window attribute from sciptable
| Haxe | mit | haxenme/nme,thomasuster/NME,madrazo/nme,madrazo/nme,thomasuster/NME,thomasuster/NME,haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,madrazo/nme |
9f7f5523557b7a5e4f21a012e2686cf175b5899e | src/clientds/ClientDsUtil.hx | src/clientds/ClientDsUtil.hx | package clientds;
import ufront.db.Object;
import haxe.ds.*;
class ClientDsUtil
{
public static function filterByCriteria(l:Iterable<Object>, criteria:{})
{
var matches = new IntMap<Object>();
for (obj in l)
{
var match = true;
for (field in Reflect.fields(criteria))
{
var criteriaValue = Reflect... | package clientds;
import ufront.db.Object;
import haxe.ds.*;
import Dynamics;
class ClientDsUtil
{
public static function filterByCriteria(l:Iterable<Object>, criteria:{})
{
var matches = new IntMap<Object>();
for (obj in l)
{
var match = true;
for (field in Reflect.fields(criteria))
{
var criter... | Fix for searching for a Date (or other objects with different equality semantics) | Fix for searching for a Date (or other objects with different equality semantics)
| Haxe | mit | ufront/ufront-clientds |
db8f70835a794482d60f468f11dec939e796f204 | Haxe/Externs/Common/unreal/FHitResult_Extra.hx | Haxe/Externs/Common/unreal/FHitResult_Extra.hx | package unreal;
extern class FHitResult_Extra {
public function new(init:EForceInit);
@:uname('.ctor')
public static function createForceInit(init:EForceInit) : FHitResult;
@:uname('new')
public static function createNewForceInit(init:EForceInit) : POwnedPtr<FHitResult>;
/** Reset hit result while optio... | package unreal;
extern class FHitResult_Extra {
public function new(init:EForceInit);
@:uname('.ctor')
public static function createWithValues(Actor:AActor, Component:UPrimitiveComponent, HitLoc:PRef<Const<FVector>>, HitNorm:PRef<Const<FVector>>) : FHitResult;
@:uname('.ctor')
public static function createF... | Update to latest perforce change | [CL-20459] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
4b1879ce50154af46ef9e3abe81157c874c15b4f | Haxe/Externs/Common/unreal/UAssetManager_Extra.hx | Haxe/Externs/Common/unreal/UAssetManager_Extra.hx | package unreal;
extern class UAssetManager_Extra {
public static function Get() : PRef<UAssetManager>;
public function GetPrimaryAssetPath(AssetID:PRef<FPrimaryAssetId>) : FSoftObjectPath;
public function GetPrimaryAssetObject(AssetID:PRef<FPrimaryAssetId>) : UObject;
public function GetPrimaryAssetObjectList(Pri... | package unreal;
extern class UAssetManager_Extra {
public static function Get() : PRef<UAssetManager>;
public function GetPrimaryAssetPath(AssetID:PRef<FPrimaryAssetId>) : FSoftObjectPath;
public function GetPrimaryAssetObject(AssetID:PRef<FPrimaryAssetId>) : UObject;
public function GetPrimaryAssetObjectList(Pri... | Update to latest perforce change | [CL-32265] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
2cbc6e5a4195ce5f11377f7fc9d1e786d52d9b7b | std/cpp/vm/Gc.hx | std/cpp/vm/Gc.hx | package cpp.vm;
class Gc
{
static public function enable(inEnable:Bool) : Void
{
untyped __global__.__hxcpp_enable(inEnable);
}
static public function run(major:Bool) : Void
{
untyped __global__.__hxcpp_collect();
}
static public function trace(sought:Class<Dynamic>) : Void
{
... | package cpp.vm;
class Gc
{
static public function enable(inEnable:Bool) : Void
{
untyped __global__.__hxcpp_enable(inEnable);
}
static public function run(major:Bool) : Void
{
untyped __global__.__hxcpp_collect();
}
static public function trace(sought:Class<Dynamic>,printInstances:Bo... | Return the count of traced objects | Return the count of traced objects
| Haxe | mit | pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe,pleclech/hacking-haxe |
c5bc9bdd90a9cb23e0e594c67d4aa18f8bc8be55 | Haxe/Externs/Common/unreal/DrawDebugHelpers.hx | Haxe/Externs/Common/unreal/DrawDebugHelpers.hx | package unreal;
@:glueCppIncludes("DrawDebugHelpers.h")
@:noCopy @:noEquals
@:uextern extern class DrawDebugHelpers {
@:glueCppIncludes("DrawDebugHelpers.h")
@:global public static function DrawDebugSphere(InWorld:UWorld, Center:Const<PRef<FVector>>, Radius:Float32, Segments:Int32, Color:Const<PRef<FColor>>, bPers... | package unreal;
@:glueCppIncludes("DrawDebugHelpers.h")
@:noCopy @:noEquals
@:uextern extern class DrawDebugHelpers {
@:glueCppIncludes("DrawDebugHelpers.h")
@:global public static function DrawDebugSphere(InWorld:UWorld, Center:Const<PRef<FVector>>, Radius:Float32, Segments:Int32, Color:Const<PRef<FColor>>, bPers... | Update to latest perforce change | [CL-21627] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
1dd33c55cc00241b6c0859d8253da6e61ccf9594 | src/fancy/Table.hx | src/fancy/Table.hx | package fancy;
import fancy.table.*;
class Table {
var rows : Array<Row>;
public function new() {
rows = [];
}
public function appendRow() : Table {
rows.push(new Row());
return this;
}
public function appendColumn() : Table {
return this;
}
public function render() {
}
}
| package fancy;
import fancy.table.*;
import fancy.browserHelpers.Dom;
import js.html.Element;
class Table {
var parent : Element;
var el : Element;
var rows : Array<Row>;
public function new(parent : Element, options : FancyTableOptions) {
this.parent = parent;
rows = [];
this.el = Dom.create(".f... | Add some more constructor ideas that don't compile | Add some more constructor ideas that don't compile
| Haxe | mit | mlms13/FancyTable,mlms13/FancyTable,mlms13/FancyTable |
e74b89a594da3eed4d6868eb5b4066cea234d499 | src/ufront/view/UFTemplate.hx | src/ufront/view/UFTemplate.hx | package ufront.view;
import haxe.ds.StringMap;
/**
A type representing a template that is ready to render a template with the given TemplateData.
This is an abstract, and at runtime it will simply use the callback directly.
It was designed this way to be flexible and integrate easily with existing templating sy... | package ufront.view;
import ufront.view.TemplateData;
/**
A type representing a template that is ready to render a template with the given TemplateData.
This is an abstract, and at runtime it will simply use the callback directly.
It was designed this way to be flexible and integrate easily with existing templa... | Fix for Haxe 3.0.1, again with the calling methods on an abstract | Fix for Haxe 3.0.1, again with the calling methods on an abstract
| Haxe | mit | kevinresol/ufront-mvc,ufront/ufront-mvc,kevinresol/ufront-mvc,ufront/ufront-mvc |
6565c0b96054343b38e357c1371619f7d9b50728 | src/tink/state/internal/Revision.hx | src/tink/state/internal/Revision.hx | package tink.state.internal;
abstract Revision(Float) {//TODO: use Int64 where it's faster and perhaps plain Int on python
static var counter:Float;
static public final ZERO = new Revision();
public function new() {
if (Math.isNaN(counter)) counter = .0;// seems to be a problem in initialization order
th... | package tink.state.internal;
abstract Revision(Float) {//TODO: use Int64 where it's faster and perhaps plain Int on python
static var counter:Float;
static function __init__()
counter = .0;
static public inline var ZERO:Revision = cast .0;
public function new()
this = counter+=1;
@:op(a < b) static... | Work around weird initialization bug. | Work around weird initialization bug.
| Haxe | unlicense | haxetink/tink_state,haxetink/tink_state |
aef6d877f5e777134bebaf9a4041524f2ba7e9b9 | src/coconut/ui/macros/HXX.hx | src/coconut/ui/macros/HXX.hx | package coconut.ui.macros;
#if !macro
#error
#end
import haxe.macro.*;
import tink.hxx.*;
using tink.MacroApi;
class HXX {
static public var generator = new Generator();
static public function parse(e:Expr) {
var ctx = generator.createContext();
return ctx.generateRoot(
Parser.parseR... | package coconut.ui.macros;
#if !macro
#error
#end
import haxe.macro.*;
import tink.hxx.*;
using tink.MacroApi;
using tink.CoreApi;
class HXX {
static public var defaults(default, never) = new tink.priority.Queue<Lazy<Array<Named<Tag>>>>();
static public var generator = new Generator(function (... | Allow adding defaults via priority queue. | Allow adding defaults via priority queue.
| Haxe | unlicense | MVCoconut/coconut.ui |
60483a58cf466ce34343ee26eead2a2eccce40c8 | extension/chartboost/ChartboostConsent.hx | extension/chartboost/ChartboostConsent.hx | package extension.chartboost;
/**
Enum for whether the user has given their consent for usage of their personal data.
Note this enum needs updating whenever the Chartboost SDK is updated/changes or adds new consent states, else there's no guarantee that the mapping here is correct.
**/
@:enum abstract Chartboo... | package extension.chartboost;
/**
Enum for whether the user has given their consent for usage of their personal data.
Note this enum needs updating whenever the Chartboost SDK is updated/changes or adds new consent states, else there's no guarantee that the mapping here is correct.
**/
@:enum abstract Chartboo... | Add method for converting Chartboost ad personalization preference to string | Add method for converting Chartboost ad personalization preference to string
| Haxe | mit | Tw1ddle/samcodes-chartboost,Tw1ddle/samcodes-chartboost |
e3e2ed23b036a892f4f75b6d09729c7a5f2df5f0 | src/flambe/platform/CatapultClient.hx | src/flambe/platform/CatapultClient.hx | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform;
import haxe.Json;
import flambe.util.Assert;
/** Handles communication with the Catapult server run by `flambe serve`, for live reloading. */
class CatapultClient
{
private function new ()
... | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform;
import haxe.Json;
import flambe.util.Assert;
using StringTools;
/** Handles communication with the Catapult server run by `flambe serve`, for live reloading. */
class CatapultClient
{
priv... | Handle backslash paths in Windows. | Handle backslash paths in Windows.
| Haxe | mit | aduros/flambe,mikedotalmond/flambe,playedonline/flambe,mikedotalmond/flambe,markknol/flambe,weilitao/flambe,Disar/flambe,mikedotalmond/flambe,Disar/flambe,aduros/flambe,weilitao/flambe,playedonline/flambe,markknol/flambe,weilitao/flambe,playedonline/flambe,Disar/flambe,weilitao/flambe,aduros/flambe,mikedotalmond/flambe... |
c73e059d92f81f90bd9ac8953057ea62a5b6bb26 | src/ufront/core/AcceptEither.hx | src/ufront/core/AcceptEither.hx | package ufront.core;
import tink.CoreApi;
/**
`AcceptEither`, a way to accept either one type or another, without resorting to “Dynamic”, and still have the compiler type-check everything and make sure you correctly handle every situation.
The abstract has implicit casts for both A and B, so you can easily receive ... | package ufront.core;
import tink.CoreApi;
/**
`AcceptEither`, a way to accept either one type or another, without resorting to “Dynamic”, and still have the compiler type-check everything and make sure you correctly handle every situation.
The abstract has implicit casts for both A and B, so you can easily receive ... | Fix type parameters on static methods (caused brokenness in Haxe 3.2) | Fix type parameters on static methods (caused brokenness in Haxe 3.2)
| Haxe | mit | ufront/ufront-mvc,kevinresol/ufront-mvc,kevinresol/ufront-mvc,ufront/ufront-mvc |
dfa1869df0f7d9d6fd5d8987da3fbeee633cc1ee | src/unityengine/HaxeBehaviour.hx | src/unityengine/HaxeBehaviour.hx | package unityengine;
@:autoBuild(unihx.pvt.macros.HaxeBehaviourBuild.build())
@:nativeChildren class HaxeBehaviour extends MonoBehaviour implements ISerializationCallbackReceiver
{
@:protected var __hx_serialize_string:String;
@:protected var __hx_serialize_objects:cs.NativeArray<unityengine.Object>;
@:overload pu... | package unityengine;
// @:autoBuild(unihx.pvt.macros.HaxeBehaviourBuild.build())
@:nativeChildren class HaxeBehaviour extends MonoBehaviour implements ISerializationCallbackReceiver
{
@:protected var __hx_serialize_string:String;
@:protected var __hx_serialize_objects:cs.NativeArray<unityengine.Object>;
@:overload... | Disable build macro for now | Disable build macro for now
| Haxe | mit | unihx/unihx,unihx/unihx |
2681b065443f3d3bee1bd6546d29b09646c9a044 | openfl/_internal/renderer/opengl/GLStage3D.hx | openfl/_internal/renderer/opengl/GLStage3D.hx | package openfl._internal.renderer.opengl;
import openfl._internal.renderer.RenderSession;
import openfl.display.Stage3D;
@:access(openfl.display3D.Context3D)
@:access(openfl.display3D.Program3D)
class GLStage3D {
public static inline function render (stage3D:Stage3D, renderSession:RenderSession):Void {
i... | package openfl._internal.renderer.opengl;
import openfl._internal.renderer.RenderSession;
import openfl.display.Stage3D;
@:access(openfl.display3D.Context3D)
@:access(openfl.display3D.Program3D)
class GLStage3D {
public static inline function render (stage3D:Stage3D, renderSession:RenderSession):Void {
i... | Make depth buffer active each frame (before Stage3D render) | Make depth buffer active each frame (before Stage3D render)
| Haxe | mit | Gama11/openfl,NenadBojkovski/openfl,openfl/openfl,openfl/openfl,Gama11/openfl,Gama11/openfl,NenadBojkovski/openfl,Gama11/openfl,openfl/openfl |
906576d97803b2fd65decd10706c9f7a368445c2 | src/flambe/Log.hx | src/flambe/Log.hx | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe;
import flambe.util.Logger;
class Log
{
public static var log = System.logger("flambe");
}
| //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe;
import flambe.util.Logger;
class Log
{
#if server
public static var log = flambe.server.Node.logger("flambe");
#else
public static var log = System.logger("flambe");
#end
}
| Allow flambe's internal logger to be used on the server. | Allow flambe's internal logger to be used on the server.
| Haxe | mit | weilitao/flambe,aduros/flambe,aduros/flambe,mikedotalmond/flambe,mikedotalmond/flambe,markknol/flambe,playedonline/flambe,Disar/flambe,Disar/flambe,playedonline/flambe,markknol/flambe,mikedotalmond/flambe,playedonline/flambe,aduros/flambe,playedonline/flambe,aduros/flambe,Disar/flambe,weilitao/flambe,weilitao/flambe,ma... |
97999510fad024e30e965c79ed302ebf3cc2c855 | GameKit/GKSound.hx | GameKit/GKSound.hx | //
// GKSound.hx
//
// Created by Cristi Baluta on 2010-12-09.
// Copyright (c) 2010 ralcr.com.
// This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
//
class GKSound {
static var mp3s :Hash<RCAudio>;
public static function init () :Void {
if (mp3s != ... | //
// GKSound.hx
//
// Created by Cristi Baluta on 2010-12-09.
// Copyright (c) 2010 ralcr.com.
// This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
//
class GKSound {
static var mp3s :Hash<RCAudio>;
public static function init () :Void {
if (mp3s != ... | Add mute/unmute to all running sounds | Add mute/unmute to all running sounds
| Haxe | mit | ralcr/sdk.ralcr,ralcr/sdk.ralcr,ralcr/sdk.ralcr,ralcr/sdk.ralcr,ralcr/sdk.ralcr,ralcr/sdk.ralcr |
88aeae44854679186b97c7aadf04b46e7ee72746 | src/vdom/HtmlFragment.hx | src/vdom/HtmlFragment.hx | package vdom;
import js.html.*;
import vdom.Attr.ClassName;
import js.Browser.*;
class HtmlFragment extends Widget {
var content:String;
var tag:String;
var element:Element;
var className:ClassName;
public function new(content, ?tag:String = 'span', ?className) {
this.content = content;
this.tag = t... | package vdom;
import js.html.*;
import vdom.Attr.ClassName;
import js.Browser.*;
class HtmlFragment extends Widget {
var content:String;
var tag:String;
var element:Element;
var className:ClassName;
public function new(content, ?tag:String = 'span', ?className) {
this.content = content;
this.tag = t... | Fix class="undefined" for <raw content="..."><raw> element which defined without class attribute | Fix class="undefined" for <raw content="..."><raw> element which defined without class attribute
| Haxe | unlicense | back2dos/js-virtual-dom |
7f0c5b5be923a05594d6b5ce489205621b53012f | haxepunk/backend/hl/FileAssetLoader.hx | haxepunk/backend/hl/FileAssetLoader.hx | package haxepunk.backend.hl;
import sys.FileSystem;
import sys.io.File;
import haxepunk.assets.AssetLoader;
import haxepunk.utils.Color;
import haxepunk.audio.Sound;
class FileAssetLoader implements AssetLoader
{
public function new() {}
function resolvePath(path:String):String
{
if (FileSystem.exists(path))
... | package haxepunk.backend.hl;
import haxe.io.Path;
import sys.FileSystem;
import sys.io.File;
import haxepunk.assets.AssetLoader;
import haxepunk.utils.Color;
import haxepunk.audio.Sound;
class FileAssetLoader implements AssetLoader
{
public function new() {}
function resolvePath(path:String):String
{
// check c... | Check the program path when loading assets in hashlink | Check the program path when loading assets in hashlink
| Haxe | mit | MattTuttle/HaxePunk |
93dad2844807e8af0386cf5e8d3567d06d60e911 | Haxe/Externs/Common/unreal/assetregistry/FAssetRegistryModule.hx | Haxe/Externs/Common/unreal/assetregistry/FAssetRegistryModule.hx | package unreal.assetregistry;
@:noCopy
@:noEquals
@:glueCppIncludes("AssetRegistryModule.h")
@:uextern extern class FAssetRegistryModule {
function Get():Const<PRef<IAssetRegistry>>;
} | package unreal.assetregistry;
@:noCopy
@:noEquals
@:glueCppIncludes("AssetRegistryModule.h")
@:uextern extern class FAssetRegistryModule {
@:thisConst
function Get():PRef<IAssetRegistry>;
} | Update to latest perforce change | [CL-13440] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
2750cf501118497151cb30071f5a1bcf039031b4 | src/lime/tools/Library.hx | src/lime/tools/Library.hx | package lime.tools;
import hxp.Path;
class Library
{
public var embed:Null<Bool>;
public var generate:Bool;
public var name:String;
public var prefix:String;
public var preload:Bool;
public var sourcePath:String;
public var type:String;
public function new(sourcePath:String, name:String = "", type:String = n... | package lime.tools;
import hxp.Path;
class Library
{
public var embed:Null<Bool>;
public var generate:Null<Bool>;
public var name:String;
public var prefix:String;
public var preload:Null<Bool>;
public var sourcePath:String;
public var type:String;
public function new(sourcePath:String, name:String = "", typ... | Allow unset values for library.preload/.generate | Allow unset values for library.preload/.generate
| Haxe | mit | player-03/lime,player-03/lime,player-03/lime,openfl/lime,player-03/lime,openfl/lime,player-03/lime,player-03/lime,openfl/lime,openfl/lime,openfl/lime,player-03/lime,openfl/lime,openfl/lime |
e390fb0ceaff36794d004af24ae4bfe2463f4faf | Haxe/Externs/Common/unreal/FHitResult_Extra.hx | Haxe/Externs/Common/unreal/FHitResult_Extra.hx | package unreal;
extern class FHitResult_Extra {
public function new(init:EForceInit);
@:uname('.ctor')
public static function createForceInit(init:EForceInit) : FHitResult;
@:uname('new')
public static function createNewForceInit(init:EForceInit) : POwnedPtr<FHitResult>;
}
| package unreal;
extern class FHitResult_Extra {
public function new(init:EForceInit);
@:uname('.ctor')
public static function createForceInit(init:EForceInit) : FHitResult;
@:uname('new')
public static function createNewForceInit(init:EForceInit) : POwnedPtr<FHitResult>;
/** Reset hit result while optio... | Update to latest perforce change | [CL-20029] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
a487a084a4b3593f5564c1c3b1823e86910ac16f | src/mw/ConnectLivereload.hx | src/mw/ConnectLivereload.hx | package mw;
import express.Middleware;
import haxe.extern.EitherType;
@:jsRequire("connect-livereload")
extern class ConnectLivereload {
@:selfCall static function create(?options : LivereloadOptions) : Middleware;
}
typedef LivereloadOptions = {
?ignore : EitherType<Array<js.RegExp>, Array<String>>,
?include ... | Add extern for livereload middleware | Add extern for livereload middleware
| Haxe | mit | abedev/hxexpress,fponticelli/hxexpress | |
11b4d7a1b4d5459588121001db6e9f698e8e7222 | src/ufront/auth/api/EasyAuthApi.hx | src/ufront/auth/api/EasyAuthApi.hx | package ufront.auth.api;
import ufront.api.UFApi;
import ufront.auth.model.*;
import ufront.auth.AuthError;
import ufront.auth.EasyAuthDBAdapter;
using tink.CoreApi;
/**
An API to conduct basic auth operations, from logging in to creating users and granting permissions.
**/
class EasyAuthApi extends UFApi {
@injec... | Add stub API. More things will be needed... | Add stub API. More things will be needed...
| Haxe | mit | ufront/ufront-easyauth,ufront/ufront-easyauth | |
ec43c2b8a7ef4bf119082ef09ca21b3d7b0b0045 | Haxe/Externs/UE4.22/unreal/animationbudgetallocator/USkeletalMeshComponentBudgeted_Extra.hx | Haxe/Externs/UE4.22/unreal/animationbudgetallocator/USkeletalMeshComponentBudgeted_Extra.hx | package unreal.animationbudgetallocator;
extern class USkeletalMeshComponentBudgeted_Extra
{
/** Updates significance budget if this component has been registered with a AnimationBudgetAllocator */
public function SetComponentSignificance(Significance:Float32, bNeverSkip:Bool = false, bTickEvenIfNotRendered:Boo... | Update to latest perforce change | [CL-61089] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
ed827e97dd4ee9fbce9e25164656896e507657c3 | src/npm/ConnectionStringBuilder.hx | src/npm/ConnectionStringBuilder.hx | package npm;
@:jsRequire("node-connection-string-builder")
extern class ConnectionStringBuilder {
function new(?connectionString : String) : Void;
// methods
function add(key : String, value : String) : Void
function remove(key : String) : Void;
function getValue(key : String) : String;
function setValue(... | Add extern for MS-style connection strings | Add extern for MS-style connection strings
| Haxe | mit | abedev/npm,abedev/npm | |
d6b73a4e8038799ffe6ac191cf2bbec3187f36e1 | Haxe/Externs/Common/unreal/UCameraComponent_Extra.hx | Haxe/Externs/Common/unreal/UCameraComponent_Extra.hx | package unreal;
extern class UCameraComponent_Extra
{
/** Adds an Blendable (implements IBlendableInterface) to the array of Blendables (if it doesn't exist) and update the weight */
public function AddOrUpdateBlendable(InBlendableObject:TScriptInterface<IBlendableInterface>, InWeight:Float32) : Void;
/** Removes a... | Update to latest perforce change | [CL-34378] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
a9f07dc4ee724ad88c53616b575929b05411323a | UIKit/RCModalViewController.hx | UIKit/RCModalViewController.hx | //
// RCViewController.hx
// UIKit
//
/*
RCViewController is the controller of the MVC pattern. When you build a controller you should extend RCViewController
RCViewController is also a RCView, so you can add it to stage easily.
TODO: notify the controller that the device orientation has changed
*/
class RCModalV... | Add a modalViewController base class | Add a modalViewController base class
| Haxe | mit | ralcr/sdk.ralcr,ralcr/sdk.ralcr,ralcr/sdk.ralcr,ralcr/sdk.ralcr,ralcr/sdk.ralcr,ralcr/sdk.ralcr | |
aa8e44b2d3a78a8918d5755d06f1885015963d44 | src/builder/Project.hx | src/builder/Project.hx | package builder;
import haxe.crypto.Md5;
import haxe.Timer;
import sys.FileSystem;
class Project {
public var path:String;
public var guid:String;
public var destination:String;
public function new( myPath:String ) {
this.path = FileSystem.fullPath( myPath );
this.guid = Md5.encode(... | Add fs commands for permission test on supported platforms. | Add fs commands for permission test on supported platforms.
| Haxe | mit | theimpossibleastronaut/beaver | |
054c2c78bd59be850dcb301ffd3d930fe804d259 | externs/air/flash/display3D/Context3DProfile.hx | externs/air/flash/display3D/Context3DProfile.hx | package flash.display3D;
@:fakeEnum(String) extern enum Context3DProfile {
BASELINE;
BASELINE_CONSTRAINED;
BASELINE_EXTENDED;
STANDARD;
STANDARD_CONSTRAINED;
STANDARD_EXTENDED;
#if air
ENHANCED;
#end
} | Add ENHANCED profile to AIR externs | Add ENHANCED profile to AIR externs
| Haxe | mit | player-03/lime,openfl/lime,player-03/lime,openfl/lime,player-03/lime,MinoGames/lime,MinoGames/lime,player-03/lime,madrazo/lime-1,madrazo/lime-1,openfl/lime,madrazo/lime-1,MinoGames/lime,openfl/lime,MinoGames/lime,madrazo/lime-1,MinoGames/lime,player-03/lime,player-03/lime,madrazo/lime-1,madrazo/lime-1,openfl/lime,playe... | |
d6ece69ce0f1671eb57257193e3da12893185f1c | nme/utils/UInt8Array.hx | nme/utils/UInt8Array.hx | package nme.utils;
#if (cpp || neko)
typedef UInt8Array = native.utils.UInt8Array;
#elseif js
typedef UInt8Array = browser.utils.UInt8Array;
#end
| Add and use UInt8 buffers. Use IMemoryRange where possible. Fix glDepthMask | Add and use UInt8 buffers. Use IMemoryRange where possible. Fix glDepthMask
| Haxe | mit | thomasuster/NME,haxenme/nme,haxenme/nme,haxenme/nme,thomasuster/NME,thomasuster/NME,haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,madrazo/nme,madrazo/nme,madrazo/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,madrazo/nme | |
135d70851a12b2dd43c98cba7e53a7b2c50372a9 | Haxe/Externs/Common/unreal/slatecore/FButtonStyle_Extra.hx | Haxe/Externs/Common/unreal/slatecore/FButtonStyle_Extra.hx | package unreal.slatecore;
extern class FButtonStyle_Extra {
public function SetNormal(InNormal:Const<PRef<FSlateBrush>>) : PRef<FButtonStyle>;
public function SetHovered(InHovered:Const<PRef<FSlateBrush>>) : PRef<FButtonStyle>;
public function SetPressed(InPressed:Const<PRef<FSlateBrush>>) : PRef<FButtonStyle>;
... | Update to latest perforce change | [CL-23536] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
ecaf04a48481cfa6709c6036f6f2d88a63e034cb | Haxe/Externs/Common/unreal/FSwitchPlatformMisc.hx | Haxe/Externs/Common/unreal/FSwitchPlatformMisc.hx | package unreal;
#if PLATFORM_SWITCH
@:glueCppIncludes("Switch/SwitchPlatformMisc.h")
@:noEquals @:noCopy @:uextern extern class FSwitchPlatformMisc {
#if proletariat
static function ShowErrorDialog(category:Int32, number:Int32):Void;
#end
}
#end
| Update to latest perforce change | [CL-62712] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx | |
e4b8ac5446b1dd231365df4929f1f776f1aa3871 | tests/visualTests/TestAngleCompare.hx | tests/visualTests/TestAngleCompare.hx | package tests.visualTests;
import triangulations.FillShape;
import justTriangles.PathContext;
import tests.DrawHelper;
import triangulations.Geom2;
class TestAngleCompare {
public static inline
function draw( shape: FillShape, drawHelper: DrawHelper ){
// geom
var vert = shape.vertices;
... | Move test details to external file | Move test details to external file | Haxe | mit | nanjizal/triangulations | |
1c1a842147447bd6c2428b5ec574dd6a24268568 | test/haxelib/integration/src/filesystem/FileSystemTest.hx | test/haxelib/integration/src/filesystem/FileSystemTest.hx | package filesystem;
#if ((flash && air) || draft)
import openfl.filesystem.File;
class FileSystemTest
{
@Test public function absolutePath()
{
// TODO: Confirm functionality
var file = new File();
var absolutePath = file.absolutePath;
Assert.isNotNull(absolutePath);
}
}
#end
| Add stub for FileSystem test | Add stub for FileSystem test
| Haxe | mit | openfl/openfl,Gama11/openfl,openfl/openfl,Gama11/openfl,Gama11/openfl,Gama11/openfl,openfl/openfl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.