
CANVAS_VIEW_CANVAS_WINDOW
Gets the canvas from a canvas view window.
Argument: Canvas
Procs: get
Objects: Canvas_view
See Also:
CANVAS_PAINT_CANVAS_WINDOW, CANVAS_VIEW_PAINT_WINDOW
CANVAS_VIEW_PAINT_WINDOW
This attribute is used to get the canvas paint window associated with a given canvas view.
Return Type: Canvas_paint_window
Procs: get
Objects: Canvas_view
Usage:
Canvas_view view;
Xv_Window paint_window;
paint_window = (Xv_Window)xv_get(view,
CANVAS_VIEW_PAINT_WINDOW);
See Also: 5.6.3.1,
CANVAS_PAINT_CANVAS_WINDOW, CANVAS_PAINT_VIEW_WINDOW
CANVAS_VIEWABLE_RECT
Gets the visible part of the specified paint window in the paint window’s coordinates. This attribute
operates on a Canvas object and requires as an argument, a handle to one of the canvas’ paint win-
dows. The Rect* returned should not be freed, as it points to static storage.
Return Type: Rect *
Argument: Canvas_paint_window
Procs: get
Objects: Canvas
Usage:
Rect *rect;
Xv_Window canvas_pw = canvas_paint_window(canvas);
rect = (Rect *) xv_get(canvas,
CANVAS_VIEWABLE_RECT,canvas_pw);
See Also: 5.3
CANVAS_WIDTH
Specifies the width of the canvas paint window in pixels.
Argument: int
Default: In general, the canvas inherits its parent’s width.
Procs: create, get, set
Objects: Canvas
See Also: 5.4.2,
CANVAS_MIN_PAINT_WIDTH
CANVAS_X_PAINT_WINDOW
This attribute controls the parameters used in the CANVAS_REPAINT_PROC. Setting this attribute to
TRUE
will cause the CANVAS_REPAINT_PROC ...