GnomeDbCanvasTable

GnomeDbCanvasTable

Synopsis

                    GnomeDbCanvasTable;
                    GnomeDbCanvasTableClass;
GooCanvasItem *     gnome_db_canvas_table_new           (GooCanvasItem *parent,
                                                         GdaMetaTable *table,
                                                         gdouble x,
                                                         gdouble y,
                                                         ...);
GnomeDbCanvasColumn * gnome_db_canvas_table_get_column_item
                                                        (GnomeDbCanvasTable *ce,
                                                         GdaMetaTableColumn *column);
gdouble             gnome_db_canvas_table_get_column_ypos
                                                        (GnomeDbCanvasTable *ce,
                                                         GdaMetaTableColumn *column);

Object Hierarchy

  GObject
   +----GooCanvasItemSimple
         +----GooCanvasGroup
               +----GnomeDbCanvasItem
                     +----GnomeDbCanvasTable

Implemented Interfaces

GnomeDbCanvasTable implements GooCanvasItem.

Properties

  "popup-menu-func"          gpointer              : Write
  "table"                    gpointer              : Read / Write

Description

Details

GnomeDbCanvasTable

typedef struct _GnomeDbCanvasTable GnomeDbCanvasTable;


GnomeDbCanvasTableClass

typedef struct {
	GnomeDbCanvasItemClass   parent_class;
} GnomeDbCanvasTableClass;


gnome_db_canvas_table_new ()

GooCanvasItem *     gnome_db_canvas_table_new           (GooCanvasItem *parent,
                                                         GdaMetaTable *table,
                                                         gdouble x,
                                                         gdouble y,
                                                         ...);

Creates a new canvas item to display the table table

parent :

the parent item, or NULL.

table :

a GdaMetaTable to display

x :

the x coordinate

y :

the y coordinate

... :

optional pairs of property names and values, and a terminating NULL.

Returns :

a new GooCanvasItem object

gnome_db_canvas_table_get_column_item ()

GnomeDbCanvasColumn * gnome_db_canvas_table_get_column_item
                                                        (GnomeDbCanvasTable *ce,
                                                         GdaMetaTableColumn *column);

Get the GnomeDbCanvasColumn object representing column in ce.

ce :

a GnomeDbCanvasTable object

column :

a GdaMetaTableColumn object

Returns :

the corresponding GnomeDbCanvasColumn

gnome_db_canvas_table_get_column_ypos ()

gdouble             gnome_db_canvas_table_get_column_ypos
                                                        (GnomeDbCanvasTable *ce,
                                                         GdaMetaTableColumn *column);

Get the Y position of the middle of the GnomeDbCanvasColumn object representing column in ce, in ce's coordinates.

ce :

a GnomeDbCanvasTable object

column :

a GdaMetaTableColumn object

Returns :

the Y coordinate.

Property Details

The "popup-menu-func" property

  "popup-menu-func"          gpointer              : Write

Function to create a popup menu on each GnomeDbCanvasTable.


The "table" property

  "table"                    gpointer              : Read / Write