C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
PrintWidget Class Reference

A widget used when we need to simply print but still want to take advantage of the status change management. More...

#include <widget.h>

Inheritance diagram for PrintWidget:
Inheritance graph
Collaboration diagram for PrintWidget:
Collaboration graph

Public Member Functions

 PrintWidget (PrinterDevice *display_device, Model *actual_displayed_model=nullptr)
 Construct a new Dummy Widget object.
 
- Public Member Functions inherited from Widget
 Widget (Model *actual_displayed_model, DisplayDevice *graphic_display_device=nullptr)
 contructor for generic widget
 
void add_widget (Widget *_sub_widget)
 add sub_widget to the current widget
 
void set_display_device (DisplayDevice *_new_display_device)
 Set the display screen object.
 
virtual void draw ()=0
 a pure virtual member that is called to effectively draw the widget.
 

Additional Inherited Members

- Protected Attributes inherited from Widget
DisplayDevicedisplay_device {nullptr}
 the display device where the attached to the frame buffer
 
Modelactual_displayed_model {nullptr}
 a pointer to the Model actually displayed by the widget
 
std::vector< Widget * > widgets
 A widget can be composed by several widgets.
 

Detailed Description

A widget used when we need to simply print but still want to take advantage of the status change management.

Constructor & Destructor Documentation

◆ PrintWidget()

PrintWidget::PrintWidget ( PrinterDevice * display_device,
Model * actual_displayed_model = nullptr )

Construct a new Dummy Widget object.

Parameters
display_devicethe pointer to the printer display device
actual_displayed_modelthe pointer to the displayed model. Default to nullptr
Here is the call graph for this function:

The documentation for this class was generated from the following files: