| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SKCANVASWIDGET_H_ | 10 #ifndef SKCANVASWIDGET_H_ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 kRaster_8888_WidgetType = 1 << 0, | 29 kRaster_8888_WidgetType = 1 << 0, |
| 30 #if SK_SUPPORT_GPU | 30 #if SK_SUPPORT_GPU |
| 31 kGPU_WidgetType = 1 << 1, | 31 kGPU_WidgetType = 1 << 1, |
| 32 #endif | 32 #endif |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 void drawTo(int index); | 35 void drawTo(int index); |
| 36 | 36 |
| 37 void setWidgetVisibility(WidgetType type, bool isHidden); | 37 void setWidgetVisibility(WidgetType type, bool isHidden); |
| 38 | 38 |
| 39 #if SK_SUPPORT_GPU |
| 40 void setGLSampleCount(int sampleCount); |
| 41 #endif |
| 42 |
| 39 /** Zooms the canvas by scale with the transformation centered at the widget
point (px, py). */ | 43 /** Zooms the canvas by scale with the transformation centered at the widget
point (px, py). */ |
| 40 void zoom(float scale, int px, int py); | 44 void zoom(float scale, int px, int py); |
| 41 | 45 |
| 42 void resetWidgetTransform(); | 46 void resetWidgetTransform(); |
| 43 | 47 |
| 44 enum ZoomCommandTypes { | 48 enum ZoomCommandTypes { |
| 45 kIn_ZoomCommand, | 49 kIn_ZoomCommand, |
| 46 kOut_ZoomCommand, | 50 kOut_ZoomCommand, |
| 47 }; | 51 }; |
| 48 public slots: | 52 public slots: |
| (...skipping 24 matching lines...) Expand all Loading... |
| 73 | 77 |
| 74 void mouseDoubleClickEvent(QMouseEvent* event); | 78 void mouseDoubleClickEvent(QMouseEvent* event); |
| 75 | 79 |
| 76 void wheelEvent(QWheelEvent* event); | 80 void wheelEvent(QWheelEvent* event); |
| 77 | 81 |
| 78 void snapWidgetTransform(); | 82 void snapWidgetTransform(); |
| 79 }; | 83 }; |
| 80 | 84 |
| 81 | 85 |
| 82 #endif /* SKCANVASWIDGET_H_ */ | 86 #endif /* SKCANVASWIDGET_H_ */ |
| OLD | NEW |