larra/src/main_window.cpp

24 lines
578 B
C++
Raw Normal View History

2024-08-26 04:29:16 +00:00
module;
#include <gtkmm.h>
export module larra.main_window;
import larra.application;
2024-08-26 04:29:16 +00:00
2024-08-26 11:22:03 +00:00
namespace larra {
export struct MainWindow : Gtk::ApplicationWindow {
Gtk::Box main;
Application& app;
MainWindow(Application& app) : app(app) {
2024-08-26 11:22:03 +00:00
this->set_title("Larra");
Gtk::Box leftPanel{Gtk::Orientation::VERTICAL};
leftPanel.set_halign(Gtk::Align::START);
leftPanel.set_expand(true);
Gtk::Box accounts{Gtk::Orientation::VERTICAL};
leftPanel.append(accounts);
this->main.append(leftPanel);
2024-08-26 11:22:03 +00:00
this->set_child(this->main);
}
2024-08-26 04:29:16 +00:00
};
2024-08-26 11:22:03 +00:00
} // namespace larra