scribble.hh
来自「gfc编程示例 gfc sample of Linux GFC」· HH 代码 · 共 32 行
HH
32 行
#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 + =
减小字号Ctrl + -
显示快捷键?