MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / Draw

Method Draw

ReClass/CNodeCustom.cpp:23–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23NODESIZE CNodeCustom::Draw( const PVIEWINFO View, int x, int y )
24{
25 int tx;
26 NODESIZE DrawSize;
27
28 if (m_bHidden)
29 return DrawHidden( View, x, y );
30
31 AddSelection( View, 0, y, g_FontHeight );
32 AddDelete( View, x, y );
33 AddTypeDrop( View, x, y );
34 //AddAdd(View,x,y);
35
36 tx = x + TXOFFSET;
37 tx = AddIcon( View, tx, y, ICON_CUSTOM, HS_NONE, HS_NONE );
38 tx = AddAddressOffset( View, tx, y );
39 tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "Custom " ) );
40 tx = AddText( View, tx, y, g_crIndex, HS_NONE, _T( "[" ) );
41 tx = AddText( View, tx, y, g_crIndex, HS_EDIT, _T( "%i" ), m_ulMemorySize );
42 tx = AddText( View, tx, y, g_crIndex, HS_NONE, _T( "] " ) );
43 tx = AddText( View, tx, y, g_crName, HS_NAME, _T( "%s" ), m_strName ) + g_FontWidth;
44 tx = AddComment( View, tx, y );
45
46 DrawSize.x = tx;
47 DrawSize.y = y + g_FontHeight;
48 return DrawSize;
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected