Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEViewNetHelper::MouseButtonKeyPressed Struct Reference

class used to group all variables related with mouse buttons and key pressed after certain events More...

#include <GNEViewNetHelper.h>

Public Member Functions

bool altKeyPressed () const
 check if ALT is pressed during current event
bool controlKeyPressed () const
 check if CONTROL is pressed during current event
 MouseButtonKeyPressed ()
 constructor
bool mouseLeftButtonPressed () const
 check if mouse left button is pressed during current event
bool mouseRightButtonPressed () const
 check if mouse right button is pressed during current event
bool shiftKeyPressed () const
 check if SHIFT is pressed during current event
void update (void *eventData)
 update status of MouseButtonKeyPressed during current event

Private Member Functions

 MouseButtonKeyPressed (const MouseButtonKeyPressed &)=delete
 Invalidated copy constructor.
MouseButtonKeyPressedoperator= (const MouseButtonKeyPressed &)=delete
 Invalidated assignment operator.

Private Attributes

FXEvent * myEventInfo
 information of event (must be updated)

Detailed Description

class used to group all variables related with mouse buttons and key pressed after certain events

Definition at line 607 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ MouseButtonKeyPressed() [1/2]

GNEViewNetHelper::MouseButtonKeyPressed::MouseButtonKeyPressed ( )

constructor

Definition at line 1434 of file GNEViewNetHelper.cpp.

References myEventInfo.

Referenced by MouseButtonKeyPressed(), and operator=().

Here is the caller graph for this function:

◆ MouseButtonKeyPressed() [2/2]

GNEViewNetHelper::MouseButtonKeyPressed::MouseButtonKeyPressed ( const MouseButtonKeyPressed & )
privatedelete

Invalidated copy constructor.

References MouseButtonKeyPressed().

Member Function Documentation

◆ altKeyPressed()

bool GNEViewNetHelper::MouseButtonKeyPressed::altKeyPressed ( ) const

check if ALT is pressed during current event

Definition at line 1466 of file GNEViewNetHelper.cpp.

References myEventInfo.

◆ controlKeyPressed()

bool GNEViewNetHelper::MouseButtonKeyPressed::controlKeyPressed ( ) const

check if CONTROL is pressed during current event

Definition at line 1456 of file GNEViewNetHelper.cpp.

References myEventInfo.

Referenced by GNEEdgeRelDataFrame::addEdgeRelationData(), GNERouteFrame::addEdgeRoute(), and GNEVehicleFrame::addVehicle().

Here is the caller graph for this function:

◆ mouseLeftButtonPressed()

bool GNEViewNetHelper::MouseButtonKeyPressed::mouseLeftButtonPressed ( ) const

check if mouse left button is pressed during current event

Definition at line 1476 of file GNEViewNetHelper.cpp.

References myEventInfo.

◆ mouseRightButtonPressed()

bool GNEViewNetHelper::MouseButtonKeyPressed::mouseRightButtonPressed ( ) const

check if mouse right button is pressed during current event

Definition at line 1486 of file GNEViewNetHelper.cpp.

References myEventInfo.

◆ operator=()

MouseButtonKeyPressed & GNEViewNetHelper::MouseButtonKeyPressed::operator= ( const MouseButtonKeyPressed & )
privatedelete

Invalidated assignment operator.

References MouseButtonKeyPressed().

◆ shiftKeyPressed()

bool GNEViewNetHelper::MouseButtonKeyPressed::shiftKeyPressed ( ) const

check if SHIFT is pressed during current event

Definition at line 1446 of file GNEViewNetHelper.cpp.

References myEventInfo.

Referenced by GNEEdgeRelDataFrame::addEdgeRelationData(), GNERouteFrame::addEdgeRoute(), GNEStopFrame::addStop(), and GNEVehicleFrame::addVehicle().

Here is the caller graph for this function:

◆ update()

void GNEViewNetHelper::MouseButtonKeyPressed::update ( void * eventData)

update status of MouseButtonKeyPressed during current event

Definition at line 1440 of file GNEViewNetHelper.cpp.

References myEventInfo.

Field Documentation

◆ myEventInfo

FXEvent* GNEViewNetHelper::MouseButtonKeyPressed::myEventInfo
private

information of event (must be updated)

Definition at line 632 of file GNEViewNetHelper.h.

Referenced by altKeyPressed(), controlKeyPressed(), MouseButtonKeyPressed(), mouseLeftButtonPressed(), mouseRightButtonPressed(), shiftKeyPressed(), and update().


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