• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Return-To-The-Roots / s25client / 44076625557

17 Nov 2026 11:43AM UTC coverage: 51.803% (-0.002%) from 51.805%
44076625557

push

github

web-flow
Merge pull request #2018 from Return-To-The-Roots/refactor/lowerCamelCase-methods

Rename Msg_* handlers to lowerCamelCase

8121 of 16693 new or added lines in 565 files covered. (48.65%)

323 existing lines in 133 files now uncovered.

24236 of 46785 relevant lines covered (51.8%)

49647.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/libs/s25main/controls/ctrlVarText.cpp
1
// Copyright (C) 2005 - 2021 Settlers Freaks (sf-team at siedler25.org)
2
//
3
// SPDX-License-Identifier: GPL-2.0-or-later
4

5
#include "ctrlVarText.h"
6
#include "ogl/glFont.h"
7

8
/**
9
 *  Konstruktor des Textcontrols, welches variablen Inhalt haben kann.
10
 *
11
 *  @param[in] parent    Handle zum übergeordneten Fenster
12
 *  @param[in] id        Steuerelement-ID
13
 *  @param[in] x         X-Position des Steuerelements
14
 *  @param[in] y         Y-Position des Steuerelements
15
 *  @param[in] formatstr Formatstring (vgl. printf)
16
 *  @param[in] color     Farbe des Textes
17
 *  @param[in] format    Format des Textes (links, mittig, rechts, usw)
18
 *  @param[in] font      Schrift des Textes
19
 *  @param[in] count     Anzahl der nachfolgenden Pointer
20
 *  @param[in] liste     Pointerliste der variablen Inhalte
21
 */
22
ctrlVarText::ctrlVarText(Window* parent, unsigned id, const DrawPoint& pos, const std::string& formatstr,
×
23
                         unsigned color, FontStyle format, const glFont* font, unsigned count, va_list fmtArgs)
×
24
    : Window(parent, id, pos), ctrlBaseVarText(formatstr, color, font, count, fmtArgs), format_(format)
×
25
{}
×
26

27
ctrlVarText::~ctrlVarText() = default;
×
28

NEW
29
Rect ctrlVarText::getBoundaryRect() const
×
30
{
NEW
31
    return font->getBounds(getDrawPos(), getFormatedText(), format_);
×
32
}
33

NEW
34
void ctrlVarText::drawImpl()
×
35
{
NEW
36
    font->draw(getDrawPos(), getFormatedText(), format_, color_);
×
37
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc