mirror of
https://github.com/hyprwm/hyprutils.git
synced 2026-01-03 17:30:11 +01:00
bruh
This commit is contained in:
parent
0ccb43f5cd
commit
65c8b4f132
4 changed files with 3 additions and 5 deletions
|
|
@ -73,7 +73,6 @@ namespace Hyprutils::Math {
|
|||
* @brief Constructs a CBox with uniform dimensions.
|
||||
* @param d Dimensions to apply uniformly (x, y, width, height).
|
||||
*/
|
||||
// XD. This comment will be deleted before MR, but it'll be saved in the history. Sometimes it's nice to be an idiot.
|
||||
CBox(const double d) : x(d), y(d) {
|
||||
w = d;
|
||||
h = d;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
//NOLINTNEXTLINE
|
||||
namespace Hyprutils::Math {
|
||||
// Welcome nahui
|
||||
enum eTransform : unsigned char {
|
||||
HYPRUTILS_TRANSFORM_NORMAL = 0,
|
||||
HYPRUTILS_TRANSFORM_90 = 1,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Hyprutils::Math {
|
|||
return *this;
|
||||
}
|
||||
|
||||
// CRegion&& will shit-talkin you about being non-redeclarable and CRegion const&... pixman moment.
|
||||
// I guess it is correct...
|
||||
CRegion& operator=(CRegion other) {
|
||||
pixman_region32_copy(&m_rRegion, other.pixman());
|
||||
return *this;
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ using namespace Hyprutils::String;
|
|||
std::string Hyprutils::String::trim(const std::string& in) {
|
||||
if (in.empty())
|
||||
return in;
|
||||
//Wsign-compare
|
||||
|
||||
size_t countBefore = 0;
|
||||
while (countBefore < in.length() && std::isspace(in.at(countBefore))) {
|
||||
countBefore++;
|
||||
}
|
||||
//Wsign-compare
|
||||
|
||||
size_t countAfter = 0;
|
||||
while (countAfter < in.length() - countBefore && std::isspace(in.at(in.length() - countAfter - 1))) {
|
||||
countAfter++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue