MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / SetRightMargin

Method SetRightMargin

src/Display/Lcd/Lcd.cpp:337–340  ·  view source on GitHub ↗

Set the right margin. In graphics mode, anything written will be truncated at the right margin. Defaults to the right hand edge of the display.

Source from the content-addressed store, hash-verified

335
336// Set the right margin. In graphics mode, anything written will be truncated at the right margin. Defaults to the right hand edge of the display.
337void Lcd::SetRightMargin(PixelNumber r) noexcept
338{
339 rightMargin = min<PixelNumber>(r, numCols);
340}
341
342// Clear a rectangle from the current position to the right margin. The height of the rectangle is the height of the current font.
343void Lcd::ClearToMargin() noexcept

Callers 7

ButtonMenuItem.cppFile · 0.80
TextMenuItem.cppFile · 0.80
FilesMenuItem.cppFile · 0.80
LoadFixedMenuMethod · 0.80
DisplayMessageBoxMethod · 0.80
ReloadMethod · 0.80
MenuItem.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected