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

Method Draw

ReClass/CNodeCharPtr.cpp:25–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25NODESIZE CNodeCharPtr::Draw( const PVIEWINFO View, int x, int y )
26{
27 int tx;
28 NODESIZE DrawSize;
29 uintptr_t* Data;
30
31 if (m_bHidden)
32 return DrawHidden( View, x, y );
33
34 Data = (uintptr_t*)(View->Data + m_Offset);
35
36 AddSelection( View, 0, y, g_FontHeight );
37 AddDelete( View, x, y );
38 AddTypeDrop( View, x, y );
39 //AddAdd(View, x, y);
40
41 tx = x + TXOFFSET;
42 tx = AddIcon( View, tx, y, ICON_INTEGER, HS_NONE, HS_NONE );
43 tx = AddAddressOffset( View, tx, y );
44 tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "PCHAR " ) );
45 tx = AddText( View, tx, y, g_crName, HS_NAME, m_strName );
46
47 //tx = AddText(View,tx,y,g_crName,HS_NONE," = ");
48 //tx = AddText(View,tx,y,g_crValue,0,"%lli",pMemory[0]) + FontWidth;
49 //tx = AddComment(View,tx,y);
50
51 /*
52 int tx = x + 16;
53 tx = AddIcon(View,tx,y,ICON_TEXT,HS_NONE,HS_NONE);
54 tx = AddAddressOffset(View,tx,y);
55 tx = AddText(View,tx,y,g_crType,HS_NONE,"Text ");
56 tx = AddText(View,tx,y,g_crName,69,"%s",m_strName);
57 tx = AddText(View,tx,y,g_crIndex,HS_NONE,"[");
58 tx = AddText(View,tx,y,g_crIndex,0,"%i",memsize);
59 tx = AddText(View,tx,y,g_crIndex,HS_NONE,"]");
60 */
61
62 tx = AddText( View, tx, y, g_crChar, HS_NONE, _T( " = '" ) );
63 if (VALID( Data ))
64 {
65 CStringA MemoryString( ReadMemoryStringA( *Data, 128 ) );
66 tx = AddText( View, tx, y, g_crChar, 1, "%s", MemoryString.GetBuffer( ) );
67 }
68
69 tx = AddText( View, tx, y, g_crChar, HS_NONE, _T( "' " ) ) + g_FontWidth;
70 tx = AddComment( View, tx, y );
71
72 DrawSize.x = tx;
73 DrawSize.y = y + g_FontHeight;
74 return DrawSize;
75}

Callers

nothing calls this directly

Calls 1

ReadMemoryStringAFunction · 0.85

Tested by

no test coverage detected