Index

Package: Sheet

Description

package Gtk.Extra.Sheet is

A Gtk_Sheet is a table like the one you can find in most spreadsheets.

Each cell can contain some text or any kind of widgets.

Binding from C File version gtkextra 2.1.1

<testgtk>create_sheet.adb</testgtk>

Screenshot

gtk-sheet.png

Packages

Links (generic)

Classes

Gtk_Sheet_Record

type Gtk_Sheet_Record is new Gtk.Container.Gtk_Container_Record
     with private;

Ancestors:

Primitive operations:

Attach_Floating
Button_Attach
Cell_Get_State
Cell_Get_Text
Change_Entry
Column_Button_Add_Label
Column_Button_Get_Label
Column_Button_Justify
Column_Label_Set_Visibility
Column_Set_Justification
Column_Set_Sensitivity
Column_Set_Visibility
Column_Titles_Visible
Columns_Labels_Set_Visibility
Columns_Resizable
Columns_Set_Resizable
Columns_Set_Sensitivity
Delete_Columns
Get_Active_Cell
Get_Cell_Area
Get_Child_At
Get_Column_Title
Get_Column_Width
Get_Columns_Count
Get_Entry_Widget
Get_Hadjustment
Get_Pixel_Info
Get_Row_Height
Get_Row_Title
Get_Rows_Count
Get_Vadjustment
Get_Visible_Range
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Grid_Visible
Gtk.Container.Add (Inherited)
Gtk.Container.Check_Resize (Inherited)
Gtk.Container.Child_Get_Property (Inherited)
Gtk.Container.Child_Set_Property (Inherited)
Gtk.Container.Child_Type (Inherited)
Gtk.Container.Forall (Inherited)
Gtk.Container.Foreach (Inherited)
Gtk.Container.Get_Border_Width (Inherited)
Gtk.Container.Get_Children (Inherited)
Gtk.Container.Get_Focus_Chain (Inherited)
Gtk.Container.Get_Focus_Child (Inherited)
Gtk.Container.Get_Focus_Hadjustment (Inherited)
Gtk.Container.Get_Focus_Vadjustment (Inherited)
Gtk.Container.Get_Resize_Mode (Inherited)
Gtk.Container.Propagate_Expose (Inherited)
Gtk.Container.Remove (Inherited)
Gtk.Container.Resize_Children (Inherited)
Gtk.Container.Set_Border_Width (Inherited)
Gtk.Container.Set_Focus_Chain (Inherited)
Gtk.Container.Set_Focus_Child (Inherited)
Gtk.Container.Set_Focus_Hadjustment (Inherited)
Gtk.Container.Set_Focus_Vadjustment (Inherited)
Gtk.Container.Set_Reallocate_Redraws (Inherited)
Gtk.Container.Set_Resize_Mode (Inherited)
Gtk.Container.Unset_Focus_Chain (Inherited)
Gtk.Widget.Activate (Inherited)
Gtk.Widget.Add_Accelerator (Inherited)
Gtk.Widget.Add_Events (Inherited)
Gtk.Widget.Add_Mnemonic_Label (Inherited)
Gtk.Widget.Can_Activate_Accel (Inherited)
Gtk.Widget.Child_Notify (Inherited)
Gtk.Widget.Class_Path (Inherited)
Gtk.Widget.Class_Path_Reversed (Inherited)
Gtk.Widget.Create_Pango_Context (Inherited)
Gtk.Widget.Create_Pango_Layout (Inherited)
Gtk.Widget.Destroy (Inherited)
Gtk.Widget.Draw (Inherited)
Gtk.Widget.Ensure_Style (Inherited)
Gtk.Widget.Error_Bell (Inherited)
Gtk.Widget.Flag_Is_Set (Inherited)
Gtk.Widget.Flags (Inherited)
Gtk.Widget.Freeze_Child_Notify (Inherited)
Gtk.Widget.Get_Allocation_Height (Inherited)
Gtk.Widget.Get_Allocation_Width (Inherited)
Gtk.Widget.Get_Allocation_X (Inherited)
Gtk.Widget.Get_Allocation_Y (Inherited)
Gtk.Widget.Get_Ancestor (Inherited)
Gtk.Widget.Get_Child_Requisition (Inherited)
Gtk.Widget.Get_Child_Visible (Inherited)
Gtk.Widget.Get_Colormap (Inherited)
Gtk.Widget.Get_Composite_Name (Inherited)
Gtk.Widget.Get_Direction (Inherited)
Gtk.Widget.Get_Events (Inherited)
Gtk.Widget.Get_Extension_Events (Inherited)
Gtk.Widget.Get_Has_Tooltip (Inherited)
Gtk.Widget.Get_Name (Inherited)
Gtk.Widget.Get_No_Show_All (Inherited)
Gtk.Widget.Get_Pango_Context (Inherited)
Gtk.Widget.Get_Parent (Inherited)
Gtk.Widget.Get_Parent_Window (Inherited)
Gtk.Widget.Get_Pointer (Inherited)
Gtk.Widget.Get_Root_Window (Inherited)
Gtk.Widget.Get_Size_Request (Inherited)
Gtk.Widget.Get_Snapshot (Inherited)
Gtk.Widget.Get_State (Inherited)
Gtk.Widget.Get_Style (Inherited)
Gtk.Widget.Get_Tooltip_Markup (Inherited)
Gtk.Widget.Get_Tooltip_Text (Inherited)
Gtk.Widget.Get_Tooltip_Window (Inherited)
Gtk.Widget.Get_Toplevel (Inherited)
Gtk.Widget.Get_Visual (Inherited)
Gtk.Widget.Get_Window (Inherited)
Gtk.Widget.Grab_Default (Inherited)
Gtk.Widget.Grab_Focus (Inherited)
Gtk.Widget.Has_Screen (Inherited)
Gtk.Widget.Hide (Inherited)
Gtk.Widget.Hide_All (Inherited)
Gtk.Widget.Input_Shape_Combine_Mask (Inherited)
Gtk.Widget.Intersect (Inherited)
Gtk.Widget.Is_Ancestor (Inherited)
Gtk.Widget.Is_Composited (Inherited)
Gtk.Widget.Is_Focus (Inherited)
Gtk.Widget.Keynav_Failed (Inherited)
Gtk.Widget.List_Mnemonic_Labels (Inherited)
Gtk.Widget.Map (Inherited)
Gtk.Widget.Mnemonic_Activate (Inherited)
Gtk.Widget.Modify_Base (Inherited)
Gtk.Widget.Modify_Bg (Inherited)
Gtk.Widget.Modify_Cursor (Inherited)
Gtk.Widget.Modify_Fg (Inherited)
Gtk.Widget.Modify_Font (Inherited)
Gtk.Widget.Modify_Text (Inherited)
Gtk.Widget.Path (Inherited)
Gtk.Widget.Path_Reversed (Inherited)
Gtk.Widget.Queue_Clear (Inherited)
Gtk.Widget.Queue_Clear_Area (Inherited)
Gtk.Widget.Queue_Draw (Inherited)
Gtk.Widget.Queue_Draw_Area (Inherited)
Gtk.Widget.Queue_Resize (Inherited)
Gtk.Widget.Queue_Resize_No_Redraw (Inherited)
Gtk.Widget.Realize (Inherited)
Gtk.Widget.Region_Intersect (Inherited)
Gtk.Widget.Remove_Accelerator (Inherited)
Gtk.Widget.Remove_Mnemonic_Label (Inherited)
Gtk.Widget.Render_Icon (Inherited)
Gtk.Widget.Reparent (Inherited)
Gtk.Widget.Reset_Rc_Styles (Inherited)
Gtk.Widget.Reset_Shapes (Inherited)
Gtk.Widget.Restore_Default_Style (Inherited)
Gtk.Widget.Send_Expose (Inherited)
Gtk.Widget.Set_Accel_Path (Inherited)
Gtk.Widget.Set_App_Paintable (Inherited)
Gtk.Widget.Set_Child_Visible (Inherited)
Gtk.Widget.Set_Colormap (Inherited)
Gtk.Widget.Set_Composite_Name (Inherited)
Gtk.Widget.Set_Direction (Inherited)
Gtk.Widget.Set_Double_Buffered (Inherited)
Gtk.Widget.Set_Events (Inherited)
Gtk.Widget.Set_Extension_Events (Inherited)
Gtk.Widget.Set_Flags (Inherited)
Gtk.Widget.Set_Has_Tooltip (Inherited)
Gtk.Widget.Set_Name (Inherited)
Gtk.Widget.Set_No_Show_All (Inherited)
Gtk.Widget.Set_Parent (Inherited)
Gtk.Widget.Set_Parent_Window (Inherited)
Gtk.Widget.Set_Redraw_On_Allocate (Inherited)
Gtk.Widget.Set_Scroll_Adjustments (Inherited)
Gtk.Widget.Set_Sensitive (Inherited)
Gtk.Widget.Set_Size_Request (Inherited)
Gtk.Widget.Set_State (Inherited)
Gtk.Widget.Set_Style (Inherited)
Gtk.Widget.Set_Tooltip_Markup (Inherited)
Gtk.Widget.Set_Tooltip_Text (Inherited)
Gtk.Widget.Set_Tooltip_Window (Inherited)
Gtk.Widget.Set_UPosition (Inherited)
Gtk.Widget.Set_USize (Inherited)
Gtk.Widget.Set_Window (Inherited)
Gtk.Widget.Shape_Combine_Mask (Inherited)
Gtk.Widget.Show (Inherited)
Gtk.Widget.Show_All (Inherited)
Gtk.Widget.Show_Now (Inherited)
Gtk.Widget.Size_Allocate (Inherited)
Gtk.Widget.Size_Request (Inherited)
Gtk.Widget.Style_Get_Property (Inherited)
Gtk.Widget.Thaw_Child_Notify (Inherited)
Gtk.Widget.Trigger_Tooltip_Query (Inherited)
Gtk.Widget.Unmap (Inherited)
Gtk.Widget.Unrealize (Inherited)
Gtk.Widget.Unset_Flags (Inherited)
Hide_Column_Titles
Hide_Row_Titles
Insert_Columns
Justify_Entry
Range_Delete
Range_Set_Background
Range_Set_Border
Range_Set_Border_Color
Range_Set_Editable
Range_Set_Font
Range_Set_Foreground
Range_Set_Justification
Range_Set_Visible
Row_Button_Add_Label
Row_Button_Get_Label
Row_Button_Justify
Row_Label_Set_Visibility
Row_Set_Sensitivity
Row_Set_Visibility
Row_Titles_Visible
Rows_Labels_Set_Visibility
Rows_Resizable
Rows_Set_Resizable
Rows_Set_Sensitivity
Select_Column
Select_Range
Set_Active_Cell
Set_Autoresize
Set_Autoscroll
Set_Background
Set_Cell_Text
Set_Clip_Text
Set_Column_Title
Set_Column_Titles_Height
Set_Column_Width
Set_Hadjustment
Set_Justify_Entry
Set_Row_Height
Set_Row_Title
Set_Row_Titles_Width
Set_Selection_Mode
Set_Vadjustment
Show_Column_Titles
Show_Row_Titles
Unclip_Range
Unselect_Range

Gtk_Sheet_Child_Record

type Gtk_Sheet_Child_Record is
     new Gtk.Widget.Gtk_Widget_Record with private;

Ancestors:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Widget.Activate (Inherited)
Gtk.Widget.Add_Accelerator (Inherited)
Gtk.Widget.Add_Events (Inherited)
Gtk.Widget.Add_Mnemonic_Label (Inherited)
Gtk.Widget.Can_Activate_Accel (Inherited)
Gtk.Widget.Child_Notify (Inherited)
Gtk.Widget.Class_Path (Inherited)
Gtk.Widget.Class_Path_Reversed (Inherited)
Gtk.Widget.Create_Pango_Context (Inherited)
Gtk.Widget.Create_Pango_Layout (Inherited)
Gtk.Widget.Destroy (Inherited)
Gtk.Widget.Draw (Inherited)
Gtk.Widget.Ensure_Style (Inherited)
Gtk.Widget.Error_Bell (Inherited)
Gtk.Widget.Flag_Is_Set (Inherited)
Gtk.Widget.Flags (Inherited)
Gtk.Widget.Freeze_Child_Notify (Inherited)
Gtk.Widget.Get_Allocation_Height (Inherited)
Gtk.Widget.Get_Allocation_Width (Inherited)
Gtk.Widget.Get_Allocation_X (Inherited)
Gtk.Widget.Get_Allocation_Y (Inherited)
Gtk.Widget.Get_Ancestor (Inherited)
Gtk.Widget.Get_Child_Requisition (Inherited)
Gtk.Widget.Get_Child_Visible (Inherited)
Gtk.Widget.Get_Colormap (Inherited)
Gtk.Widget.Get_Composite_Name (Inherited)
Gtk.Widget.Get_Direction (Inherited)
Gtk.Widget.Get_Events (Inherited)
Gtk.Widget.Get_Extension_Events (Inherited)
Gtk.Widget.Get_Has_Tooltip (Inherited)
Gtk.Widget.Get_Name (Inherited)
Gtk.Widget.Get_No_Show_All (Inherited)
Gtk.Widget.Get_Pango_Context (Inherited)
Gtk.Widget.Get_Parent (Inherited)
Gtk.Widget.Get_Parent_Window (Inherited)
Gtk.Widget.Get_Pointer (Inherited)
Gtk.Widget.Get_Root_Window (Inherited)
Gtk.Widget.Get_Size_Request (Inherited)
Gtk.Widget.Get_Snapshot (Inherited)
Gtk.Widget.Get_State (Inherited)
Gtk.Widget.Get_Style (Inherited)
Gtk.Widget.Get_Tooltip_Markup (Inherited)
Gtk.Widget.Get_Tooltip_Text (Inherited)
Gtk.Widget.Get_Tooltip_Window (Inherited)
Gtk.Widget.Get_Toplevel (Inherited)
Gtk.Widget.Get_Visual (Inherited)
Gtk.Widget.Get_Window (Inherited)
Gtk.Widget.Grab_Default (Inherited)
Gtk.Widget.Grab_Focus (Inherited)
Gtk.Widget.Has_Screen (Inherited)
Gtk.Widget.Hide (Inherited)
Gtk.Widget.Hide_All (Inherited)
Gtk.Widget.Input_Shape_Combine_Mask (Inherited)
Gtk.Widget.Intersect (Inherited)
Gtk.Widget.Is_Ancestor (Inherited)
Gtk.Widget.Is_Composited (Inherited)
Gtk.Widget.Is_Focus (Inherited)
Gtk.Widget.Keynav_Failed (Inherited)
Gtk.Widget.List_Mnemonic_Labels (Inherited)
Gtk.Widget.Map (Inherited)
Gtk.Widget.Mnemonic_Activate (Inherited)
Gtk.Widget.Modify_Base (Inherited)
Gtk.Widget.Modify_Bg (Inherited)
Gtk.Widget.Modify_Cursor (Inherited)
Gtk.Widget.Modify_Fg (Inherited)
Gtk.Widget.Modify_Font (Inherited)
Gtk.Widget.Modify_Text (Inherited)
Gtk.Widget.Path (Inherited)
Gtk.Widget.Path_Reversed (Inherited)
Gtk.Widget.Queue_Clear (Inherited)
Gtk.Widget.Queue_Clear_Area (Inherited)
Gtk.Widget.Queue_Draw (Inherited)
Gtk.Widget.Queue_Draw_Area (Inherited)
Gtk.Widget.Queue_Resize (Inherited)
Gtk.Widget.Queue_Resize_No_Redraw (Inherited)
Gtk.Widget.Realize (Inherited)
Gtk.Widget.Region_Intersect (Inherited)
Gtk.Widget.Remove_Accelerator (Inherited)
Gtk.Widget.Remove_Mnemonic_Label (Inherited)
Gtk.Widget.Render_Icon (Inherited)
Gtk.Widget.Reparent (Inherited)
Gtk.Widget.Reset_Rc_Styles (Inherited)
Gtk.Widget.Reset_Shapes (Inherited)
Gtk.Widget.Restore_Default_Style (Inherited)
Gtk.Widget.Send_Expose (Inherited)
Gtk.Widget.Set_Accel_Path (Inherited)
Gtk.Widget.Set_App_Paintable (Inherited)
Gtk.Widget.Set_Child_Visible (Inherited)
Gtk.Widget.Set_Colormap (Inherited)
Gtk.Widget.Set_Composite_Name (Inherited)
Gtk.Widget.Set_Direction (Inherited)
Gtk.Widget.Set_Double_Buffered (Inherited)
Gtk.Widget.Set_Events (Inherited)
Gtk.Widget.Set_Extension_Events (Inherited)
Gtk.Widget.Set_Flags (Inherited)
Gtk.Widget.Set_Has_Tooltip (Inherited)
Gtk.Widget.Set_Name (Inherited)
Gtk.Widget.Set_No_Show_All (Inherited)
Gtk.Widget.Set_Parent (Inherited)
Gtk.Widget.Set_Parent_Window (Inherited)
Gtk.Widget.Set_Redraw_On_Allocate (Inherited)
Gtk.Widget.Set_Scroll_Adjustments (Inherited)
Gtk.Widget.Set_Sensitive (Inherited)
Gtk.Widget.Set_Size_Request (Inherited)
Gtk.Widget.Set_State (Inherited)
Gtk.Widget.Set_Style (Inherited)
Gtk.Widget.Set_Tooltip_Markup (Inherited)
Gtk.Widget.Set_Tooltip_Text (Inherited)
Gtk.Widget.Set_Tooltip_Window (Inherited)
Gtk.Widget.Set_UPosition (Inherited)
Gtk.Widget.Set_USize (Inherited)
Gtk.Widget.Set_Window (Inherited)
Gtk.Widget.Shape_Combine_Mask (Inherited)
Gtk.Widget.Show (Inherited)
Gtk.Widget.Show_All (Inherited)
Gtk.Widget.Show_Now (Inherited)
Gtk.Widget.Size_Allocate (Inherited)
Gtk.Widget.Size_Request (Inherited)
Gtk.Widget.Style_Get_Property (Inherited)
Gtk.Widget.Thaw_Child_Notify (Inherited)
Gtk.Widget.Trigger_Tooltip_Query (Inherited)
Gtk.Widget.Unmap (Inherited)
Gtk.Widget.Unrealize (Inherited)
Gtk.Widget.Unset_Flags (Inherited)

Types

Gtk_Sheet

type Gtk_Sheet is access all Gtk_Sheet_Record'Class;

Gtk_Sheet_Range_Record

type Gtk_Sheet_Range_Record is record
      Row0, Col0 : Gint;  --  Upper-left cell
      Rowi, Coli : Gint;  --  Lower-Right cell
   end record;

Gtk_Sheet_Range

type Gtk_Sheet_Range is access all Gtk_Sheet_Range_Record;
A range in the sheet. This is a part of the sheet represented by its upper-left cell and its lower-right cell. Most operations below apply to such ranges.

Gtk_Sheet_Child

type Gtk_Sheet_Child is access all Gtk_Sheet_Child_Record'Class;
A widget insert in the sheet. This structure includes both a widget pointer and the position in the table in which it is put.

Sheet_Attr_Type

type Sheet_Attr_Type is
     (Sheet_Foreground,
      Sheet_Background,
      Sheet_Font,
      Sheet_Justification,
      Sheet_Border,
      Sheet_Border_Color,
      Sheet_Is_Editable,
      Sheet_Is_Visible);
<doc_ignore>

Sheet_State

type Sheet_State is
     (Sheet_Normal,
      Sheet_Row_Selected,
      Sheet_Column_Selected,
      Sheet_Range_Selected);
The state of the selection.

Gtk_Sheet_Border

type Gtk_Sheet_Border is new Integer;
Mask that indicates which borders should be visible in a cell.

Constants & Global variables

Left_Border (Gtk_Sheet_Border)

Left_Border   : constant Gtk_Sheet_Border;

Right_Border (Gtk_Sheet_Border)

Right_Border  : constant Gtk_Sheet_Border;

Top_Border (Gtk_Sheet_Border)

Top_Border    : constant Gtk_Sheet_Border;

Bottom_Border (Gtk_Sheet_Border)

Bottom_Border : constant Gtk_Sheet_Border;

All_Borders (Gtk_Sheet_Border)

All_Borders   : constant Gtk_Sheet_Border;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Sheet: out Gtk_Sheet;
Rows: Guint;
Columns: Guint;
Title: UTF8_String := "";
Entry_Type: Gtk_Type := GType_Invalid);
Create a new sheet with a specific number of rows and columns. You can fully specify which type the entry used to modify the value of cells should have. The value of Entry_Type can be found by using one of the Get_Type subprograms in the GtkAda packages. The Title is internal, and does not appear on the screen.

Initialize

procedure Initialize 
(Sheet: access Gtk_Sheet_Record'Class;
Rows: Guint;
Columns: Guint;
Title: UTF8_String := "";
Entry_Type: Gtk_Type := GType_Invalid);
Internal initialization function. See the section "Creating your own widgets" in the documentation.

Gtk_New_Browser

procedure Gtk_New_Browser 
(Sheet: out Gtk_Sheet;
Rows: Guint;
Columns: Guint;
Title: UTF8_String := "");
Create a new sheet browser with a specific number of rows and columns. This is a standard Gtk_Sheet, except that it is read-only and that its cells will automatically resize themselves depending on their contents.

Initialize_Browser

procedure Initialize_Browser 
(Sheet: access Gtk_Sheet_Record'Class;
Rows: in Guint;
Columns: in Guint;
Title: in UTF8_String := "");
Internal initialization function. See the section "Creating your own widgets" in the documentation.

Get_Type

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with a Gtk_Sheet.

Set_Hadjustment

procedure Set_Hadjustment 
(Sheet: access Gtk_Sheet_Record;
Adjustment: access Gtk_Adjustment_Record'Class);
Change the horizontal adjustment. It indicates what range of columns is visible.

Set_Vadjustment

procedure Set_Vadjustment 
(Sheet: access Gtk_Sheet_Record;
Adjustment: access Gtk_Adjustment_Record'Class);
Change the vertical adjustment. It indicates what range of rows is visible.

Get_Vadjustment

function Get_Vadjustment 
(Sheet: access Gtk_Sheet_Record) return Gtk.Adjustment.Gtk_Adjustment;
Return the adjustment used to indicate the range of visible rows.

Get_Hadjustment

function Get_Hadjustment 
(Sheet: access Gtk_Sheet_Record) return Gtk.Adjustment.Gtk_Adjustment;
Return the adjustment used to indicate the range of visible columns.

Change_Entry

procedure Change_Entry 
(Sheet: access Gtk_Sheet_Record;
Entry_Type: Gtk_Type);
Change the type of widget used to interactively modify the value of the cells.

Get_Entry

function Get_Entry 
(Sheet: access Gtk_Sheet_Record) return Gtk.GEntry.Gtk_Entry;
Return the entry used to modify the content of the cells. This can be the same widget as Get_Entry_Widget, if set, or some default widget associated with the specific child otherwise

Get_Entry_Widget

function Get_Entry_Widget 
(Sheet: access Gtk_Sheet_Record) return Gtk.Widget.Gtk_Widget;
Return the entry used to modify the content of the cells.

Set_Title

procedure Set_Title 
(Sheet: access Gtk_Sheet_Record;
Title: UTF8_String);
Change the title of the sheet.

Freeze

procedure Freeze 
(Sheet: access Gtk_Sheet_Record);
Freeze all visual updates of the sheet, until you thaw it. The update will occur in a more efficient way.

Thaw

procedure Thaw 
(Sheet: access Gtk_Sheet_Record);
Thaw the sheet, so that visual updates occur again. Note that you have to call Thaw as many times as you have called Freeze to actually thaw the widget.

Moveto

procedure Moveto 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Column: Gint;
Row_Align: Gfloat;
Col_Align: Gfloat);
Scroll the viewing area to (Row, Column). (Row_Align, Col_Align) represent the location on the screen that the cell should appear at. (0.0, 0.0) is at the top-left of the screen, whereas (1.0, 1.0) is at the bottom-right corner. If Row or Column is negative, there is no change.

Set_Background

procedure Set_Background 
(Sheet: access Gtk_Sheet_Record;
Color: Gdk.Color.Gdk_Color);
Change the background color of the cells.

Set_Grid

procedure Set_Grid 
(Sheet: access Gtk_Sheet_Record;
Color: Gdk.Color.Gdk_Color);
Set the color to use for the grid.

Show_Grid

procedure Show_Grid 
(Sheet: access Gtk_Sheet_Record;
Show: Boolean);
Whether the grid should be made visible

Grid_Visible

function Grid_Visible 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether the grid is currently visible

Get_State

function Get_State 
(Sheet: access Gtk_Sheet_Record) return Sheet_State;
Return the status of the selection in the sheet.

Get_Range

function Get_Range 
(Sheet: access Gtk_Sheet_Record) return Gtk_Sheet_Range;
Return the selected range.

Get_Visible_Range

procedure Get_Visible_Range 
(Sheet: access Gtk_Sheet_Record;
The_Range: out Gtk_Sheet_Range);
Return the range visible on the screen.

Set_Selection_Mode

procedure Set_Selection_Mode 
(Sheet: access Gtk_Sheet_Record;
Mode: Gtk.Enums.Gtk_Selection_Mode);
Change the selection mode.

Select_Column

procedure Select_Column 
(Sheet: access Gtk_Sheet_Record;
Column: Gint);
Replace the current selection with a specific column. The range is highlighted.

Select_Row

procedure Select_Row 
(Sheet: access Gtk_Sheet_Record;
Row: Gint);
Replace the current selection with a specific row. The range is highlighted.

Set_Autoresize

procedure Set_Autoresize 
(Sheet: access Gtk_Sheet_Record;
Autoresize: Boolean);
Whether cells should automatically resize to fit their contents

Autoresize

function Autoresize 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether cells automatically resize to fit their contents

Set_Autoscroll

procedure Set_Autoscroll 
(Sheet: access Gtk_Sheet_Record;
Autoscroll: Boolean);
Whether the sheet should automatically scroll to show the active cell at all times.

Autoscroll

function Autoscroll 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether the sheet automatically scrolls to show the active cell at all times.

Set_Clip_Text

procedure Set_Clip_Text 
(Sheet: access Gtk_Sheet_Record;
Clip: Boolean);
Set when the text contained in the cells is automatically clipped to their width.

Clip_Text

function Clip_Text 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether the text contained in the cells is automatically clipped to their width.

Set_Justify_Entry

procedure Set_Justify_Entry 
(Sheet: access Gtk_Sheet_Record;
Justify_Entry: Boolean);
Set when the justification attribute for entries should be taken into account

Justify_Entry

function Justify_Entry 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether the justification attribute is used for entries

Set_Locked

procedure Set_Locked 
(Sheet: access Gtk_Sheet_Record;
Locked: Boolean);
If Locked is true, the cells are no longer editable

Locked

function Locked 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether cells are currently read-only

Select_Range

procedure Select_Range 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range);
Select a new range of cells.

Unselect_Range

procedure Unselect_Range 
(Sheet: access Gtk_Sheet_Record);
Unselect a specific range of cells. If null is passed, the current selected range is used.

Clip_Range

procedure Clip_Range 
(Sheet: access Gtk_Sheet_Record;
The_Range: in Gtk_Sheet_Range);
Create a new clip range, which is copied to the clipboard That range is flashed on the screen.

Unclip_Range

procedure Unclip_Range 
(Sheet: access Gtk_Sheet_Record);
Destroy the clip area.

In_Clip

function In_Clip 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether a range was copied to the clipboard

Set_Active_Cell

function Set_Active_Cell 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Column: Gint) return Boolean;
Set active cell where the entry will be displayed. Returns FALSE if the current cell can not be deactivated or if the requested cell can't be activated. Depending on the value passed to Set_Autoscroll, the sheet might be scrolled.

Get_Active_Cell

procedure Get_Active_Cell 
(Sheet: access Gtk_Sheet_Record;
Row: out Gint;
Column: out Gint);
Return the coordinates of the active cell. This is the cell that the user is currently editing.

Set_Column_Title

procedure Set_Column_Title 
(Sheet: access Gtk_Sheet_Record;
Column: Gint;
Title: UTF8_String);
Modify the title of a column. The first column on the left has the number 0. Note that this title does not appear on the screen, and can only be used internally to find a specific column.

Get_Column_Title

function Get_Column_Title 
(Sheet: access Gtk_Sheet_Record;
Column: Gint) return UTF8_String;
Return the title of a specific column.

Set_Column_Titles_Height

procedure Set_Column_Titles_Height 
(Sheet: access Gtk_Sheet_Record;
Height: Guint);
Modify the height of the row in which the column titles appear.

Column_Button_Add_Label

procedure Column_Button_Add_Label 
(Sheet: access Gtk_Sheet_Record;
Column: Gint;
Label: UTF8_String);
Modify the label of the button that appears at the top of each column.

Column_Button_Get_Label

function Column_Button_Get_Label 
(Sheet: access Gtk_Sheet_Record;
Column: Gint) return UTF8_String;
Return the label for the button that appears at the top of each column

Column_Button_Justify

procedure Column_Button_Justify 
(Sheet: access Gtk_Sheet_Record;
Column: Gint;
Justification: Gtk.Enums.Gtk_Justification);
Modify the justification for the label in the column button.

Show_Column_Titles

procedure Show_Column_Titles 
(Sheet: access Gtk_Sheet_Record);
Show the row in which the column titles appear.

Hide_Column_Titles

procedure Hide_Column_Titles 
(Sheet: access Gtk_Sheet_Record);
Hide the row in which the column titles appear.

Column_Titles_Visible

function Column_Titles_Visible 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether a special row is added at the top to show the title of the columns.

Columns_Set_Sensitivity

procedure Columns_Set_Sensitivity 
(Sheet: access Gtk_Sheet_Record;
Sensitive: Boolean);
Modify the sensitivity of all the columns. If Sensitive is False, the columns can not be resized dynamically. This also modifies the sensitivity of the button at the top of the columns.

Column_Set_Sensitivity

procedure Column_Set_Sensitivity 
(Sheet: access Gtk_Sheet_Record;
Column: Gint;
Sensitive: Boolean);
Modify the sensitivity of a specific column and its title button. If Sensitive if False, the column can not be dynamically resized.

Column_Set_Visibility

procedure Column_Set_Visibility 
(Sheet: access Gtk_Sheet_Record;
Column: Gint;
Visible: Boolean);
Change the visibility of a column.

Columns_Set_Resizable

procedure Columns_Set_Resizable 
(Sheet: access Gtk_Sheet_Record;
Resizable: Boolean);
Whether columns are resizable

Columns_Resizable

function Columns_Resizable 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether columns are resizable

Column_Label_Set_Visibility

procedure Column_Label_Set_Visibility 
(Sheet: access Gtk_Sheet_Record;
Column: Gint;
Visible: Boolean := True);
Change the visibility of the label in a given column.

Columns_Labels_Set_Visibility

procedure Columns_Labels_Set_Visibility 
(Sheet: access Gtk_Sheet_Record;
Visible: Boolean := True);
Change the visibility for all the column labels.

Set_Column_Width

procedure Set_Column_Width 
(Sheet: access Gtk_Sheet_Record;
Column: Gint;
Width: Guint);
Modify the width in pixels of a specific column.

Get_Column_Width

function Get_Column_Width 
(Sheet: access Gtk_Sheet_Record;
Column: in Gint) return Gint;
Return the width in pixels of the Column-nth in Sheet.

Add_Column

procedure Add_Column 
(Sheet: access Gtk_Sheet_Record;
Ncols: Guint);
Add some empty columns at the end of the sheet.

Insert_Columns

procedure Insert_Columns 
(Sheet: access Gtk_Sheet_Record;
Col: Guint;
Ncols: Guint);
Add Ncols empty columns just before the columns number Col.

Delete_Columns

procedure Delete_Columns 
(Sheet: access Gtk_Sheet_Record;
Col: Guint;
Ncols: Guint);
Delete Ncols columns starting from Col.

Column_Set_Justification

procedure Column_Set_Justification 
(Sheet: access Gtk_Sheet_Record;
Column: Gint;
Justification: Gtk.Enums.Gtk_Justification);
Set the default justification for the cells in the specific column.

Get_Columns_Count

function Get_Columns_Count 
(Sheet: access Gtk_Sheet_Record) return Guint;
Return the maximum column number of the displayed cells.

Set_Row_Title

procedure Set_Row_Title 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Title: UTF8_String);
Modify the title of a row. The first row at the top has the number 0. Note that this title does not appear on the screen, and can only be used internally to find a specific row.

Get_Row_Title

function Get_Row_Title 
(Sheet: access Gtk_Sheet_Record;
Row: Gint) return UTF8_String;
Return the title of a specific row.

Set_Row_Titles_Width

procedure Set_Row_Titles_Width 
(Sheet: access Gtk_Sheet_Record;
Width: Guint);
Modify the width of the column that has the row titles.

Row_Button_Add_Label

procedure Row_Button_Add_Label 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Label: UTF8_String);
Modify the label of the button that appears on the left of each row.

Row_Button_Get_Label

function Row_Button_Get_Label 
(Sheet: access Gtk_Sheet_Record;
Row: Gint) return UTF8_String;
Return the label for the button that appears on the left of each row.

Row_Button_Justify

procedure Row_Button_Justify 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Justification: Gtk.Enums.Gtk_Justification);
Modify the justification for the label of the row button.

Show_Row_Titles

procedure Show_Row_Titles 
(Sheet: access Gtk_Sheet_Record);
Show the column in which the row titles appear.

Hide_Row_Titles

procedure Hide_Row_Titles 
(Sheet: access Gtk_Sheet_Record);
Hide the column in which the row titles appear.

Row_Titles_Visible

function Row_Titles_Visible 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether a special column is added to the left to show the title of the rows.

Rows_Set_Sensitivity

procedure Rows_Set_Sensitivity 
(Sheet: access Gtk_Sheet_Record;
Sensitive: in Boolean);
Modify the sensitivity of all the rows. If Sensitive is False, the rows can not be resized dynamically. This also modifies the sensitivity of the button at the left of the row.

Row_Set_Sensitivity

procedure Row_Set_Sensitivity 
(Sheet: access Gtk_Sheet_Record;
Row: in Gint;
Sensitive: in Boolean);
Modify the sensitivity of a specific row and its title button. If Sensitive if False, the row can not be dynamically resized.

Row_Set_Visibility

procedure Row_Set_Visibility 
(Sheet: access Gtk_Sheet_Record;
Row: in Gint;
Visible: in Boolean);
Modify the visibility of a specific row

Row_Label_Set_Visibility

procedure Row_Label_Set_Visibility 
(Sheet: access Gtk_Sheet_Record;
Row: in Gint;
Visible: in Boolean := True);
Change the visibility of the label in a given Row.

Rows_Labels_Set_Visibility

procedure Rows_Labels_Set_Visibility 
(Sheet: access Gtk_Sheet_Record;
Visible: Boolean := True);
Change the visibility for all the row labels.

Rows_Set_Resizable

procedure Rows_Set_Resizable 
(Sheet: access Gtk_Sheet_Record;
Resizable: Boolean);
Whether rows are resizable

Rows_Resizable

function Rows_Resizable 
(Sheet: access Gtk_Sheet_Record) return Boolean;
Whether rows are resizable

Set_Row_Height

procedure Set_Row_Height 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Height: Guint);
Set the height in pixels of a specific row.

Get_Row_Height

function Get_Row_Height 
(Sheet: access Gtk_Sheet_Record;
Row: in Gint) return Gint;
Return the height in pixels of the Row-th row in Sheet.

Add_Row

procedure Add_Row 
(Sheet: access Gtk_Sheet_Record;
Nrows: Guint);
Append Nrows row at the end of the sheet.

Insert_Rows

procedure Insert_Rows 
(Sheet: access Gtk_Sheet_Record;
Row: Guint;
Nrows: Guint);
Add Nrows empty rows just before the row number Row.

Delete_Rows

procedure Delete_Rows 
(Sheet: access Gtk_Sheet_Record;
Row: Guint;
Nrows: Guint);
Delete Nrows rows starting from Row.

Get_Rows_Count

function Get_Rows_Count 
(Sheet: access Gtk_Sheet_Record) return Guint;
Return the maximum row number of displayed cells.

Range_Get_Type

function Range_Get_Type return Gtk.Gtk_Type;
Return the internal value associate with a Gtk_Sheet_Range

Range_Clear

procedure Range_Clear 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range);
Clear the content of the range.

Range_Delete

procedure Range_Delete 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range);
Clear the content of the range and delete all the links (user_data)

Range_Set_Background

procedure Range_Set_Background 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range;
Color: Gdk.Color.Gdk_Color);
Set the background color for the cells in a specific range.

Range_Set_Foreground

procedure Range_Set_Foreground 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range;
Color: Gdk.Color.Gdk_Color);
Set the foreground color for the cells in a specific range.

Range_Set_Justification

procedure Range_Set_Justification 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range;
Justification: Gtk.Enums.Gtk_Justification);
Set the text justification for the cells in the range.

Range_Set_Editable

procedure Range_Set_Editable 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range;
Editable: Boolean);
Set whether the cells in the range are editable.

Range_Set_Visible

procedure Range_Set_Visible 
(Sheet: access Gtk_Sheet_Record;
The_Range: in Gtk_Sheet_Range;
Visible: in Boolean);
Set whether the cells in the range are visible.

Range_Set_Border

procedure Range_Set_Border 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range;
Mask: Gtk_Sheet_Border;
Width: Guint;
Line_Style: Gdk.GC.Gdk_Line_Style);
Set the style of the border for the cells in the range.

Range_Set_Border_Color

procedure Range_Set_Border_Color 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range;
Color: Gdk.Color.Gdk_Color);
Change the color for the borders of the cells in the range.

Range_Set_Font

procedure Range_Set_Font 
(Sheet: access Gtk_Sheet_Record;
The_Range: Gtk_Sheet_Range;
Font: Pango.Font.Pango_Font_Description);
Change the font of the cells in the range.

Set_Cell

procedure Set_Cell 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Col: Gint;
Justification: Gtk.Enums.Gtk_Justification;
Text: UTF8_String);
Set the cell contents. Set Text to the empty string to delete the content of the cell.

Set_Cell_Text

procedure Set_Cell_Text 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Col: Gint;
Text: UTF8_String);
Set the cell contents. The justification used is the previous one used in that cell.

Cell_Get_Text

function Cell_Get_Text 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Col: Gint) return UTF8_String;
Return the text put in a specific cell. The empty string is returned if there is no text in that cell.

Cell_Clear

procedure Cell_Clear 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Col: Gint);
Clear the contents of the cell.

Cell_Delete

procedure Cell_Delete 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Col: Gint);
Clear the contents of the cell and remove the user data associated with it.

Cell_Get_State

function Cell_Get_State 
(Sheet: access Gtk_Sheet_Record;
Row: in Gint;
Col: in Gint) return Gtk.Enums.Gtk_State_Type;
Return the state of the cell (normal or selected).

Get_Pixel_Info

procedure Get_Pixel_Info 
(Sheet: access Gtk_Sheet_Record;
X: Gint;
Y: Gint;
Row: out Gint;
Column: out Gint);
Return the row and column matching a given pixel on the screen. Constraint_Error is raised if no such cell exists.

Get_Cell_Area

procedure Get_Cell_Area 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Column: Gint;
Area: out Gdk.Rectangle.Gdk_Rectangle);
Get the area of the screen that a cell is mapped to. Constraint_Error is raised if no such cell exists;

Put

procedure Put 
(Sheet: access Gtk_Sheet_Record;
Widget: access Gtk.Widget.Gtk_Widget_Record'Class;
X: Gint;
Y: Gint);
Put a new child at a specific location (in pixels) in the sheet.

Attach

procedure Attach 
(Sheet: access Gtk_Sheet_Record;
Widget: access Gtk.Widget.Gtk_Widget_Record'Class;
Row: Gint;
Col: Gint;
Xoptions: Gtk.Enums.Gtk_Attach_Options := Expand or Fill;
Yoptions: Gtk.Enums.Gtk_Attach_Options := Expand or Fill;
Xpadding: Gint := 0;
Ypadding: Gint := 0);
Attach a child to a specific Cell in the sheet. X_Align and Y_Align should be between 0.0 and 1.0, indicating that the child should be aligned from the Left (resp. Top) to the Right (resp. Bottom) of the cell. If Row or Col is negative, the widget is attached to the row buttons or column buttons. Widget will not be moved if the cell is moved.

Attach_Floating

procedure Attach_Floating 
(Sheet: access Gtk_Sheet_Record;
Widget: access Gtk.Widget.Gtk_Widget_Record'Class;
Row: Gint;
Col: Gint);
Attach a child at the current location or (Row, Col). If the cell is moved because of resizing or other reasons, Widget will be moved as well.

Move_Child

procedure Move_Child 
(Sheet: access Gtk_Sheet_Record;
Widget: access Gtk.Widget.Gtk_Widget_Record'Class;
X: Gint;
Y: Gint);
Move a child of the table to a specific location in pixels. A warning is printed if Widget is not already a child of Sheet.

Get_Child_At

function Get_Child_At 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Col: Gint) return Gtk_Sheet_Child;
Return the widget associated with the cell.

Get_Widget

function Get_Widget 
(Child: Gtk_Sheet_Child) return Gtk.Widget.Gtk_Widget;
Return the widget in the child.

Button_Attach

procedure Button_Attach 
(Sheet: access Gtk_Sheet_Record;
Widget: access Gtk.Widget.Gtk_Widget_Record'Class;
Row: Gint;
Col: Gint);
Attach a new button in the row or column title. One of Row or Col must be negative (but only one). This can be used to modify the standard buttons that appear at the top of each column, or on the left of each row.

Remove_Link

procedure Remove_Link 
(Sheet: access Gtk_Sheet_Record;
Row: Gint;
Col: Gint);
Delete the user data associated with the cell.