LMMS
Loading...
Searching...
No Matches
ctl_keyboard.cpp File Reference
#include <calf/ctl_keyboard.h>
#include <stdint.h>
#include <stdlib.h>

Functions

GtkWidget * calf_keyboard_new ()
 Create new keyboard object;.
static gboolean calf_keyboard_expose (GtkWidget *widget, GdkEventExpose *event)
static void calf_keyboard_realize (GtkWidget *widget)
static void calf_keyboard_size_request (GtkWidget *widget, GtkRequisition *requisition)
static void calf_keyboard_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
static gboolean calf_keyboard_key_press (GtkWidget *widget, GdkEventKey *event)
int calf_keyboard_pos_to_note (CalfKeyboard *kb, int x, int y, int *vel=NULL)
static gboolean calf_keyboard_button_press (GtkWidget *widget, GdkEventButton *event)
static gboolean calf_keyboard_button_release (GtkWidget *widget, GdkEventButton *event)
static gboolean calf_keyboard_pointer_motion (GtkWidget *widget, GdkEventMotion *event)
static void calf_keyboard_class_init (CalfKeyboardClass *klass)
static void calf_keyboard_init (CalfKeyboard *self)
GType calf_keyboard_get_type (void)
 Return a GType for CalfKeyboard.

Variables

static const int semitones_b [] = { 1, 3, -1, 6, 8, 10, -1 }
static const int semitones_w [] = { 0, 2, 4, 5, 7, 9, 11 }

Function Documentation

◆ calf_keyboard_button_press()

gboolean calf_keyboard_button_press ( GtkWidget * widget,
GdkEventButton * event )
static

◆ calf_keyboard_button_release()

gboolean calf_keyboard_button_release ( GtkWidget * widget,
GdkEventButton * event )
static

◆ calf_keyboard_class_init()

void calf_keyboard_class_init ( CalfKeyboardClass * klass)
static

◆ calf_keyboard_expose()

gboolean calf_keyboard_expose ( GtkWidget * widget,
GdkEventExpose * event )
static

◆ calf_keyboard_get_type()

GType calf_keyboard_get_type ( void )

Return a GType for CalfKeyboard.

◆ calf_keyboard_init()

void calf_keyboard_init ( CalfKeyboard * self)
static

◆ calf_keyboard_key_press()

gboolean calf_keyboard_key_press ( GtkWidget * widget,
GdkEventKey * event )
static

◆ calf_keyboard_new()

GtkWidget * calf_keyboard_new ( )

Create new keyboard object;.

◆ calf_keyboard_pointer_motion()

gboolean calf_keyboard_pointer_motion ( GtkWidget * widget,
GdkEventMotion * event )
static

◆ calf_keyboard_pos_to_note()

int calf_keyboard_pos_to_note ( CalfKeyboard * kb,
int x,
int y,
int * vel = NULL )

◆ calf_keyboard_realize()

void calf_keyboard_realize ( GtkWidget * widget)
static

◆ calf_keyboard_size_allocate()

void calf_keyboard_size_allocate ( GtkWidget * widget,
GtkAllocation * allocation )
static

◆ calf_keyboard_size_request()

void calf_keyboard_size_request ( GtkWidget * widget,
GtkRequisition * requisition )
static

Variable Documentation

◆ semitones_b

const int semitones_b[] = { 1, 3, -1, 6, 8, 10, -1 }
static

◆ semitones_w

const int semitones_w[] = { 0, 2, 4, 5, 7, 9, 11 }
static