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

Return-To-The-Roots / s25client / 17208623929

25 Aug 2025 12:19PM UTC coverage: 50.497% (-0.005%) from 50.502%
17208623929

Pull #1794

github

web-flow
Merge 136f11398 into e99b7a27a
Pull Request #1794: Fix lags in right-click scrolling for SDL2

14 of 35 new or added lines in 8 files covered. (40.0%)

8 existing lines in 5 files now uncovered.

22514 of 44585 relevant lines covered (50.5%)

35961.31 hits per line

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

80.0
/libs/s25main/controls/ctrlCheck.h
1
// Copyright (C) 2005 - 2025 Settlers Freaks (sf-team at siedler25.org)
2
//
3
// SPDX-License-Identifier: GPL-2.0-or-later
4

5
#pragma once
6

7
#include "Window.h"
8
#include "ctrlBaseTooltip.h"
9
#include <string>
10
class MouseCoords;
11
class glFont;
12

13
class ctrlCheck : public Window, public ctrlBaseTooltip
14
{
15
public:
16
    ctrlCheck(Window* parent, unsigned id, const DrawPoint& pos, const Extent& size, TextureColor tc, std::string text,
17
              const glFont* font, bool readonly);
18

19
    ctrlCheck* setChecked(bool checked)
45✔
20
    {
21
        this->check = checked;
45✔
22
        return this;
45✔
23
    }
UNCOV
24
    bool isChecked() const { return check; }
×
25
    ctrlCheck* setReadOnly(bool readonly)
26
    {
27
        this->readonly = readonly;
28
        return this;
29
    }
30
    bool isReadOnly() const { return readonly; }
42✔
31

32
    bool Msg_LeftDown(const MouseCoords& mc) override;
33
    bool Msg_MouseMove(const MouseCoords& mc) override;
34

35
protected:
36
    void Draw_() override;
37

38
private:
39
    TextureColor tc;
40
    std::string text;
41
    const glFont* font;
42
    bool check;
43
    bool readonly;
44
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc