Fixes print() << FPoint() behavior in FScrollView

This commit is contained in:
Markus Gans 2019-08-18 21:36:10 +02:00
parent 248cf8a0ba
commit 8c90cd2a4c
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2019-08-18 Markus Gans <guru.mail@muenster.de>
* Solved problem detecting terminal size on quick changes
* Update VTerm information only in case of changes
* Fixes print() << FPoint() behavior in FScrollView
2019-08-11 Markus Gans <guru.mail@muenster.de>
* FRect has now got a scaleBy() method

View File

@ -73,6 +73,7 @@ class FScrollView : public FWidget
public:
// Using-declaration
using FWidget::setGeometry;
using FWidget::print;
// Constructor
explicit FScrollView (FWidget* = nullptr);
@ -132,6 +133,7 @@ class FScrollView : public FWidget
void scrollTo (const FPoint&);
void scrollTo (int, int);
void scrollBy (int, int);
void print (const FPoint&) override;
void draw() override;
void drawBorder() override;
@ -264,6 +266,15 @@ inline bool FScrollView::isViewportPrint()
inline void FScrollView::scrollTo (const FPoint& pos)
{ scrollTo(pos.getX(), pos.getY()); }
//----------------------------------------------------------------------
inline void FScrollView::print (const FPoint& pos)
{
if ( use_own_print_area )
FWidget::setPrintPos(pos);
else
setPrintPos(pos);
}
} // namespace finalcut
#endif // FSCROLLVIEW_H