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

Functions

GtkWidget * calf_led_new ()
 Create new CalfLed.
static gboolean calf_led_expose (GtkWidget *widget, GdkEventExpose *event)
static void calf_led_size_request (GtkWidget *widget, GtkRequisition *requisition)
static void calf_led_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
static gboolean calf_led_button_press (GtkWidget *widget, GdkEventButton *event)
static void calf_led_class_init (CalfLedClass *klass)
static void calf_led_init (CalfLed *self)
void calf_led_set_value (CalfLed *led, float value)
 Set LED state (true - lit, false - unlit).
gboolean calf_led_get_value (CalfLed *led)
 Get LED state (true - lit, false - unlit).
GType calf_led_get_type (void)
 Get GObject type for the CalfLed.

Function Documentation

◆ calf_led_button_press()

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

◆ calf_led_class_init()

void calf_led_class_init ( CalfLedClass * klass)
static

◆ calf_led_expose()

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

◆ calf_led_get_type()

GType calf_led_get_type ( void )

Get GObject type for the CalfLed.

◆ calf_led_get_value()

gboolean calf_led_get_value ( CalfLed * led)

Get LED state (true - lit, false - unlit).

◆ calf_led_init()

void calf_led_init ( CalfLed * self)
static

◆ calf_led_new()

GtkWidget * calf_led_new ( )

Create new CalfLed.

◆ calf_led_set_value()

void calf_led_set_value ( CalfLed * led,
float value )

Set LED state (true - lit, false - unlit).

◆ calf_led_size_allocate()

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

◆ calf_led_size_request()

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