|
@@ -1,6 +1,6 @@
|
|
|
/*BabylonJS GUI*/
|
|
|
// Dependencies for this module:
|
|
|
-// ../../../../Tools/Gulp/babylonjs
|
|
|
+// ../../../../tools/Gulp/babylonjs
|
|
|
|
|
|
declare module 'babylonjs-gui' {
|
|
|
export * from "babylonjs-gui/2D";
|
|
@@ -70,6 +70,12 @@ declare module 'babylonjs-gui/2D/advancedDynamicTexture' {
|
|
|
* @param evt defines the current keyboard event
|
|
|
*/
|
|
|
processKeyboard(evt: KeyboardEvent): void;
|
|
|
+ /**
|
|
|
+ * Function called to let the current focused control keeps the focus
|
|
|
+ * @param pointerId defines the unique id of the current pointer
|
|
|
+ * @returns a boolean indicating if the control wants to keep the focus
|
|
|
+ */
|
|
|
+ keepFocus(pointerId: number): boolean;
|
|
|
}
|
|
|
/**
|
|
|
* Class used to create texture to support 2D GUI elements
|
|
@@ -1179,6 +1185,12 @@ declare module 'babylonjs-gui/2D/controls/control' {
|
|
|
/** @hidden */
|
|
|
_resetFontCache(): void;
|
|
|
/**
|
|
|
+ * Determines if a container is an ascendant of the current control
|
|
|
+ * @param container defines the container to look for
|
|
|
+ * @returns true if the container is one of the ascendant of the control
|
|
|
+ */
|
|
|
+ IsAscendant(container: Container): boolean;
|
|
|
+ /**
|
|
|
* Gets coordinates in local control space
|
|
|
* @param globalCoordinates defines the coordinates to transform
|
|
|
* @returns the new coordinates in local space
|
|
@@ -1477,13 +1489,16 @@ declare module 'babylonjs-gui/2D/controls/image' {
|
|
|
declare module 'babylonjs-gui/2D/controls/inputText' {
|
|
|
import { Control } from "babylonjs-gui/2D/controls/control";
|
|
|
import { IFocusableControl } from "babylonjs-gui/2D/advancedDynamicTexture";
|
|
|
- import { Observable, Vector2 } from "babylonjs";
|
|
|
+ import { Nullable, Observable, Vector2 } from "babylonjs";
|
|
|
import { Measure } from "babylonjs-gui/2D/measure";
|
|
|
+ import { VirtualKeyboard } from "babylonjs-gui/2D/controls/virtualKeyboard";
|
|
|
/**
|
|
|
* Class used to create input text control
|
|
|
*/
|
|
|
export class InputText extends Control implements IFocusableControl {
|
|
|
name?: string | undefined;
|
|
|
+ /** @hidden */
|
|
|
+ _connectedVirtualKeyboard: Nullable<VirtualKeyboard>;
|
|
|
/** Gets or sets a string representing the message displayed on mobile when the control gets the focus */
|
|
|
promptMessage: string;
|
|
|
/** Observable raised when the text changes */
|
|
@@ -1535,6 +1550,12 @@ declare module 'babylonjs-gui/2D/controls/inputText' {
|
|
|
/** @hidden */
|
|
|
onFocus(): void;
|
|
|
protected _getTypeName(): string;
|
|
|
+ /**
|
|
|
+ * Function called to let the current focused control keeps the focus
|
|
|
+ * @param pointerId defines the unique id of the current pointer
|
|
|
+ * @returns a boolean indicating if the control wants to keep the focus
|
|
|
+ */
|
|
|
+ keepFocus(pointerId: number): boolean;
|
|
|
/** @hidden */
|
|
|
processKey(keyCode: number, key?: string): void;
|
|
|
/** @hidden */
|
|
@@ -2787,7 +2808,7 @@ declare module 'babylonjs-gui/3D/materials/fluentMaterial' {
|
|
|
|
|
|
/*BabylonJS GUI*/
|
|
|
// Dependencies for this module:
|
|
|
-// ../../../../Tools/Gulp/babylonjs
|
|
|
+// ../../../../tools/Gulp/babylonjs
|
|
|
declare module BABYLON.GUI {
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
@@ -2814,6 +2835,12 @@ declare module BABYLON.GUI {
|
|
|
* @param evt defines the current keyboard event
|
|
|
*/
|
|
|
processKeyboard(evt: KeyboardEvent): void;
|
|
|
+ /**
|
|
|
+ * Function called to let the current focused control keeps the focus
|
|
|
+ * @param pointerId defines the unique id of the current pointer
|
|
|
+ * @returns a boolean indicating if the control wants to keep the focus
|
|
|
+ */
|
|
|
+ keepFocus(pointerId: number): boolean;
|
|
|
}
|
|
|
/**
|
|
|
* Class used to create texture to support 2D GUI elements
|
|
@@ -3863,6 +3890,12 @@ declare module BABYLON.GUI {
|
|
|
/** @hidden */
|
|
|
_resetFontCache(): void;
|
|
|
/**
|
|
|
+ * Determines if a container is an ascendant of the current control
|
|
|
+ * @param container defines the container to look for
|
|
|
+ * @returns true if the container is one of the ascendant of the control
|
|
|
+ */
|
|
|
+ IsAscendant(container: Container): boolean;
|
|
|
+ /**
|
|
|
* Gets coordinates in local control space
|
|
|
* @param globalCoordinates defines the coordinates to transform
|
|
|
* @returns the new coordinates in local space
|
|
@@ -4152,6 +4185,8 @@ declare module BABYLON.GUI {
|
|
|
*/
|
|
|
export class InputText extends Control implements IFocusableControl {
|
|
|
name?: string | undefined;
|
|
|
+ /** @hidden */
|
|
|
+ _connectedVirtualKeyboard: BABYLON.Nullable<VirtualKeyboard>;
|
|
|
/** Gets or sets a string representing the message displayed on mobile when the control gets the focus */
|
|
|
promptMessage: string;
|
|
|
/** BABYLON.Observable raised when the text changes */
|
|
@@ -4203,6 +4238,12 @@ declare module BABYLON.GUI {
|
|
|
/** @hidden */
|
|
|
onFocus(): void;
|
|
|
protected _getTypeName(): string;
|
|
|
+ /**
|
|
|
+ * Function called to let the current focused control keeps the focus
|
|
|
+ * @param pointerId defines the unique id of the current pointer
|
|
|
+ * @returns a boolean indicating if the control wants to keep the focus
|
|
|
+ */
|
|
|
+ keepFocus(pointerId: number): boolean;
|
|
|
/** @hidden */
|
|
|
processKey(keyCode: number, key?: string): void;
|
|
|
/** @hidden */
|