|
@@ -2263,11 +2263,20 @@ declare module 'babylonjs-gui/2D/controls/scrollViewers/scrollViewer' {
|
|
|
import { Container } from "babylonjs-gui/2D/controls/container";
|
|
|
import { Nullable } from "babylonjs";
|
|
|
import { AdvancedDynamicTexture, Measure } from "2D";
|
|
|
+ import { ScrollBar } from "babylonjs-gui/2D/controls/sliders/scrollBar";
|
|
|
/**
|
|
|
* Class used to hold a viewer window and sliders in a grid
|
|
|
*/
|
|
|
export class ScrollViewer extends Rectangle {
|
|
|
/**
|
|
|
+ * Gets the horizontal scrollbar
|
|
|
+ */
|
|
|
+ readonly horizontalBar: ScrollBar;
|
|
|
+ /**
|
|
|
+ * Gets the vertical scrollbar
|
|
|
+ */
|
|
|
+ readonly verticalBar: ScrollBar;
|
|
|
+ /**
|
|
|
* Adds a new control to the current container
|
|
|
* @param control defines the control to add
|
|
|
* @returns the current container
|
|
@@ -3260,6 +3269,33 @@ declare module 'babylonjs-gui/3D/materials/fluentMaterial' {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+declare module 'babylonjs-gui/2D/controls/sliders/scrollBar' {
|
|
|
+ import { BaseSlider } from "babylonjs-gui/2D/controls/sliders/baseSlider";
|
|
|
+ import { Control } from "babylonjs-gui/2D/controls";
|
|
|
+ import { Vector2 } from "babylonjs";
|
|
|
+ /**
|
|
|
+ * Class used to create slider controls
|
|
|
+ */
|
|
|
+ export class ScrollBar extends BaseSlider {
|
|
|
+ name?: string | undefined;
|
|
|
+ /** Gets or sets border color */
|
|
|
+ borderColor: string;
|
|
|
+ /** Gets or sets background color */
|
|
|
+ background: string;
|
|
|
+ /**
|
|
|
+ * Creates a new Slider
|
|
|
+ * @param name defines the control name
|
|
|
+ */
|
|
|
+ constructor(name?: string | undefined);
|
|
|
+ protected _getTypeName(): string;
|
|
|
+ protected _getThumbThickness(): number;
|
|
|
+ _draw(context: CanvasRenderingContext2D): void;
|
|
|
+ /** @hidden */
|
|
|
+ protected _updateValueFromPointer(x: number, y: number): void;
|
|
|
+ _onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
/*Babylon.js GUI*/
|
|
|
// Dependencies for this module:
|
|
@@ -5375,6 +5411,14 @@ declare module BABYLON.GUI {
|
|
|
*/
|
|
|
export class ScrollViewer extends Rectangle {
|
|
|
/**
|
|
|
+ * Gets the horizontal scrollbar
|
|
|
+ */
|
|
|
+ readonly horizontalBar: ScrollBar;
|
|
|
+ /**
|
|
|
+ * Gets the vertical scrollbar
|
|
|
+ */
|
|
|
+ readonly verticalBar: ScrollBar;
|
|
|
+ /**
|
|
|
* Adds a new control to the current container
|
|
|
* @param control defines the control to add
|
|
|
* @returns the current container
|
|
@@ -6293,4 +6337,27 @@ declare module BABYLON.GUI {
|
|
|
getClassName(): string;
|
|
|
static Parse(source: any, scene: BABYLON.Scene, rootUrl: string): FluentMaterial;
|
|
|
}
|
|
|
+}
|
|
|
+declare module BABYLON.GUI {
|
|
|
+ /**
|
|
|
+ * Class used to create slider controls
|
|
|
+ */
|
|
|
+ export class ScrollBar extends BaseSlider {
|
|
|
+ name?: string | undefined;
|
|
|
+ /** Gets or sets border color */
|
|
|
+ borderColor: string;
|
|
|
+ /** Gets or sets background color */
|
|
|
+ background: string;
|
|
|
+ /**
|
|
|
+ * Creates a new Slider
|
|
|
+ * @param name defines the control name
|
|
|
+ */
|
|
|
+ constructor(name?: string | undefined);
|
|
|
+ protected _getTypeName(): string;
|
|
|
+ protected _getThumbThickness(): number;
|
|
|
+ _draw(context: CanvasRenderingContext2D): void;
|
|
|
+ /** @hidden */
|
|
|
+ protected _updateValueFromPointer(x: number, y: number): void;
|
|
|
+ _onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number): boolean;
|
|
|
+ }
|
|
|
}
|