KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TEST_CURSOR_OWNER Class Reference
Inheritance diagram for TEST_CURSOR_OWNER:
EDA_CURSOR_OWNER

Public Member Functions

 TEST_CURSOR_OWNER ()
 
 ~TEST_CURSOR_OWNER () override
 
bool IsCursorInCanvas () const override
 
void HideCursorInCanvas () override
 Give up canvas ownership, because the pointer has been shown to be somewhere else.
 
void Enter ()
 

Private Attributes

bool m_inCanvas = false
 

Detailed Description

Definition at line 39 of file test_gal_cursor.cpp.

Constructor & Destructor Documentation

◆ TEST_CURSOR_OWNER()

TEST_CURSOR_OWNER::TEST_CURSOR_OWNER ( )
inline

◆ ~TEST_CURSOR_OWNER()

TEST_CURSOR_OWNER::~TEST_CURSOR_OWNER ( )
inlineoverride

Member Function Documentation

◆ Enter()

void TEST_CURSOR_OWNER::Enter ( )
inline

Definition at line 50 of file test_gal_cursor.cpp.

References m_inCanvas.

Referenced by BOOST_AUTO_TEST_CASE().

◆ HideCursorInCanvas()

void TEST_CURSOR_OWNER::HideCursorInCanvas ( )
inlineoverridevirtual

Give up canvas ownership, because the pointer has been shown to be somewhere else.

Implements EDA_CURSOR_OWNER.

Definition at line 48 of file test_gal_cursor.cpp.

References m_inCanvas.

◆ IsCursorInCanvas()

bool TEST_CURSOR_OWNER::IsCursorInCanvas ( ) const
inlineoverridevirtual
Returns
true if this owner currently believes the pointer is inside its canvas.

Implements EDA_CURSOR_OWNER.

Definition at line 46 of file test_gal_cursor.cpp.

References m_inCanvas.

Referenced by BOOST_AUTO_TEST_CASE().

Member Data Documentation

◆ m_inCanvas

bool TEST_CURSOR_OWNER::m_inCanvas = false
private

Definition at line 53 of file test_gal_cursor.cpp.

Referenced by Enter(), HideCursorInCanvas(), and IsCursorInCanvas().


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