Skip to Main Content
Volume 7B: XView Reference Manual
book

Volume 7B: XView Reference Manual

by Dan Heller
September 1991
Intermediate to advanced content levelIntermediate to advanced
311 pages
7h 17m
English
O'Reilly Media, Inc.
Content preview from Volume 7B: XView Reference Manual
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Gestion des couleurs pas à pas

Gestion des couleurs pas à pas

Jean Delmas
1,000 Garment Graphics

1,000 Garment Graphics

Jeffrey Everett

Publisher Resources

ISBN: 9780937175880