/** @packageDocumentation * @module Widget */ import "./ToolSettings.scss"; import * as React from "react"; import { CommonProps, PointProps, RectangleProps } from "@bentley/ui-core"; import { ResizeHandle } from "./Stacked"; /** Properties of [[ToolSettings]] component. * @beta */ export interface ToolSettingsProps extends CommonProps { /** Title bar buttons. I.e. [[TitleBarButton]] */ buttons?: React.ReactNode; /** Tool settings content or content container. I.e. [[NestedToolSettings]], [[ScrollableToolSettings]] */ children?: React.ReactNode; /** Content ref of this widget. */ contentRef?: React.Ref; /** Describes if the widget should fill the zone. */ fillZone?: boolean; /** Last pointer position of draggable tab. */ lastPosition?: PointProps; /** Function called when widget is dragged. */ onDrag?: (dragged: PointProps) => void; /** Function called when widget drag action is started. * @param initialPosition Initial pointer position in window coordinates. */ onDragStart?: (initialPosition: PointProps) => void; /** Function called when widget drag action is finished. */ onDragEnd?: () => void; /** Handler for mouse enter */ onMouseEnter?: (event: React.MouseEvent) => void; /** Handler for mouse leave */ onMouseLeave?: (event: React.MouseEvent) => void; /** Function called when resize action is performed. */ onResize?: (resizeBy: number, handle: ResizeHandle) => void; /** Tool settings title bar title. */ title?: string; } /** Tool settings widget is used to display Tool Settings and Tool Assistance (in Zone 2 of 9-Zone UI). * @note Should be placed in [[Zone]] component. * @beta */ export declare class ToolSettings extends React.PureComponent { private _widget; private _relativePosition?; getBounds(): RectangleProps; render(): JSX.Element; private getResizeDifference; private _handleResizeStart; private _handleResizeEnd; private _handleLeftGripResize; private _handleTopGripResize; private _handleRightGripResize; private _handleBottomGripResize; } //# sourceMappingURL=ToolSettings.d.ts.map