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

Method CRControlsMenuItem

cr3gui/src/settings.cpp:147–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147CRControlsMenuItem::CRControlsMenuItem( CRControlsMenu * menu, int id, int key, int flags, const CRGUIAccelerator * defAcc )
148: CRMenuItem(menu, id, getKeyName(key, flags), LVImageSourceRef(), LVFontRef() ), _key( key ), _flags(flags)
149{
150 _defCommand = _defParams = 0;
151 if ( defAcc ) {
152 _defCommand = defAcc->commandId;
153 _defParams = defAcc->commandParam;
154 }
155 _controlsMenu = menu;
156 _settingKey = menu->getSettingKey( key, flags );
157}
158
159void CRControlsMenuItem::Draw( LVDrawBuf & buf, lvRect & rc, CRRectSkinRef skin, CRRectSkinRef valueSkin, bool selected )
160{

Callers

nothing calls this directly

Calls 2

getKeyNameFunction · 0.85
getSettingKeyMethod · 0.80

Tested by

no test coverage detected