Commit graph

35 commits

Author SHA1 Message Date
2988a27c58
ugh 2024-07-09 19:55:45 +03:00
a5afa58175
return just the base on config not found 2024-07-09 19:52:26 +03:00
e73ddfe051
findConfig: return pair 2024-07-09 18:01:03 +03:00
338e715a95
path: add findConfig and dir utils 2024-07-09 17:41:28 +03:00
a8c3a13570 math/region: add expand 2024-07-05 20:17:24 +02:00
Maximilian Seidler
259ecfa098
string: respect removeEmpty when VarList input is empty (#7) 2024-07-04 18:04:41 +02:00
1d20063da2 math: avoid assert fail in std::clamp in closestPoint 2024-07-04 15:49:06 +02:00
drendog
bbc76ba4e4
math: adjust right and bottom box edges (#6) 2024-07-02 12:16:59 +02:00
Tom Englund
7e1b6610a2
memory: avoid undefined behaviour from downcasting ptr implentation (#5)
* sharedptr: dont downcast ptr implentation

avoid runtime errors of wrong downcasts by adding a underlaying ptr data
getter and only cast the data, downcasting the implentation type isnt
inherited from eachother, while the intention was do upcast/downcast
a derived class to a base class. found with UBSAN "runtime error:
downcast of address which does not point to an object of type
"CSharedPointer_::impl<IKeyboard>" note: object is of type
"Hyprutils::Memory::CSharedPointer_::impl<CKeyboard>"

also make dataNonNull check against != nullptr.

* sharedptr: use reinterpret_cast instead of c style

make it more type safe, C style casts tries every single one until one
works, or not. compilers also produces better warnings/errors when using
c++ casts in favour of C style ones.
2024-06-28 18:49:58 +02:00
1f6bbec595 cmake: bump ver to 0.1.5 2024-06-25 13:48:22 +02:00
sslater11
5606bf985b
README: Update build instructions (#4) 2024-06-25 01:18:45 +02:00
Jasson Cordones
7a2c2c96ec
Math: Some more box improvements and test cases (#3)
* Added some constants to handle floating point presicion comparisons and other calculations plus some refactoring

* Removed validation

* Added comments to understand how box header works

* Extended the EXPECT macro to evaluate Vector2D test cases

* Added box.cpp test cases

* Applied clang-format
2024-06-25 01:17:44 +02:00
Jasson Cordones
ff343e0279
Math: Added some constants to handle floating point presicion comparisons (#2)
* Added some constants to handle floating point presicion comparisons and other calculations plus some refactoring

* Removed validation
2024-06-23 20:14:57 +02:00
725f63aabc vector: prefix macros with AQ_ 2024-06-19 23:16:16 +02:00
4f1351295c cmake: bump ver to 0.1.4 2024-06-19 15:34:38 +02:00
4436fbfc67
Nix: add pixman dep 2024-06-19 09:12:49 +03:00
1f59192a2d ci: add pixman to dependencies 2024-06-18 23:36:10 +02:00
b4b5389bc1 Math: add an int ctor to vec 2024-06-18 18:17:55 +02:00
e9d4a99e13 Math: init Region, Vector2D and Box 2024-06-18 14:10:18 +02:00
a8f9373474 cmake: bump version to 0.1.3 2024-06-17 13:24:41 +02:00
d4c71b925c
Nix: don't strip debug symbols 2024-06-17 13:05:21 +03:00
ea8fd1d3ea string: fix isNumber accepting - as valid number 2024-06-15 11:36:28 +02:00
8e10e0626f cmake: bump ver to 0.1.2 2024-06-13 11:36:49 +02:00
Tom Englund
1f4743a1f7
sharedptr: decrement on destruction (#1)
if we dont decrement the sharedptr on destruction any weakptr remaining
will have an impl_ with a ref of 1 and upon destruction of the weakptr
it wont delete the implentation because it thinks a shared pointer still
exist.
2024-06-13 11:29:50 +02:00
0693f9398a
CI: add nix 2024-06-09 00:15:34 +03:00
ef441d2178
CMake: fix description 2024-06-09 00:14:07 +03:00
ebd3c47d3f
Nix: init 2024-06-09 00:13:58 +03:00
fce960f0dd cmake: bump ver to 0.1.1 2024-06-08 22:38:46 +02:00
f73a28ca03 string: add replaceInString 2024-06-08 22:35:40 +02:00
138408125c string: add VarList 2024-06-08 22:24:55 +02:00
ac4e6d76b9 cmake: fixup headers and pc installation 2024-06-08 19:43:00 +02:00
59000fadca cmake: fixup installation 2024-06-08 19:40:52 +02:00
Vaxry
5e6f63032a
README: add basic info 2024-06-08 19:39:18 +02:00
bf73356d39 utils: Initial Commit 2024-06-08 19:37:15 +02:00
Vaxry
cbc7c2df31
Initial commit 2024-06-08 18:51:36 +02:00