LMMS
Loading...
Searching...
No Matches
CalfKeyboard::EventTester Struct Reference

Debug/example implementation of CalfKeyboard::EventSink. More...

#include <ctl_keyboard.h>

Inheritance diagram for CalfKeyboard::EventTester:
CalfKeyboard::EventAdapter CalfKeyboard::EventSink

Public Member Functions

virtual bool pre_draw (cairo_t *c, KeyInfo &ki)
virtual void post_draw (cairo_t *c, KeyInfo &ki)
 called after key is drawn using standard method (but not if drawing is skipped)
virtual void note_on (int note, int vel)
 key was pressed
virtual void note_off (int note)
 key was released
Public Member Functions inherited from CalfKeyboard::EventAdapter
virtual void set_instance (CalfKeyboard *_kb)
 (will be) called on attachment of sink to CalfKeyboard object
virtual bool pre_draw_outline (cairo_t *c, KeyInfo &ki)
virtual void post_all (cairo_t *c)
 called after key is drawn
Public Member Functions inherited from CalfKeyboard::EventSink
virtual ~EventSink ()

Additional Inherited Members

Public Attributes inherited from CalfKeyboard::EventAdapter
CalfKeyboardkb

Detailed Description

Debug/example implementation of CalfKeyboard::EventSink.

Member Function Documentation

◆ note_off()

virtual void CalfKeyboard::EventTester::note_off ( int note)
inlinevirtual

key was released

Reimplemented from CalfKeyboard::EventAdapter.

◆ note_on()

virtual void CalfKeyboard::EventTester::note_on ( int note,
int vel )
inlinevirtual

key was pressed

Reimplemented from CalfKeyboard::EventAdapter.

◆ post_draw()

virtual void CalfKeyboard::EventTester::post_draw ( cairo_t * c,
KeyInfo & ki )
inlinevirtual

called after key is drawn using standard method (but not if drawing is skipped)

Reimplemented from CalfKeyboard::EventAdapter.

◆ pre_draw()

virtual bool CalfKeyboard::EventTester::pre_draw ( cairo_t * c,
KeyInfo & ki )
inlinevirtual

called before drawing key interior

Return values
truedo not draw the key

Reimplemented from CalfKeyboard::EventAdapter.


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