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

Functions

GtkWidget * calf_curve_new (unsigned int point_limit)
 Create a CalfCurve.
static gboolean calf_curve_expose (GtkWidget *widget, GdkEventExpose *event)
static void calf_curve_realize (GtkWidget *widget)
static void calf_curve_size_request (GtkWidget *widget, GtkRequisition *requisition)
static void calf_curve_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
static int find_nearest (CalfCurve *self, int ex, int ey, int &insert_pt)
static gboolean calf_curve_button_press (GtkWidget *widget, GdkEventButton *event)
static gboolean calf_curve_button_release (GtkWidget *widget, GdkEventButton *event)
static gboolean calf_curve_pointer_motion (GtkWidget *widget, GdkEventMotion *event)
static void calf_curve_finalize (GObject *obj)
static void calf_curve_class_init (CalfCurveClass *klass)
static void calf_curve_init (CalfCurve *self)
void calf_curve_set_points (GtkWidget *widget, const CalfCurve::point_vector &src)
 Set points and update the widget.
GType calf_curve_get_type (void)
 Return a GObject type for class CalfCurve.

Variables

static gpointer parent_class = NULL

Function Documentation

◆ calf_curve_button_press()

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

◆ calf_curve_button_release()

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

◆ calf_curve_class_init()

void calf_curve_class_init ( CalfCurveClass * klass)
static

◆ calf_curve_expose()

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

◆ calf_curve_finalize()

void calf_curve_finalize ( GObject * obj)
static

◆ calf_curve_get_type()

GType calf_curve_get_type ( void )

Return a GObject type for class CalfCurve.

◆ calf_curve_init()

void calf_curve_init ( CalfCurve * self)
static

◆ calf_curve_new()

GtkWidget * calf_curve_new ( unsigned int point_limit)

Create a CalfCurve.

◆ calf_curve_pointer_motion()

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

◆ calf_curve_realize()

void calf_curve_realize ( GtkWidget * widget)
static

◆ calf_curve_set_points()

void calf_curve_set_points ( GtkWidget * widget,
const CalfCurve::point_vector & src )

Set points and update the widget.

◆ calf_curve_size_allocate()

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

◆ calf_curve_size_request()

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

◆ find_nearest()

int find_nearest ( CalfCurve * self,
int ex,
int ey,
int & insert_pt )
static

Variable Documentation

◆ parent_class

gpointer parent_class = NULL
static