krähemann.com

AgsScaleBox

AgsScaleBox — box widget

Stability Level

Stable, unless otherwise indicated

Signals

void child-height-request Run Last
void child-width-request Run Last

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkBox
                ╰── AgsScaleBox

Implemented Interfaces

AgsScaleBox implements GtkAccessible, GtkBuildable, GtkConstraintTarget and GtkOrientable.

Includes

#include <ags/widget/ags_scale_box.h>

Description

The AgsScaleBox is a box widget containing AgsScale.

Functions

ags_scale_box_get_scale ()

GList *
ags_scale_box_get_scale (AgsScaleBox *scale_box);

Get scale.

Parameters

scale_box

the AgsScaleBox

 

Returns

the GList containing AgsScale.

[element-type AgsGui.Scale][transfer container]

Since: 4.0.0


ags_scale_box_add_scale ()

void
ags_scale_box_add_scale (AgsScaleBox *scale_box,
                         AgsScale *scale);

Add scale to scale_box .

Parameters

scale_box

the AgsScaleBox

 

scale

the AgsScale

 

Since: 4.0.0


ags_scale_box_remove_scale ()

void
ags_scale_box_remove_scale (AgsScaleBox *scale_box,
                            AgsScale *scale);

Remove scale from scale_box .

Parameters

scale_box

the AgsScaleBox

 

scale

the AgsScale

 

Since: 4.0.0


ags_scale_box_child_width_request ()

void
ags_scale_box_child_width_request (AgsScaleBox *scale_box,
                                   GtkWidget *scale,
                                   gint width_request);

Notify about child scale width request.

Parameters

scale_box

the AgsScaleBox

 

scale

the AgsScale

 

width_request

the scale's width-request

 

Since: 4.0.0


ags_scale_box_child_height_request ()

void
ags_scale_box_child_height_request (AgsScaleBox *scale_box,
                                    GtkWidget *scale,
                                    gint height_request);

Notify about child scale height request.

Parameters

scale_box

the AgsScaleBox

 

scale

the AgsScale

 

height_request

the scale's height-request

 

Since: 4.0.0


ags_scale_box_new ()

AgsScaleBox *
ags_scale_box_new (GtkOrientation orientation);

Create a new instance of AgsScaleBox.

Parameters

orientation

the GtkOrientation

 

Returns

the new AgsScaleBox instance

Since: 3.0.0


AGS_IS_SCALE_BOX()

#define AGS_IS_SCALE_BOX(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_SCALE_BOX))

AGS_IS_SCALE_BOX_CLASS()

#define AGS_IS_SCALE_BOX_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_SCALE_BOX))

AGS_SCALE_BOX()

#define AGS_SCALE_BOX(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SCALE_BOX, AgsScaleBox))

AGS_SCALE_BOX_CLASS()

#define AGS_SCALE_BOX_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_SCALE_BOX, AgsScaleBoxClass))

AGS_SCALE_BOX_GET_CLASS()

#define AGS_SCALE_BOX_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_SCALE_BOX, AgsScaleBoxClass))

ags_scale_box_get_type ()

GType
ags_scale_box_get_type (void);

Types and Values

AGS_SCALE_BOX_DEFAULT_SPACING

#define AGS_SCALE_BOX_DEFAULT_SPACING (8)

AGS_TYPE_SCALE_BOX

#define AGS_TYPE_SCALE_BOX                (ags_scale_box_get_type())

struct AgsScaleBox

struct AgsScaleBox;

struct AgsScaleBoxClass

struct AgsScaleBoxClass {
  GtkBoxClass box;

  void (*child_width_request)(AgsScaleBox *scale_box,
			      GtkWidget *scale,
			      gint width_request);
  void (*child_height_request)(AgsScaleBox *scale_box,
			       GtkWidget *scale,
			       gint height_request);
};

Signal Details

The “child-height-request” signal

void
user_function (AgsScaleBox *scale_box,
               GObject     *scale,
               int          height_request,
               gpointer     user_data)

The ::child-height-request

Parameters

scale_box

the AgsScaleBox.

 

scale

the AgsScale

 

height_request

the scale's height-request

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 4.0.0


The “child-width-request” signal

void
user_function (AgsScaleBox *scale_box,
               GObject     *scale,
               int          width_request,
               gpointer     user_data)

The ::child-width-request

Parameters

scale_box

the AgsScaleBox.

 

scale

the AgsScale

 

width_request

the scale's width-request

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 4.0.0