i3
|
#include "all.h"
Go to the source code of this file.
Macros | |
#define | I3__FILE__ "fake_outputs.c" |
Functions | |
static Output * | get_screen_at (unsigned int x, unsigned int y) |
void | fake_outputs_init (const char *output_spec) |
Creates outputs according to the given specification. More... | |
Variables | |
static int | num_screens |
#define I3__FILE__ "fake_outputs.c" |
Definition at line 2 of file fake_outputs.c.
void fake_outputs_init | ( | const char * | output_spec | ) |
Creates outputs according to the given specification.
The specification must be in the format wxh+x+y, for example 1024x768+0+0, with multiple outputs separated by commas: 1900x1200+0+0,1280x1024+1900+0
Definition at line 37 of file fake_outputs.c.
References xoutput::active, xoutput::con, DLOG, ELOG, get_screen_at(), height, Rect::height, init_ws_for_output(), min(), xoutput::name, num_screens, output_get_content(), output_init_con(), outputs, xoutput::rect, sasprintf(), scalloc(), TAILQ_INSERT_HEAD, TAILQ_INSERT_TAIL, width, Rect::width, x, Rect::x, y, and Rect::y.
Referenced by main().
|
static |
Definition at line 21 of file fake_outputs.c.
References outputs, xoutput::rect, TAILQ_FOREACH, Rect::x, and Rect::y.
Referenced by fake_outputs_init().
|
static |
Definition at line 15 of file fake_outputs.c.
Referenced by fake_outputs_init().