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

Null implementation of CalfKeyboard::EventSink. More...

#include <ctl_keyboard.h>

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

Public Member Functions

virtual void set_instance (CalfKeyboard *_kb)
 (will be) called on attachment of sink to CalfKeyboard object
virtual bool pre_draw (cairo_t *c, KeyInfo &ki)
virtual bool pre_draw_outline (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 post_all (cairo_t *c)
 called after key is drawn
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::EventSink
virtual ~EventSink ()

Public Attributes

CalfKeyboardkb

Detailed Description

Null implementation of CalfKeyboard::EventSink.

Member Function Documentation

◆ note_off()

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

key was released

Implements CalfKeyboard::EventSink.

Reimplemented in CalfKeyboard::EventTester.

◆ note_on()

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

key was pressed

Implements CalfKeyboard::EventSink.

Reimplemented in CalfKeyboard::EventTester.

◆ post_all()

virtual void CalfKeyboard::EventAdapter::post_all ( cairo_t * c)
inlinevirtual

called after key is drawn

Implements CalfKeyboard::EventSink.

◆ post_draw()

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

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

Implements CalfKeyboard::EventSink.

Reimplemented in CalfKeyboard::EventTester.

◆ pre_draw()

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

called before drawing key interior

Return values
truedo not draw the key

Implements CalfKeyboard::EventSink.

Reimplemented in CalfKeyboard::EventTester.

◆ pre_draw_outline()

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

Implements CalfKeyboard::EventSink.

◆ set_instance()

virtual void CalfKeyboard::EventAdapter::set_instance ( CalfKeyboard * kb)
inlinevirtual

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

Implements CalfKeyboard::EventSink.

Member Data Documentation

◆ kb

CalfKeyboard* CalfKeyboard::EventAdapter::kb

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