.h -> .hpp for clearer ABI (non)compatibility
This commit is contained in:
37
include/HyprlandService.hpp
Normal file
37
include/HyprlandService.hpp
Normal file
@@ -0,0 +1,37 @@
|
||||
#ifndef HYPRLAND_SERVICE_H
|
||||
#define HYPRLAND_SERVICE_H
|
||||
|
||||
#include <list>
|
||||
#include "Workspace.hpp"
|
||||
#include "Client.hpp"
|
||||
#include "WindowRule.hpp"
|
||||
|
||||
class HyprlandService {
|
||||
private:
|
||||
static std::string configFilePath;
|
||||
static std::string getConfigFilePath();
|
||||
|
||||
static std::list<Workspace> getWorkspaces();
|
||||
static std::optional<Workspace> getWorkspace(int);
|
||||
static Workspace getCurrentWorkspace();
|
||||
|
||||
static std::list<Client> getClients();
|
||||
static std::list<Client> getClientsOnActiveWorkspace();
|
||||
static Client getActiveClient();
|
||||
|
||||
static bool isFloatingRulePresent(int);
|
||||
static bool isFloatingRulePresent(Workspace);
|
||||
static std::list<WindowRule> getWindowRules();
|
||||
static std::optional<WindowRule> findConflictingRule(WindowRule);
|
||||
static void setFloatingRule(bool);
|
||||
static void removeRule(WindowRule);
|
||||
|
||||
static void setClientFloating(Client);
|
||||
static void setClientTiled(Client);
|
||||
public:
|
||||
static void toggleFloating();
|
||||
static void moveToWorkspace(int);
|
||||
static void setConfigFilePath(std::string);
|
||||
static WindowRule getActiveWorkspaceRule();
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user