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

Method Draw

ReClass/CNodeFunctionPtr.cpp:58–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58NODESIZE CNodeFunctionPtr::Draw( const PVIEWINFO View, int x, int y )
59{
60 NODESIZE DrawSize;
61 int tx, ax;
62
63 if (m_bHidden)
64 return DrawHidden( View, x, y );
65
66 AddSelection( View, 0, y, g_FontHeight );
67 AddDelete( View, x, y );
68 AddTypeDrop( View, x, y );
69 //AddAdd(View,x,y);
70
71 tx = x + TXOFFSET;
72 tx = AddIcon( View, tx, y, ICON_METHOD, -1, -1 );
73 ax = tx;
74 tx = AddAddressOffset( View, tx, y );
75
76 if (m_pParentNode->GetType( ) != nt_vtable)
77 {
78 tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "FunctionPtr" ) );
79 }
80 else
81 {
82 tx = AddText( View, tx, y, g_crFunction, HS_NONE, _T( "(%i)" ), m_Offset / sizeof( ULONG_PTR ) );
83 }
84
85 tx = AddIcon( View, tx, y, ICON_CAMERA, HS_EDIT, HS_CLICK );
86 tx += g_FontWidth;
87
88 if (m_strName.IsEmpty( ))
89 {
90 tx = AddText( View, tx, y, g_crName, HS_NAME, _T( "Function_%i" ), m_Offset / sizeof( ULONG_PTR ) );
91 }
92 else
93 {
94 tx = AddText( View, tx, y, g_crName, HS_NAME, _T( "%s" ), m_strName );
95 }
96
97 tx += g_FontWidth;
98
99 if (m_nLines > 0)
100 tx = AddOpenClose( View, tx, y );
101
102 tx += g_FontWidth;
103
104 tx = AddComment( View, tx, y );
105
106 if (m_LevelsOpen[View->Level])
107 {
108 //for (size_t i = 0; i < m_Assembly.size( ); i++)
109 //{
110 // y += g_FontHeight;
111 // AddText( View, ax, y, g_crHex, HS_EDIT, "%s", m_Assembly[i].GetBuffer( ) );
112 //}
113
114 y += g_FontHeight;
115

Callers

nothing calls this directly

Calls 1

GetTypeMethod · 0.80

Tested by

no test coverage detected