Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Fl_Canvas.cpp
- #include <FL/Fl_Box.H>
- #include <FL/Fl_Shared_Image.H>
- #include <FL/fl_message.H>
- #include <string>
- class Fl_Canvas : public Fl_Box {
- public:
- Fl_Canvas(Fl_Boxtype b, int X, int Y, int W, int H) : Fl_Box(b, X, Y, W, H, "")
- {
- };
- void add_image(const char* _image) //Реализация метода
- {
- Fl_Shared_Image* img = Fl_Shared_Image::get(_image);
- image(img);
- fl_message("complite");
- redraw();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement