aboutsummaryrefslogtreecommitdiff
path: root/dw/tablecell.hh
blob: f7936203482bc4758526e20e2da4fff74a267384 (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
#ifndef __DW_TABLECELL_HH__
#define __DW_TABLECELL_HH__

#include "core.hh"

namespace dw {

namespace tablecell {

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);

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__