| 18 | } |
| 19 | |
| 20 | NODESIZE CNodeFloat::Draw( const PVIEWINFO View, int x, int y ) |
| 21 | { |
| 22 | int tx; |
| 23 | NODESIZE DrawSize; |
| 24 | float* Data; |
| 25 | |
| 26 | if (m_bHidden) |
| 27 | return DrawHidden( View, x, y ); |
| 28 | |
| 29 | Data = (float*)(View->Data + m_Offset); |
| 30 | AddSelection( View, 0, y, g_FontHeight ); |
| 31 | AddDelete( View, x, y ); |
| 32 | AddTypeDrop( View, x, y ); |
| 33 | //AddAdd(View,x,y); |
| 34 | |
| 35 | tx = x + TXOFFSET; |
| 36 | tx = AddIcon( View, tx, y, ICON_FLOAT, HS_NONE, HS_NONE ); |
| 37 | tx = AddAddressOffset( View, tx, y ); |
| 38 | tx = AddText( View, tx, y, g_crType, HS_NONE, _T( "float " ) ); |
| 39 | tx = AddText( View, tx, y, g_crName, HS_NAME, _T( "%s" ), m_strName ); |
| 40 | tx = AddText( View, tx, y, g_crName, HS_NONE, _T( " = " ) ); |
| 41 | //tx = AddText(View,tx,y,g_crValue,0,"%.4f",pMemory[0]) + FontWidth; |
| 42 | |
| 43 | //if ( *pMemory > -99999.0f && *pMemory < 99999.0f ) |
| 44 | // *pMemory = 0; |
| 45 | |
| 46 | tx = AddText( View, tx, y, g_crValue, HS_EDIT, _T( "%4.3f" ), *Data ) + g_FontWidth; |
| 47 | tx = AddComment( View, tx, y ); |
| 48 | |
| 49 | DrawSize.x = tx; |
| 50 | DrawSize.y = y + g_FontHeight; |
| 51 | return DrawSize; |
| 52 | } |
nothing calls this directly
no outgoing calls
no test coverage detected