| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
|  | This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Invoke the Draw method of the specified superclass
void PtSuperClassDraw( PtWidgetClassRef_t *wc_ref,
                       PtWidget_t *widget, 
                       PhTile_t const *damage );
This function invokes the Draw method of the specified superclass wc_ref. Use this function to save code and complexity in your subclass's Draw method.
static void my_draw( PtWidget_t *widget, PhTile_t *damage )
{
  // draw fill & borders as needed.
  PtSuperClassDraw( PtBasic, widget, damage );
  PtCalcCanvas( widget, &canvas );
  // Check if PtAttemptResize() function set Pt_UCLIP flag
  // in the Extent method.
  if( widget->resize_flags & Pt_UCLIP )
     PtClipAdd( widget, &canvas );
  PgDrawLine( canvas.ul, canvas.lr );
  PgDrawLine( canvas.lr, canvas.ul );
  if( widget->resize_flags & Pt_UCLIP )
     PtClipRemove();
}
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PhTile_t in the Photon Library Reference
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |