mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: init repo
This commit is contained in:
30
include/bar.hpp
Normal file
30
include/bar.hpp
Normal file
@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <gtkmm.h>
|
||||
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
|
||||
|
||||
namespace waybar {
|
||||
|
||||
struct Client;
|
||||
|
||||
struct Bar {
|
||||
Bar(Client& client, std::unique_ptr<struct wl_output *>&& output);
|
||||
Bar(const Bar&) = delete;
|
||||
Client& client;
|
||||
Gtk::Window window;
|
||||
struct wl_surface *surface;
|
||||
struct zwlr_layer_surface_v1 *layer_surface;
|
||||
std::unique_ptr<struct wl_output *> output;
|
||||
bool visible = true;
|
||||
auto set_width(int) -> void;
|
||||
auto toggle() -> void;
|
||||
private:
|
||||
auto setup_widgets() -> void;
|
||||
auto setup_css() -> void;
|
||||
|
||||
int width = 10;
|
||||
Glib::RefPtr<Gtk::StyleContext> style_context;
|
||||
Glib::RefPtr<Gtk::CssProvider> css_provider;
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user