![]() |
![]() |
![]() |
GtkExtra Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
#include <gtkextra.h> GtkSheet; GtkSheetChild; GtkSheetRow; GtkSheetCell; GtkSheetRange; GtkSheetButton; GtkSheetCellAttr; GtkSheetCellBorder; enum GtkSheetAttrType; enum GtkSheetState; enum GtkSheetEntryType; enum GtkSheetVerticalJustification; GtkWidget * gtk_sheet_new (guint rows, guint columns, const gchar *title); void gtk_sheet_construct (GtkSheet *sheet, guint rows, guint columns, const gchar *title); GtkWidget * gtk_sheet_new_browser (guint rows, guint columns, const gchar *title); void gtk_sheet_construct_browser (GtkSheet *sheet, guint rows, guint columns, const gchar *title); GtkWidget * gtk_sheet_new_with_custom_entry (guint rows, guint columns, const gchar *title, GType entry_type); void gtk_sheet_construct_with_custom_entry (GtkSheet *sheet, guint rows, guint columns, const gchar *title, GType entry_type); void gtk_sheet_change_entry (GtkSheet *sheet, const GType entry_type); GType gtk_sheet_get_entry_type (GtkSheet *sheet); GtkWidget * gtk_sheet_get_entry (GtkSheet *sheet); GtkWidget * gtk_sheet_get_entry_widget (GtkSheet *sheet); gchar * gtk_sheet_get_entry_text (GtkSheet *sheet); void gtk_sheet_set_entry_text (GtkSheet *sheet, const gchar *text); void gtk_sheet_set_entry_editable (GtkSheet *sheet, const gboolean editable); gulong gtk_sheet_entry_signal_connect_changed (GtkSheet *sheet, GCallback handler); void gtk_sheet_entry_signal_disconnect_by_func (GtkSheet *sheet, GCallback handler); void gtk_sheet_entry_select_region (GtkSheet *sheet, gint start_pos, gint end_pos); GtkSheetState gtk_sheet_get_state (GtkSheet *sheet); gboolean gtk_sheet_get_attributes (GtkSheet *sheet, gint row, gint col, GtkSheetCellAttr *attributes); guint gtk_sheet_get_rows_count (GtkSheet *sheet); void gtk_sheet_get_visible_range (GtkSheet *sheet, GtkSheetRange *range); void gtk_sheet_set_selection_mode (GtkSheet *sheet, GtkSelectionMode mode); gboolean gtk_sheet_autoresize (GtkSheet *sheet); gboolean gtk_sheet_autoresize_columns (GtkSheet *sheet); void gtk_sheet_set_autoresize_columns (GtkSheet *sheet, gboolean autoresize); gboolean gtk_sheet_autoresize_rows (GtkSheet *sheet); void gtk_sheet_set_autoresize_rows (GtkSheet *sheet, gboolean autoresize); void gtk_sheet_set_autoresize (GtkSheet *sheet, gboolean autoresize); gboolean gtk_sheet_autoscroll (GtkSheet *sheet); void gtk_sheet_set_autoscroll (GtkSheet *sheet, gboolean autoscroll); gboolean gtk_sheet_clip_text (GtkSheet *sheet); void gtk_sheet_set_clip_text (GtkSheet *sheet, gboolean clip_text); gboolean gtk_sheet_justify_entry (GtkSheet *sheet); void gtk_sheet_set_justify_entry (GtkSheet *sheet, gboolean justify); GtkSheetVerticalJustification gtk_sheet_get_vjustification (GtkSheet *sheet); void gtk_sheet_set_vjustification (GtkSheet *sheet, GtkSheetVerticalJustification vjust); gboolean gtk_sheet_locked (GtkSheet *sheet); void gtk_sheet_set_locked (GtkSheet *sheet, gboolean locked); void gtk_sheet_set_title (GtkSheet *sheet, const gchar *title); const gchar * gtk_sheet_get_description (GtkSheet *sheet, const gchar *description); void gtk_sheet_set_description (GtkSheet *sheet, const gchar *description); gboolean gtk_sheet_is_frozen (GtkSheet *sheet); void gtk_sheet_freeze (GtkSheet *sheet); void gtk_sheet_thaw (GtkSheet *sheet); void gtk_sheet_moveto (GtkSheet *sheet, gint row, gint column, gint row_align, gint col_align); void gtk_sheet_set_background (GtkSheet *sheet, GdkColor *color); void gtk_sheet_set_grid (GtkSheet *sheet, GdkColor *color); gboolean gtk_sheet_grid_visible (GtkSheet *sheet); void gtk_sheet_show_grid (GtkSheet *sheet, gboolean show); GtkAdjustment * gtk_sheet_get_hadjustment (GtkSheet *sheet); void gtk_sheet_set_hadjustment (GtkSheet *sheet, GtkAdjustment *adjustment); GtkAdjustment * gtk_sheet_get_vadjustment (GtkSheet *sheet); void gtk_sheet_set_vadjustment (GtkSheet *sheet, GtkAdjustment *adjustment); gboolean gtk_sheet_in_clip (GtkSheet *sheet); void gtk_sheet_clip_range (GtkSheet *sheet, const GtkSheetRange *clip_range); void gtk_sheet_unclip_range (GtkSheet *sheet); void gtk_sheet_get_active_cell (GtkSheet *sheet, gint *row, gint *column); gboolean gtk_sheet_set_active_cell (GtkSheet *sheet, gint row, gint column); void gtk_sheet_set_tab_direction (GtkSheet *sheet, GtkDirectionType dir); gboolean gtk_sheet_get_selection (GtkSheet *sheet, GtkSheetState *state, GtkSheetRange *range); void gtk_sheet_select_row (GtkSheet *sheet, gint row); void gtk_sheet_select_range (GtkSheet *sheet, const GtkSheetRange *range); void gtk_sheet_unselect_range (GtkSheet *sheet); gchar * gtk_sheet_get_tooltip_markup (GtkSheet *sheet); void gtk_sheet_set_tooltip_markup (GtkSheet *sheet, const gchar *markup); gchar * gtk_sheet_get_tooltip_text (GtkSheet *sheet); void gtk_sheet_set_tooltip_text (GtkSheet *sheet, const gchar *text); void gtk_sheet_add_row (GtkSheet *sheet, guint nrows); void gtk_sheet_insert_rows (GtkSheet *sheet, guint row, guint nrows); void gtk_sheet_delete_rows (GtkSheet *sheet, guint row, guint nrows); gboolean gtk_sheet_row_titles_visible (GtkSheet *sheet); void gtk_sheet_show_row_titles (GtkSheet *sheet); void gtk_sheet_hide_row_titles (GtkSheet *sheet); const gchar * gtk_sheet_get_row_title (GtkSheet *sheet, gint row); void gtk_sheet_set_row_title (GtkSheet *sheet, gint row, const gchar *title); void gtk_sheet_set_row_titles_width (GtkSheet *sheet, guint width); void gtk_sheet_set_row_height (GtkSheet *sheet, gint row, guint height); const gchar * gtk_sheet_row_button_get_label (GtkSheet *sheet, gint row); void gtk_sheet_row_button_add_label (GtkSheet *sheet, gint row, const gchar *label); void gtk_sheet_row_button_justify (GtkSheet *sheet, gint row, GtkJustification justification); gboolean gtk_sheet_row_sensitive (GtkSheet *sheet, gint row); void gtk_sheet_row_set_sensitivity (GtkSheet *sheet, gint row, gboolean sensitive); void gtk_sheet_rows_set_sensitivity (GtkSheet *sheet, gboolean sensitive); gboolean gtk_sheet_rows_resizable (GtkSheet *sheet); void gtk_sheet_rows_set_resizable (GtkSheet *sheet, gboolean resizable); gboolean gtk_sheet_row_visible (GtkSheet *sheet, gint row); void gtk_sheet_row_set_visibility (GtkSheet *sheet, gint row, gboolean visible); void gtk_sheet_row_label_set_visibility (GtkSheet *sheet, gint row, gboolean visible); void gtk_sheet_rows_labels_set_visibility (GtkSheet *sheet, gboolean visible); gchar * gtk_sheet_row_get_tooltip_markup (GtkSheet *sheet, const gint row); void gtk_sheet_row_set_tooltip_markup (GtkSheet *sheet, const gint row, const gchar *markup); gchar * gtk_sheet_row_get_tooltip_text (GtkSheet *sheet, const gint row); void gtk_sheet_row_set_tooltip_text (GtkSheet *sheet, const gint row, const gchar *text); void gtk_sheet_set_cell (GtkSheet *sheet, gint row, gint col, GtkJustification justification, const gchar *text); void gtk_sheet_set_cell_text (GtkSheet *sheet, gint row, gint col, const gchar *text); gchar * gtk_sheet_cell_get_text (GtkSheet *sheet, gint row, gint col); void gtk_sheet_cell_clear (GtkSheet *sheet, gint row, gint column); void gtk_sheet_cell_delete (GtkSheet *sheet, gint row, gint column); GtkStateType gtk_sheet_cell_get_state (GtkSheet *sheet, gint row, gint col); gchar * gtk_sheet_cell_get_tooltip_markup (GtkSheet *sheet, const gint row, const gint col); void gtk_sheet_cell_set_tooltip_markup (GtkSheet *sheet, const gint row, const gint col, const gchar *markup); gchar * gtk_sheet_cell_get_tooltip_text (GtkSheet *sheet, const gint row, const gint col); void gtk_sheet_cell_set_tooltip_text (GtkSheet *sheet, const gint row, const gint col, const gchar *text); gboolean gtk_sheet_get_cell_area (GtkSheet *sheet, gint row, gint column, GdkRectangle *area); gboolean gtk_sheet_get_pixel_info (GtkSheet *sheet, GdkWindow *window, gint x, gint y, gint *row, gint *column); gpointer gtk_sheet_get_link (GtkSheet *sheet, gint row, gint col); void gtk_sheet_link_cell (GtkSheet *sheet, gint row, gint col, gpointer link); void gtk_sheet_remove_link (GtkSheet *sheet, gint row, gint col); void gtk_sheet_range_clear (GtkSheet *sheet, const GtkSheetRange *range); void gtk_sheet_range_delete (GtkSheet *sheet, const GtkSheetRange *range); void gtk_sheet_range_set_background (GtkSheet *sheet, const GtkSheetRange *urange, const GdkColor *color); void gtk_sheet_range_set_foreground (GtkSheet *sheet, const GtkSheetRange *urange, const GdkColor *color); void gtk_sheet_range_set_justification (GtkSheet *sheet, const GtkSheetRange *urange, GtkJustification just); void gtk_sheet_range_set_editable (GtkSheet *sheet, const GtkSheetRange *urange, gint editable); void gtk_sheet_range_set_visible (GtkSheet *sheet, const GtkSheetRange *urange, gboolean visible); void gtk_sheet_range_set_border (GtkSheet *sheet, const GtkSheetRange *urange, gint mask, guint width, gint line_style); void gtk_sheet_range_set_border_color (GtkSheet *sheet, const GtkSheetRange *urange, const GdkColor *color); void gtk_sheet_range_set_font (GtkSheet *sheet, const GtkSheetRange *urange, PangoFontDescription *font_desc); GtkSheetChild * gtk_sheet_put (GtkSheet *sheet, GtkWidget *child, gint x, gint y); void gtk_sheet_attach (GtkSheet *sheet, GtkWidget *widget, gint row, gint col, gint xoptions, gint yoptions, gint xpadding, gint ypadding); void gtk_sheet_attach_floating (GtkSheet *sheet, GtkWidget *widget, gint row, gint col); void gtk_sheet_attach_default (GtkSheet *sheet, GtkWidget *widget, gint row, gint col); void gtk_sheet_move_child (GtkSheet *sheet, GtkWidget *widget, gint x, gint y); const GtkSheetChild * gtk_sheet_get_child_at (GtkSheet *sheet, gint row, gint col); void gtk_sheet_button_attach (GtkSheet *sheet, GtkWidget *widget, gint row, gint col);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkSheet
"autoresize" gboolean : Read / Write "autoresize-cols" gboolean : Read / Write "autoresize-rows" gboolean : Read / Write "autoscroll" gboolean : Read / Write "bgcolor" GdkColor* : Read / Write "clip-text" gboolean : Read / Write "col-titles-height" guint : Read / Write "col-titles-visible" gboolean : Read / Write "columns-resizable" gboolean : Read / Write "description" gchar* : Read / Write "entry-type" GtkSheetEntryType : Read / Write "grid-color" GdkColor* : Read / Write "grid-visible" gboolean : Read / Write "justify-entry" gboolean : Read / Write "locked" gboolean : Read / Write "n-rows" gint : Read / Write "row-titles-visible" gboolean : Read / Write "row-titles-width" guint : Read / Write "rows-resizable" gboolean : Read / Write "selection-mode" GtkSelectionMode : Read / Write "title" gchar* : Read / Write "vjust" GtkSheetVerticalJustification : Read / Write
"activate" : Run Last "changed" : Run Last "clear-cell" : Run Last "clip-range" : Run Last "deactivate" : Run Last "enter-pressed" : Run Last "entry-focus-in" : Run Last "entry-focus-out" : Run Last "move-cursor" : Run Last / Action "move-range" : Run Last "new-column-width" : Run Last "new-row-height" : Run Last "populate-popup" : Run Last "resize-range" : Run Last "select-column" : Run Last "select-range" : Run Last "select-row" : Run Last "set-cell" : Run Last "set-scroll-adjustments" : Run Last "traverse" : Run Last
GtkSheet is a matrix widget for GTK+. It consists of an scrollable grid of cells where you can put text or other GtkWidget's in. Cells are organized in rows (GtkSheetRow) and columns (GtkSheetColumn). Cell contents can be edited interactively through a specially designed entry (GtkItemEntry). A GtkSheet is also a container subclass, allowing you to display buttons, curves, pixmaps and any other widget in it. You can also set many attributes as: border, foreground and background color, text justification, and more. The testgtksheet program shows how easy is to create a spreadsheet-like GUI using this widget set.
typedef struct _GtkSheet GtkSheet;
The GtkSheet struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkSheetChild;
The GtkSheetChild struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkSheetRow;
The GtkSheetRow struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkSheetCell;
The GtkSheetCell struct contains only private data. It should only be accessed through the functions described below.
typedef struct { gint row0,col0; /* upper-left cell */ gint rowi,coli; /* lower-right cell */ } GtkSheetRange;
Defines a rectangular range of cells.
typedef struct { } GtkSheetButton;
The GtkSheetButton struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkSheetCellAttr;
The GtkSheetCellAttr struct contains only private data. It should only be accessed through the functions described below.
typedef struct { } GtkSheetCellBorder;
The GtkSheetCellBorder struct contains only private data. It should only be accessed through the functions described below.
typedef enum { GTK_SHEET_FOREGROUND, GTK_SHEET_BACKGROUND, GTK_SHEET_FONT, GTK_SHEET_JUSTIFICATION, GTK_SHEET_BORDER, GTK_SHEET_BORDER_COLOR, GTK_SHEET_IS_EDITABLE, GTK_SHEET_IS_VISIBLE } GtkSheetAttrType;
typedef enum { GTK_SHEET_NORMAL, GTK_SHEET_ROW_SELECTED, GTK_SHEET_COLUMN_SELECTED, GTK_SHEET_RANGE_SELECTED } GtkSheetState;
Selection state of the GtkSheet
typedef enum { GTK_SHEET_ENTRY_TYPE_DEFAULT, GTK_SHEET_ENTRY_TYPE_GTK_ITEM_ENTRY, GTK_SHEET_ENTRY_TYPE_GTK_ENTRY, GTK_SHEET_ENTRY_TYPE_GTK_TEXT_VIEW, GTK_SHEET_ENTRY_TYPE_GTK_DATA_TEXT_VIEW, GTK_SHEET_ENTRY_TYPE_GTK_SPIN_BUTTON, GTK_SHEET_ENTRY_TYPE_GTK_COMBO_BOX, GTK_SHEET_ENTRY_TYPE_GTK_COMBO_BOX_ENTRY, GTK_SHEET_ENTRY_TYPE_GTK_COMBO, } GtkSheetEntryType;
Subset of GtkEditable Widgets to allow selecting a widget from glade-3
default, applicat. controlled | |
GtkItemEntry | |
GtkEntry | |
GtkTextView | |
GtkDataTextView | |
GtkSpinButton | |
GtkComboBox | |
GtkComboBoxEntry | |
GtkCombo, Deprecated |
typedef enum { GTK_SHEET_VERTICAL_JUSTIFICATION_DEFAULT, GTK_SHEET_VERTICAL_JUSTIFICATION_TOP, GTK_SHEET_VERTICAL_JUSTIFICATION_MIDDLE, GTK_SHEET_VERTICAL_JUSTIFICATION_BOTTOM, } GtkSheetVerticalJustification;
Vertical text alignment.
GtkWidget * gtk_sheet_new (guint rows, guint columns, const gchar *title);
Creates a new sheet widget with the given number of rows and columns.
|
initial number of rows |
|
initial number of columns |
|
sheet title |
Returns : |
the new sheet GtkSheet |
void gtk_sheet_construct (GtkSheet *sheet, guint rows, guint columns, const gchar *title);
Initializes an existent GtkSheet with the given number of rows and columns.
|
a GtkSheet |
|
number of rows |
|
number of columns |
|
sheet title |
GtkWidget * gtk_sheet_new_browser (guint rows, guint columns, const gchar *title);
Creates a new browser sheet. Its cells cannot be edited(read-only).
|
initial number of rows |
|
initial number of columns |
|
sheet title |
Returns : |
the new read-only GtkSheet |
void gtk_sheet_construct_browser (GtkSheet *sheet, guint rows, guint columns, const gchar *title);
Initializes an existent read-only GtkSheet with the given number of rows and columns.
|
a GtkSheet |
|
number of rows |
|
number of columns |
|
sheet title |
GtkWidget * gtk_sheet_new_with_custom_entry (guint rows, guint columns, const gchar *title, GType entry_type);
Creates a new sheet widget with the given number of rows and columns and a custome entry type.
void gtk_sheet_construct_with_custom_entry (GtkSheet *sheet, guint rows, guint columns, const gchar *title, GType entry_type);
Initializes an existent read-only GtkSheet with the given number of rows and columns and a custom entry.
void gtk_sheet_change_entry (GtkSheet *sheet, const GType entry_type);
Changes the current entry of the cell in GtkSheet. The old sheet entry widget gets dropped and a new entry widget is created. Beware: You will have to reconnect all your signal handlers after changing an entry.
GType gtk_sheet_get_entry_type (GtkSheet *sheet);
Get sheets entry type, if known
|
a GtkSheet |
Returns : |
a GtkSheetEntryType or GTK_SHEET_ENTRY_TYPE_DEFAULT |
GtkWidget * gtk_sheet_get_entry (GtkSheet *sheet);
Get sheet's entry widget.
If the entry widget is a container, the direct childs of the
container are searched for a valid entry widget. If you want
the container itself to be returned, you should use
#gtk_sheet_get_entry_widget()
instead.
GtkWidget * gtk_sheet_get_entry_widget (GtkSheet *sheet);
Get sheet's entry widget.
If the entry widget is a container, the container widget is
returned. In order to get the entry in the container child,
you might want to use #gtk_sheet_get_entry()
instead.
gchar * gtk_sheet_get_entry_text (GtkSheet *sheet);
Get the text out of the sheet_entry. This function is mainly used to synchronize the text of a second entry with the sheet_entry. This function is necessary, because not all possible entry widgets implement the GtkEditable interface yet.
void gtk_sheet_set_entry_text (GtkSheet *sheet, const gchar *text);
Set the text in the sheet_entry (and active cell). This function is mainly used to synchronize the text of a second entry with the sheet_entry. This function is necessary, because not all possible entry widgets implement the GtkEditable interface yet.
|
a GtkSheet |
|
the text to be set or NULL |
void gtk_sheet_set_entry_editable (GtkSheet *sheet, const gboolean editable);
Set the editable flag in the sheet_entry This function is mainly used to synchronize the editable flag of a second entry with the sheet_entry. This function is necessary, because not all possible entry widgets implement the GtkEditable interface yet.
|
a GtkSheet |
|
editable flag |
gulong gtk_sheet_entry_signal_connect_changed (GtkSheet *sheet, GCallback handler);
Connect a handler to the sheet_entry "changed" signal. The user_data argument of the handler will be filled with the GtkSheet. This function is mainly used to synchronize a second entry widget with the sheet_entry. This function is necessary, because not all possible entry widgets implement the GtkEditable interface yet.
|
a GtkSheet |
|
(scope notified) the signal handler |
Returns : |
the handler id |
void gtk_sheet_entry_signal_disconnect_by_func (GtkSheet *sheet, GCallback handler);
Disconnect a handler from the sheet_entry "changed" signal This function is mainly used to synchronize a second entry widget with the sheet_entry. This function is necessary, because not all possible entry widgets implement the GtkEditable interface yet.
|
a GtkSheet |
|
(scope call) the signal handler |
void gtk_sheet_entry_select_region (GtkSheet *sheet, gint start_pos, gint end_pos);
Selects a region of text. This function is necessary, because not all possible entry widgets implement the GtkEditable interface yet.
|
a GtkSheet |
|
start of region |
|
end of region |
GtkSheetState gtk_sheet_get_state (GtkSheet *sheet);
Get the selection state of the sheet (GtkSheetState).
|
a GtkSheet |
Returns : |
GTK_SHEET_NORMAL,GTK_SHEET_ROW_SELECTED,GTK_SHEET_COLUMN_SELECTED,GTK_SHEET_RANGE_SELECTED |
gboolean gtk_sheet_get_attributes (GtkSheet *sheet, gint row, gint col, GtkSheetCellAttr *attributes);
Gett cell attributes of the given cell.
|
a GtkSheet. |
|
row number |
|
column number |
|
GtkSheetCellAttr of the given range |
Returns : |
TRUE means that the cell is currently allocated. |
guint gtk_sheet_get_rows_count (GtkSheet *sheet);
Get the number of the rows of the GtkSheet.
|
a GtkSheet |
Returns : |
number of rows. |
void gtk_sheet_get_visible_range (GtkSheet *sheet, GtkSheetRange *range);
Get sheet's ranges in a GkSheetRange structure.
|
a GtkSheet. |
|
a selected GtkSheetRange struct _GtkSheetRange { gint row0,col0; // upper-left cell gint rowi,coli; // lower-right cell }; |
void gtk_sheet_set_selection_mode (GtkSheet *sheet, GtkSelectionMode mode);
Sets the selection mode of the cells in a GtkSheet.
|
a GtkSheet |
|
GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE |
gboolean gtk_sheet_autoresize (GtkSheet *sheet);
Gets the autoresize mode of GtkSheet.
|
a GtkSheet |
Returns : |
TRUE if autoresize_columns or autoresize_rows was set, or FALSE if none |
gboolean gtk_sheet_autoresize_columns (GtkSheet *sheet);
Gets the autoresize mode for GtkSheet columns.
|
a GtkSheet |
Returns : |
TRUE or FALSE |
void gtk_sheet_set_autoresize_columns (GtkSheet *sheet, gboolean autoresize);
Controls wether columns will be autoresized upon deactivation, as you type text or set a cell_text value. If you want the cells to be autoresized when you pack widgets look at gtk_sheet_attach_*().
|
a GtkSheet |
|
TRUE or FALSE |
gboolean gtk_sheet_autoresize_rows (GtkSheet *sheet);
Gets the autoresize mode for GtkSheet rows.
|
a GtkSheet |
Returns : |
TRUE or FALSE |
void gtk_sheet_set_autoresize_rows (GtkSheet *sheet, gboolean autoresize);
Controls wether rows will be autoresized upon deactivation, as you type text or set a cell_text value. If you want the cells to be autoresized when you pack widgets look at gtk_sheet_attach_*().
|
a GtkSheet |
|
TRUE or FALSE |
void gtk_sheet_set_autoresize (GtkSheet *sheet, gboolean autoresize);
Controls wether cells will be autoresized upon deactivation, as you type text or set a cell_text value. If you want the cells to be autoresized when you pack widgets look at gtk_sheet_attach_*(). This function sets both: autoresize_columns and autoresize_cells.
|
a GtkSheet |
|
TRUE or FALSE |
gboolean gtk_sheet_autoscroll (GtkSheet *sheet);
Get the autoscroll mode of GtkSheet.
|
a GtkSheet |
Returns : |
TRUE or FALSE |
void gtk_sheet_set_autoscroll (GtkSheet *sheet, gboolean autoscroll);
The sheet will be automatically scrolled when you move beyond the last row/col in GtkSheet.
|
a GtkSheet |
|
TRUE or FALSE |
gboolean gtk_sheet_clip_text (GtkSheet *sheet);
Get clip text mode in GtkSheet. When clip text mode is turned off, cell text is written over neighbour columns, as long as their contents are empty.
|
a GtkSheet |
Returns : |
TRUE or FALSE |
void gtk_sheet_set_clip_text (GtkSheet *sheet, gboolean clip_text);
Clip text in cell. When clip text mode is turned off, cell text is written over neighbour columns, as long as their contents are empty.
|
a GtkSheet |
|
TRUE or FALSE |
gboolean gtk_sheet_justify_entry (GtkSheet *sheet);
Get the cell entry editor justification setting from GtkSheet.
|
a GtkSheet |
Returns : |
TRUE or FALSE |
void gtk_sheet_set_justify_entry (GtkSheet *sheet, gboolean justify);
Justify cell entry editor in GtkSheet.
|
a GtkSheet |
|
TRUE or FALSE |
GtkSheetVerticalJustification gtk_sheet_get_vjustification (GtkSheet *sheet);
Get the default vertical cell text justification from GtkSheet.
|
a GtkSheet |
Returns : |
the default GtkSheetVerticalJustification |
void gtk_sheet_set_vjustification (GtkSheet *sheet, GtkSheetVerticalJustification vjust);
Set the default vertical cell text justification for GtkSheet.
|
a GtkSheet |
|
a GtkSheetVerticalJustification |
gboolean gtk_sheet_locked (GtkSheet *sheet);
Get the lock status of GtkSheet, locked means the sheet is not editable, cell contents cannot be modified by the user.
|
a GtkSheet |
Returns : |
TRUE or FALSE |
void gtk_sheet_set_locked (GtkSheet *sheet, gboolean locked);
Lock the GtkSheet, which means it is no longer editable, cell contents cannot be modified by the user.
|
a GtkSheet |
|
TRUE or FALSE |
void gtk_sheet_set_title (GtkSheet *sheet, const gchar *title);
Set GtkSheet title. The widget will keep a copy of the string.
const gchar * gtk_sheet_get_description (GtkSheet *sheet, const gchar *description);
Get sheet description.
void gtk_sheet_set_description (GtkSheet *sheet, const gchar *description);
Set GtkSheet description for application use.
gboolean gtk_sheet_is_frozen (GtkSheet *sheet);
Get freeze status.
|
the GtkSheet |
Returns : |
TRUE or FALSE wether the sheet is frozen |
void gtk_sheet_freeze (GtkSheet *sheet);
Freeze all visual updates of the GtkSheet. The updates will occure in a more efficient way than if you made them on a unfrozen GtkSheet .
|
a GtkSheet |
void gtk_sheet_thaw (GtkSheet *sheet);
Thaw the sheet after you have made a number of changes on a frozen sheet. The updates will occure in a more efficient way than if you made them on a unfrozen sheet .
|
a GtkSheet |
void gtk_sheet_moveto (GtkSheet *sheet, gint row, gint column, gint row_align, gint col_align);
Scroll the viewing area of the sheet to the given column and row; row_align and col_align are between 0-1 representing the location the row should appear on the screnn, 0 being top or left, 1 being bottom or right.
passing row_align/col_align of -1 will suppress movement in that direction. if row or column is negative then there is no change
|
a GtkSheet. |
|
row number |
|
column number |
|
row alignment |
|
column alignment |
void gtk_sheet_set_background (GtkSheet *sheet, GdkColor *color);
Sets the background color of the GtkSheet. If pass NULL, the sheet will be reset to the default color.
void gtk_sheet_set_grid (GtkSheet *sheet, GdkColor *color);
Set the grid color. If pass NULL, the grid will be reset to the default color.
gboolean gtk_sheet_grid_visible (GtkSheet *sheet);
Gets the visibility of grid in GtkSheet.
|
a GtkSheet |
Returns : |
TRUE(grid visible) or FALSE(grid invisible) |
void gtk_sheet_show_grid (GtkSheet *sheet, gboolean show);
Sets the visibility of grid in GtkSheet.
|
a GtkSheet |
|
TRUE(grid visible) or FALSE(grid invisible) |
GtkAdjustment * gtk_sheet_get_hadjustment (GtkSheet *sheet);
Get horizontal scroll adjustments.
|
a GtkSheet. |
Returns : |
(transfer none) a GtkAdjustment |
void gtk_sheet_set_hadjustment (GtkSheet *sheet, GtkAdjustment *adjustment);
Change horizontal scroll adjustments.
|
a GtkSheet. |
|
a GtkAdjustment |
GtkAdjustment * gtk_sheet_get_vadjustment (GtkSheet *sheet);
Get vertical scroll adjustments.
|
a GtkSheet. |
Returns : |
(transfer none) a GtkAdjustment |
void gtk_sheet_set_vadjustment (GtkSheet *sheet, GtkAdjustment *adjustment);
Change vertical scroll adjustments.
|
a GtkSheet. |
|
a GtkAdjustment |
gboolean gtk_sheet_in_clip (GtkSheet *sheet);
Get the clip status of GtkSheet.
|
a GtkSheet. |
Returns : |
TRUE or FALSE |
void gtk_sheet_clip_range (GtkSheet *sheet, const GtkSheetRange *clip_range);
Save selected range to "clipboard".
|
a GtkSheet. |
|
GtkSheetRange to be saved |
void gtk_sheet_unclip_range (GtkSheet *sheet);
Free clipboard.
|
a GtkSheet. |
void gtk_sheet_get_active_cell (GtkSheet *sheet, gint *row, gint *column);
Store the coordinates of the active cell in row,col. If (row<0 || col<0) then there was no active cell in the sheet.
|
a GtkSheet |
|
row number |
|
column number |
gboolean gtk_sheet_set_active_cell (GtkSheet *sheet, gint row, gint column);
Set active cell where the cell entry will be displayed. Use (row,col) = (-1,-1) to deactivate active cell.
|
a GtkSheet |
|
row number |
|
column number |
Returns : |
FALSE if current cell can't be deactivated or requested cell can't be activated |
void gtk_sheet_set_tab_direction (GtkSheet *sheet, GtkDirectionType dir);
Sets a primary movement direction to the Tab, Return and Enter keys, and assigns the opposite direction to the same keys with GDK_SHIFT_MASK. Transposed movement direction can be accessed with GTK_SHEET_MOD_MASK|GDK_CONTROL_MASK and GTK_SHEET_MOD_MASK|GDK_CONTROL_MASK|GDK_SHIFT_MASK. All bindings are defined for the GtkSheetClass, so all sheet instances use the same movement directions. Default: GTK_DIR_TAB_FORWARD.
|
a GtkSheet |
|
the primary tab direction |
Since 3.0.2
gboolean gtk_sheet_get_selection (GtkSheet *sheet, GtkSheetState *state, GtkSheetRange *range);
Inquire current cell selection state and range.
|
a GtkSheet |
|
where to store the GtkSheetState, may be NULL |
|
where to store the GtkSheetRange |
Returns : |
TRUE: there is a selection, FALSE: no selection or error |
void gtk_sheet_select_row (GtkSheet *sheet, gint row);
Select the row. The range is then highlighted, and the bounds are stored in sheet->range.
|
a GtkSheet. |
|
row number |
void gtk_sheet_select_range (GtkSheet *sheet, const GtkSheetRange *range);
Highlight the selected range and store bounds in sheet->range
|
a GtkSheet |
|
a GtkSheetRange |
void gtk_sheet_unselect_range (GtkSheet *sheet);
Unselect the current selected range and clears the bounds in sheet->range.
|
a GtkSheet |
gchar * gtk_sheet_get_tooltip_markup (GtkSheet *sheet);
Gets the contents of the tooltip (markup) for sheet
void gtk_sheet_set_tooltip_markup (GtkSheet *sheet, const gchar *markup);
Sets markup as the contents of the tooltip, which is marked up with the Pango text markup language.
|
a GtkSheet. |
|
the contents of the tooltip for widget, or NULL. |
gchar * gtk_sheet_get_tooltip_text (GtkSheet *sheet);
Gets the contents of the tooltip for the GtkSheet
void gtk_sheet_set_tooltip_text (GtkSheet *sheet, const gchar *text);
Sets text as the contents of the tooltip.
|
a GtkSheet. |
|
the contents of the tooltip for widget |
void gtk_sheet_add_row (GtkSheet *sheet, guint nrows);
Append nrows
rows to the end of the sheet.
|
a GtkSheet. |
|
number of rows to be appended. |
void gtk_sheet_insert_rows (GtkSheet *sheet, guint row, guint nrows);
Insert nrows
rows before the given row and pull right.
|
a GtkSheet. |
|
row number. |
|
number of rows to be inserted. |
void gtk_sheet_delete_rows (GtkSheet *sheet, guint row, guint nrows);
Delete nrows
rows starting from row
.
|
a GtkSheet. |
|
row number. |
|
number of rows to be deleted. |
gboolean gtk_sheet_row_titles_visible (GtkSheet *sheet);
Get the visibility of row column titles .
|
a GtkSheet |
Returns : |
TRUE or FALSE |
void gtk_sheet_show_row_titles (GtkSheet *sheet);
Show row titles .
|
a GtkSheet |
void gtk_sheet_hide_row_titles (GtkSheet *sheet);
Hide row titles .
|
a GtkSheet |
const gchar * gtk_sheet_get_row_title (GtkSheet *sheet, gint row);
Get row title.
|
a GtkSheet |
|
row number |
Returns : |
a pointer to the row title or NULL. Do not modify or free it. |
void gtk_sheet_set_row_title (GtkSheet *sheet, gint row, const gchar *title);
Set row title.
|
a GtkSheet |
|
row number |
|
row title |
void gtk_sheet_set_row_titles_width (GtkSheet *sheet, guint width);
Resize row titles area.
|
a GtkSheet |
|
row titles width. |
void gtk_sheet_set_row_height (GtkSheet *sheet, gint row, guint height);
Set row height.
|
a GtkSheet. |
|
row number. |
|
row height(in pixels). |
const gchar * gtk_sheet_row_button_get_label (GtkSheet *sheet, gint row);
Get a row button label.
|
a GtkSheet |
|
row number |
Returns : |
In case of succes , a pointer to label text.Otherwise NULL |
void gtk_sheet_row_button_add_label (GtkSheet *sheet, gint row, const gchar *label);
Set button label.It is used to set a row title.
|
a GtkSheet |
|
row number |
|
text label |
void gtk_sheet_row_button_justify (GtkSheet *sheet, gint row, GtkJustification justification);
Set the justification(alignment) of the row buttons.
|
a GtkSheet. |
|
row number |
|
a GtkJustification :GTK_JUSTIFY_LEFT, RIGHT, CENTER |
gboolean gtk_sheet_row_sensitive (GtkSheet *sheet, gint row);
Get row button sensitivity.
|
a GtkSheet. |
|
row number |
Returns : |
TRUE - is sensitive, FALSE - insensitive or not existant |
void gtk_sheet_row_set_sensitivity (GtkSheet *sheet, gint row, gboolean sensitive);
Set row button sensitivity. If sensitivity is TRUE can be toggled, otherwise it acts as a title .
|
a GtkSheet. |
|
row number |
|
TRUE or FALSE |
void gtk_sheet_rows_set_sensitivity (GtkSheet *sheet, gboolean sensitive);
Set rows buttons sensitivity. If sensitivity is TRUE button can be toggled, otherwise act as titles. The sheet itself has no such property, it is a convenience function to set the property for all existing rows.
|
a GtkSheet. |
|
TRUE or FALSE |
gboolean gtk_sheet_rows_resizable (GtkSheet *sheet);
Get rows resizable status.
|
a GtkSheet. |
Returns : |
TRUE or FALSE |
void gtk_sheet_rows_set_resizable (GtkSheet *sheet, gboolean resizable);
Set rows resizable status.
|
a GtkSheet. |
|
TRUE or FALSE |
gboolean gtk_sheet_row_visible (GtkSheet *sheet, gint row);
Get row visibility.
|
a GtkSheet. |
|
row number |
Returns : |
TRUE - is visible FALSE - invisible or not existant |
void gtk_sheet_row_set_visibility (GtkSheet *sheet, gint row, gboolean visible);
Set row visibility. The default value is TRUE. If FALSE, the row is hidden.
|
a GtkSheet. |
|
row number |
|
TRUE or FALSE |
void gtk_sheet_row_label_set_visibility (GtkSheet *sheet, gint row, gboolean visible);
Set row label visibility.
|
a GtkSheet |
|
row number |
|
TRUE or FALSE |
void gtk_sheet_rows_labels_set_visibility (GtkSheet *sheet, gboolean visible);
Set all rows label visibility. The sheet itself has no such property, this is a convenience function to set the property for all existing rows.
|
a GtkSheet |
|
TRUE or FALSE |
gchar * gtk_sheet_row_get_tooltip_markup (GtkSheet *sheet, const gint row);
Gets the contents of the tooltip (markup) for the column
void gtk_sheet_row_set_tooltip_markup (GtkSheet *sheet, const gint row, const gchar *markup);
Sets markup as the contents of the tooltip, which is marked up with the Pango text markup language.
|
a GtkSheet. |
|
row index |
|
the contents of the tooltip for widget, or NULL. |
gchar * gtk_sheet_row_get_tooltip_text (GtkSheet *sheet, const gint row);
Gets the contents of the tooltip for the column
void gtk_sheet_row_set_tooltip_text (GtkSheet *sheet, const gint row, const gchar *text);
Sets text as the contents of the tooltip.
|
a GtkSheet. |
|
row index |
|
the contents of the tooltip for widget |
void gtk_sheet_set_cell (GtkSheet *sheet, gint row, gint col, GtkJustification justification, const gchar *text);
Set cell contents and allocate memory if needed.
|
a GtkSheet. |
|
row_number |
|
column number |
|
a GtkJustification :GTK_JUSTIFY_LEFT, RIGHT, CENTER |
|
cell text |
void gtk_sheet_set_cell_text (GtkSheet *sheet, gint row, gint col, const gchar *text);
Set cell contents and allocate memory if needed. No justifcation is made. attributes and links remain unchanged.
|
a GtkSheet. |
|
row_number |
|
column number |
|
cell text |
gchar * gtk_sheet_cell_get_text (GtkSheet *sheet, gint row, gint col);
Get cell text.
|
a GtkSheet |
|
row number |
|
column number |
Returns : |
a pointer to the cell text, or NULL. Do not modify or free it. |
void gtk_sheet_cell_clear (GtkSheet *sheet, gint row, gint column);
Clear cell contents.
|
a GtkSheet. |
|
row_number |
|
column number |
void gtk_sheet_cell_delete (GtkSheet *sheet, gint row, gint column);
Clear cell contents and remove links.
|
a GtkSheet. |
|
row_number |
|
column number |
GtkStateType gtk_sheet_cell_get_state (GtkSheet *sheet, gint row, gint col);
Get status of a cell.
|
a GtkSheet |
|
row number |
|
column number |
Returns : |
a "" GTK_SHEET_NORMAL,GTK_SHEET_ROW_SELECTED,GTK_SHEET_COLUMN_SELECTED,GTK_SHEET_RANGE_SELECTED |
gchar * gtk_sheet_cell_get_tooltip_markup (GtkSheet *sheet, const gint row, const gint col);
Gets the contents of the tooltip (markup) for the column
void gtk_sheet_cell_set_tooltip_markup (GtkSheet *sheet, const gint row, const gint col, const gchar *markup);
Sets markup as the contents of the tooltip, which is marked up with the Pango text markup language.
|
a GtkSheet. |
|
row index |
|
column index |
|
the contents of the tooltip for widget, or NULL. |
gchar * gtk_sheet_cell_get_tooltip_text (GtkSheet *sheet, const gint row, const gint col);
Gets the contents of the tooltip for the column
void gtk_sheet_cell_set_tooltip_text (GtkSheet *sheet, const gint row, const gint col, const gchar *text);
Sets text as the contents of the tooltip.
|
a GtkSheet. |
|
row index |
|
column index |
|
the contents of the tooltip for widget |
gboolean gtk_sheet_get_cell_area (GtkSheet *sheet, gint row, gint column, GdkRectangle *area);
Get area of a given cell.
|
a GtkSheet |
|
row number |
|
column number |
|
a GdkRectangle area of the cell |
Returns : |
TRUE(success) or FALSE(failure) |
gboolean gtk_sheet_get_pixel_info (GtkSheet *sheet, GdkWindow *window, gint x, gint y, gint *row, gint *column);
Get row and column correspondig to the given position within the sheet. In order to decode clicks into to title area correctly, pass the GdkWindow from the button event. Omitting the window (NULL) defaults to the sheet window. row and column may return values in the range [-1 .. max+1] depending on wether the position lies within the title area, the sheet cell area or beyond the outermost row/column. All 9 sheet areas can be reliably determined by evaluating the returned row/column values (title area/cell area/outside).
|
a GtkSheet |
|
base window for coordinates (null) |
|
x coordinate |
|
y coordinate |
|
cell row number |
|
cell column number |
Returns : |
TRUE if the position lies within the sheet cell area or FALSE when outside (title area f.e.) |
gpointer gtk_sheet_get_link (GtkSheet *sheet, gint row, gint col);
Get link pointer from a cell.
|
a GtkSheet |
|
row number |
|
column number |
Returns : |
(transfer none) pointer linked to the cell |
void gtk_sheet_link_cell (GtkSheet *sheet, gint row, gint col, gpointer link);
Link pointer to a cell.
|
a GtkSheet |
|
row number |
|
column number |
|
pointer linked to the cell |
void gtk_sheet_remove_link (GtkSheet *sheet, gint row, gint col);
Remove link pointer from a cell.
|
a GtkSheet |
|
row number |
|
column number |
void gtk_sheet_range_clear (GtkSheet *sheet, const GtkSheetRange *range);
Clear range contents. If range==NULL the whole sheet will be cleared.
|
a GtkSheet. |
|
a GtkSheetRange |
void gtk_sheet_range_delete (GtkSheet *sheet, const GtkSheetRange *range);
Clear range contents and remove links. FIXME:: if range==NULL whole sheet is deleted?
|
a GtkSheet. |
|
a GtkSheetRange |
void gtk_sheet_range_set_background (GtkSheet *sheet, const GtkSheetRange *urange, const GdkColor *color);
Set background color of the given range.
|
a GtkSheet. |
|
a GtkSheetRange. |
|
a GdkColor. |
void gtk_sheet_range_set_foreground (GtkSheet *sheet, const GtkSheetRange *urange, const GdkColor *color);
Set foreground color of the given range.
|
a GtkSheet. |
|
a GtkSheetRange. |
|
a GdkColor. |
void gtk_sheet_range_set_justification (GtkSheet *sheet, const GtkSheetRange *urange, GtkJustification just);
Set text justification (GTK_JUSTIFY_LEFT, RIGHT, CENTER) of the given range. The default value is GTK_JUSTIFY_LEFT. If autoformat is on, the default justification for numbers is GTK_JUSTIFY_RIGHT.
|
a GtkSheet. |
|
a GtkSheetRange. |
|
a GtkJustification : GTK_JUSTIFY_LEFT, RIGHT, CENTER. |
void gtk_sheet_range_set_editable (GtkSheet *sheet, const GtkSheetRange *urange, gint editable);
Set if cell contents can be edited or not in the given range.
|
a GtkSheet. |
|
a GtkSheetRange |
|
TRUE or FALSE |
void gtk_sheet_range_set_visible (GtkSheet *sheet, const GtkSheetRange *urange, gboolean visible);
Set if cell contents are visible or not in the given range: accepted values are TRUE or FALSE.
|
a GtkSheet. |
|
a GtkSheetRange. |
|
TRUE or FALSE. |
void gtk_sheet_range_set_border (GtkSheet *sheet, const GtkSheetRange *urange, gint mask, guint width, gint line_style);
Set cell border style in the given range.
|
a GtkSheet. |
|
a GtkSheetRange where we set border style. |
|
CELL_LEFT_BORDER, CELL_RIGHT_BORDER, CELL_TOP_BORDER,CELL_BOTTOM_BORDER |
|
width of the border line in pixels |
|
GdkLineStyle for the border line |
void gtk_sheet_range_set_border_color (GtkSheet *sheet, const GtkSheetRange *urange, const GdkColor *color);
Set border color for the given range.
|
a GtkSheet. |
|
a GtkSheetRange where we set border color. |
|
a GdkColor. |
void gtk_sheet_range_set_font (GtkSheet *sheet, const GtkSheetRange *urange, PangoFontDescription *font_desc);
Set font_desc for the given range.
|
a GtkSheet. |
|
a GtkSheetRange where we set font_desc. |
|
(transfer none) a PangoFontDescription. |
GtkSheetChild * gtk_sheet_put (GtkSheet *sheet, GtkWidget *child, gint x, gint y);
Add widgets to the sheet. The widget is floating in one given position (x,y) regardless of the configurations of rows/columns. This means that cells do not resize depending on the widgets' size. You can resize it yourself or use gtk_sheet_attach_*() You may remove it with gtk_container_remove(GTK_CONTAINER(sheet), GtkWidget *child);
|
a GtkSheet. |
|
GtkWidget to be put |
|
x coordinate where we put the widget |
|
y coordinate where we put the widget |
Returns : |
(transfer none) TRUE means that the cell is currently allocated. |
void gtk_sheet_attach (GtkSheet *sheet, GtkWidget *widget, gint row, gint col, gint xoptions, gint yoptions, gint xpadding, gint ypadding);
Attaches a child widget to the given cell with the given alignments. Works basically like gtk_table_attach, with the same options, the widget is confined in the cell, and whether it fills the cell, expands with it, or shrinks with it, depending on the options , if GTK_EXPAND is set. The child is reallocated each time the column or row changes, keeping attached to the same cell.
|
a GtkSheet. |
|
GtkWidget to be put |
|
row number |
|
column number |
|
if set GTK_EXPAND cell will expand/shrink on x direction |
|
if set GTK_EXPAND cell will expand/shrink on y direction |
|
x coordinate of the alignment |
|
y coordinate of the alignment |
void gtk_sheet_attach_floating (GtkSheet *sheet, GtkWidget *widget, gint row, gint col);
The widget is attached to the top-left corner of a cell (row,column) and moves with it when you change width, height, or you delete of add row/columns
void gtk_sheet_attach_default (GtkSheet *sheet, GtkWidget *widget, gint row, gint col);
Attaches a child widget to the given cell with the 0,0 alignments.
Works basically like gtk_table_attach, with the same options, the widget is confined in the cell, and whether it fills the
cell, expands with it, or shrinks with it, depending on the options.
The child is reallocated each time the column or row changes, keeping attached to the same cell.
It's in fact gtk_sheet_attach()
with GTK_EXPAND set.
void gtk_sheet_move_child (GtkSheet *sheet, GtkWidget *widget, gint x, gint y);
Move widgets added with gtk_sheet_put()
in the sheet.
const GtkSheetChild * gtk_sheet_get_child_at (GtkSheet *sheet, gint row, gint col);
Get the child attached at row
,col
.
|
a GtkSheet. |
|
row number |
|
column number |
Returns : |
the GtkSheetChild attached to row ,col or NULL
|
"autoresize"
property"autoresize" gboolean : Read / Write
Autoreisize cells while typing (rows and columns)
Default value: FALSE
"autoresize-cols"
property"autoresize-cols" gboolean : Read / Write
Autoreisize columns while typing
Default value: FALSE
"autoresize-rows"
property"autoresize-rows" gboolean : Read / Write
Autoreisize rows while typing
Default value: FALSE
"autoscroll"
property"autoscroll" gboolean : Read / Write
The sheet will be automatically scrolled when you move beyond the last visible row/column
Default value: TRUE
"clip-text"
property"clip-text" gboolean : Read / Write
Clip text in cells
Default value: FALSE
"col-titles-height"
property"col-titles-height" guint : Read / Write
Height of the column titles
Allowed values: <= 1024
Default value: 24
"col-titles-visible"
property"col-titles-visible" gboolean : Read / Write
Visibility of the column titles
Default value: TRUE
"columns-resizable"
property"columns-resizable" gboolean : Read / Write
Columns resizable
Default value: TRUE
"description"
property"description" gchar* : Read / Write
The sheets description, a place to store further information for application use
Default value: ""
"entry-type"
property"entry-type" GtkSheetEntryType : Read / Write
Sheet cell entry widget type
Default value: GTK_SHEET_ENTRY_TYPE_DEFAULT
"grid-visible"
property"grid-visible" gboolean : Read / Write
Sets the visibility of grid
Default value: TRUE
"justify-entry"
property"justify-entry" gboolean : Read / Write
Adapt cell entry editor to the cell justification.
Default value: TRUE
"locked"
property"locked" gboolean : Read / Write
If the sheet ist locked, it is not editable, cell contents cannot be modified by the user.
Default value: FALSE
"n-rows"
property"n-rows" gint : Read / Write
Number of rows in the sheet
Allowed values: [0,1000000]
Default value: 0
"row-titles-visible"
property"row-titles-visible" gboolean : Read / Write
Row titles visible
Default value: TRUE
"row-titles-width"
property"row-titles-width" guint : Read / Write
Width of the row title area
Allowed values: <= 2048
Default value: 80
"rows-resizable"
property"rows-resizable" gboolean : Read / Write
Rows resizable
Default value: TRUE
"selection-mode"
property"selection-mode" GtkSelectionMode : Read / Write
Sets the selection mode of the cells in a GtkSheet
Default value: GTK_SELECTION_BROWSE
"title"
property"title" gchar* : Read / Write
The sheets title string
Default value: "GtkSheet"
"vjust"
property"vjust" GtkSheetVerticalJustification : Read / Write
Default vertical cell text justification
Default value: GTK_SHEET_VERTICAL_JUSTIFICATION_TOP
"activate"
signalgboolean user_function (GtkSheet *sheet, gint row, gint column, gpointer user_data) : Run Last
Emmited whenever a cell is activated(you click on it). FIXME:: The return value is ignored (not yet implemented).
|
the sheet widget that emitted the signal |
|
row number of activated cell. |
|
column number of activated cell. |
|
user data set when the signal handler was connected. |
"changed"
signalvoid user_function (GtkSheet *sheet, gint row, gint column, gpointer user_data) : Run Last
"Emited when typing into the active cell, changing its content. It is emitted after each key press in cell and after deactivating cell.
|
the sheet widget that emitted the signal |
|
row number of changed cell. |
|
column number of changed cell. |
|
user data set when the signal handler was connected. |
"clear-cell"
signalvoid user_function (GtkSheet *sheet, gint row, gint column, gpointer user_data) : Run Last
Emited when when the content of the cell is erased.
|
the sheet widget that emitted the signal |
|
row number of cleared cell. |
|
column number of cleared cell. |
|
user data set when the signal handler was connected. |
"clip-range"
signalvoid user_function (GtkSheet *sheet, GtkSheetRange *clip_range, gpointer user_data) : Run Last
Emmited when a GtkSheetRange is clipping.
|
the sheet widget that emitted the signal |
|
the newly selected GtkSheetRange |
|
user data set when the signal handler was connected. |
"deactivate"
signalgboolean user_function (GtkSheet *sheet, gint row, gint column, gpointer user_data) : Run Last
Emmited whenever a cell is deactivated(you click on other cell or start a new selection). The signal handler must return TRUE in order to allow deactivation, FALSE to deny deactivation.
|
the sheet widget that emitted the signal |
|
row number of deactivated cell. |
|
column number of deactivated cell. |
|
user data set when the signal handler was connected. |
"enter-pressed"
signalgboolean user_function (GtkSheet *sheet, GdkEvent *event, gpointer user_data) : Run Last
This signal intercepts RETURN and ENTER key-press-events before they are processed by the sheet-entry editor. Any modifier combinations on these keys may trigger the signal. The default behaviour of the sheet-entry editor is to move the active cell, which might not be appropriate for the type of application.
|
the sheet widget that emitted the signal |
|
the GdkEventKey which triggered this signal.. type Gdk.EventKey. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE to block the sheet-entry from processing
the event. FALSE to propagate the event to the
sheet-entry.
|
"entry-focus-in"
signalgboolean user_function (GtkSheet *sheet, GdkEvent *event, gpointer user_data) : Run Last
The ::entry-focus-in signal will be emitted when the keyboard focus enters the sheet_entry editor.
|
the sheet widget that emitted the signal |
|
the GdkEventFocus which triggered this signal |
|
user data set when the signal handler was connected. |
Returns : |
TRUE to stop other handlers from being invoked for the event.
FALSE to propagate the event further.
|
Since 3.0.1
"entry-focus-out"
signalgboolean user_function (GtkSheet *sheet, GdkEvent *event, gpointer user_data) : Run Last
The ::entry-focus-out signal will be emitted when the keyboard focus leaves the sheet_entry editor.
|
the sheet widget that emitted the signal |
|
the GdkEventFocus which triggered this signal |
|
user data set when the signal handler was connected. |
Returns : |
TRUE to stop other handlers from being invoked for the event.
FALSE to propagate the event further.
|
Since 3.0.1
"move-cursor"
signalvoid user_function (GtkSheet *sheet, GtkMovementStep step, gint count, gboolean extend_selection, gpointer user_data) : Run Last / Action
The ::move-cursor signal is a keybinding signal which gets
emitted when the user initiates a cursor movement.
Applications should not connect to it, but may emit it with
g_signal_emit_by_name()
if they need to control the cursor
programmatically.
|
the sheet widget that emitted the signal |
|
the granularity of the move, as a GtkMovementStep |
|
the number of step units to move
|
|
TRUE if the move should extend the selection
|
|
user data set when the signal handler was connected. |
Since 3.0.2
"move-range"
signalvoid user_function (GtkSheet *sheet, GtkSheetRange *old_range, GtkSheetRange *new_range, gpointer user_data) : Run Last
Emmited when a GtkSheetRange is moved.
|
the sheet widget that emitted the signal. |
|
the previous selected GtkSheetRange. |
|
the newly selected GtkSheetRange. |
|
user data set when the signal handler was connected. |
"new-column-width"
signalvoid user_function (GtkSheet *sheet, gint col, gint width, gpointer user_data) : Run Last
Emited when the width of a column is modified.
|
the sheet widget that emitted the signal |
|
modified column number. |
|
new column width |
|
user data set when the signal handler was connected. |
"new-row-height"
signalvoid user_function (GtkSheet *sheet, gint row, gint height, gpointer user_data) : Run Last
Emited when the height of a row is modified.
|
the sheet widget that emitted the signal |
|
modified row number. |
|
new row height. |
|
user data set when the signal handler was connected. |
"populate-popup"
signalvoid user_function (GtkSheet *sheet, GtkMenu *menu, gpointer user_data) : Run Last
The ::populate-popup signal will be emitted when the user activates the popup menu of the sheet_entry editor. The emission of this signal is only supported for GtkEntry, GtkDataEntry, GtkItemEntry and GtkTextView.
|
the sheet widget that emitted the signal |
|
the menu that ist being populated |
|
user data set when the signal handler was connected. |
Since 3.0.1
"resize-range"
signalvoid user_function (GtkSheet *sheet, GtkSheetRange *old_range, GtkSheetRange *new_range, gpointer user_data) : Run Last
Emmited when a GtkSheetRange is resized.
|
the sheet widget that emitted the signal |
|
the previous selected GtkSheetRange. |
|
the newly selected GtkSheetRange. |
|
user data set when the signal handler was connected. |
"select-column"
signalvoid user_function (GtkSheet *sheet, gint select_column, gpointer user_data) : Run Last
Emmited when a column has been selected.
|
the sheet widget that emitted the signal |
|
the newly selected column index |
|
user data set when the signal handler was connected. |
"select-range"
signalvoid user_function (GtkSheet *sheet, GtkSheetRange *select_range, gpointer user_data) : Run Last
Emmited when a GtkSheetRange has been selected.
|
the sheet widget that emitted the signal |
|
the newly selected GtkSheetRange |
|
user data set when the signal handler was connected. |
"select-row"
signalvoid user_function (GtkSheet *sheet, gint row, gpointer user_data) : Run Last
Emmited when a row has been selected.
|
the sheet widget that emitted the signal |
|
the newly selected row index |
|
user data set when the signal handler was connected. |
"set-cell"
signalvoid user_function (GtkSheet *sheet, gint row, gint column, gpointer user_data) : Run Last
Emited when clicking on a non-empty cell.
|
the sheet widget that emitted the signal |
|
row number of activated cell. |
|
column number of activated cell. |
|
user data set when the signal handler was connected. |
"set-scroll-adjustments"
signalvoid user_function (GtkSheet *sheet, GtkAdjustment *hadjustment, GtkAdjustment *vadjustment, gpointer user_data) : Run Last
Emited when scroll adjustments are set.
|
the sheet widget that emitted the signal |
|
horizontal GtkAdjustment. |
|
vertical GtkAdkjustment. |
|
user data set when the signal handler was connected. |
"traverse"
signalgboolean user_function (GtkSheet *sheet, gint row, gint column, gpointer *new_row, gpointer *new_column, gpointer user_data) : Run Last
The "traverse" is emited before "deactivate" and allows to veto the movement. In such case, the entry will remain in the site and the other signals will not be emited. The signal handler must return TRUE to allow the movement, FALSE to veto the movement.
|
the sheet widget that emitted the signal. |
|
row number of old cell |
|
column number of old cell |
|
row number of target cell, changeable |
|
column number of target cell, changeable |
|
user data set when the signal handler was connected. |