Commit graph

49 commits

Author SHA1 Message Date
Mihai Fufezan
3ce0cde870
nix: add debug flag
enable keepDebugInfo adapter on debug
build with mold linker
2024-11-07 10:41:43 +02:00
Vaxry
fd4be8b9ca os: Add process 2024-10-14 22:27:36 +01:00
Vaxry
3f5293432b tests: enhance memory + format 2024-09-25 22:44:05 +01:00
Vaxry
db956287d3 mat3x3: fix comment 2024-09-25 00:05:20 +01:00
Vaxry
7373e87215 version: bump to 0.2.3 2024-09-24 23:58:26 +01:00
Vaxry
a9f85a4bca
Math: add Mat3x3 (#14) 2024-09-24 18:18:25 +01:00
Vaxry
d97af4f6bd version: bump to 0.2.2 2024-09-21 00:29:09 +01:00
Mihai Fufezan
8976e3f6a5
gitignore: add CMake residual files 2024-08-30 00:21:23 +03:00
Vaxry
aadf9a27dd string: fixup isNumber not accepting -1.0
fixes #12
2024-08-28 18:53:00 +02:00
Vaxry
0252fd13e7 utils: add ScopeGuard 2024-08-05 16:45:41 +02:00
vaxerski
5dcbbc1e3d version: bump to 0.2.1 2024-07-27 18:47:29 +02:00
outfoxxed
a950624669
math: add Edges (#10) 2024-07-27 17:38:55 +01:00
Mihai Fufezan
962582a090
flake.lock: update 2024-07-18 20:35:02 +03:00
Mihai Fufezan
04697c69ab
CMake: fmt 2024-07-18 20:34:31 +03:00
Mihai Fufezan
928d9b4ee9
CMake, Nix: add VERSION file 2024-07-18 20:34:06 +03:00
Vaxry
eb1ceff2b8 cmake: bump ver to 0.2.0 2024-07-15 21:28:57 +02:00
Mihai Fufezan
6174a2a25f
path: add findConfig and dir utils (#8) 2024-07-09 19:11:16 +02:00
Vaxry
c342d5ca44 memory: do not release pointers after emitting a signal
A signal called is allowed to free ourselves, in which case we're not allowed to use this anymore. Only perform the housekeeping of removing stale events before emit, and in registerListener.
2024-07-08 23:06:28 +02:00
Vaxry
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
Vaxry
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
Vaxry
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
Vaxry
725f63aabc vector: prefix macros with AQ_ 2024-06-19 23:16:16 +02:00
Vaxry
4f1351295c cmake: bump ver to 0.1.4 2024-06-19 15:34:38 +02:00
Mihai Fufezan
4436fbfc67
Nix: add pixman dep 2024-06-19 09:12:49 +03:00
Vaxry
1f59192a2d ci: add pixman to dependencies 2024-06-18 23:36:10 +02:00
Vaxry
b4b5389bc1 Math: add an int ctor to vec 2024-06-18 18:17:55 +02:00
Vaxry
e9d4a99e13 Math: init Region, Vector2D and Box 2024-06-18 14:10:18 +02:00
Vaxry
a8f9373474 cmake: bump version to 0.1.3 2024-06-17 13:24:41 +02:00
Mihai Fufezan
d4c71b925c
Nix: don't strip debug symbols 2024-06-17 13:05:21 +03:00
Vaxry
ea8fd1d3ea string: fix isNumber accepting - as valid number 2024-06-15 11:36:28 +02:00
Vaxry
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
Mihai Fufezan
0693f9398a
CI: add nix 2024-06-09 00:15:34 +03:00
Mihai Fufezan
ef441d2178
CMake: fix description 2024-06-09 00:14:07 +03:00
Mihai Fufezan
ebd3c47d3f
Nix: init 2024-06-09 00:13:58 +03:00
Vaxry
fce960f0dd cmake: bump ver to 0.1.1 2024-06-08 22:38:46 +02:00
Vaxry
f73a28ca03 string: add replaceInString 2024-06-08 22:35:40 +02:00
Vaxry
138408125c string: add VarList 2024-06-08 22:24:55 +02:00
Vaxry
ac4e6d76b9 cmake: fixup headers and pc installation 2024-06-08 19:43:00 +02:00
Vaxry
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
Vaxry
bf73356d39 utils: Initial Commit 2024-06-08 19:37:15 +02:00
Vaxry
cbc7c2df31
Initial commit 2024-06-08 18:51:36 +02:00