egami
C++ Image Processing program
|
A page in the display zone. More...
#include <display_page.hpp>
Public Member Functions | |
Display_page () | |
template<class T > | |
Display_page (std::shared_ptr< T > p) | |
Constructs a page from a Display_unit (which must be a Gtk::Widget). | |
void | undo () |
void | redo () |
bool | save () |
void | save_as (const std::string &) |
bool | on_button_press_event (GdkEventButton *) |
std::tuple< int, int, int, int > | selection () const |
Private Member Functions | |
void | detach_child () |
void | attach_child () |
Private Attributes | |
std::shared_ptr< Display_unit > | display_unit |
Gtk::ScrolledWindow | c1 |
Gtk::ScrolledWindow | c2 |
int | s_y1 |
int | s_x1 |
int | s_y2 |
int | s_x2 |
Friends | |
class | Processing_unit |
class | Display_catalogue |
void | swap (Display_page &lhs, Display_page &rhs) noexcept |
A page in the display zone.
To be used as member of Display_catalogue. The right pane contains the Widget given on construction. The left pane contains the parent of the right pane (if it exists), that is the widget from which the given Display_unit has been computed.
Definition at line 35 of file display_page.hpp.
Display_page::Display_page | ( | ) |
Definition at line 17 of file display_page.cpp.
Display_page::Display_page | ( | std::shared_ptr< T > | p | ) |
Constructs a page from a Display_unit (which must be a Gtk::Widget).
Read the Display_unit documentation for explanation on why Gtk::Widget can't be used as base class. Which is also the explanation on the usage of a function template here.
Definition at line 114 of file display_page.hpp.
void Display_page::attach_child | ( | ) | [private] |
void Display_page::detach_child | ( | ) | [private] |
bool Display_page::on_button_press_event | ( | GdkEventButton * | event | ) |
Definition at line 79 of file display_page.cpp.
void Display_page::redo | ( | ) |
bool Display_page::save | ( | ) |
Definition at line 57 of file display_page.cpp.
void Display_page::save_as | ( | const std::string & | fp | ) |
Definition at line 61 of file display_page.cpp.
std::tuple< int, int, int, int > Display_page::selection | ( | ) | const |
void Display_page::undo | ( | ) |
friend class Display_catalogue [friend] |
Definition at line 68 of file display_page.hpp.
friend class Processing_unit [friend] |
Definition at line 67 of file display_page.hpp.
void swap | ( | Display_page & | lhs, |
Display_page & | rhs | ||
) | [friend] |
Definition at line 73 of file display_page.cpp.
Gtk::ScrolledWindow Display_page::c1 [private] |
Definition at line 61 of file display_page.hpp.
Gtk::ScrolledWindow Display_page::c2 [private] |
Definition at line 61 of file display_page.hpp.
std::shared_ptr<Display_unit> Display_page::display_unit [private] |
The associated Display_unit.
Definition at line 60 of file display_page.hpp.
int Display_page::s_x1 [private] |
Definition at line 62 of file display_page.hpp.
int Display_page::s_x2 [private] |
Definition at line 62 of file display_page.hpp.
int Display_page::s_y1 [private] |
Definition at line 62 of file display_page.hpp.
int Display_page::s_y2 [private] |
Definition at line 62 of file display_page.hpp.