Class Index | Cross Index | Namespace Index |
Gnome Canvas
Contained in: Gnome
Derived from:
Gtk::Layout
Derived by:
Gnome::CanvasAA
Gnome::IconList
#include <gtk--/canvas.h>
public function member index: |
||
Canvas | (); | |
void | c2w | (int cx, int cy, double& wx, double& wy) const; |
bool | get_color | (const Gtk::string& spec, GdkColor* color); |
bool | get_color | (const Gtk::string& spec, Gdk_Color& color); |
CanvasItem* | get_item_at | (double x, double y); |
double | get_pixels_per_unit | () const; |
void | get_scroll_offsets | (int& cx, int& cy) const; |
void | get_scroll_region | (double& x1, double& y1, double& x2, double& y2); |
static GtkType | get_type | (); |
GnomeCanvas* | gtkobj | (); |
const GnomeCanvas* | gtkobj | () const; |
static bool | isA | (Gtk::Object* checkcast); |
void | request_redraw | (int x1, int y1, int x2, int y2); |
CanvasGroup* | root | (); |
void | scroll_to | (int x, int y); |
void | set_pixels_per_unit | (double n=1.0); |
void | set_scroll_region | (double x1, double y1, double x2, double y2); |
void | update_now | (); |
void | w2c | (double wx, double wy, int& cx, int& cy) const; |
void | window_to_world | (double winx, double winy, double& worldx, double& worldy) const; |
void | world_to_window | (double worldx, double wolrdy, double& winx, double& winy) const; |
virtual | ~Canvas | (); |
protected function member index: |
||
explicit | Canvas | (GnomeCanvas* castitem); |
void | initialize_class | (); |
private function member index: |
||
Canvas | (const Canvas&); | |
Canvas& | operator = | (const Canvas&); |
If you want to put Imlib image objects on the Canvas,
you need to push the Imlib colormap/visual before creating
the canvas, and pop it afterward.
Looks for the item that is under the specified position, which must be specified in world coordinates. Arguments are in world coordinates. Returns 0 if no item is at that location.
Used only by item implementations. Request an eventual redraw of the region, which includes x1,y1 but not x2,y2
Makes a canvas scroll to the specified offsets, given in canvas pixel units. The canvas will adjust the view so that it is not outside the scrolling region. This function is typically not used, as it is better to hook scrollbars to the canvas layout's scrolling adjusments.
With no arguments sets to default of 1.0.
normally the canvas queues repainting and does it in an idle loop
Window coordinates are based of the widget's GdkWindow. This is fairly low-level and not generally useful.