/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2006-2025 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file MFXStaticToolTip.h14/// @author Pablo Alvarez Lopez15/// @date May 202216///17//18/****************************************************************************/1920#pragma once21#include <config.h>2223#include "fxheader.h"2425/// @brief MFXStaticToolTip (based on FXToolTip)26class MFXStaticToolTip : protected FXToolTip {27/// @brief FOX declaration28FXDECLARE(MFXStaticToolTip)2930public:31/// @brief constructor32MFXStaticToolTip(FXApp* app);3334/// @brief destructor35~MFXStaticToolTip();3637/// @brief enable/disable static tooltip38void enableStaticToolTip(const bool value);3940/// @brief check staticToolTip is enabled41bool isStaticToolTipEnabled() const;4243/// @brief show static toolTip44void showStaticToolTip(const FXString& toolTipText);4546/// @brief hide static toolTip47void hideStaticToolTip();4849/// @name FOX callbacks50/// @{51/// @brief draw MFXStaticToolTip52long onPaint(FXObject* obj, FXSelector sel, void* ptr);5354/// @brief called when tooltip is updated55long onUpdate(FXObject* sender, FXSelector sel, void* ptr);5657/// @}5859protected:60/// @brief FOX need this61MFXStaticToolTip();6263private:64/// @brief flag for enable/disable static tooltip65bool myEnableStaticTooltip = true;66};676869