AgsLed
AgsLed — A led widget
|
|
Stability Level
Stable, unless otherwise indicated
Object Hierarchy
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── AgsLed
Implemented Interfaces
AgsLed implements
GtkAccessible, GtkBuildable and GtkConstraintTarget.
Includes
#include <ags/widget/ags_led.h>
Description
AgsLed is a widget visualizing a gboolean value.
Functions
ags_led_is_active ()
gboolean
ags_led_is_active (AgsLed *led
);
Set led
to active state.
Returns
TRUE
if led active, otherwise FALSE
Since: 3.2.0
ags_led_set_active ()
void
ags_led_set_active (AgsLed *led
,
gboolean active
);
Set led
active by active
.
Since: 3.0.0
ags_led_new ()
AgsLed *
ags_led_new (guint segment_width
,
guint segment_height
);
Create a new instance of AgsLed.
Since: 3.0.0
AGS_IS_LED()
#define AGS_IS_LED(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_LED))
AGS_IS_LED_CLASS()
#define AGS_IS_LED_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_LED))
AGS_LED()
#define AGS_LED(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_LED, AgsLed))
AGS_LED_CLASS()
#define AGS_LED_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_LED, AgsLedClass))
AGS_LED_GET_CLASS()
#define AGS_LED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_LED, AgsLedClass))
ags_led_get_type ()
GType
ags_led_get_type (void
);
Types and Values
AGS_TYPE_LED
#define AGS_TYPE_LED (ags_led_get_type())
struct AgsLed
struct AgsLed;
struct AgsLedClass
struct AgsLedClass {
GtkWidgetClass widget;
};
Property Details
The “segment-height”
property
“segment-height” guint
The led's segment height.
Owner: AgsLed
Flags: Read / Write
Allowed values: >= 1
Default value: 8
Since: 4.0.0
The “segment-width”
property
“segment-width” guint
The led's segment width.
Owner: AgsLed
Flags: Read / Write
Allowed values: >= 1
Default value: 12
Since: 4.0.0