📄 scribble.hh
字号:
#include <gfc/main.hh>#include <gfc/gtk/drawingarea.hh>#include <gfc/gtk/widgetsignals.hh>#include <gfc/gtk/window.hh>using namespace GFC;class DrawingArea : public Gtk::DrawingArea, protected Gtk::WidgetSignals{ Gdk::Pixmap *pixmap; void draw_brush(double x, double y);protected: virtual bool on_expose_event(const Gdk::EventExpose& event); virtual bool on_configure_event(const Gdk::EventConfigure& event); virtual bool on_button_press_event(const Gdk::EventButton& event); virtual bool on_motion_notify_event(const Gdk::EventMotion& event);public: DrawingArea(); virtual ~DrawingArea();};class ScribbleWindow : public Gtk::Window{public: ScribbleWindow(); virtual ~ScribbleWindow();};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -