1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 15:26:00 +02:00

Initial checkin

This commit is contained in:
Brian Fiete 2019-08-23 11:56:54 -07:00
parent c74712dad9
commit 078564ac9e
3242 changed files with 1616395 additions and 0 deletions

View file

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
using Beefy.widgets;
namespace Beefy.events
{
public class DialogEvent : Event
{
public bool mCloseDialog;
public ButtonWidget mButton;
public String mResult;
}
}

View file

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Beefy.events
{
public class DragEvent : Event
{
public float mX;
public float mY;
public Object mDragTarget;
public int32 mDragTargetDir;
public bool mDragAllowed = true;
}
}

View file

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Beefy.events
{
public class EditEvent : Event
{
//string mText;
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Beefy.events
{
public class Event
{
public Object mSender;
public bool mHandled;
}
}

View file

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Text;
using Beefy.widgets;
namespace Beefy.widgets
{
public enum KeyFlags
{
None = 0,
Alt = 1,
Ctrl = 2,
Shift = 4
}
}
namespace Beefy.events
{
/*[Flags]
public enum KeyFlags
{
Alt = 1,
Ctrl = 2,
Shift = 4
}*/
public class KeyDownEvent : Event
{
public KeyFlags mKeyFlags;
public KeyCode mKeyCode;
public bool mIsRepeat;
}
public class KeyCharEvent : Event
{
public char32 mChar;
}
}

View file

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Text;
using Beefy.widgets;
namespace Beefy.events
{
public class MouseEvent : Event
{
public float mX;
public float mY;
public int32 mBtn;
public int32 mBtnCount;
public int32 mWheelDelta;
public void GetRootCoords(out float x, out float y)
{
Widget widget = (Widget)mSender;
widget.SelfToRootTranslate(mX, mY, out x, out y);
}
}
}

View file

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Beefy.events
{
public class ScrollEvent : Event
{
public double mOldPos;
public double mNewPos;
public bool mIsFromUser;
}
}

View file

@ -0,0 +1,9 @@
using System;
using System.Collections.Generic;
using System.Text;
using Beefy.widgets;
namespace Beefy.events
{
}