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

Method Draw

ReClass/CNodeDouble.cpp:20–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20NODESIZE CNodeDouble::Draw( const PVIEWINFO View, int x, int y )
21{
22 int tx;
23 NODESIZE DrawSize;
24 double* Data;
25
26 if (m_bHidden)
27 return DrawHidden( View, x, y );
28
29 Data = (double*)(View->Data + m_Offset);
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_FLOAT, HS_NONE, HS_NONE );
38 tx = AddAddressOffset( View, tx, y );
39 tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "double " ) );
40 tx = AddText( View, tx, y, g_crName, HS_NAME, _T( "%s" ), m_strName );
41 tx = AddText( View, tx, y, g_crName, HS_NONE, _T( " = " ) );
42 //tx = AddText(View, tx, y, g_crValue, 0, "%.4lg", pMemory[0]) + FontWidth;
43 tx = AddText( View, tx, y, g_crValue, HS_EDIT, _T( "%.4g" ), *Data ) + 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