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

Method Draw

ReClass/CNodeByte.cpp:20–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20NODESIZE CNodeByte::Draw( const PVIEWINFO View, int x, int y )
21{
22 int tx;
23 NODESIZE DrawSize;
24 unsigned __int8* Data;
25
26 if (m_bHidden)
27 return DrawHidden( View, x, y );
28
29 Data = (unsigned __int8*)(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_UNSIGNED, HS_NONE, HS_NONE );
38 tx = AddAddressOffset( View, tx, y );
39 tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "BYTE " ) );
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, HS_EDIT, g_bUnsignedHex ? _T( "0x%02X" ) : _T( "%u" ), Data[0] ) + g_FontWidth;
43 tx = AddComment( View, tx, y );
44
45 DrawSize.x = tx;
46 DrawSize.y = y + g_FontHeight;
47 return DrawSize;
48}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected