24 lines
1.0 KiB
TeX
24 lines
1.0 KiB
TeX
\begin{tikzpicture}
|
|
\node[umlDetail,text width=15cm] {
|
|
\textbf{tkrDiagramView}\quad\textit{final; View; extends QGraphicsView}
|
|
\nodepart{second}
|
|
\textbf{Responsibilities}\\
|
|
Fit the scene to the viewport and show fixed editing limits.\\
|
|
Paint the background without disturbing item rendering.
|
|
\nodepart{third}\ttfamily
|
|
\normalfont\textbf{Private attributes}\ttfamily\\
|
|
- m\_rectCanvas: QRectF\\
|
|
- m\_bFixedBounds: bool = false\\
|
|
\normalfont The base view references the scene; it does not own it.
|
|
\nodepart{fourth}\ttfamily
|
|
\normalfont\textbf{Public operations}\ttfamily\\
|
|
+ tkrDiagramView(pScene: QGraphicsScene*, pParent: QWidget* = nullptr)\\
|
|
+ setCanvasBounds(rectCanvas: const QRectF\&, bFixedBounds: bool): void\\[3pt]
|
|
\normalfont\textbf{Protected overrides}\ttfamily\\
|
|
\# drawBackground(pPainter: QPainter*, rectExposed: const QRectF\&): void\\
|
|
\# resizeEvent(pEvent: QResizeEvent*): void\\[3pt]
|
|
\normalfont\textbf{Private operation}\ttfamily\\
|
|
- fitCanvas(): void
|
|
};
|
|
\end{tikzpicture}
|