Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
PtRawDrawContainer.cpp File Reference
#include "PtRawDrawContainer.h"
#include <stdio.h>

Go to the source code of this file.

Functions

PtWidgetClass_t * CreateRawDrawContainerClass (void)
static void raw_draw_container_dflts (PtWidget_t *widget)
static void raw_draw_container_draw (PtWidget_t *widget, PhTile_t *damage)

Variables

PtWidgetClassRef_t WRawDrawContainer = { NULL, CreateRawDrawContainerClass }
PtWidgetClassRef_t * PtRawDrawContainer = &WRawDrawContainer

Function Documentation

PtWidgetClass_t * CreateRawDrawContainerClass ( void  )

Definition at line 67 of file PtRawDrawContainer.cpp.

{
       // define our resources
       static PtResourceRec_t resources[] = {
              { RDC_DRAW_FUNC, Pt_CHANGE_INVISIBLE, 0, 
                     Pt_ARG_IS_POINTER( RawDrawContainerWidget, draw_f ), 0 }
              };

       // set up our class member values
       static PtArg_t args[] = {
              { Pt_SET_VERSION, 110},
              { Pt_SET_STATE_LEN, sizeof( RawDrawContainerWidget ) },
              { Pt_SET_DFLTS_F, (long)raw_draw_container_dflts },
              { Pt_SET_DRAW_F, (long)raw_draw_container_draw },
              { Pt_SET_FLAGS, Pt_RECTANGULAR | Pt_OPAQUE, Pt_RECTANGULAR | Pt_OPAQUE },
              { Pt_SET_NUM_RESOURCES, sizeof( resources ) / sizeof( resources[0] ) },
              { Pt_SET_RESOURCES, (long)resources, sizeof( resources ) / sizeof( resources[0] ) },
              };

       // create the widget class
       return( PtRawDrawContainer->wclass = PtCreateWidgetClass(
              PtContainer, 0, sizeof( args )/sizeof( args[0] ), args ) );
}

Here is the call graph for this function:

static void raw_draw_container_dflts ( PtWidget_t *  widget) [static]

Definition at line 50 of file PtRawDrawContainer.cpp.

{
  widget->flags |= ( Pt_OPAQUE );
}

Here is the caller graph for this function:

static void raw_draw_container_draw ( PtWidget_t *  widget,
PhTile_t *  damage 
) [static]

Definition at line 58 of file PtRawDrawContainer.cpp.

{
  RawDrawContainerWidget    *rdc = ( RawDrawContainerWidget * ) widget;
  rdc->draw_f( widget, damage );
}

Here is the caller graph for this function:


Variable Documentation

PtWidgetClassRef_t* PtRawDrawContainer = &WRawDrawContainer

Definition at line 45 of file PtRawDrawContainer.cpp.

Definition at line 44 of file PtRawDrawContainer.cpp.