Пример #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(); }