AgsGui.LedArray

g AgsGui.LedArray AgsGui.LedArray GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Box Gtk.Box Gtk.Box->AgsGui.LedArray Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Box

Subclasses:

None

Methods

Inherited:

Gtk.Box (14), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Orientable (2)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (orientation, segment_width, segment_height, led_count)

get_led_count ()

get_segment_height ()

get_segment_width ()

set_led_count (led_count)

set_nth (nth)

set_segment_height (segment_height)

set_segment_width (segment_width)

unset_all ()

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)

Properties

Inherited:

Gtk.Box (4), Gtk.Widget (34), Gtk.Accessible (1), Gtk.Orientable (1)

Name

Type

Flags

Short Description

led-count

int

r/w

The count of leds available

segment-height

int

r/w

The height of segment

segment-width

int

r/w

The width of segment

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Name

Type

Access

Description

box

Gtk.Box

r

led

AgsGui.Led

r

led_count

int

r

segment_height

int

r

segment_width

int

r

Class Details

class AgsGui.LedArray(**kwargs)
Bases:

Gtk.Box

Abstract:

No

Structure:

AgsGui.LedArrayClass

classmethod new(orientation, segment_width, segment_height, led_count)
Parameters:
  • orientation (Gtk.Orientation) – the orientation

  • segment_width (int) – the width of the segment

  • segment_height (int) – the height of the segment

  • led_count (int) – the LED count

Returns:

the new AgsGui.LedArray

Return type:

AgsGui.LedArray

Create a new instance of AgsGui.LedArray.

New in version 3.0.0.

get_led_count()
Returns:

the led count

Return type:

int

Get led count of self.

New in version 3.2.0.

get_segment_height()
Returns:

the led height

Return type:

int

Set led height of self.

New in version 3.2.0.

get_segment_width()
Returns:

the led width

Return type:

int

Get led width of self.

New in version 3.2.0.

set_led_count(led_count)
Parameters:

led_count (int) – the led count

Set led count of self.

New in version 3.0.0.

set_nth(nth)
Parameters:

nth (int) – the nth led

Set nth led active.

New in version 3.0.0.

set_segment_height(segment_height)
Parameters:

segment_height (int) – the led height

Set led height of self.

New in version 3.2.0.

set_segment_width(segment_width)
Parameters:

segment_width (int) – the led width

Set led width of self.

New in version 3.2.0.

unset_all()

Unset all led active.

New in version 3.0.0.

Property Details

AgsGui.LedArray.props.led_count
Name:

led-count

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

The count of leds available.

New in version 3.0.0.

AgsGui.LedArray.props.segment_height
Name:

segment-height

Type:

int

Default Value:

10

Flags:

READABLE, WRITABLE

The segment height of one led.

New in version 4.0.0.

AgsGui.LedArray.props.segment_width
Name:

segment-width

Type:

int

Default Value:

10

Flags:

READABLE, WRITABLE

The segment width of one led.

New in version 4.0.0.