libgnomecanvasmm
Public Member Functions | List of all members
Gnome::Canvas::CanvasAA Class Reference

#include <canvas.h>

Inheritance diagram for Gnome::Canvas::CanvasAA:
Gnome::Canvas::Canvas

Public Member Functions

 CanvasAA ()
 
 CanvasAA (GnomeCanvas *castitem)
 
virtual ~CanvasAA ()
 
- Public Member Functions inherited from Gnome::Canvas::Canvas
virtual ~Canvas ()
 
GnomeCanvas * gobj ()
 Provides access to the underlying C GtkObject. More...
 
const GnomeCanvas * gobj () const
 Provides access to the underlying C GtkObject. More...
 
 Canvas ()
 
Grouproot () const
 Queries the root group of a canvas. More...
 
void set_scroll_region (double x1, double y1, double x2, double y2)
 Sets the scrolling region of a canvas to the specified rectangle. More...
 
void get_scroll_region (double &x1, double &y1, double &x2, double &y2) const
 Queries the scrolling region of a canvas. More...
 
void set_center_scroll_region (bool center)
 When the scrolling region of the canvas is smaller than the canvas window, e.g. the allocation of the canvas, it can be either centered on the window or simply made to be on the upper-left corner on the window. More...
 
bool get_center_scroll_region () const
 Returns whether the canvas is set to center the scrolling region in the window if the former is smaller than the canvas' allocation. More...
 
void set_pixels_per_unit (double n=1.0)
 Sets the zooming factor of a canvas by specifying the number of pixels that correspond to one canvas unit. More...
 
void scroll_to (int x, int y)
 Makes a canvas scroll to the specified offsets, given in canvas pixel units. More...
 
void get_scroll_offsets (int &cx, int &cy) const
 Queries the scrolling offsets of a canvas. More...
 
void update_now ()
 Forces an immediate update and redraw of a canvas. More...
 
Itemget_item_at (double x, double y) const
 Looks for the item that is under the specified position, which must be specified in world coordinates. More...
 
void request_redraw (int x1, int y1, int x2, int y2)
 Convenience function that informs a canvas that the specified rectangle needs to be repainted. More...
 
void request_redraw (ArtUta *uta)
 Informs a canvas that the specified area, given as a microtile array, needs to be repainted. More...
 
Art::AffineTrans w2c_affine () const
 
void w2c (double wx, double wy, int &cx, int &cy) const
 Converts world coordinates into canvas pixel coordinates. More...
 
void w2c (double wx, double wy, double &cx, double &cy) const
 Converts world coordinates into canvas pixel coordinates. More...
 
void c2w (int cx, int cy, double &wx, double &wy) const
 Converts canvas pixel coordinates to world coordinates. More...
 
void window_to_world (double winx, double winy, double &worldx, double &worldy) const
 Converts window-relative coordinates into world coordinates. More...
 
void world_to_window (double worldx, double worldy, double &winx, double &winy) const
 Converts world coordinates into window-relative coordinates. More...
 
bool get_color (const Glib::ustring &spec, Gdk::Color &color) const
 
gulong get_color_pixel (guint rgba) const
 Allocates a color from the RGBA value passed into this function. More...
 
void set_stipple_origin (const Glib::RefPtr< Gdk::GC > &gc)
 Sets the stipple origin of the specified GC as is appropriate for the canvas, so that it will be aligned with other stipple patterns used by canvas items. More...
 
void set_dither (Gdk::RgbDither dither)
 Controls dithered rendering for antialiased canvases. More...
 
Gdk::RgbDither get_dither () const
 Returns the type of dithering used to render an antialiased canvas. More...
 
void update_svp (ArtSVP **p_svp, ArtSVP *new_svp)
 Sets the svp to the new value, requesting repaint on what's changed. More...
 
void update_svp_clip (ArtSVP **p_svp, ArtSVP *new_svp, ArtSVP *clip_svp)
 Sets the svp to the new value, clipping if necessary, and requesting repaint on what's changed. More...
 
double get_pixels_per_unit () const
 
Glib::SignalProxy5< void,
const Glib::RefPtr
< Gdk::Drawable > &, int, int,
int, int > 
signal_draw_background ()
 
Glib::SignalProxy1< void,
GnomeCanvasBuf * > 
signal_render_background ()
 
virtual void request_update_vfunc ()
 
Glib::PropertyProxy_ReadOnly
< bool > 
property_aa () const
 The antialiasing mode of the canvas. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Gnome::Canvas::Canvas
virtual void on_draw_background (const Glib::RefPtr< Gdk::Drawable > &drawable, int x, int y, int width, int height)
 
virtual void on_render_background (GnomeCanvasBuf *buf)
 

Constructor & Destructor Documentation

Gnome::Canvas::CanvasAA::CanvasAA ( )
Gnome::Canvas::CanvasAA::CanvasAA ( GnomeCanvas *  castitem)
explicit
virtual Gnome::Canvas::CanvasAA::~CanvasAA ( )
virtual

The documentation for this class was generated from the following file: