Mercurial > hg > svgui
comparison view/View.h @ 1044:4e5c1c326794 3.0-integration
Make ViewProxy objects share the ids of their Views; fixes incorrect colour scale drawing
author | Chris Cannam |
---|---|
date | Tue, 09 Feb 2016 10:59:36 +0000 |
parents | 0be17aafa935 |
children | f535f6e5dbb0 |
comparison
equal
deleted
inserted
replaced
1043:fccee028a522 | 1044:4e5c1c326794 |
---|---|
60 /** | 60 /** |
61 * Deleting a View does not delete any of its layers. They should | 61 * Deleting a View does not delete any of its layers. They should |
62 * be managed elsewhere (e.g. by the Document). | 62 * be managed elsewhere (e.g. by the Document). |
63 */ | 63 */ |
64 virtual ~View(); | 64 virtual ~View(); |
65 | |
66 /** | |
67 * Retrieve the id of this object. Views have their own unique | |
68 * ids, but ViewProxy objects share the id of their View. | |
69 */ | |
70 int getId() const { return m_id; } | |
65 | 71 |
66 /** | 72 /** |
67 * Retrieve the first visible sample frame on the widget. | 73 * Retrieve the first visible sample frame on the widget. |
68 * This is a calculated value based on the centre-frame, widget | 74 * This is a calculated value based on the centre-frame, widget |
69 * width and zoom level. The result may be negative. | 75 * width and zoom level. The result may be negative. |