示例#1
0
 public DOM_Renderer()
 {
     gameRenderer = this;
     document = HtmlContext.document;
     window = HtmlContext.window;
     Game.Renderer = this;
 }
示例#2
0
 public string getSelectedText(Window wnd)
 {
     string text = "";
     if (wnd.As<JsObject>()["getSelection"] != null) {
         text = wnd.getSelection().toString();
     }
     else {
         JsObject selection = wnd.document.As<JsObject>()["selection"].As<JsObject>();
         if (selection != null && (selection["type"] != "Control")) {
             JsFunction fn = selection["createRange"].As<JsFunction>();
             text = fn.call().As<JsObject>()["text"].As<JsString>();
         }
     }
     return text;
 }
示例#3
0
		/// <summary>
		/// <para>Creates a new instance of the event handler.</para>
		/// </summary>
		/// <param name="win">The DOM window this manager handles the events for</param>
		/// <param name="registration">The event registration to use</param>
		public Manager(Window win, qx.eventx.Registration registration) { throw new NotImplementedException(); }
示例#4
0
 public void setCommandWindow(Window commandWindow) { }
示例#5
0
		public static qx.html.Element GetHelperElement(Window win) { throw new NotImplementedException(); }
示例#6
0
		public static qx.html.Element Create(string name, object attributes, Window win) { throw new NotImplementedException(); }
示例#7
0
		public static bool IsInDom(qx.html.Element element, Window win) { throw new NotImplementedException(); }
示例#8
0
 public void initCompositionEvent(string typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, string dataArg)
 {
 }
示例#9
0
	public  void initTouchEvent(TouchList touches, TouchList targetTouches, TouchList changedTouches, string type, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) {}
示例#10
0
	public  void initTextEvent(string typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, string dataArg) {}
示例#11
0
	public  void initKeyboardEvent(string type, bool canBubble, bool cancelable, Window view, string keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey) {}
示例#12
0
 public void Remove(Window target, TouchEventType touchEventType, TouchEventCallback listener, bool useCapture = false) { }
示例#13
0
	public  void initMessageEvent(string typeArg, bool canBubbleArg, bool cancelableArg, object dataArg, string originArg, string lastEventIdArg, Window sourceArg, Array messagePorts) {}
示例#14
0
	public  void initCompositionEvent(string typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, string dataArg) {}
示例#15
0
 /// <summary>
 /// Delay this execution for the specefied number of seconds.
 /// </summary>
 /// <param name="seconds">The number of seconds to delay the execution.</param>
 public void Delay(int seconds, Window window)
 {
     delayed = true;
     window.setTimeout(unDelay, seconds * 1000);
 }
示例#16
0
	public  void initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) {}
示例#17
0
	public  void initUIEvent(string type, bool canBubble, bool cancelable, Window view, int detail) {}
示例#18
0
 /// <summary>
 /// Used when you need to draw in <iframe>. Switched window to the iframe one.
 /// </summary>
 /// <param name="newwin">new window object</param>
 public void setWindow(Window newwin) { }
示例#19
0
	public  void initMouseEvent(string type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) {}
示例#20
0
		public static void Register(Window element) { throw new NotImplementedException(); }