ManaPlus
Public Member Functions | Data Fields
MouseOverLink Struct Reference

#include <mouseoverlink.h>

Public Member Functions

 MouseOverLink (const int x, const int y)
 
bool operator() (const BrowserLink &link) const
 

Data Fields

const int mX
 
const int mY
 

Detailed Description

Definition at line 31 of file mouseoverlink.h.

Constructor & Destructor Documentation

◆ MouseOverLink()

MouseOverLink::MouseOverLink ( const int  x,
const int  y 
)
inline

Definition at line 33 of file mouseoverlink.h.

34  :
35  mX(x),
36  mY(y)
37  { }

Member Function Documentation

◆ operator()()

bool MouseOverLink::operator() ( const BrowserLink link) const
inline

Definition at line 41 of file mouseoverlink.h.

42  {
43  return mX >= link.x1 &&
44  mX < link.x2 &&
45  mY >= link.y1 &&
46  mY < link.y2;
47  }

References mX, and mY.

Field Documentation

◆ mX

const int MouseOverLink::mX

Definition at line 48 of file mouseoverlink.h.

Referenced by operator()().

◆ mY

const int MouseOverLink::mY

Definition at line 49 of file mouseoverlink.h.

Referenced by operator()().


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