include: Break out view.h from labwc.h

IMHO it encourages better design (by making dependencies more obvious)
to have source file/header file pairs like view.c/view.h, rather than a
monolithic header like labwc.h with everything in it.

I don't think we need to break up all of labwc.h at once, but maybe we
can start pulling it apart bit by bit as it's convenient.

Also:

- Move "struct border" to ssd.h so that view.h can use it without pulling
  in all of labwc.h.
- Add a missing required #include within scaled_font_buffer.h (forward
  declaration of "struct font" is not enough).
This commit is contained in:
John Lindgren 2022-11-21 10:10:39 -05:00 committed by Johan Malm
parent 9021020f6e
commit f08e931a29
25 changed files with 194 additions and 165 deletions

View file

@ -7,6 +7,7 @@
#include "labwc.h"
#include "ssd.h"
#include "menu/menu.h"
#include "view.h"
#include "workspaces.h"
#define LAB_FALLBACK_WIDTH 640