Dillo
simpletablecell.hh
Go to the documentation of this file.
1 #ifndef __DW_SIMPLETABLECELL_HH__
2 #define __DW_SIMPLETABLECELL_HH__
3 
4 #include "textblock.hh"
5 
6 namespace dw {
7 
9 {
10 protected:
11  int getAvailWidthOfChild (Widget *child, bool forceValue);
12  int getAvailHeightOfChild (Widget *child, bool forceValue);
13 
14  void correctRequisitionOfChild (Widget *child,
16  void (*splitHeightFun) (int, int*, int*),
17  bool allowDecreaseWidth,
18  bool allowDecreaseHeight);
20  bool useAdjustmentWidth);
21 
22  bool getAdjustMinWidth ();
23 
25 
26 public:
27  static int CLASS_ID;
28 
31 
32  int applyPerWidth (int containerWidth, core::style::Length perWidth);
33  int applyPerHeight (int containerHeight, core::style::Length perHeight);
34 
35  bool isBlockLevel ();
36 
37  bool usesMaxGeneratorWidth ();
38 };
39 
40 } // namespace dw
41 
42 #endif // __DW_SIMPLETABLECELL_HH__
int applyPerHeight(int containerHeight, core::style::Length perHeight)
Definition: simpletablecell.cc:132
Extremes extremes
Analogue to dw::core::Widget::requisition.
Definition: widget.hh:146
A Widget for rendering text blocks, i.e. paragraphs or sequences of paragraphs.
Definition: textblock.hh:205
Requisition requisition
Size_request() stores the result of the last call of size_request_impl().
Definition: widget.hh:140
int applyPerWidth(int containerWidth, core::style::Length perWidth)
Definition: simpletablecell.cc:126
SimpleTableCell(bool limitTextWidth)
Definition: simpletablecell.cc:32
bool limitTextWidth
Definition: textblock.hh:573
int getAvailWidthOfChild(Widget *child, bool forceValue)
Definition: simpletablecell.cc:59
bool isBlockLevel()
Definition: simpletablecell.cc:49
Definition: types.hh:172
bool getAdjustMinWidth()
Definition: simpletablecell.cc:44
Definition: simpletablecell.hh:8
static int CLASS_ID
Definition: simpletablecell.hh:27
Definition: types.hh:179
void correctExtremesOfChild(Widget *child, core::Extremes *extremes, bool useAdjustmentWidth)
Definition: simpletablecell.cc:110
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
Widget()
Definition: widget.cc:67
~SimpleTableCell()
Definition: simpletablecell.cc:39
void correctRequisitionOfChild(Widget *child, core::Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
Definition: simpletablecell.cc:85
bool adjustExtraSpaceWhenCorrectingRequisitionByOOF()
Definition: simpletablecell.cc:138
int Length
Type for representing all lengths within dw::core::style.
Definition: style.hh:428
bool usesMaxGeneratorWidth()
Definition: simpletablecell.cc:54
int getAvailHeightOfChild(Widget *child, bool forceValue)
Definition: simpletablecell.cc:72