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 #pragma once
#include "src/Layout.hpp" #include "Layout.hpp"
#include "src/Widget.hpp" #include "Widget.hpp"
#include "src/Box.hpp" #include "Box.hpp"
#include <memory> #include <memory>
#include <vector> #include <vector>

View file

@ -30,6 +30,7 @@ void Button::on_paint() {
auto painter = window()->painter(); auto painter = window()->painter();
painter.source_rgb(style()->foreground()); 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.text(rect(), m_text, PaintTextAlign::Center, PANGO_ELLIPSIZE_END, style()->font_description());
painter.fill(); painter.fill();
} }

View file

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

View file

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