Physics-Simulator  v1.4.0-beta.2
clsToolbar Class Reference

This class is used to handle showing the toolbar. The actual functions of the tools are handled in core.cpp instead. More...

#include "source/toolbar.h"

Public Member Functions

 clsToolbar ()
 
void show (void)
 
void setTool (uchar)
 
uchar getTool (void)
 
void incrementTool (char)
 
void toggleToolbox (void)
 

Detailed Description

This class is used to handle showing the toolbar. The actual functions of the tools are handled in core.cpp instead.

Constructor & Destructor Documentation

◆ clsToolbar()

clsToolbar::clsToolbar ( )
Todo:
(GamerMan7799#9#): Make toolbar bigger?

Member Function Documentation

◆ getTool()

uchar clsToolbar::getTool ( void  )

Returns current selected tool

Returns
Selected tool based on enumTools

◆ incrementTool()

void clsToolbar::incrementTool ( char  dir)

Moves toolbox to the next or previous tool

Parameters
dir= value to increment tool box up or down

◆ setTool()

void clsToolbar::setTool ( uchar  newtool)

Sets tool

Parameters
newtool= new tool

◆ show()

void clsToolbar::show ( void  )

Displays the toolbox if enabled

◆ toggleToolbox()

void clsToolbar::toggleToolbox ( void  )

Toggles showing the toolbox on/off.


The documentation for this class was generated from the following files: