GenericLayout::GenericLayout( intf_thread_t *pIntf, int width, int height,
int minWidth, int maxWidth, int minHeight,
int maxHeight ):
- SkinObject( pIntf ), m_pWindow( NULL ), m_rect( 0, 0, width, height ),
+ SkinObject( pIntf ), m_pWindow( NULL ),
+ m_original_width( width ), m_original_height( height ),
+ m_rect( 0, 0, width, height ),
m_minWidth( minWidth ), m_maxWidth( maxWidth ),
m_minHeight( minHeight ), m_maxHeight( maxHeight ), m_pVideoCtrlSet(),
m_visible( false ), m_pVarActive( NULL )
/// Resize the layout
virtual void resize( int width, int height );
+ /// determine whether layouts should be kept the same size
+ virtual bool isTightlyCoupledWith( const GenericLayout& otherLayout ) const
+ {
+ return m_original_width == otherLayout.m_original_width
+ &&
+ m_original_height == otherLayout.m_original_height;
+ }
+
/**
* Add a control in the layout at the given position, and
* the optional given layer
private:
/// Parent window of the layout
TopWindow *m_pWindow;
+ /// Layout original size
+ const int m_original_width;
+ const int m_original_height;
/// Layout size
SkinsRect m_rect;
int m_minWidth, m_maxWidth;