Commit graph

4 commits

Author SHA1 Message Date
Sal
0675a4e527 Tally screen 2023-09-09 05:27:55 +00:00
James R
c497dcaf49 srb2::Draw::Chain: make copy assignment private, make bruh moments a little more obvious
If you define a variable with type auto and initialize it
with the result of a builder chain -- e.g.

   auto var = Draw().x(0)

-- the resulting variable will be an instance of
srb2::Draw::Chain, and calling builder methods on it will
modify the instance itself, instead of creating a
temporary, like an instance of srb2::Draw would.

Hiding the copy assignment can make this a little more
obvious by emitting an error if you try to reassign the
variable later. E.g.

    var = var.x(0)

That's the best I can do to mitigate this.
2023-09-01 22:13:17 +01:00
James R
8c0f7d5757 Add Draw::Font::kZVote and Draw::Font::kPing
- OPPRF_FONT
- PINGF_FONT
2023-06-29 19:27:35 -07:00
James R
d2ca5d6506 v_draw.cpp, v_draw.hpp: add srb2::Draw, 2D drawing abstraction 2023-04-28 12:50:25 -07:00