Dillo
alignedtablecell.hh
Go to the documentation of this file.
1 #ifndef __DW_ALIGNEDTABLECELL_HH__
2 #define __DW_ALIGNEDTABLECELL_HH__
3 
4 #include "core.hh"
5 #include "alignedtextblock.hh"
6 
7 namespace dw {
8 
10 {
11 private:
13 
14 protected:
15  int getAvailWidthOfChild (Widget *child, bool forceValue);
16  int getAvailHeightOfChild (Widget *child, bool forceValue);
17 
18  void correctRequisitionOfChild (Widget *child,
20  void (*splitHeightFun) (int, int*, int*),
21  bool allowDecreaseWidth,
22  bool allowDecreaseHeight);
24  bool useAdjustmentWidth);
25 
26  bool getAdjustMinWidth ();
27 
29 
30  int wordWrap (int wordIndex, bool wrapAll);
31 
32  int getValue ();
33  void setMaxValue (int maxValue, int value);
34 
35 public:
36  static int CLASS_ID;
37 
40 
41  int applyPerWidth (int containerWidth, core::style::Length perWidth);
42  int applyPerHeight (int containerHeight, core::style::Length perHeight);
43 
44  bool isBlockLevel ();
45 
46  bool usesMaxGeneratorWidth ();
47 };
48 
49 } // namespace dw
50 
51 #endif // __DW_ALIGNEDTABLECELL_HH__
Extremes extremes
Analogue to dw::core::Widget::requisition.
Definition: widget.hh:146
bool adjustExtraSpaceWhenCorrectingRequisitionByOOF()
Definition: alignedtablecell.cc:148
int wordWrap(int wordIndex, bool wrapAll)
Definition: alignedtablecell.cc:153
Requisition requisition
Size_request() stores the result of the last call of size_request_impl().
Definition: widget.hh:140
int applyPerHeight(int containerHeight, core::style::Length perHeight)
Definition: alignedtablecell.cc:142
bool isBlockLevel()
Definition: alignedtablecell.cc:56
bool limitTextWidth
Definition: textblock.hh:573
int applyPerWidth(int containerWidth, core::style::Length perWidth)
Definition: alignedtablecell.cc:136
Definition: types.hh:172
AlignedTableCell(AlignedTableCell *ref, bool limitTextWidth)
Definition: alignedtablecell.cc:32
Definition: alignedtablecell.hh:9
void setMaxValue(int maxValue, int value)
Definition: alignedtablecell.cc:212
void correctRequisitionOfChild(Widget *child, core::Requisition *requisition, void(*splitHeightFun)(int, int *, int *), bool allowDecreaseWidth, bool allowDecreaseHeight)
Definition: alignedtablecell.cc:92
Definition: types.hh:179
int getAvailHeightOfChild(Widget *child, bool forceValue)
Definition: alignedtablecell.cc:79
static int CLASS_ID
Definition: alignedtablecell.hh:36
int getValue()
Definition: alignedtablecell.cc:181
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
~AlignedTableCell()
Definition: alignedtablecell.cc:45
Widget()
Definition: widget.cc:67
Base widget for all textblocks (sub classes of dw::Textblock), which are positioned vertically and al...
Definition: alignedtextblock.hh:13
int getAvailWidthOfChild(Widget *child, bool forceValue)
Definition: alignedtablecell.cc:66
int charWordIndex
Definition: alignedtablecell.hh:12
int Length
Type for representing all lengths within dw::core::style.
Definition: style.hh:428
void correctExtremesOfChild(Widget *child, core::Extremes *extremes, bool useAdjustmentWidth)
Definition: alignedtablecell.cc:119
bool usesMaxGeneratorWidth()
Definition: alignedtablecell.cc:61
int charWordPos
Definition: alignedtablecell.hh:12
bool getAdjustMinWidth()
Definition: alignedtablecell.cc:51