/** * @license * Visual Blocks Editor * * Copyright 2017 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { FieldLabel } from './field_label.js'; /** * Non-editable, serializable text field. Behaves like a * normal label but is serialized to XML. It may only be * edited programmatically. * * @augments {Blockly.FieldLabel} * @alias Blockly.FieldLabelHover */ export declare class FieldLabelHover extends FieldLabel { private arrowWidth_; private mouseOverWrapper_; private mouseOutWrapper_; name_?: string; /** * Class for a variable getter field. * * @param {string} text The initial content of the field. * @param {string} opt_class Optional CSS class for the field's text. */ constructor(text: string, opt_class: string); /** * Install this field on a block. */ initView(): void; /** * Handle a mouse over event on a input field. * * @param {!Event} e Mouse over event. * @private */ onMouseOver_(e: Event): void; /** * Clear hover effect on the block * * @param {!Event} e Clear hover effect */ clearHover(): void; /** * Get the text from this field, which is the selected name. * * @returns {string} The selected name, or value. */ getText(): string; /** * Set the new text on field, which is the selected name. * * @param {string} text New text. */ setText(text: Text): void; /** * Handle a mouse out event on a input field. * * @param {!Event} e Mouse out event. * @private */ onMouseOut_(e: Event): void; /** * Serialize this field to XML. * * @param {!Element} fieldElement The element to populate with info about the * field's state. * @returns {!Element} The element containing info about the field's state. */ toXml(fieldElement: Element): Element; /** * Initialize this field based on the given XML. * * @param {!Element} fieldElement The element containing information about the * field's state. */ fromXml(fieldElement: Element): void; /** * Dispose of this field. * * @public */ dispose(): void; /** * Updates text field to match the colour/style of the block. * * @package */ applyColour(): void; } //# sourceMappingURL=field_label_hover.d.ts.map