krähemann.com

AgsLedArray

AgsLedArray — A led array widget

Stability Level

Stable, unless otherwise indicated

Properties

guint led-count Read / Write
guint led-height Read / Write
guint led-width Read / Write

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── AgsLedArray
                        ├── AgsHLedArray
                        ╰── AgsVLedArray

Includes

#include <ags/widget/ags_led_array.h>

Description

AgsLedArray is a widget representing an array of leds.

Functions

ags_led_array_get_led_width ()

guint
ags_led_array_get_led_width (AgsLedArray *led_array);

Get led width of led_array .

Parameters

led_array

the AgsLedArray

 

Returns

the led width

Since: 3.2.0


ags_led_array_set_led_width ()

void
ags_led_array_set_led_width (AgsLedArray *led_array,
                             guint led_width);

Set led width of led_array .

Parameters

led_array

the AgsLedArray

 

led_width

the led width

 

Since: 3.2.0


ags_led_array_get_led_height ()

guint
ags_led_array_get_led_height (AgsLedArray *led_array);

Set led height of led_array .

Parameters

led_array

the AgsLedArray

 

Returns

the led height

Since: 3.2.0


ags_led_array_set_led_height ()

void
ags_led_array_set_led_height (AgsLedArray *led_array,
                              guint led_height);

Set led height of led_array .

Parameters

led_array

the AgsLedArray

 

led_height

the led height

 

Since: 3.2.0


ags_led_array_get_led_count ()

guint
ags_led_array_get_led_count (AgsLedArray *led_array);

Get led count of led_array .

Parameters

led_array

the AgsLedArray

 

Returns

the led count

Since: 3.2.0


ags_led_array_set_led_count ()

void
ags_led_array_set_led_count (AgsLedArray *led_array,
                             guint led_count);

Set led count of led_array .

Parameters

led_array

the AgsLedArray

 

led_count

the led count

 

Since: 3.0.0


ags_led_array_unset_all ()

void
ags_led_array_unset_all (AgsLedArray *led_array);

Unset all led active.

Parameters

led_array

the AgsLedArray

 

Since: 3.0.0


ags_led_array_set_nth ()

void
ags_led_array_set_nth (AgsLedArray *led_array,
                       guint nth);

Set nth led active.

Parameters

led_array

the AgsLedArray

 

nth

the nth led

 

Since: 3.0.0


ags_led_array_new ()

AgsLedArray *
ags_led_array_new ();

Create a new instance of AgsLedArray. Note, use rather its implementation AgsVLedArray or AgsHLedArray.

Returns

the new AgsLedArray

Since: 3.0.0

Types and Values

AGS_LED_ARRAY_DEFAULT_LED_WIDTH

#define AGS_LED_ARRAY_DEFAULT_LED_WIDTH (10)

AGS_LED_ARRAY_DEFAULT_LED_HEIGHT

#define AGS_LED_ARRAY_DEFAULT_LED_HEIGHT (10)

enum AgsLedArrayFlags

Members

AGS_LED_ARRAY_ACTIVE

   

Property Details

The “led-count” property

  “led-count”                guint

The count of leds available.

Owner: AgsLedArray

Flags: Read / Write

Default value: 0

Since: 3.0.0


The “led-height” property

  “led-height”               guint

The height of one led.

Owner: AgsLedArray

Flags: Read / Write

Default value: 10

Since: 3.0.0


The “led-width” property

  “led-width”                guint

The width of one led.

Owner: AgsLedArray

Flags: Read / Write

Default value: 10

Since: 3.0.0