@@ -27,80 +27,80 @@ std::string get_socketpath();
2727 * Primitive of rectangle
2828 */
2929struct rect_t {
30- int x; /* * < Position on X axis */
31- int y; /* * < Position on Y axis */
32- int width; /* * < Width of rectangle */
33- int height; /* * < Height of rectangle */
30+ int x; // / < Position on X axis
31+ int y; // / < Position on Y axis
32+ int width; // / < Width of rectangle
33+ int height; // / < Height of rectangle
3434};
3535
3636/* *
3737 * i3's workspace
3838 */
3939struct workspace_t {
40- int num; /* * < Index of the worksapce */
41- std::string name; /* * < Name of the workspace */
42- bool visible; /* * < Is the workspace visible */
43- bool focused; /* * < Is the workspace is currently focused */
44- bool urgent; /* * < Is the workspace is urgent */
45- rect_t rect; /* * < A size of the workspace */
46- std::string output; /* * < An output of the workspace */
40+ int num; // / < Index of the worksapce
41+ std::string name; // / < Name of the workspace
42+ bool visible; // / < Is the workspace visible
43+ bool focused; // / < Is the workspace is currently focused
44+ bool urgent; // / < Is the workspace is urgent
45+ rect_t rect; // / < A size of the workspace
46+ std::string output; // / < An output of the workspace
4747};
4848
4949/* *
5050 * i3's output
5151 */
5252struct output_t {
53- std::string name; /* * < Name of the output */
54- bool active; /* * < Is the output currently active */
55- std::string current_workspace; /* * < Name of current workspace */
56- rect_t rect; /* * < Size of the output */
53+ std::string name; // / < Name of the output
54+ bool active; // / < Is the output currently active
55+ std::string current_workspace; // / < Name of current workspace
56+ rect_t rect; // / < Size of the output
5757};
5858
5959/* *
6060 * Version of i3
6161 */
6262struct version_t {
63- std::string human_readable; /* * < Human redable version string */
64- std::string loaded_config_file_name; /* * < Path to current config of i3 */
65- uint32_t major; /* * < Major version of i3 */
66- uint32_t minor; /* * < Minor version of i3 */
67- uint32_t patch; /* * < Patch number of i3 */
63+ std::string human_readable; // / < Human redable version string
64+ std::string loaded_config_file_name; // / < Path to current config of i3
65+ uint32_t major; // / < Major version of i3
66+ uint32_t minor; // / < Minor version of i3
67+ uint32_t patch; // / < Patch number of i3
6868};
6969
7070
7171/* *
7272 * Types of the events of i3
7373 */
7474enum EventType {
75- ET_WORKSPACE = (1 << 0 ), /* * < Workspace event */
76- ET_OUTPUT = (1 << 1 ), /* * < Output event */
77- ET_MODE = (1 << 2 ), /* * < Output mode event */
78- ET_WINDOW = (1 << 3 ), /* * < Window event */
79- ET_BARCONFIG_UPDATE = (1 << 4 ), /* * < Bar config update event @attention Yet is not implemented as signal in I3Connection */
75+ ET_WORKSPACE = (1 << 0 ), // / < Workspace event
76+ ET_OUTPUT = (1 << 1 ), // / < Output event
77+ ET_MODE = (1 << 2 ), // / < Output mode event
78+ ET_WINDOW = (1 << 3 ), // / < Window event
79+ ET_BARCONFIG_UPDATE = (1 << 4 ), // / < Bar config update event @attention Yet is not implemented as signal in I3Connection
8080};
8181
8282/* *
8383 * Types of workspace events
8484 */
8585enum class WorkspaceEventType : char {
86- FOCUS = ' f' , /* * < Focused */
87- INIT = ' i' , /* * < Initialized */
88- EMPTY = ' e' , /* * < Became empty */
89- URGENT = ' u' , /* * < Became urgent */
86+ FOCUS = ' f' , // / < Focused
87+ INIT = ' i' , // / < Initialized
88+ EMPTY = ' e' , // / < Became empty
89+ URGENT = ' u' , // / < Became urgent
9090};
9191
9292/* *
9393 * Types of window events
9494 */
9595enum class WindowEventType : char {
96- NEW = ' n' , /* * < Window created */
97- CLOSE = ' c' , /* * < Window closed */
98- FOCUS = ' f' , /* * < Window got focus */
99- TITLE = ' t' , /* * < Title of window has been changed */
100- FULLSCREEN_MODE = ' F' , /* * < Window toggled to fullscreen mode */
101- MOVE = ' M' , /* * < Window moved */
102- FLOATING = ' _' , /* * < Window toggled floating mode */
103- URGENT = ' u' , /* * < Window became urgent */
96+ NEW = ' n' , // / < Window created
97+ CLOSE = ' c' , // / < Window closed
98+ FOCUS = ' f' , // / < Window got focus
99+ TITLE = ' t' , // / < Title of window has been changed
100+ FULLSCREEN_MODE = ' F' , // / < Window toggled to fullscreen mode
101+ MOVE = ' M' , // / < Window moved
102+ FLOATING = ' _' , // / < Window toggled floating mode
103+ URGENT = ' u' , // / < Window became urgent
104104};
105105
106106
@@ -226,12 +226,12 @@ class I3Connection {
226226 */
227227 void handle_event ();
228228
229- sigc::signal<void , WorkspaceEventType> signal_workspace_event; /* * < Workspace event signal */
230- sigc::signal<void > signal_output_event; /* * < Output event signal */
231- sigc::signal<void > signal_mode_event; /* * < Output mode event signal */
232- sigc::signal<void , WindowEventType> signal_window_event; /* * < Window event signal */
233- sigc::signal<void > signal_barconfig_update_event; /* * < Barconfig update event signal */
234- sigc::signal<void , EventType, const std::shared_ptr<const buf_t >&> signal_event; /* * < i3 event signal @note Default handler routes event to signal according to type */
229+ sigc::signal<void , WorkspaceEventType> signal_workspace_event; // / < Workspace event signal
230+ sigc::signal<void > signal_output_event; // / < Output event signal
231+ sigc::signal<void > signal_mode_event; // / < Output mode event signal
232+ sigc::signal<void , WindowEventType> signal_window_event; // / < Window event signal
233+ sigc::signal<void > signal_barconfig_update_event; // / < Barconfig update event signal
234+ sigc::signal<void , EventType, const std::shared_ptr<const buf_t >&> signal_event; // / < i3 event signal @note Default handler routes event to signal according to type
235235private:
236236 const int32_t m_main_socket;
237237 int32_t m_event_socket;
0 commit comments