Adding the missing method getClientSize()
This commit is contained in:
parent
0de0676092
commit
1c3c687878
|
@ -1,3 +1,6 @@
|
|||
2020-04-28 Markus Gans <guru.mail@muenster.de>
|
||||
* Adding the missing method getClientSize()
|
||||
|
||||
2020-04-15 Markus Gans <guru.mail@muenster.de>
|
||||
* Better support of general arrow keys
|
||||
* Improved event handling code
|
||||
|
|
|
@ -940,6 +940,7 @@ absolute geometry values as a `FRect` object, you can call the method
|
|||
|
||||
```cpp
|
||||
const FSize getSize() const;
|
||||
const FSize getClientSize() const;
|
||||
const FRect& getGeometry() const;
|
||||
const FRect& getTermGeometry();
|
||||
const FSize& getShadow() const;
|
||||
|
|
|
@ -981,7 +981,7 @@ void FVTerm::getArea (const FRect& box, const FTermArea* area)
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
void FVTerm::putArea (FTermArea* area)
|
||||
void FVTerm::putArea (const FTermArea* area)
|
||||
{
|
||||
// Add area changes to the virtual terminal
|
||||
|
||||
|
|
|
@ -358,7 +358,7 @@ class FVTerm
|
|||
, bool, FTermArea* );
|
||||
static void getArea (const FPoint&, const FTermArea*);
|
||||
static void getArea (const FRect&, const FTermArea*);
|
||||
void putArea (FTermArea*);
|
||||
void putArea (const FTermArea*);
|
||||
static void putArea (const FPoint&, const FTermArea*);
|
||||
void scrollAreaForward (FTermArea*);
|
||||
void scrollAreaReverse (FTermArea*);
|
||||
|
|
|
@ -220,6 +220,7 @@ class FWidget : public FVTerm, public FObject
|
|||
int getRightPadding() const;
|
||||
std::size_t getClientWidth() const;
|
||||
std::size_t getClientHeight() const;
|
||||
const FSize getClientSize() const;
|
||||
std::size_t getMaxWidth() const;
|
||||
std::size_t getMaxHeight() const;
|
||||
const FSize& getShadow() const;
|
||||
|
@ -724,6 +725,10 @@ inline std::size_t FWidget::getClientWidth() const
|
|||
inline std::size_t FWidget::getClientHeight() const
|
||||
{ return wclient_offset.getHeight(); }
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline const FSize FWidget::getClientSize() const
|
||||
{ return wclient_offset.getSize(); }
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
inline std::size_t FWidget::getMaxWidth() const
|
||||
{ return woffset.getWidth(); }
|
||||
|
|
Loading…
Reference in New Issue