2022-03-28 16:10:30 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../includes.hpp"
|
|
|
|
|
2022-08-19 22:18:09 +02:00
|
|
|
std::string absolutePath(const std::string&, const std::string&);
|
2022-12-16 18:17:31 +01:00
|
|
|
void addWLSignal(wl_signal*, wl_listener*, void* pOwner, const std::string& ownerString);
|
|
|
|
std::string getFormat(const char* fmt, ...); // Basically Debug::log to a string
|
2022-07-18 20:47:28 +02:00
|
|
|
std::string escapeJSONStrings(const std::string& str);
|
2022-12-16 18:17:31 +01:00
|
|
|
void scaleBox(wlr_box*, float);
|
2022-04-20 16:53:41 +02:00
|
|
|
std::string removeBeginEndSpacesTabs(std::string);
|
2022-12-16 18:17:31 +01:00
|
|
|
bool isNumber(const std::string&, bool allowfloat = false);
|
|
|
|
bool isDirection(const std::string&);
|
|
|
|
int getWorkspaceIDFromString(const std::string&, std::string&);
|
|
|
|
float vecToRectDistanceSquared(const Vector2D& vec, const Vector2D& p1, const Vector2D& p2);
|
|
|
|
void logSystemInfo();
|
2022-06-25 20:49:06 +02:00
|
|
|
std::string execAndGet(const char*);
|
2022-12-16 18:17:31 +01:00
|
|
|
int64_t getPPIDof(int64_t pid);
|
|
|
|
int64_t configStringToInt(const std::string&);
|
|
|
|
float getPlusMinusKeywordResult(std::string in, float relative);
|
|
|
|
void matrixProjection(float mat[9], int w, int h, wl_output_transform tr);
|
2023-02-19 14:45:56 +01:00
|
|
|
double normalizeAngleRad(double ang);
|
|
|
|
std::string replaceInString(std::string subject, const std::string& search, const std::string& replace);
|