GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
gui_framework::interfaces::IResizableComponent Class Reference

Provides resize, setBlockResize, getBlockResize methods. More...

#include <IResizableComponent.h>

Inheritance diagram for gui_framework::interfaces::IResizableComponent:
gui_framework::BaseComboBox gui_framework::BaseListBox gui_framework::BaseRichEdit gui_framework::BaseSeparateWindow gui_framework::Button gui_framework::ChildWindow gui_framework::EditControl gui_framework::ImageButton gui_framework::InfiniteProgressBar gui_framework::ProgressBar gui_framework::StaticControl gui_framework::TabControl

Public Member Functions

 IResizableComponent (HWND resizeableHandle, HWND parent, bool autoResize=false, bool blockResize=false)
 
virtual void resize (uint16_t width, uint16_t height)
 Resize component.
 
virtual RECT calculateNewSizes (uint16_t width, uint16_t height) final
 
virtual void setBlockResize (bool blockResize) final
 
virtual void setAutoResize (bool autoResize) final
 
virtual bool getBlockResize () const final
 
virtual bool getAutoResize () const final
 
virtual ~IResizableComponent ()=default
 

Protected Attributes

bool blockResize
 
bool autoResize
 
int initX
 
int initY
 
uint16_t initWidth
 
uint16_t initHeight
 
uint16_t parentWidth
 
uint16_t parentHeight
 

Detailed Description

Provides resize, setBlockResize, getBlockResize methods.

Definition at line 10 of file IResizableComponent.h.

Constructor & Destructor Documentation

◆ IResizableComponent()

gui_framework::interfaces::IResizableComponent::IResizableComponent ( HWND resizeableHandle,
HWND parent,
bool autoResize = false,
bool blockResize = false )

Definition at line 11 of file IResizableComponent.cpp.

◆ ~IResizableComponent()

virtual gui_framework::interfaces::IResizableComponent::~IResizableComponent ( )
virtualdefault

Member Function Documentation

◆ calculateNewSizes()

RECT gui_framework::interfaces::IResizableComponent::calculateNewSizes ( uint16_t width,
uint16_t height )
finalvirtual

Definition at line 55 of file IResizableComponent.cpp.

◆ getAutoResize()

bool gui_framework::interfaces::IResizableComponent::getAutoResize ( ) const
finalvirtual

Definition at line 86 of file IResizableComponent.cpp.

◆ getBlockResize()

bool gui_framework::interfaces::IResizableComponent::getBlockResize ( ) const
finalvirtual

Definition at line 81 of file IResizableComponent.cpp.

◆ resize()

void gui_framework::interfaces::IResizableComponent::resize ( uint16_t width,
uint16_t height )
virtual

Resize component.

Parameters
widthNew width of the parent area
heightNew height of the parent area

Reimplemented in gui_framework::BaseComboBox, and gui_framework::BaseListBox.

Definition at line 35 of file IResizableComponent.cpp.

◆ setAutoResize()

void gui_framework::interfaces::IResizableComponent::setAutoResize ( bool autoResize)
finalvirtual

Definition at line 76 of file IResizableComponent.cpp.

◆ setBlockResize()

void gui_framework::interfaces::IResizableComponent::setBlockResize ( bool blockResize)
finalvirtual

Definition at line 71 of file IResizableComponent.cpp.

Member Data Documentation

◆ autoResize

bool gui_framework::interfaces::IResizableComponent::autoResize
protected

Definition at line 18 of file IResizableComponent.h.

◆ blockResize

bool gui_framework::interfaces::IResizableComponent::blockResize
protected

Definition at line 17 of file IResizableComponent.h.

◆ initHeight

uint16_t gui_framework::interfaces::IResizableComponent::initHeight
protected

Definition at line 22 of file IResizableComponent.h.

◆ initWidth

uint16_t gui_framework::interfaces::IResizableComponent::initWidth
protected

Definition at line 21 of file IResizableComponent.h.

◆ initX

int gui_framework::interfaces::IResizableComponent::initX
protected

Definition at line 19 of file IResizableComponent.h.

◆ initY

int gui_framework::interfaces::IResizableComponent::initY
protected

Definition at line 20 of file IResizableComponent.h.

◆ parentHeight

uint16_t gui_framework::interfaces::IResizableComponent::parentHeight
protected

Definition at line 24 of file IResizableComponent.h.

◆ parentWidth

uint16_t gui_framework::interfaces::IResizableComponent::parentWidth
protected

Definition at line 23 of file IResizableComponent.h.


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