|
@@ -658,6 +658,16 @@ declare module "babylonjs-gui/2D/advancedDynamicTexture" {
|
|
|
private _attachToOnPointerOut;
|
|
|
private _attachToOnBlur;
|
|
|
/**
|
|
|
+ * Serializes the entire GUI system
|
|
|
+ * @returns an object with the JSON serialized data
|
|
|
+ */
|
|
|
+ serializeContent(): any;
|
|
|
+ /**
|
|
|
+ * Recreate the content of the ADT from a JSON object
|
|
|
+ * @param serializedObject define the JSON serialized object to restore from
|
|
|
+ */
|
|
|
+ parseContent(serializedObject: any): void;
|
|
|
+ /**
|
|
|
* Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh)
|
|
|
* @param mesh defines the mesh which will receive the texture
|
|
|
* @param width defines the texture width (1024 by default)
|
|
@@ -1138,13 +1148,13 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
get centerX(): number;
|
|
|
/** Gets the center coordinate on Y axis */
|
|
|
get centerY(): number;
|
|
|
- /** Gets or sets if control is Enabled*/
|
|
|
+ /** Gets or sets if control is Enabled */
|
|
|
get isEnabled(): boolean;
|
|
|
set isEnabled(value: boolean);
|
|
|
- /** Gets or sets background color of control if it's disabled*/
|
|
|
+ /** Gets or sets background color of control if it's disabled */
|
|
|
get disabledColor(): string;
|
|
|
set disabledColor(value: string);
|
|
|
- /** Gets or sets front color of control if it's disabled*/
|
|
|
+ /** Gets or sets front color of control if it's disabled */
|
|
|
get disabledColorItem(): string;
|
|
|
set disabledColorItem(value: string);
|
|
|
/**
|
|
@@ -1215,6 +1225,24 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
* @see https://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
*/
|
|
|
linkWithMesh(mesh: Nullable<TransformNode>): void;
|
|
|
+ /**
|
|
|
+ * Shorthand funtion to set the top, right, bottom, and left padding values on the control.
|
|
|
+ * @param { string | number} paddingTop - The value of the top padding.
|
|
|
+ * @param { string | number} paddingRight - The value of the right padding. If omitted, top is used.
|
|
|
+ * @param { string | number} paddingBottom - The value of the bottom padding. If omitted, top is used.
|
|
|
+ * @param { string | number} paddingLeft - The value of the left padding. If omitted, right is used.
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ */
|
|
|
+ setPadding(paddingTop: string | number, paddingRight?: string | number, paddingBottom?: string | number, paddingLeft?: string | number): void;
|
|
|
+ /**
|
|
|
+ * Shorthand funtion to set the top, right, bottom, and left padding values in pixels on the control.
|
|
|
+ * @param { number} paddingTop - The value in pixels of the top padding.
|
|
|
+ * @param { number} paddingRight - The value in pixels of the right padding. If omitted, top is used.
|
|
|
+ * @param { number} paddingBottom - The value in pixels of the bottom padding. If omitted, top is used.
|
|
|
+ * @param { number} paddingLeft - The value in pixels of the left padding. If omitted, right is used.
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ */
|
|
|
+ setPaddingInPixels(paddingTop: number, paddingRight?: number, paddingBottom?: number, paddingLeft?: number): void;
|
|
|
/** @hidden */
|
|
|
_moveToProjectedPosition(projectedPosition: Vector3): void;
|
|
|
/** @hidden */
|
|
@@ -1293,6 +1321,13 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
/** @hidden */
|
|
|
_processObservables(type: number, x: number, y: number, pi: PointerInfoBase, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
private _prepareFont;
|
|
|
+ /**
|
|
|
+ * Serializes the current control
|
|
|
+ * @param serializationObject defined the JSON serialized object
|
|
|
+ */
|
|
|
+ serialize(serializationObject: any): void;
|
|
|
+ /** @hidden */
|
|
|
+ _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
|
/** Releases associated resources */
|
|
|
dispose(): void;
|
|
|
private static _HORIZONTAL_ALIGNMENT_LEFT;
|
|
@@ -1321,6 +1356,13 @@ declare module "babylonjs-gui/2D/controls/control" {
|
|
|
descent: number;
|
|
|
};
|
|
|
/**
|
|
|
+ * Creates a Control from parsed data
|
|
|
+ * @param serializedObject defines parsed data
|
|
|
+ * @param host defines the hosting AdvancedDynamicTexture
|
|
|
+ * @returns a new Control
|
|
|
+ */
|
|
|
+ static Parse(serializedObject: any, host: AdvancedDynamicTexture): Control;
|
|
|
+ /**
|
|
|
* Creates a stack panel that can be used to render headers
|
|
|
* @param control defines the control to associate with the header
|
|
|
* @param text defines the text of the header
|
|
@@ -1448,8 +1490,15 @@ declare module "babylonjs-gui/2D/controls/container" {
|
|
|
_processPicking(x: number, y: number, pi: PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
/** @hidden */
|
|
|
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
|
+ /**
|
|
|
+ * Serializes the current control
|
|
|
+ * @param serializationObject defined the JSON serialized object
|
|
|
+ */
|
|
|
+ serialize(serializationObject: any): void;
|
|
|
/** Releases associated resources */
|
|
|
dispose(): void;
|
|
|
+ /** @hidden */
|
|
|
+ _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
|
}
|
|
|
}
|
|
|
declare module "babylonjs-gui/2D/controls/rectangle" {
|
|
@@ -1925,6 +1974,7 @@ declare module "babylonjs-gui/2D/controls/button" {
|
|
|
declare module "babylonjs-gui/2D/controls/stackPanel" {
|
|
|
import { Container } from "babylonjs-gui/2D/controls/container";
|
|
|
import { Measure } from "babylonjs-gui/2D/measure";
|
|
|
+ import { AdvancedDynamicTexture } from "babylonjs-gui/2D/advancedDynamicTexture";
|
|
|
/**
|
|
|
* Class used to create a 2D stack panel container
|
|
|
*/
|
|
@@ -1963,6 +2013,13 @@ declare module "babylonjs-gui/2D/controls/stackPanel" {
|
|
|
protected _preMeasure(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
|
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
|
protected _postMeasure(): void;
|
|
|
+ /**
|
|
|
+ * Serializes the current control
|
|
|
+ * @param serializationObject defined the JSON serialized object
|
|
|
+ */
|
|
|
+ serialize(serializationObject: any): void;
|
|
|
+ /** @hidden */
|
|
|
+ _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
|
}
|
|
|
}
|
|
|
declare module "babylonjs-gui/2D/controls/checkbox" {
|
|
@@ -3502,6 +3559,103 @@ declare module "babylonjs-gui/2D/controls/scrollViewers/scrollViewer" {
|
|
|
dispose(): void;
|
|
|
}
|
|
|
}
|
|
|
+declare module "babylonjs-gui/2D/controls/toggleButton" {
|
|
|
+ import { Nullable } from "babylonjs/types";
|
|
|
+ import { Observable } from "babylonjs/Misc/observable";
|
|
|
+ import { Vector2 } from "babylonjs/Maths/math.vector";
|
|
|
+ import { Rectangle } from "babylonjs-gui/2D/controls/rectangle";
|
|
|
+ import { Control } from "babylonjs-gui/2D/controls/control";
|
|
|
+ import { TextBlock } from "babylonjs-gui/2D/controls/textBlock";
|
|
|
+ import { Image } from "babylonjs-gui/2D/controls/image";
|
|
|
+ import { PointerInfoBase } from "babylonjs/Events/pointerEvents";
|
|
|
+ /**
|
|
|
+ * Class used to create toggle buttons
|
|
|
+ */
|
|
|
+ export class ToggleButton extends Rectangle {
|
|
|
+ name?: string | undefined;
|
|
|
+ /**
|
|
|
+ * Function called to generate the toActive animation
|
|
|
+ */
|
|
|
+ toActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate the toInactive animation
|
|
|
+ */
|
|
|
+ toInactiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer enter animation when the toggle button is active.
|
|
|
+ */
|
|
|
+ pointerEnterActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer out animation when the toggle button is active.
|
|
|
+ */
|
|
|
+ pointerOutActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer down animation when the toggle button is active.
|
|
|
+ */
|
|
|
+ pointerDownActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer up animation when the toggle button is active.
|
|
|
+ */
|
|
|
+ pointerUpActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer enter animation when the toggle button is inactive.
|
|
|
+ */
|
|
|
+ pointerEnterInactiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer out animation when the toggle button is inactive.
|
|
|
+ */
|
|
|
+ pointerOutInactiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer down animation when the toggle button is inactive.
|
|
|
+ */
|
|
|
+ pointerDownInactiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer up animation when the toggle button is inactive.
|
|
|
+ */
|
|
|
+ pointerUpInactiveAnimation: () => void;
|
|
|
+ /** Observable raised when isActive is changed */
|
|
|
+ onIsActiveChangedObservable: Observable<boolean>;
|
|
|
+ /**
|
|
|
+ * Gets or sets a boolean indicating that the toggle button will let internal controls handle picking instead of doing it directly using its bounding info
|
|
|
+ */
|
|
|
+ delegatePickingToChildren: boolean;
|
|
|
+ private _image;
|
|
|
+ /**
|
|
|
+ * Returns the ToggleButton's image control if it exists
|
|
|
+ */
|
|
|
+ get image(): Nullable<Image>;
|
|
|
+ private _textBlock;
|
|
|
+ /**
|
|
|
+ * Returns the ToggleButton's child TextBlock control if it exists
|
|
|
+ */
|
|
|
+ get textBlock(): Nullable<TextBlock>;
|
|
|
+ private _group;
|
|
|
+ /** Gets or sets group name this toggle button belongs to */
|
|
|
+ get group(): string;
|
|
|
+ set group(value: string);
|
|
|
+ private _isActive;
|
|
|
+ /** Gets or sets a boolean indicating if the toogle button is active or not */
|
|
|
+ get isActive(): boolean;
|
|
|
+ set isActive(value: boolean);
|
|
|
+ /**
|
|
|
+ * Creates a new ToggleButton
|
|
|
+ * @param name defines the control name
|
|
|
+ * @param group defines the toggle group this toggle belongs to
|
|
|
+ */
|
|
|
+ constructor(name?: string | undefined, group?: string);
|
|
|
+ protected _getTypeName(): string;
|
|
|
+ /** @hidden */
|
|
|
+ _processPicking(x: number, y: number, pi: PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
+ /** @hidden */
|
|
|
+ _onPointerEnter(target: Control, pi: PointerInfoBase): boolean;
|
|
|
+ /** @hidden */
|
|
|
+ _onPointerOut(target: Control, pi: PointerInfoBase, force?: boolean): void;
|
|
|
+ /** @hidden */
|
|
|
+ _onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
|
+ /** @hidden */
|
|
|
+ _onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: PointerInfoBase): void;
|
|
|
+ }
|
|
|
+}
|
|
|
declare module "babylonjs-gui/2D/controls/displayGrid" {
|
|
|
import { Control } from "babylonjs-gui/2D/controls/control";
|
|
|
import { Nullable } from 'babylonjs/types';
|
|
@@ -3626,6 +3780,7 @@ declare module "babylonjs-gui/2D/controls/index" {
|
|
|
export * from "babylonjs-gui/2D/controls/scrollViewers/scrollViewer";
|
|
|
export * from "babylonjs-gui/2D/controls/textBlock";
|
|
|
export * from "babylonjs-gui/2D/controls/textWrapper";
|
|
|
+ export * from "babylonjs-gui/2D/controls/toggleButton";
|
|
|
export * from "babylonjs-gui/2D/controls/virtualKeyboard";
|
|
|
export * from "babylonjs-gui/2D/controls/rectangle";
|
|
|
export * from "babylonjs-gui/2D/controls/displayGrid";
|
|
@@ -5185,6 +5340,16 @@ declare module BABYLON.GUI {
|
|
|
private _attachToOnPointerOut;
|
|
|
private _attachToOnBlur;
|
|
|
/**
|
|
|
+ * Serializes the entire GUI system
|
|
|
+ * @returns an object with the JSON serialized data
|
|
|
+ */
|
|
|
+ serializeContent(): any;
|
|
|
+ /**
|
|
|
+ * Recreate the content of the ADT from a JSON object
|
|
|
+ * @param serializedObject define the JSON serialized object to restore from
|
|
|
+ */
|
|
|
+ parseContent(serializedObject: any): void;
|
|
|
+ /**
|
|
|
* Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh)
|
|
|
* @param mesh defines the mesh which will receive the texture
|
|
|
* @param width defines the texture width (1024 by default)
|
|
@@ -5653,13 +5818,13 @@ declare module BABYLON.GUI {
|
|
|
get centerX(): number;
|
|
|
/** Gets the center coordinate on Y axis */
|
|
|
get centerY(): number;
|
|
|
- /** Gets or sets if control is Enabled*/
|
|
|
+ /** Gets or sets if control is Enabled */
|
|
|
get isEnabled(): boolean;
|
|
|
set isEnabled(value: boolean);
|
|
|
- /** Gets or sets background color of control if it's disabled*/
|
|
|
+ /** Gets or sets background color of control if it's disabled */
|
|
|
get disabledColor(): string;
|
|
|
set disabledColor(value: string);
|
|
|
- /** Gets or sets front color of control if it's disabled*/
|
|
|
+ /** Gets or sets front color of control if it's disabled */
|
|
|
get disabledColorItem(): string;
|
|
|
set disabledColorItem(value: string);
|
|
|
/**
|
|
@@ -5730,6 +5895,24 @@ declare module BABYLON.GUI {
|
|
|
* @see https://doc.babylonjs.com/how_to/gui#tracking-positions
|
|
|
*/
|
|
|
linkWithMesh(mesh: BABYLON.Nullable<BABYLON.TransformNode>): void;
|
|
|
+ /**
|
|
|
+ * Shorthand funtion to set the top, right, bottom, and left padding values on the control.
|
|
|
+ * @param { string | number} paddingTop - The value of the top padding.
|
|
|
+ * @param { string | number} paddingRight - The value of the right padding. If omitted, top is used.
|
|
|
+ * @param { string | number} paddingBottom - The value of the bottom padding. If omitted, top is used.
|
|
|
+ * @param { string | number} paddingLeft - The value of the left padding. If omitted, right is used.
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ */
|
|
|
+ setPadding(paddingTop: string | number, paddingRight?: string | number, paddingBottom?: string | number, paddingLeft?: string | number): void;
|
|
|
+ /**
|
|
|
+ * Shorthand funtion to set the top, right, bottom, and left padding values in pixels on the control.
|
|
|
+ * @param { number} paddingTop - The value in pixels of the top padding.
|
|
|
+ * @param { number} paddingRight - The value in pixels of the right padding. If omitted, top is used.
|
|
|
+ * @param { number} paddingBottom - The value in pixels of the bottom padding. If omitted, top is used.
|
|
|
+ * @param { number} paddingLeft - The value in pixels of the left padding. If omitted, right is used.
|
|
|
+ * @see https://doc.babylonjs.com/how_to/gui#position-and-size
|
|
|
+ */
|
|
|
+ setPaddingInPixels(paddingTop: number, paddingRight?: number, paddingBottom?: number, paddingLeft?: number): void;
|
|
|
/** @hidden */
|
|
|
_moveToProjectedPosition(projectedPosition: BABYLON.Vector3): void;
|
|
|
/** @hidden */
|
|
@@ -5808,6 +5991,13 @@ declare module BABYLON.GUI {
|
|
|
/** @hidden */
|
|
|
_processObservables(type: number, x: number, y: number, pi: BABYLON.PointerInfoBase, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
private _prepareFont;
|
|
|
+ /**
|
|
|
+ * Serializes the current control
|
|
|
+ * @param serializationObject defined the JSON serialized object
|
|
|
+ */
|
|
|
+ serialize(serializationObject: any): void;
|
|
|
+ /** @hidden */
|
|
|
+ _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
|
/** Releases associated resources */
|
|
|
dispose(): void;
|
|
|
private static _HORIZONTAL_ALIGNMENT_LEFT;
|
|
@@ -5836,6 +6026,13 @@ declare module BABYLON.GUI {
|
|
|
descent: number;
|
|
|
};
|
|
|
/**
|
|
|
+ * Creates a Control from parsed data
|
|
|
+ * @param serializedObject defines parsed data
|
|
|
+ * @param host defines the hosting AdvancedDynamicTexture
|
|
|
+ * @returns a new Control
|
|
|
+ */
|
|
|
+ static Parse(serializedObject: any, host: AdvancedDynamicTexture): Control;
|
|
|
+ /**
|
|
|
* Creates a stack panel that can be used to render headers
|
|
|
* @param control defines the control to associate with the header
|
|
|
* @param text defines the text of the header
|
|
@@ -5958,8 +6155,15 @@ declare module BABYLON.GUI {
|
|
|
_processPicking(x: number, y: number, pi: BABYLON.PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
/** @hidden */
|
|
|
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
|
+ /**
|
|
|
+ * Serializes the current control
|
|
|
+ * @param serializationObject defined the JSON serialized object
|
|
|
+ */
|
|
|
+ serialize(serializationObject: any): void;
|
|
|
/** Releases associated resources */
|
|
|
dispose(): void;
|
|
|
+ /** @hidden */
|
|
|
+ _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
@@ -6454,6 +6658,13 @@ declare module BABYLON.GUI {
|
|
|
protected _preMeasure(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
|
protected _additionalProcessing(parentMeasure: Measure, context: CanvasRenderingContext2D): void;
|
|
|
protected _postMeasure(): void;
|
|
|
+ /**
|
|
|
+ * Serializes the current control
|
|
|
+ * @param serializationObject defined the JSON serialized object
|
|
|
+ */
|
|
|
+ serialize(serializationObject: any): void;
|
|
|
+ /** @hidden */
|
|
|
+ _parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
@@ -7902,6 +8113,95 @@ declare module BABYLON.GUI {
|
|
|
}
|
|
|
}
|
|
|
declare module BABYLON.GUI {
|
|
|
+ /**
|
|
|
+ * Class used to create toggle buttons
|
|
|
+ */
|
|
|
+ export class ToggleButton extends Rectangle {
|
|
|
+ name?: string | undefined;
|
|
|
+ /**
|
|
|
+ * Function called to generate the toActive animation
|
|
|
+ */
|
|
|
+ toActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate the toInactive animation
|
|
|
+ */
|
|
|
+ toInactiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer enter animation when the toggle button is active.
|
|
|
+ */
|
|
|
+ pointerEnterActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer out animation when the toggle button is active.
|
|
|
+ */
|
|
|
+ pointerOutActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer down animation when the toggle button is active.
|
|
|
+ */
|
|
|
+ pointerDownActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer up animation when the toggle button is active.
|
|
|
+ */
|
|
|
+ pointerUpActiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer enter animation when the toggle button is inactive.
|
|
|
+ */
|
|
|
+ pointerEnterInactiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer out animation when the toggle button is inactive.
|
|
|
+ */
|
|
|
+ pointerOutInactiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer down animation when the toggle button is inactive.
|
|
|
+ */
|
|
|
+ pointerDownInactiveAnimation: () => void;
|
|
|
+ /**
|
|
|
+ * Function called to generate a pointer up animation when the toggle button is inactive.
|
|
|
+ */
|
|
|
+ pointerUpInactiveAnimation: () => void;
|
|
|
+ /** BABYLON.Observable raised when isActive is changed */
|
|
|
+ onIsActiveChangedObservable: BABYLON.Observable<boolean>;
|
|
|
+ /**
|
|
|
+ * Gets or sets a boolean indicating that the toggle button will let internal controls handle picking instead of doing it directly using its bounding info
|
|
|
+ */
|
|
|
+ delegatePickingToChildren: boolean;
|
|
|
+ private _image;
|
|
|
+ /**
|
|
|
+ * Returns the ToggleButton's image control if it exists
|
|
|
+ */
|
|
|
+ get image(): BABYLON.Nullable<Image>;
|
|
|
+ private _textBlock;
|
|
|
+ /**
|
|
|
+ * Returns the ToggleButton's child TextBlock control if it exists
|
|
|
+ */
|
|
|
+ get textBlock(): BABYLON.Nullable<TextBlock>;
|
|
|
+ private _group;
|
|
|
+ /** Gets or sets group name this toggle button belongs to */
|
|
|
+ get group(): string;
|
|
|
+ set group(value: string);
|
|
|
+ private _isActive;
|
|
|
+ /** Gets or sets a boolean indicating if the toogle button is active or not */
|
|
|
+ get isActive(): boolean;
|
|
|
+ set isActive(value: boolean);
|
|
|
+ /**
|
|
|
+ * Creates a new ToggleButton
|
|
|
+ * @param name defines the control name
|
|
|
+ * @param group defines the toggle group this toggle belongs to
|
|
|
+ */
|
|
|
+ constructor(name?: string | undefined, group?: string);
|
|
|
+ protected _getTypeName(): string;
|
|
|
+ /** @hidden */
|
|
|
+ _processPicking(x: number, y: number, pi: BABYLON.PointerInfoBase, type: number, pointerId: number, buttonIndex: number, deltaX?: number, deltaY?: number): boolean;
|
|
|
+ /** @hidden */
|
|
|
+ _onPointerEnter(target: Control, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
+ /** @hidden */
|
|
|
+ _onPointerOut(target: Control, pi: BABYLON.PointerInfoBase, force?: boolean): void;
|
|
|
+ /** @hidden */
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
|
+ /** @hidden */
|
|
|
+ _onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: BABYLON.PointerInfoBase): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+declare module BABYLON.GUI {
|
|
|
/** Class used to render a grid */
|
|
|
export class DisplayGrid extends Control {
|
|
|
name?: string | undefined;
|