Пример #1
0
ShellContent::ShellContent() : 
    WindowContent(),
    _leading( 0.06 ),
    _fontScale( 0.045),
    _fontAspect( 0.9 ),
    _fontWeight( 1.8 ),
    _canvasDirty ( true ),
    _viewportDirty ( true )
{
    _loc.line = 0;
    _loc.chr = 0;
    _wSpace = drawString_length_mono ("m");
    _wTab = _wSpace * 4;
    _viewport.setScale( 1.1, 1.1 );
    _output = new TextBuffer();
    _id = IDManager::instance()->getStencilID();
    _prompt = "audicle";
}
Пример #2
0
void drawString_centered_mono ( const std::string & str ) { 
    glTranslated( -drawString_length_mono(str)*0.5, 0, 0);
    drawString_mono(str);
}