LMMS
Loading...
Searching...
No Matches
CalfKeyboard::EventSink Struct Referenceabstract

Set of user-defined callbacks for customizing display and operation of CalfKeyboard. More...

#include <ctl_keyboard.h>

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

Public Member Functions

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

Detailed Description

Set of user-defined callbacks for customizing display and operation of CalfKeyboard.

Constructor & Destructor Documentation

◆ ~EventSink()

virtual CalfKeyboard::EventSink::~EventSink ( )
inlinevirtual

Member Function Documentation

◆ note_off()

virtual void CalfKeyboard::EventSink::note_off ( int note)
pure virtual

key was released

Implemented in CalfKeyboard::EventAdapter, and CalfKeyboard::EventTester.

◆ note_on()

virtual void CalfKeyboard::EventSink::note_on ( int note,
int vel )
pure virtual

key was pressed

Implemented in CalfKeyboard::EventAdapter, and CalfKeyboard::EventTester.

◆ post_all()

virtual void CalfKeyboard::EventSink::post_all ( cairo_t * c)
pure virtual

called after key is drawn

Implemented in CalfKeyboard::EventAdapter.

◆ post_draw()

virtual void CalfKeyboard::EventSink::post_draw ( cairo_t * c,
KeyInfo & ki )
pure virtual

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

Implemented in CalfKeyboard::EventAdapter, and CalfKeyboard::EventTester.

◆ pre_draw()

virtual bool CalfKeyboard::EventSink::pre_draw ( cairo_t * c,
KeyInfo & ki )
pure virtual

called before drawing key interior

Return values
truedo not draw the key

Implemented in CalfKeyboard::EventAdapter, and CalfKeyboard::EventTester.

◆ pre_draw_outline()

virtual bool CalfKeyboard::EventSink::pre_draw_outline ( cairo_t * c,
KeyInfo & ki )
pure virtual
Return values
truedo not draw the outline called before drawing key outline of white keys

Implemented in CalfKeyboard::EventAdapter.

◆ set_instance()

virtual void CalfKeyboard::EventSink::set_instance ( CalfKeyboard * kb)
pure virtual

(will be) called on attachment of sink to CalfKeyboard object

Implemented in CalfKeyboard::EventAdapter.


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