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
|
#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>
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
10
src/main.cpp
10
src/main.cpp
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue