43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
#ifndef __DW_TABLECELL_HH__
|
|
#define __DW_TABLECELL_HH__
|
|
|
|
#include "core.hh"
|
|
|
|
namespace dw {
|
|
|
|
namespace tablecell {
|
|
|
|
inline bool usesMaxGeneratorWidth () { return true; }
|
|
|
|
bool getAdjustMinWidth ();
|
|
bool isBlockLevel ();
|
|
|
|
int correctAvailWidthOfChild (core::Widget *widget, core::Widget *child,
|
|
int width, bool forceValue);
|
|
int correctAvailHeightOfChild (core::Widget *widget, core::Widget *child,
|
|
int height, bool forceValue);
|
|
|
|
void correctCorrectedRequisitionOfChild (core::Widget *widget,
|
|
core::Widget *child,
|
|
core::Requisition *requisition,
|
|
void (*splitHeightFun) (int, int*,
|
|
int*),
|
|
bool allowDecreaseWidth,
|
|
bool allowDecreaseHeight);
|
|
void correctCorrectedExtremesOfChild (core::Widget *widget, core::Widget *child,
|
|
core::Extremes *extremes,
|
|
bool useAdjustmentWidth);
|
|
|
|
int applyPerWidth (core::Widget *widget, int containerWidth,
|
|
core::style::Length perWidth);
|
|
int applyPerHeight (core::Widget *widget, int containerHeight,
|
|
core::style::Length perHeight);
|
|
|
|
inline bool adjustExtraSpaceWhenCorrectingRequisitionByOOF () { return false; }
|
|
|
|
} // namespace dw
|
|
|
|
} // namespace dw
|
|
|
|
#endif // __DW_TABLECELL_HH__
|