MxStackChild

MxStackChild — meta data associated with a MxStack child.

Functions

Properties

gboolean crop Read / Write
gboolean fit Read / Write
MxAlign x-align Read / Write
gboolean x-fill Read / Write
MxAlign y-align Read / Write
gboolean y-fill Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── ClutterChildMeta
        ╰── MxStackChild

Description

MxStackChild is a ClutterChildMeta implementation that stores the child properties for children inside a MxStack.

Functions

mx_stack_child_get_x_fill ()

gboolean
mx_stack_child_get_x_fill (MxStack *stack,
                           ClutterActor *child);

Get the value of the “x-fill” property.

Parameters

stack

A MxStack

 

child

A ClutterActor

 

Returns

the current value of the "x-fill" property.

Since 1.2


mx_stack_child_set_x_fill ()

void
mx_stack_child_set_x_fill (MxStack *stack,
                           ClutterActor *child,
                           gboolean x_fill);

Set the value of the “x-fill” property.

Parameters

stack

A MxStack

 

child

A ClutterActor

 

x_fill

A gboolean

 

Since 1.2


mx_stack_child_get_y_fill ()

gboolean
mx_stack_child_get_y_fill (MxStack *stack,
                           ClutterActor *child);

Get the value of the “y-fill” property

Parameters

stack

An MxStack

 

child

A ClutterActor

 

Returns

the current value of the "y-fill" property

Since 1.2


mx_stack_child_set_y_fill ()

void
mx_stack_child_set_y_fill (MxStack *stack,
                           ClutterActor *child,
                           gboolean y_fill);

Set the value of the “y-fill” property.

Parameters

stack

An MxStack

 

child

A ClutterActor

 

y_fill

A gboolean

 

Since 1.2


mx_stack_child_get_x_align ()

MxAlign
mx_stack_child_get_x_align (MxStack *stack,
                            ClutterActor *child);

Get the value of the “x-align” property

Parameters

stack

An MxStack

 

child

A ClutterActor

 

Returns

the current value of the "x-align" property

Since 1.2


mx_stack_child_set_x_align ()

void
mx_stack_child_set_x_align (MxStack *stack,
                            ClutterActor *child,
                            MxAlign x_align);

Set the value of the “x-align” property.

Parameters

stack

A MxStack

 

child

A ClutterActor

 

x_align

An MxAlign

 

Since 1.2


mx_stack_child_get_y_align ()

MxAlign
mx_stack_child_get_y_align (MxStack *stack,
                            ClutterActor *child);

Get the value of the “y-align” property.

Parameters

stack

An MxStack

 

child

A ClutterActor

 

Returns

the current value of the "y-align" property.

Since 1.2


mx_stack_child_set_y_align ()

void
mx_stack_child_set_y_align (MxStack *stack,
                            ClutterActor *child,
                            MxAlign y_align);

Set the value of the “y-align” property.

Parameters

stack

An MxStack

 

child

A ClutterActor

 

y_align

An MxAlign

 

Since 1.2


mx_stack_child_get_fit ()

gboolean
mx_stack_child_get_fit (MxStack *stack,
                        ClutterActor *child);

Get the value of the “fit” property.

Parameters

stack

An MxStack

 

child

A ClutterActor

 

Returns

the current value of the “fit” property

Since 1.2


mx_stack_child_set_fit ()

void
mx_stack_child_set_fit (MxStack *stack,
                        ClutterActor *child,
                        gboolean fit);

Set the value of the “fit” property.

Parameters

stack

An MxStack

 

child

A ClutterActor

 

fit

A gboolean

 

Since 1.2

Types and Values

struct MxStackChild

struct MxStackChild;

The contents of this structure are private and should only be accessed through the public API.


struct MxStackChildClass

struct MxStackChildClass {
  ClutterChildMetaClass parent_class;

  /* padding for future expansion */
  void (*_padding_0) (void);
  void (*_padding_1) (void);
  void (*_padding_2) (void);
  void (*_padding_3) (void);
  void (*_padding_4) (void);
};

Property Details

The “crop” property

  “crop”                     gboolean

Attempt to fill the parent's space by scaling the child and keeping its aspect ratio as well. The fit and fill properties are ignored when this property is enabled.

Flags: Read / Write

Default value: FALSE


The “fit” property

  “fit”                      gboolean

Attempt to fit the actor into the available space while respecting the actor's width-for-height or height-for-width constraints. The fill properties are ignored when this property is enabled.

Flags: Read / Write

Default value: FALSE


The “x-align” property

  “x-align”                  MxAlign

X alignment of the widget within the cell.

Flags: Read / Write

Default value: MX_ALIGN_MIDDLE


The “x-fill” property

  “x-fill”                   gboolean

Whether the child should receive priority when the container is allocating spare space on the horizontal axis.

Flags: Read / Write

Default value: TRUE


The “y-align” property

  “y-align”                  MxAlign

Y alignment of the widget within the cell.

Flags: Read / Write

Default value: MX_ALIGN_MIDDLE


The “y-fill” property

  “y-fill”                   gboolean

Whether the child should receive priority when the container is allocating spare space on the vertical axis.

Flags: Read / Write

Default value: TRUE