LCOV - code coverage report
Current view: top level - source/gui/ObjectTypes - CCheckBox.h (source / functions) Hit Total Coverage
Test: 0 A.D. test coverage report Lines: 0 1 0.0 %
Date: 2023-01-19 00:18:29 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /* Copyright (C) 2021 Wildfire Games.
       2             :  * This file is part of 0 A.D.
       3             :  *
       4             :  * 0 A.D. is free software: you can redistribute it and/or modify
       5             :  * it under the terms of the GNU General Public License as published by
       6             :  * the Free Software Foundation, either version 2 of the License, or
       7             :  * (at your option) any later version.
       8             :  *
       9             :  * 0 A.D. is distributed in the hope that it will be useful,
      10             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      11             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      12             :  * GNU General Public License for more details.
      13             :  *
      14             :  * You should have received a copy of the GNU General Public License
      15             :  * along with 0 A.D.  If not, see <http://www.gnu.org/licenses/>.
      16             :  */
      17             : 
      18             : #ifndef INCLUDED_CCHECKBOX
      19             : #define INCLUDED_CCHECKBOX
      20             : 
      21             : #include "gui/CGUISprite.h"
      22             : #include "gui/ObjectBases/IGUIObject.h"
      23             : #include "gui/ObjectBases/IGUIButtonBehavior.h"
      24             : 
      25             : class CCheckBox : public IGUIObject, public IGUIButtonBehavior
      26             : {
      27           0 :     GUI_OBJECT(CCheckBox)
      28             : 
      29             : public:
      30             :     CCheckBox(CGUI& pGUI);
      31             :     virtual ~CCheckBox();
      32             : 
      33             :     /**
      34             :      * @see IGUIObject#ResetStates()
      35             :      */
      36             :     virtual void ResetStates();
      37             : 
      38             :     /**
      39             :      * @see IGUIObject#HandleMessage()
      40             :      */
      41             :     virtual void HandleMessage(SGUIMessage& Message);
      42             : 
      43             :     /**
      44             :      * Draws the control
      45             :      */
      46             :     virtual void Draw(CCanvas2D& canvas);
      47             : 
      48             : protected:
      49             :     // Settings
      50             :     CGUISimpleSetting<bool> m_Checked;
      51             :     CGUISimpleSetting<CGUISpriteInstance> m_SpriteUnchecked;
      52             :     CGUISimpleSetting<CGUISpriteInstance> m_SpriteUncheckedOver;
      53             :     CGUISimpleSetting<CGUISpriteInstance> m_SpriteUncheckedPressed;
      54             :     CGUISimpleSetting<CGUISpriteInstance> m_SpriteUncheckedDisabled;
      55             :     CGUISimpleSetting<CGUISpriteInstance> m_SpriteChecked;
      56             :     CGUISimpleSetting<CGUISpriteInstance> m_SpriteCheckedOver;
      57             :     CGUISimpleSetting<CGUISpriteInstance> m_SpriteCheckedPressed;
      58             :     CGUISimpleSetting<CGUISpriteInstance> m_SpriteCheckedDisabled;
      59             : };
      60             : 
      61             : #endif // INCLUDED_CCHECKBOX

Generated by: LCOV version 1.13