diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index e49e451..32216c6 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -199,7 +199,7 @@ void CHyprBar::handleMovement() { return; } -bool CHyprBar::doButtonPress(long int* const* PBARPADDING, long int* const* PBARBUTTONPADDING, long int* const* PHEIGHT, Vector2D COORDS, const bool BUTTONSRIGHT) { +bool CHyprBar::doButtonPress(Hyprlang::INT* const* PBARPADDING, Hyprlang::INT* const* PBARBUTTONPADDING, Hyprlang::INT* const* PHEIGHT, Vector2D COORDS, const bool BUTTONSRIGHT) { //check if on a button float offset = **PBARPADDING; @@ -368,7 +368,7 @@ void CHyprBar::renderBarTitle(const Vector2D& bufferSize, const float scale) { cairo_surface_destroy(CAIROSURFACE); } -size_t CHyprBar::getVisibleButtonCount(long int* const* PBARBUTTONPADDING, long int* const* PBARPADDING, const Vector2D& bufferSize, const float scale) { +size_t CHyprBar::getVisibleButtonCount(Hyprlang::INT* const* PBARBUTTONPADDING, Hyprlang::INT* const* PBARPADDING, const Vector2D& bufferSize, const float scale) { float availableSpace = bufferSize.x - **PBARPADDING * scale * 2; size_t count = 0; diff --git a/hyprbars/barDeco.hpp b/hyprbars/barDeco.hpp index 600060a..dc06ca3 100644 --- a/hyprbars/barDeco.hpp +++ b/hyprbars/barDeco.hpp @@ -81,7 +81,7 @@ class CHyprBar : public IHyprWindowDecoration { void handleDownEvent(SCallbackInfo& info, std::optional touchEvent); void handleUpEvent(SCallbackInfo& info); void handleMovement(); - bool doButtonPress(long int* const* PBARPADDING, long int* const* PBARBUTTONPADDING, long int* const* PHEIGHT, Vector2D COORDS, bool BUTTONSRIGHT); + bool doButtonPress(Hyprlang::INT* const* PBARPADDING, Hyprlang::INT* const* PBARBUTTONPADDING, Hyprlang::INT* const* PHEIGHT, Vector2D COORDS, bool BUTTONSRIGHT); CBox assignedBoxGlobal(); @@ -102,7 +102,7 @@ class CHyprBar : public IHyprWindowDecoration { // for dynamic updates int m_iLastHeight = 0; - size_t getVisibleButtonCount(long int* const* PBARBUTTONPADDING, long int* const* PBARPADDING, const Vector2D& bufferSize, const float scale); + size_t getVisibleButtonCount(Hyprlang::INT* const* PBARBUTTONPADDING, Hyprlang::INT* const* PBARPADDING, const Vector2D& bufferSize, const float scale); friend class CBarPassElement; };