doc: Convert @ to \ doxygen commands

Ref #1377
This commit is contained in:
patrick96 2018-11-04 16:08:54 +01:00 committed by NBonaparte
parent 07d35df538
commit 6ca4f06785
24 changed files with 65 additions and 65 deletions

View file

@ -20,7 +20,7 @@ POLYBAR_NS
namespace cairo { namespace cairo {
/** /**
* @brief Cairo context * \brief Cairo context
*/ */
class context { class context {
public: public:

View file

@ -15,12 +15,12 @@ POLYBAR_NS
namespace cairo { namespace cairo {
/** /**
* @brief Global pointer to the Freetype library handler * \brief Global pointer to the Freetype library handler
*/ */
static FT_Library g_ftlib; static FT_Library g_ftlib;
/** /**
* @brief Abstract font face * \brief Abstract font face
*/ */
class font { class font {
public: public:
@ -51,7 +51,7 @@ namespace cairo {
}; };
/** /**
* @brief Font based on fontconfig/freetype * \brief Font based on fontconfig/freetype
*/ */
class font_fc : public font { class font_fc : public font {
public: public:

View file

@ -12,7 +12,7 @@ POLYBAR_NS
namespace cairo { namespace cairo {
/** /**
* @brief Base surface * \brief Base surface
*/ */
class surface { class surface {
public: public:
@ -57,7 +57,7 @@ namespace cairo {
}; };
/** /**
* @brief Surface for xcb * \brief Surface for xcb
*/ */
class xcb_surface : public surface { class xcb_surface : public surface {
public: public:

View file

@ -10,7 +10,7 @@ POLYBAR_NS
namespace cairo { namespace cairo {
namespace utils { namespace utils {
/** /**
* @brief RAII wrapper used acquire cairo_device_t * \brief RAII wrapper used acquire cairo_device_t
*/ */
class device_lock { class device_lock {
public: public:
@ -24,7 +24,7 @@ namespace cairo {
}; };
/** /**
* @brief RAII wrapper used to access the underlying * \brief RAII wrapper used to access the underlying
* FT_Face of a scaled font face * FT_Face of a scaled font face
*/ */
class ft_face_lock { class ft_face_lock {
@ -39,7 +39,7 @@ namespace cairo {
}; };
/** /**
* @brief Unicode character containing converted codepoint * \brief Unicode character containing converted codepoint
* and details on where its position in the source string * and details on where its position in the source string
*/ */
struct unicode_character { struct unicode_character {
@ -51,17 +51,17 @@ namespace cairo {
using unicode_charlist = std::list<unicode_character>; using unicode_charlist = std::list<unicode_character>;
/** /**
* @see <cairo/cairo.h> * \see <cairo/cairo.h>
*/ */
cairo_operator_t str2operator(const string& mode, cairo_operator_t fallback); cairo_operator_t str2operator(const string& mode, cairo_operator_t fallback);
/** /**
* @brief Create a UCS-4 codepoint from a utf-8 encoded string * \brief Create a UCS-4 codepoint from a utf-8 encoded string
*/ */
bool utf8_to_ucs4(const unsigned char* src, unicode_charlist& result_list); bool utf8_to_ucs4(const unsigned char* src, unicode_charlist& result_list);
/** /**
* @brief Convert a UCS-4 codepoint to a utf-8 encoded string * \brief Convert a UCS-4 codepoint to a utf-8 encoded string
*/ */
size_t ucs4_to_utf8(char* utf8, unsigned int ucs); size_t ucs4_to_utf8(char* utf8, unsigned int ucs);
} }

View file

@ -179,7 +179,7 @@ class config {
} }
/** /**
* @see deprecated<T> * \see deprecated<T>
*/ */
template <typename T = string> template <typename T = string>
T deprecated_list(const string& section, const string& old, const string& newkey, const vector<T>& fallback) const { T deprecated_list(const string& section, const string& old, const string& newkey, const vector<T>& fallback) const {

View file

@ -81,67 +81,67 @@ class controller : public signal_receiver<SIGN_PRIORITY_CONTROLLER, signals::eve
array<unique_ptr<file_descriptor>, 2> m_queuefd{}; array<unique_ptr<file_descriptor>, 2> m_queuefd{};
/** /**
* @brief State flag * \brief State flag
*/ */
std::atomic<bool> m_process_events{false}; std::atomic<bool> m_process_events{false};
/** /**
* @brief Destination path of generated snapshot * \brief Destination path of generated snapshot
*/ */
string m_snapshot_dst; string m_snapshot_dst;
/** /**
* @brief Controls weather the output gets printed to stdout * \brief Controls weather the output gets printed to stdout
*/ */
bool m_writeback{false}; bool m_writeback{false};
/** /**
* @brief Internal event queue * \brief Internal event queue
*/ */
moodycamel::BlockingConcurrentQueue<event> m_queue; moodycamel::BlockingConcurrentQueue<event> m_queue;
/** /**
* @brief Loaded modules * \brief Loaded modules
*/ */
modulemap_t m_modules; modulemap_t m_modules;
/** /**
* @brief Module input handlers * \brief Module input handlers
*/ */
vector<modules::input_handler*> m_inputhandlers; vector<modules::input_handler*> m_inputhandlers;
/** /**
* @brief Maximum number of subsequent events to swallow * \brief Maximum number of subsequent events to swallow
*/ */
size_t m_swallow_limit{5U}; size_t m_swallow_limit{5U};
/** /**
* @brief Time to wait for subsequent events * \brief Time to wait for subsequent events
*/ */
std::chrono::milliseconds m_swallow_update{10}; std::chrono::milliseconds m_swallow_update{10};
/** /**
* @brief Time to throttle input events * \brief Time to throttle input events
*/ */
std::chrono::milliseconds m_swallow_input{30}; std::chrono::milliseconds m_swallow_input{30};
/** /**
* @brief Time of last handled input event * \brief Time of last handled input event
*/ */
std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds> m_lastinput; std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds> m_lastinput;
/** /**
* @brief Input data * \brief Input data
*/ */
string m_inputdata; string m_inputdata;
/** /**
* @brief Thread for the eventqueue loop * \brief Thread for the eventqueue loop
*/ */
std::thread m_event_thread; std::thread m_event_thread;
/** /**
* @brief Misc threads * \brief Misc threads
*/ */
vector<std::thread> m_threads; vector<std::thread> m_threads;
}; };

View file

@ -26,7 +26,7 @@ namespace drawtypes {
using label_t = shared_ptr<label>; using label_t = shared_ptr<label>;
/** /**
* @decprecated: use label * \deprecated use label
*/ */
using icon = label; using icon = label;
using icon_t = label_t; using icon_t = label_t;

View file

@ -6,7 +6,7 @@
POLYBAR_NS POLYBAR_NS
/** /**
* @brief Holds all signal receivers attached to the emitter * \brief Holds all signal receivers attached to the emitter
*/ */
extern signal_receivers_t g_signal_receivers; extern signal_receivers_t g_signal_receivers;

View file

@ -24,7 +24,7 @@ namespace modules {
static constexpr auto TAG_LABEL = "<label>"; static constexpr auto TAG_LABEL = "<label>";
static constexpr auto EVENT_TOGGLE = "datetoggle"; static constexpr auto EVENT_TOGGLE = "datetoggle";
// @deprecated: Use <label> // \deprecated: Use <label>
static constexpr auto TAG_DATE = "<date>"; static constexpr auto TAG_DATE = "<date>";
label_t m_label; label_t m_label;

View file

@ -16,19 +16,19 @@ namespace modules {
enum class state { enum class state {
NONE, NONE,
/** /**
* @brief Active workspace on focused monitor * \brief Active workspace on focused monitor
*/ */
FOCUSED, FOCUSED,
/** /**
* @brief Inactive workspace on any monitor * \brief Inactive workspace on any monitor
*/ */
UNFOCUSED, UNFOCUSED,
/** /**
* @brief Active workspace on unfocused monitor * \brief Active workspace on unfocused monitor
*/ */
VISIBLE, VISIBLE,
/** /**
* @brief Workspace with urgency hint set * \brief Workspace with urgency hint set
*/ */
URGENT, URGENT,
}; };

View file

@ -18,27 +18,27 @@ DEFINE_ERROR(command_error);
* *
* Example usage: * Example usage:
* *
* @code cpp * \code cpp
* auto cmd = command_util::make_command("cat /etc/rc.local"); * auto cmd = command_util::make_command("cat /etc/rc.local");
* cmd->exec(); * cmd->exec();
* cmd->tail([](string s) { std::cout << s << std::endl; }); * cmd->tail([](string s) { std::cout << s << std::endl; });
* @endcode * \endcode
* *
* @code cpp * \code cpp
* auto cmd = command_util::make_command( * auto cmd = command_util::make_command(
* "while read -r line; do echo data from parent process: $line; done"); * "while read -r line; do echo data from parent process: $line; done");
* cmd->exec(false); * cmd->exec(false);
* cmd->writeline("Test"); * cmd->writeline("Test");
* cout << cmd->readline(); * cout << cmd->readline();
* cmd->wait(); * cmd->wait();
* @endcode * \endcode
* *
* @code cpp * \code cpp
* auto cmd = command_util::make_command("for i in 1 2 3; do echo $i; done"); * auto cmd = command_util::make_command("for i in 1 2 3; do echo $i; done");
* cmd->exec(); * cmd->exec();
* cout << cmd->readline(); // 1 * cout << cmd->readline(); // 1
* cout << cmd->readline() << cmd->readline(); // 23 * cout << cmd->readline() << cmd->readline(); // 23
* @endcode * \endcode
*/ */
class command { class command {
public: public:

View file

@ -28,12 +28,12 @@ namespace scope_util {
* leaving the object's scope (i.e, when it gets destroyed) * leaving the object's scope (i.e, when it gets destroyed)
* *
* Example usage: * Example usage:
* @code cpp * \code cpp
* { * {
* auto handler = scope_util::make_exit_handler([]{ ... }) * auto handler = scope_util::make_exit_handler([]{ ... })
* ... * ...
* } * }
* @endcode * \endcode
*/ */
template <typename Fn = function<void()>, typename... Args> template <typename Fn = function<void()>, typename... Args>
decltype(auto) make_exit_handler(Fn&& fn, Args&&... args) { decltype(auto) make_exit_handler(Fn&& fn, Args&&... args) {

View file

@ -34,11 +34,11 @@ namespace socket_util {
* Creates a wrapper for a unix socket connection * Creates a wrapper for a unix socket connection
* *
* Example usage: * Example usage:
* @code cpp * \code cpp
* auto conn = socket_util::make_unix_connection("/tmp/socket"); * auto conn = socket_util::make_unix_connection("/tmp/socket");
* conn->send(...); * conn->send(...);
* conn->receive(...); * conn->receive(...);
* @endcode * \endcode
*/ */
auto make_unix_connection = [](string&& path) -> unique_ptr<unix_connection> { auto make_unix_connection = [](string&& path) -> unique_ptr<unix_connection> {
return factory_util::unique<unix_connection>(forward<string>(path)); return factory_util::unique<unix_connection>(forward<string>(path));

View file

@ -31,11 +31,11 @@ namespace throttle_util {
* Throttle events within a set window of time * Throttle events within a set window of time
* *
* Example usage: * Example usage:
* @code cpp * \code cpp
* auto t = throttle_util::make_throttler(2, 1s); * auto t = throttle_util::make_throttler(2, 1s);
* if (t->passthrough()) * if (t->passthrough())
* ... * ...
* @endcode * \endcode
*/ */
class event_throttler { class event_throttler {
public: public:

View file

@ -117,7 +117,7 @@ struct cw_flush {
* Create X window * Create X window
* *
* Example usage: * Example usage:
* @code cpp * \code cpp
* auto win = winspec(m_connection) * auto win = winspec(m_connection)
* << cw_size(100, 200) * << cw_size(100, 200)
* << cw_pos(10, -20) * << cw_pos(10, -20)
@ -125,7 +125,7 @@ struct cw_flush {
* << cw_class(XCB_WINDOW_CLASS_INPUT_ONLY) * << cw_class(XCB_WINDOW_CLASS_INPUT_ONLY)
* << cw_parent(0x000110a); * << cw_parent(0x000110a);
* << cw_flush(false); * << cw_flush(false);
* @endcode * \endcode
*/ */
class winspec { class winspec {
public: public:

View file

@ -46,7 +46,7 @@ namespace cairo {
// }}} // }}}
/** /**
* @see <cairo/cairo.h> * \see <cairo/cairo.h>
*/ */
cairo_operator_t str2operator(const string& mode, cairo_operator_t fallback) { cairo_operator_t str2operator(const string& mode, cairo_operator_t fallback) {
if (mode.empty()) { if (mode.empty()) {
@ -89,7 +89,7 @@ namespace cairo {
} }
/** /**
* @brief Create a UCS-4 codepoint from a utf-8 encoded string * \brief Create a UCS-4 codepoint from a utf-8 encoded string
*/ */
bool utf8_to_ucs4(const unsigned char* src, unicode_charlist& result_list) { bool utf8_to_ucs4(const unsigned char* src, unicode_charlist& result_list) {
if (!src) { if (!src) {
@ -130,7 +130,7 @@ namespace cairo {
} }
/** /**
* @brief Convert a UCS-4 codepoint to a utf-8 encoded string * \brief Convert a UCS-4 codepoint to a utf-8 encoded string
*/ */
size_t ucs4_to_utf8(char* utf8, unsigned int ucs) { size_t ucs4_to_utf8(char* utf8, unsigned int ucs) {
if (ucs <= 0x7f) { if (ucs <= 0x7f) {

View file

@ -310,8 +310,8 @@ const bar_settings bar::settings() const {
/** /**
* Parse input string and redraw the bar window * Parse input string and redraw the bar window
* *
* @param data Input string * \param data Input string
* @param force Unless true, do not parse unchanged data * \param force Unless true, do not parse unchanged data
*/ */
void bar::parse(string&& data, bool force) { void bar::parse(string&& data, bool force) {
if (!m_mutex.try_lock()) { if (!m_mutex.try_lock()) {

View file

@ -186,7 +186,7 @@ void builder::node(string str, bool add_space) {
/** /**
* Insert text node with specific font index * Insert text node with specific font index
* *
* @see builder::node * \see builder::node
*/ */
void builder::node(string str, int font_index, bool add_space) { void builder::node(string str, int font_index, bool add_space) {
font(font_index); font(font_index);

View file

@ -114,10 +114,10 @@ namespace bspwm_util {
* Create an ipc socket connection * Create an ipc socket connection
* *
* Example usage: * Example usage:
* @code cpp * \code cpp
* auto ipc = make_connection(); * auto ipc = make_connection();
* ipc->send(make_payload("desktop -f eDP-1:^1")); * ipc->send(make_payload("desktop -f eDP-1:^1"));
* @endcode * \endcode
*/ */
connection_t make_connection() { connection_t make_connection() {
return socket_util::make_unix_connection(get_socket_path()); return socket_util::make_unix_connection(get_socket_path());
@ -128,7 +128,7 @@ namespace bspwm_util {
* on the bspwm socket * on the bspwm socket
* *
* Example usage: * Example usage:
* @code cpp * \code cpp
* auto ipc = make_subscriber(); * auto ipc = make_subscriber();
* *
* while (!ipc->poll(POLLHUP, 0)) { * while (!ipc->poll(POLLHUP, 0)) {
@ -136,7 +136,7 @@ namespace bspwm_util {
* auto data = ipc->receive(BUFSIZ-1, bytes_received, 0); * auto data = ipc->receive(BUFSIZ-1, bytes_received, 0);
* std::cout << data << std::endl; * std::cout << data << std::endl;
* } * }
* @endcode * \endcode
*/ */
connection_t make_subscriber() { connection_t make_subscriber() {
auto conn = make_connection(); auto conn = make_connection();

View file

@ -145,7 +145,7 @@ int command::wait() {
/** /**
* Tail command output * Tail command output
* *
* @note: This is a blocking call and will not * \note: This is a blocking call and will not
* end until the stream is closed * end until the stream is closed
*/ */
void command::tail(callback<string> cb) { void command::tail(callback<string> cb) {

View file

@ -50,7 +50,7 @@ void inotify_watch::remove(bool force) {
/** /**
* Poll the inotify fd for events * Poll the inotify fd for events
* *
* @brief A wait_ms of -1 blocks until an event is fired * \brief A wait_ms of -1 blocks until an event is fired
*/ */
bool inotify_watch::poll(int wait_ms) const { bool inotify_watch::poll(int wait_ms) const {
if (m_fd == -1) { if (m_fd == -1) {

View file

@ -72,7 +72,7 @@ namespace process_util {
/** /**
* Non-blocking wait * Non-blocking wait
* *
* @see wait_for_completion * \see wait_for_completion
*/ */
pid_t wait_for_completion_nohang(pid_t process_id, int* status) { pid_t wait_for_completion_nohang(pid_t process_id, int* status) {
return wait_for_completion(process_id, status, WNOHANG); return wait_for_completion(process_id, status, WNOHANG);
@ -81,7 +81,7 @@ namespace process_util {
/** /**
* Non-blocking wait * Non-blocking wait
* *
* @see wait_for_completion * \see wait_for_completion
*/ */
pid_t wait_for_completion_nohang(int* status) { pid_t wait_for_completion_nohang(int* status) {
return wait_for_completion_nohang(-1, status); return wait_for_completion_nohang(-1, status);
@ -90,7 +90,7 @@ namespace process_util {
/** /**
* Non-blocking wait * Non-blocking wait
* *
* @see wait_for_completion * \see wait_for_completion
*/ */
pid_t wait_for_completion_nohang() { pid_t wait_for_completion_nohang() {
int status = 0; int status = 0;
@ -100,7 +100,7 @@ namespace process_util {
/** /**
* Non-blocking wait call which returns pid of any child process * Non-blocking wait call which returns pid of any child process
* *
* @see wait_for_completion * \see wait_for_completion
*/ */
bool notify_childprocess() { bool notify_childprocess() {
return wait_for_completion_nohang() > 0; return wait_for_completion_nohang() > 0;

View file

@ -85,7 +85,7 @@ namespace socket_util {
} }
/** /**
* @see receive * \see receive
*/ */
string unix_connection::receive(const ssize_t receive_bytes, int flags) { string unix_connection::receive(const ssize_t receive_bytes, int flags) {
ssize_t bytes{0}; ssize_t bytes{0};

View file

@ -945,7 +945,7 @@ void tray_manager::handle(const evt::configure_request& evt) {
} }
/** /**
* @see tray_manager::handle(const evt::configure_request&); * \see tray_manager::handle(const evt::configure_request&);
*/ */
void tray_manager::handle(const evt::resize_request& evt) { void tray_manager::handle(const evt::resize_request& evt) {
if (m_activated && is_embedded(evt->window)) { if (m_activated && is_embedded(evt->window)) {