tesseract  5.0.0-alpha-619-ge9db
tesseract::TabEventHandler< G > Class Template Reference

#include <bbgrid.h>

Inheritance diagram for tesseract::TabEventHandler< G >:
SVEventHandler

Public Member Functions

 TabEventHandler (G *grid)
 
void Notify (const SVEvent *sv_event) override
 
- Public Member Functions inherited from SVEventHandler
virtual ~SVEventHandler ()
 

Detailed Description

template<class G>
class tesseract::TabEventHandler< G >

Definition at line 573 of file bbgrid.h.

Constructor & Destructor Documentation

◆ TabEventHandler()

template<class G >
tesseract::TabEventHandler< G >::TabEventHandler ( G *  grid)
inlineexplicit

Definition at line 575 of file bbgrid.h.

575  : grid_(grid) {
576  }

Member Function Documentation

◆ Notify()

template<class G >
void tesseract::TabEventHandler< G >::Notify ( const SVEvent sv_event)
inlineoverridevirtual

Reimplemented from SVEventHandler.

Definition at line 577 of file bbgrid.h.

577  {
578  if (sv_event->type == SVET_CLICK) {
579  grid_->HandleClick(sv_event->x, sv_event->y);
580  }
581  }

The documentation for this class was generated from the following file:
SVET_CLICK
Definition: scrollview.h:47
SVEvent::y
int y
Definition: scrollview.h:67
SVEvent::type
SVEventType type
Definition: scrollview.h:63
SVEvent::x
int x
Definition: scrollview.h:66