AgsScaleBox

AgsScaleBox — box widget

Stability Level

Stable, unless otherwise indicated

Functions

Signals

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_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_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