GnomeDbCanvasEntity

GnomeDbCanvasEntity — Draws a graphical representation of a GdaEntity object

Synopsis




            GnomeDbCanvasEntity;
GnomeDbCanvasField* gnome_db_canvas_entity_get_field_item
                                            (GnomeDbCanvasEntity *ce,
                                             GdaEntityField *field);
gdouble     gnome_db_canvas_entity_get_field_ypos
                                            (GnomeDbCanvasEntity *ce,
                                             GdaEntityField *field);

Object Hierarchy


  GObject
   +----GtkObject
         +----GnomeCanvasItem
               +----GnomeCanvasGroup
                     +----GnomeDbCanvasItem
                           +----GnomeDbCanvasEntity

Properties


  "entity"               gpointer              : Read / Write
  "popup-menu-func"      gpointer              : Write
  "scale"                gdouble               : Write
  "target"               gpointer              : Read / Write

Description

This GnomeCanvasItem is self-destroyed when the referenced GdaEntity object is destroyed.

Details

GnomeDbCanvasEntity

typedef struct _GnomeDbCanvasEntity GnomeDbCanvasEntity;


gnome_db_canvas_entity_get_field_item ()

GnomeDbCanvasField* gnome_db_canvas_entity_get_field_item
                                            (GnomeDbCanvasEntity *ce,
                                             GdaEntityField *field);

Get the GnomeDbCanvasField object representing field in ce.

ce : a GnomeDbCanvasEntity object
field : a GdaEntityField object
Returns : the corresponding GnomeDbCanvasField

gnome_db_canvas_entity_get_field_ypos ()

gdouble     gnome_db_canvas_entity_get_field_ypos
                                            (GnomeDbCanvasEntity *ce,
                                             GdaEntityField *field);

Get the Y position of the middle of the GnomeDbCanvasField object representing field in ce, in ce's coordinates.

ce : a GnomeDbCanvasEntity object
field : a GdaEntityField object
Returns : the Y coordinate.

Properties

The "entity" property

  "entity"               gpointer              : Read / Write


The "popup-menu-func" property

  "popup-menu-func"      gpointer              : Write

Function to create a popup menu on each GnomeDbCanvasEntity.


The "scale" property

  "scale"                gdouble               : Write

Allowed values: >= 0

Default value: 0


The "target" property

  "target"               gpointer              : Read / Write