Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
SimulationToolbar Class Reference

SimulationToolbar allows UI for manipulation of the Simulation toolbar. More...

Public Member Functions

void setVisible (bool)
 Shows or hides this widget from view. More...
 
void setWidgetVisible (string, bool)
 Shows or hides the specified child widget. More...
 
void setDisabled (bool)
 Enables or disables input events to this widget. More...
 
void setWidgetDisable (string, bool)
 Enables or disables the specified child widget. More...
 
bool isEventListOn ()
 Returns true if the Simulation Panel is shown, otherwise false. More...
 
void setEventListToggle (bool)
 Shows or hides the Simulation Panel. More...
 
void resetNetwork ()
 Simulations clicking on the Power Cycle Devices button on the Simulation toolbar. More...
 

Detailed Description

SimulationToolbar allows UI for manipulation of the Simulation toolbar.

Member Function Documentation

◆ isEventListOn()

bool SimulationToolbar::isEventListOn ( )

Returns true if the Simulation Panel is shown, otherwise false.

Returns
bool, true if the Simulation Panel is shown, otherwise false.

◆ resetNetwork()

void SimulationToolbar::resetNetwork ( )

Simulations clicking on the Power Cycle Devices button on the Simulation toolbar.

◆ setDisabled()

void SimulationToolbar::setDisabled ( bool  )

Enables or disables input events to this widget.

Parameters
bDisabled,trueto disable input events to this widget, false to enable input events.

◆ setEventListToggle()

void SimulationToolbar::setEventListToggle ( bool  )

Shows or hides the Simulation Panel.

Parameters
bEnable,trueto show the Simulation Panel, false to hide it.

◆ setVisible()

void SimulationToolbar::setVisible ( bool  )

Shows or hides this widget from view.

Parameters
bVisible,trueto show this widget, false to hide it.

◆ setWidgetDisable()

void SimulationToolbar::setWidgetDisable ( string  ,
bool   
)

Enables or disables the specified child widget.

Parameters
widgetName,wherewidgetName can be one of the following: ResetNetworkBtn, BackBtn, PlayBtn, ForwardBtn, EventListBtn.
bDisabled,trueto disable input events to this child widget, false to enable input events.

◆ setWidgetVisible()

void SimulationToolbar::setWidgetVisible ( string  ,
bool   
)

Shows or hides the specified child widget.

Parameters
widgetName,wherewidgetName can be one of the following: ResetNetworkBtn, BackBtn, PlayBtn, ForwardBtn, EventListBtn.
bVisible,trueto show this child widget, false to hide it.

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