view dep/animia/include/animia.h @ 229:adc20fa321c1

theme: force Fusion style on platforms other than Win32 or OS X I was reluctant to do this, but most of the other styles just look like pure shite regardless of whether I force a stylesheet on them or not. KDE's style is actually hilariously bad paired with my stylesheet, so I've decided to also make the stylesheet Windows-specific as well, because that's really the only platform where it makes sense in the first place.
author Paper <paper@paper.us.eu.org>
date Wed, 10 Jan 2024 21:23:57 -0500
parents cdf79282d647
children
line wrap: on
line source

#ifndef __animia__animia_h
#define __animia__animia_h

#include "animia/media.h"
#include "animia/player.h"
#include "animia/types.h"

namespace animia {

enum class ResultType {
	Process,
	Window
};

struct Process {
		internal::pid_t pid = 0;
		std::string name;
};

struct Window {
		unsigned int id = 0;
		std::string class_name;
		std::string text; // title bar text
};

struct Result {
		ResultType type;
		Player player;
		Process process; // unused when using window_title. it's dumb, blame X11
		Window window;   // unused with file descriptors
		std::vector<Media> media;
};

bool GetResults(const std::vector<Player>& players, std::vector<Result>& results);

} // namespace animia

#endif // __animia__animia_h