aboutsummaryrefslogtreecommitdiff
path: root/dw/tablecell.hh
blob: 1300a944d9946068f880f87a2b95db67b0424841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __DW_TABLECELL_HH__
#define __DW_TABLECELL_HH__

#include "core.hh"

namespace dw {

namespace tablecell {

inline bool mustBeWidenedToAvailWidth () { 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*));
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__