clean up some of the imports
This commit is contained in:
parent
3139582373
commit
59e8806c9e
4 changed files with 10 additions and 9 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "Widget.hpp"
|
||||
#include "src/Point.hpp"
|
||||
#include "Point.hpp"
|
||||
#include <memory>
|
||||
|
||||
namespace Raven {
|
||||
|
|
10
src/main.cpp
10
src/main.cpp
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue