Gtk.Cell_Area_Box

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

The Gtk.Cell_Area_Box.Gtk_Cell_Area_Box renders cell renderers into a row or a column depending on its Gtk.Enums.Gtk_Orientation.

GtkCellAreaBox uses a notion of packing. Packing refers to adding cell renderers with reference to a particular position in a Gtk.Cell_Area_Box.Gtk_Cell_Area_Box. There are two reference positions: the start and the end of the box. When the Gtk.Cell_Area_Box.Gtk_Cell_Area_Box is oriented in the Gtk.Enums.Orientation_Vertical orientation, the start is defined as the top of the box and the end is defined as the bottom. In the Gtk.Enums.Orientation_Horizontal orientation start is defined as the left side and the end is defined as the right side.

Alignments of Gtk_Cell_Renderers rendered in adjacent rows can be configured by configuring the Gtk.Cell_Area_Box.Gtk_Cell_Area_Box align child cell property with Gtk.Cell_Area.Cell_Set_Property or by specifying the "align" argument to Gtk.Cell_Area_Box.Pack_Start and Gtk.Cell_Area_Box.Pack_End.

"+"

function "+"
  (Widget : access Gtk_Cell_Area_Box_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Cell_Area_Box_Record'Class)
return Gtk.Cell_Layout.Gtk_Cell_Layout
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Cell_Area_Box_Record'Class)
return Gtk.Orientable.Gtk_Orientable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Cell_Area_Box
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Cell_Layout.Gtk_Cell_Layout)
return Gtk_Cell_Area_Box
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Orientable.Gtk_Orientable)
return Gtk_Cell_Area_Box
Parameters
Interf
Return Value

Add_Attribute

procedure Add_Attribute
   (Cell_Layout : not null access Gtk_Cell_Area_Box_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Attribute   : UTF8_String;
    Column      : Glib.Gint)
Parameters
Cell_Layout
Cell
Attribute
Column

Clear

procedure Clear (Cell_Layout : not null access Gtk_Cell_Area_Box_Record)
Parameters
Cell_Layout

Clear_Attributes

procedure Clear_Attributes
   (Cell_Layout : not null access Gtk_Cell_Area_Box_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class)
Parameters
Cell_Layout
Cell

Get_Cells

function Get_Cells
   (Cell_Layout : not null access Gtk_Cell_Area_Box_Record)
    return Gtk.Cell_Renderer.Cell_Renderer_List.Glist
Parameters
Cell_Layout
Return Value

Get_Orientation

function Get_Orientation
   (Self : not null access Gtk_Cell_Area_Box_Record)
    return Gtk.Enums.Gtk_Orientation
Parameters
Self
Return Value

Get_Spacing

function Get_Spacing
   (Self : not null access Gtk_Cell_Area_Box_Record) return Glib.Gint

Gets the spacing added between cell renderers. Since: gtk+ 3.0

Parameters
Self
Return Value

the space added between cell renderers in Box.

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Cell_Area_Box

type Gtk_Cell_Area_Box is access all Gtk_Cell_Area_Box_Record'Class;

Gtk_Cell_Area_Box_New

function Gtk_Cell_Area_Box_New return Gtk_Cell_Area_Box

Creates a new Gtk.Cell_Area_Box.Gtk_Cell_Area_Box. Since: gtk+ 3.0

Return Value

Gtk_Cell_Area_Box_Record

type Gtk_Cell_Area_Box_Record is new Gtk_Cell_Area_Record with null record;

Gtk_Cell_Layout_Data_Func

type Gtk_Cell_Layout_Data_Func is access procedure
  (Cell_Layout : Gtk.Cell_Layout.Gtk_Cell_Layout;
   Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
   Tree_Model  : Gtk.Tree_Model.Gtk_Tree_Model;
   Iter        : Gtk.Tree_Model.Gtk_Tree_Iter);

A function which should set the value of Cell_Layout's cell renderer(s) as appropriate.

Parameters
Cell_Layout

a Gtk.Cell_Layout.Gtk_Cell_Layout

Cell

the cell renderer whose value is to be set

Tree_Model

the model

Iter

a Gtk.Tree_Model.Gtk_Tree_Iter indicating the row to set the value for

Gtk_New

procedure Gtk_New (Self : out Gtk_Cell_Area_Box)

Creates a new Gtk.Cell_Area_Box.Gtk_Cell_Area_Box. Since: gtk+ 3.0 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Cell_Area_Box_Record, Gtk_Cell_Area_Box);

Implements_Gtk_Cell_Layout

package Implements_Gtk_Cell_Layout is new Glib.Types.Implements
  (Gtk.Cell_Layout.Gtk_Cell_Layout, Gtk_Cell_Area_Box_Record, Gtk_Cell_Area_Box);

Implements_Gtk_Orientable

package Implements_Gtk_Orientable is new Glib.Types.Implements
  (Gtk.Orientable.Gtk_Orientable, Gtk_Cell_Area_Box_Record, Gtk_Cell_Area_Box);

Initialize

procedure Initialize
   (Self : not null access Gtk_Cell_Area_Box_Record'Class)

Creates a new Gtk.Cell_Area_Box.Gtk_Cell_Area_Box. Since: gtk+ 3.0 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

Pack_End

procedure Pack_End
   (Cell_Layout : not null access Gtk_Cell_Area_Box_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Expand      : Boolean)
Parameters
Cell_Layout
Cell
Expand

Pack_End

procedure Pack_End
   (Self     : not null access Gtk_Cell_Area_Box_Record;
    Renderer : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Expand   : Boolean;
    Align    : Boolean;
    Fixed    : Boolean)

Adds Renderer to Box, packed with reference to the end of Box. The Renderer is packed after (away from end of) any other Gtk.Cell_Renderer.Gtk_Cell_Renderer packed with reference to the end of Box. Since: gtk+ 3.0

Parameters
Self
Renderer

the Gtk.Cell_Renderer.Gtk_Cell_Renderer to add

Expand

whether Renderer should receive extra space when the area receives more than its natural size

Align

whether Renderer should be aligned in adjacent rows

Fixed

whether Renderer should have the same size in all rows

Pack_Start

procedure Pack_Start
   (Cell_Layout : not null access Gtk_Cell_Area_Box_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Expand      : Boolean)
Parameters
Cell_Layout
Cell
Expand

Pack_Start

procedure Pack_Start
   (Self     : not null access Gtk_Cell_Area_Box_Record;
    Renderer : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Expand   : Boolean;
    Align    : Boolean;
    Fixed    : Boolean)

Adds Renderer to Box, packed with reference to the start of Box. The Renderer is packed after any other Gtk.Cell_Renderer.Gtk_Cell_Renderer packed with reference to the start of Box. Since: gtk+ 3.0

Parameters
Self
Renderer

the Gtk.Cell_Renderer.Gtk_Cell_Renderer to add

Expand

whether Renderer should receive extra space when the area receives more than its natural size

Align

whether Renderer should be aligned in adjacent rows

Fixed

whether Renderer should have the same size in all rows

Reorder

procedure Reorder
   (Cell_Layout : not null access Gtk_Cell_Area_Box_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Position    : Glib.Gint)
Parameters
Cell_Layout
Cell
Position

Set_Cell_Data_Func

procedure Set_Cell_Data_Func
   (Cell_Layout : not null access Gtk_Cell_Area_Box_Record;
    Cell        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
    Func        : Gtk_Cell_Layout_Data_Func)

Sets the Gtk_Cell_Layout_Data_Func to use for Cell_Layout. This function is used instead of the standard attributes mapping for setting the column value, and should set the value of Cell_Layout's cell renderer(s) as appropriate. Func may be null to remove a previously set function. Since: gtk+ 2.4

Parameters
Cell_Layout
Cell

a Gtk.Cell_Renderer.Gtk_Cell_Renderer

Func

the Gtk_Cell_Layout_Data_Func to use, or null

Set_Orientation

procedure Set_Orientation
   (Self        : not null access Gtk_Cell_Area_Box_Record;
    Orientation : Gtk.Enums.Gtk_Orientation)
Parameters
Self
Orientation

Set_Spacing

procedure Set_Spacing
   (Self    : not null access Gtk_Cell_Area_Box_Record;
    Spacing : Glib.Gint)

Sets the spacing to add between cell renderers in Box. Since: gtk+ 3.0

Parameters
Self
Spacing

the space to add between Gtk_Cell_Renderers

Spacing_Property

Spacing_Property : constant Glib.Properties.Property_Int;

The amount of space to reserve between cells.