Class Index Cross Index Namespace Index

Class Gnome::CanvasItem


Contained in: Gnome
Derived from: Gtk::Object
Derived by: Gnome::CanvasGroup Gnome::CanvasImage Gnome::CanvasLine Gnome::CanvasPolygon Gnome::CanvasRE Gnome::CanvasText Gnome::CanvasWidget Gnome::IconTextItem

#include <gtk--/canvas-item.h>


public function member index:

void affine_absolute(const AffineTrans& affine);
void affine_relative(const AffineTrans& affine);
void get_bounds(double& x1, double& y1, double& x2, double& y2);
Canvas* get_canvas() const;
AffineTrans get_i2c_affine() const;
AffineTrans get_i2w_affine() const;
CanvasGroup* get_parent() const;
static GtkType get_type();
int grab(unsigned int event_mask, const Gdk_Cursor& cursor, guint32 etime);
int grab(unsigned int event_mask, GdkCursor* cursor, guint32 etime);
void grab_focus();
GnomeCanvasItem* gtkobj();
const GnomeCanvasItem* gtkobj() const;
void hide();
void i2w(double& x, double& y);
static bool isA(Gtk::Object* checkcast);
void lower(int positions);
void lower_to_bottom();
void move(double dx, double dy);
void raise(int positions);
void raise_to_top();
void show();
void ungrab(guint32 etime);
void w2i(double& x, double& y);
virtual ~CanvasItem();
 

protected function member index:

explicit CanvasItem(GnomeCanvasItem* castitem);
virtual void bounds_impl(double* p0, double* p1, double* p2, double* p3);
virtual ArtUta* coverage_impl();
virtual void draw_impl(GdkDrawable* p0, int p1, int p2, int p3, int p4);
virtual gint event_impl(GdkEvent* p0);
void initialize_class();
void item_construct(const CanvasGroup& parent);
void item_construct(const CanvasGroup& parent, const gchar* first_arg_name, va_list ap);
virtual void map_impl();
virtual void realize_impl();
void set(const gchar* first_arg_name, ...);
virtual void translate_impl(double p0, double p1);
virtual void unmap_impl();
virtual void unrealize_impl();
virtual void update_impl(double* p0, ArtSVP* p1, int p2);
 

private function member index:

CanvasItem(const CanvasItem&);
CanvasItem& operator =(const CanvasItem&);
 

Description:



Function Member Descriptions:

Gnome::CanvasItem::affine_absolute - Apply an absolute affine transformation to the item

void affine_absolute(const AffineTrans& affine);

Gnome::CanvasItem::affine_relative - Apply a relative affine transformation to the item

void affine_relative(const AffineTrans& affine);

Gnome::CanvasItem::get_bounds - Fetch the bounding box of the item. The bounding box may not be exactly tight, but the canvas items will do the best they can.

void get_bounds(double& x1, double& y1, double& x2, double& y2);

Gnome::CanvasItem::get_canvas - Returns the canvas we're on.

Canvas* get_canvas() const;

Gnome::CanvasItem::get_i2c_affine - Gets the affine transform that converts from item-relative coordinates to canvas pixel coordinates

AffineTrans get_i2c_affine() const;

Gnome::CanvasItem::get_i2w_affine - Gets the affine transform that converts from item-relative coordinates to world coordinates

AffineTrans get_i2w_affine() const;

Gnome::CanvasItem::get_parent - Returns the parent canvas item - could be 0 for root item

CanvasGroup* get_parent() const;

Gnome::CanvasItem::grab - Grab the mouse for the specified item. Only the events in event_mask will be reported. If cursor is non-NULL, it will be used during the duration of the grab. Time is a proper X event time parameter. Returns the same values as XGrabPointer().

int grab(unsigned int event_mask, const Gdk_Cursor& cursor, guint32 etime);

Gnome::CanvasItem::grab - deprecated

int grab(unsigned int event_mask, GdkCursor* cursor, guint32 etime);

Gnome::CanvasItem::grab_focus - Used to send all of the keystroke events to a specific item as well as GDK_FOCUS_CHANGE events.

void grab_focus();

Gnome::CanvasItem::hide - Hide the item

void hide();

Gnome::CanvasItem::item_construct - Tell the item to update itself. The flags are from the update flags defined above. The item should update its internal state from its queued state, recompute and request its repaint area, etc. The affine, if used, is a pointer to a 6-element array of doubles. Signal: an event ocurred for an item of this type. The (x, y) coordinates are in the canvas world coordinate system.

void item_construct(const CanvasGroup& parent);
For class children use only


Gnome::CanvasItem::lower - Lower an item in the z-order of its parent group by the specified number of positions. If the number is zero, then the item will be made the bottommost of its parent group. */

void lower(int positions);

Gnome::CanvasItem::lower_to_bottom - Lower an item to the bottom of its parent group's z-order

void lower_to_bottom();

Gnome::CanvasItem::move - Move an item by the specified amount

void move(double dx, double dy);

Gnome::CanvasItem::raise - Raise an item in the z-order of its parent group by the specified number of positions. If the number is zero, then the item will be made the topmost of its parent group.

void raise(int positions);

Gnome::CanvasItem::raise_to_top - Raise an item to the top of its parent group's z-order.

void raise_to_top();

Gnome::CanvasItem::show - Make the item visible

void show();

Gnome::CanvasItem::ungrab - Ungrabs the mouse -- the specified item must be the same that was passed to gnome_canvas_item_grab(). Time is a proper X event time parameter.

void ungrab(guint32 etime);

Gnome::CanvasItem::w2i - These functions convert from a coordinate system to another. "w" is world coordinates and "i" is item coordinates.

void w2i(double& x, double& y);


Variable Member Descriptions: