MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / Get

Method Get

sourcecommon/utils.cpp:151–166  ·  view source on GitHub ↗

--------------------------------------------------------------- --------------------------------------------------------------------------- ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

149//---------------------------------------------------------------------------
150//---------------------------------------------------------------------------
151void TMyFont::Get(TFont * font)
152{
153 Color = font->Color;
154 Height = font->Height;
155 strncpy(Name, ((AnsiString)font->Name).c_str(), 31);
156 Name[31] = NULL;
157 Pitch = font->Pitch;
158 PixelsPerInch = font->PixelsPerInch;
159 Size = font->Size;
160
161 Style = 0;
162 if( font->Style.Contains(fsBold) ) Style |= 1;
163 if( font->Style.Contains(fsItalic) ) Style |= 2;
164 if( font->Style.Contains(fsUnderline) ) Style |= 4;
165 if( font->Style.Contains(fsStrikeOut) ) Style |= 8;
166}
167//---------------------------------------------------------------
168void TMyFont::Set(TFont * font)
169{

Callers 14

DrawGridClickMethod · 0.45
DrawGridDrawCellMethod · 0.45
OnFrameValuesChangeMethod · 0.45
operator =Method · 0.45
UdpReceiveMessageFunction · 0.45
TcpReceiveMessageFunction · 0.45
DrawGridDrawCellMethod · 0.45
DrawGridClickMethod · 0.45
OnFrameValuesChangeMethod · 0.45
TFrameFunction · 0.45
DrawGridDrawCellMethod · 0.45
DrawGridClickMethod · 0.45

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected