MCPcopy Create free account
hub / github.com/buggins/coolreader / AddSourceObject

Method AddSourceObject

crengine/src/lvtextfm.cpp:236–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234bool gFlgFloatingPunctuationEnabled = true;
235
236void LFormattedText::AddSourceObject(
237 lUInt16 flags, /* flags */
238 lUInt8 interval, /* interline space, *16 (16=single, 32=double) */
239 lUInt16 margin, /* first line margin */
240 void * object, /* pointer to custom object */
241 lInt8 letter_spacing
242 )
243{
244 ldomNode * node = (ldomNode*)object;
245 LVImageSourceRef img = node->getObjectImageSource();
246 if ( img.isNull() )
247 img = LVCreateDummyImageSource( node, DUMMY_IMAGE_SIZE, DUMMY_IMAGE_SIZE );
248 lUInt16 width = (lUInt16)img->GetWidth();
249 lUInt16 height = (lUInt16)img->GetHeight();
250 lvtextAddSourceObject(m_pbuffer,
251 width, height,
252 flags, interval, margin, object, letter_spacing );
253}
254
255class LVFormatter {
256public:

Callers 1

renderFinalBlockFunction · 0.80

Calls 6

LVCreateDummyImageSourceFunction · 0.85
lvtextAddSourceObjectFunction · 0.85
getObjectImageSourceMethod · 0.80
isNullMethod · 0.45
GetWidthMethod · 0.45
GetHeightMethod · 0.45

Tested by

no test coverage detected