clean up some of the imports

This commit is contained in:
hippoz 2022-07-26 01:05:21 +03:00
parent 3139582373
commit 59e8806c9e
No known key found for this signature in database
GPG key ID: 7C52899193467641
4 changed files with 10 additions and 9 deletions

View file

@ -1,8 +1,8 @@
#pragma once
#include "src/Layout.hpp"
#include "src/Widget.hpp"
#include "src/Box.hpp"
#include "Layout.hpp"
#include "Widget.hpp"
#include "Box.hpp"
#include <memory>
#include <vector>

View file

@ -30,6 +30,7 @@ void Button::on_paint() {
auto painter = window()->painter();
painter.source_rgb(style()->foreground());
// todo: do we use the max geometry like in Label?
painter.text(rect(), m_text, PaintTextAlign::Center, PANGO_ELLIPSIZE_END, style()->font_description());
painter.fill();
}

View file

@ -1,7 +1,7 @@
#pragma once
#include "Widget.hpp"
#include "src/Point.hpp"
#include "Point.hpp"
#include <memory>
namespace Raven {

View file

@ -8,10 +8,10 @@
#include "RGB.hpp"
#include "DocumentLayout.hpp"
#include "Events.hpp"
#include "src/BoxLayout.hpp"
#include "src/Box.hpp"
#include "src/ScrollContainer.hpp"
#include "src/Styles.hpp"
#include "BoxLayout.hpp"
#include "Box.hpp"
#include "ScrollContainer.hpp"
#include "Styles.hpp"
#include <iostream>
#include <memory>
#include <string>
@ -24,7 +24,7 @@ protected:
void on_paint() {
if (!painter()) return;
painter()->png("tuna.png");
//painter()->png("tuna.png");
painter()->cairo()->paint();
}
};