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

Method Draw

ReClass/CNodeWORD.cpp:21–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21NODESIZE CNodeWord::Draw( const PVIEWINFO View, int x, int y )
22{
23 int tx;
24 NODESIZE DrawSize;
25 unsigned __int16 *Data;
26
27 if (m_bHidden)
28 return DrawHidden( View, x, y );
29
30 Data = (unsigned __int16*)(View->Data + m_Offset);
31
32 AddSelection( View, 0, y, g_FontHeight );
33 AddDelete( View, x, y );
34 AddTypeDrop( View, x, y );
35 //AddAdd(View,x,y);
36
37 tx = x + TXOFFSET;
38 tx = AddIcon( View, tx, y, ICON_UNSIGNED, HS_NONE, HS_NONE );
39 tx = AddAddressOffset( View, tx, y );
40 tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "WORD " ) );
41 tx = AddText( View, tx, y, g_crName, HS_NAME, _T( "%s" ), m_strName );
42 tx = AddText( View, tx, y, g_crName, HS_NONE, _T( " = " ) );
43 tx = AddText( View, tx, y, g_crValue, HS_EDIT, g_bUnsignedHex ? _T( "0x%X" ) : _T( "%u" ), *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