AgsIndicator

AgsIndicator — A indicator widget

Stability Level

Stable, unless otherwise indicated

Functions

Properties

GObject * adjustment Read / Write
guint segment-count Read / Write
guint segment-height Read / Write
guint segment-padding Read / Write
guint segment-width Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── AgsIndicator
                ├── AgsHIndicator
                ╰── AgsVIndicator

Implemented Interfaces

AgsIndicator implements AtkImplementorIface and GtkBuildable.

Includes

#include <ags/widget/ags_indicator.h>

Description

AgsIndicator is a widget representing a GtkAdjustment.

Functions

ags_indicator_get_segment_width ()

guint
ags_indicator_get_segment_width (AgsIndicator *indicator);

Get segment width.

Parameters

indicator

the AgsIndicator

 

Returns

the segment width

Since: 3.2.0


ags_indicator_set_segment_width ()

void
ags_indicator_set_segment_width (AgsIndicator *indicator,
                                 guint segment_width);

Set segment width.

Parameters

indicator

the AgsIndicator

 

segment_width

the segment width

 

Since: 3.2.0


ags_indicator_get_segment_height ()

guint
ags_indicator_get_segment_height (AgsIndicator *indicator);

Get segment height.

Parameters

indicator

the AgsIndicator

 

Returns

the segment height

Since: 3.2.0


ags_indicator_set_segment_height ()

void
ags_indicator_set_segment_height (AgsIndicator *indicator,
                                  guint segment_height);

Set segment height.

Parameters

indicator

the AgsIndicator

 

segment_height

the segment height

 

Since: 3.2.0


ags_indicator_get_segment_padding ()

guint
ags_indicator_get_segment_padding (AgsIndicator *indicator);

Get segment padding.

Parameters

indicator

the AgsIndicator

 

Returns

the segment padding

Since: 3.2.0


ags_indicator_set_segment_padding ()

void
ags_indicator_set_segment_padding (AgsIndicator *indicator,
                                   guint segment_padding);

Set segment padding.

Parameters

indicator

the AgsIndicator

 

segment_padding

the segment padding

 

Since: 3.2.0


ags_indicator_get_segment_count ()

guint
ags_indicator_get_segment_count (AgsIndicator *indicator);

Get segment count.

Parameters

indicator

the AgsIndicator

 

Returns

the segment count

Since: 3.2.0


ags_indicator_set_segment_count ()

void
ags_indicator_set_segment_count (AgsIndicator *indicator,
                                 guint segment_count);

Set segment count.

Parameters

indicator

the AgsIndicator

 

segment_count

the segment count

 

Since: 3.2.0


ags_indicator_get_adjustment ()

GtkAdjustment *
ags_indicator_get_adjustment (AgsIndicator *indicator);

Get adjustment.

Parameters

indicator

the AgsIndicator

 

Returns

the GtkAdjustment.

[transfer full]

Since: 3.2.0


ags_indicator_set_adjustment ()

void
ags_indicator_set_adjustment (AgsIndicator *indicator,
                              GtkAdjustment *adjustment);

Set adjustment.

Parameters

indicator

the AgsIndicator

 

adjustment

the GtkAdjustment.

[transfer none]

Since: 3.2.0


ags_indicator_new ()

AgsIndicator *
ags_indicator_new ();

Creates an AgsIndicator. Note, use rather its implementation AgsVIndicator or AgsHIndicator.

Returns

a new AgsIndicator

Since: 3.0.0


AGS_INDICATOR()

#define AGS_INDICATOR(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INDICATOR, AgsIndicator))

AGS_INDICATOR_CLASS()

#define AGS_INDICATOR_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INDICATOR, AgsIndicatorClass))

AGS_INDICATOR_GET_CLASS()

#define AGS_INDICATOR_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INDICATOR, AgsIndicatorClass))

AGS_IS_INDICATOR()

#define AGS_IS_INDICATOR(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INDICATOR))

AGS_IS_INDICATOR_CLASS()

#define AGS_IS_INDICATOR_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INDICATOR))

ags_indicator_get_type ()

GType
ags_indicator_get_type (void);

Types and Values

AGS_INDICATOR_DEFAULT_SEGMENT_WIDTH

#define AGS_INDICATOR_DEFAULT_SEGMENT_WIDTH (7)

AGS_INDICATOR_DEFAULT_SEGMENT_HEIGHT

#define AGS_INDICATOR_DEFAULT_SEGMENT_HEIGHT (7)

AGS_INDICATOR_DEFAULT_SEGMENT_PADDING

#define AGS_INDICATOR_DEFAULT_SEGMENT_PADDING (3)

AGS_INDICATOR_DEFAULT_SEGMENT_COUNT

#define AGS_INDICATOR_DEFAULT_SEGMENT_COUNT (10)

AGS_TYPE_INDICATOR

#define AGS_TYPE_INDICATOR                (ags_indicator_get_type())

struct AgsIndicator

struct AgsIndicator;

struct AgsIndicatorClass

struct AgsIndicatorClass {
  GtkWidgetClass widget;
};

Property Details

The “adjustment” property

  “adjustment”               GObject *

The adjustment giving indicator value.

Owner: AgsIndicator

Flags: Read / Write

Since: 3.0.0


The “segment-count” property

  “segment-count”            guint

The indicator's segment count.

Owner: AgsIndicator

Flags: Read / Write

Allowed values: >= 1

Default value: 10

Since: 3.0.0


The “segment-height” property

  “segment-height”           guint

The indicator's segment height.

Owner: AgsIndicator

Flags: Read / Write

Allowed values: >= 1

Default value: 7

Since: 3.0.0


The “segment-padding” property

  “segment-padding”          guint

The indicator's segment padding.

Owner: AgsIndicator

Flags: Read / Write

Default value: 3

Since: 3.0.0


The “segment-width” property

  “segment-width”            guint

The indicator's segment width.

Owner: AgsIndicator

Flags: Read / Write

Allowed values: >= 1

Default value: 7

Since: 3.0.0