#include <CSLayoutManager.h>
Inheritance diagram for CSLayoutManager:
|
Definition at line 120 of file CSLayoutManager.h. References mPropagateSizeChangesOnly.
00121 { 00122 mHostingElement = 0; 00123 mPropagateSizeChangesOnly = false; 00124 } |
|
Definition at line 125 of file CSLayoutManager.h.
00125 {} |
|
Definition at line 97 of file CSLayoutManager.h. Referenced by layout(), CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), CSLayoutManagerBorder::layoutElements(), and CSLayoutManagerXY::layoutElements().
00097 {return mHostingElement;}
|
|
Definition at line 134 of file CSLayoutManager.cpp. References CSGrafikElement::getParent().
00135 { 00136 element = element->getParent(); 00137 return element; 00138 } |
Here is the call graph for this function:
|
Definition at line 35 of file CSLayoutManager.cpp. References CSGrafikElements, and CSGrafikElement::getElements(). Referenced by CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerStackVertical::getMinimumHeight(), CSLayoutManagerXY::getMinimumHeight(), CSLayoutManagerStackHorizontal::getMinimumHeight(), CSLayoutManagerBorder::getMinimumWidth(), CSLayoutManagerStackVertical::getMinimumWidth(), CSLayoutManagerXY::getMinimumWidth(), CSLayoutManagerStackHorizontal::getMinimumWidth(), CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), CSLayoutManagerBorder::layoutElements(), and CSLayoutManagerXY::layoutElements().
00036 { 00037 if (element) 00038 { 00039 return element->getElements(); 00040 } 00041 return 0; 00042 } |
Here is the call graph for this function:
|
Definition at line 55 of file CSLayoutManager.cpp. References buildArea(), CSGrafikElement::layoutChanged(), CSGrafikElement::mHeight, CSGrafikElement::mHeightSet, CSGrafikElement::mMinHeight, CSGrafikElement::mMinWidth, mPropagateSizeChangesOnly, CSGrafikElement::mWidth, CSGrafikElement::mWidthSet, CSGrafikElement::mX, and CSGrafikElement::mY. Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), CSLayoutManagerBorder::layoutElements(), and CSLayoutManagerXY::layoutElements().
00056 { 00057 bool pos = false; 00058 bool size = false; 00059 if ((x != -1) && (y != -1)) 00060 { 00061 if ((visitor->mX != x) || (visitor->mY != y)) 00062 { 00063 pos = true; 00064 } 00065 if (x != -1) 00066 { 00067 visitor->mX = x; 00068 } 00069 if (y != -1) 00070 { 00071 visitor->mY = y; 00072 } 00073 } 00074 if (width != -1) 00075 { 00076 if (width < visitor->mMinWidth) 00077 { 00078 width = visitor->mMinWidth; 00079 } 00080 if (visitor->mWidth != width) 00081 { 00082 size = true; 00083 visitor->mWidth = width; 00084 visitor->mWidthSet = true; 00085 } 00086 } 00087 else 00088 { 00089 // not to be changed from layout! 00090 // visitor->mWidthSet = false; 00091 } 00092 if (height != -1) 00093 { 00094 if (height < visitor->mMinHeight) 00095 { 00096 height = visitor->mMinHeight; 00097 } 00098 if (visitor->mHeight != height) 00099 { 00100 size = true; 00101 visitor->mHeight = height; 00102 visitor->mHeightSet = true; 00103 } 00104 } 00105 else 00106 { 00107 // not to be changed from layout! 00108 // visitor->mHeightSet = false; 00109 } 00110 00111 if (pos | size) 00112 { 00113 buildArea(visitor); 00114 // init changes in other components 00115 if (size) 00116 { 00117 // this! 00118 visitor->layoutChanged(true); 00119 } 00120 // init changes in other components 00121 if ((pos) && (!mPropagateSizeChangesOnly)) 00122 { 00123 visitor->layoutChanged(); 00124 } 00125 } 00126 return pos | size; 00127 } |
Here is the call graph for this function:
|
Here is the call graph for this function:
|
Definition at line 160 of file CSLayoutManager.cpp. References CSGrafikElement::getViewportWidth(). Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().
00161 { 00162 return element->getViewportWidth(); 00163 } |
Here is the call graph for this function:
|
Definition at line 165 of file CSLayoutManager.cpp. References CSGrafikElement::getViewportHeight(). Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().
00166 { 00167 return element->getViewportHeight(); 00168 } |
Here is the call graph for this function:
|
Definition at line 170 of file CSLayoutManager.cpp. References CSGrafikElement::getWidth().
00171 { 00172 return element->getWidth(); 00173 } |
Here is the call graph for this function:
|
Definition at line 175 of file CSLayoutManager.cpp. References CSGrafikElement::getHeight().
00176 { 00177 return element->getHeight(); 00178 } |
Here is the call graph for this function:
|
Definition at line 180 of file CSLayoutManager.cpp. References CSGrafikElement::getMinWidth(). Referenced by CSLayoutManagerBorder::getMinimumWidth(), CSLayoutManagerStackVertical::getMinimumWidth(), CSLayoutManagerXY::getMinimumWidth(), and CSLayoutManagerStackHorizontal::getMinimumWidth().
00181 { 00182 return element->getMinWidth(); 00183 } |
Here is the call graph for this function:
|
Definition at line 185 of file CSLayoutManager.cpp. References CSGrafikElement::getMinHeight(). Referenced by CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerStackVertical::getMinimumHeight(), CSLayoutManagerXY::getMinimumHeight(), and CSLayoutManagerStackHorizontal::getMinimumHeight().
00186 { 00187 return element->getMinHeight(); 00188 } |
Here is the call graph for this function:
|
Definition at line 140 of file CSLayoutManager.cpp. References CSGrafikElement::getParent(), and CSGrafikElement::getViewportWidth().
00141 { 00142 element = element->getParent(); 00143 if (element) 00144 { 00145 return element->getViewportWidth(); 00146 } 00147 return 0; 00148 } |
Here is the call graph for this function:
|
Definition at line 150 of file CSLayoutManager.cpp. References CSGrafikElement::getParent(), and CSGrafikElement::getViewportHeight().
00151 { 00152 element = element->getParent(); 00153 if (element) 00154 { 00155 return element->getViewportHeight(); 00156 } 00157 return 0; 00158 } |
Here is the call graph for this function:
|
Definition at line 190 of file CSLayoutManager.cpp. References CSGrafikElement::getBorder(), and CSBorder::getTotalWidth(). Referenced by buildArea(), CSLayoutManagerBorder::getMinimumWidth(), CSLayoutManagerStackVertical::getMinimumWidth(), CSLayoutManagerXY::getMinimumWidth(), and CSLayoutManagerStackHorizontal::getMinimumWidth().
00191 { 00192 return element->getBorder()->getTotalWidth(); 00193 } |
Here is the call graph for this function:
|
Definition at line 195 of file CSLayoutManager.cpp. References CSGrafikElement::getBorder(), and CSBorder::getTotalHeight(). Referenced by buildArea(), CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerStackVertical::getMinimumHeight(), CSLayoutManagerXY::getMinimumHeight(), and CSLayoutManagerStackHorizontal::getMinimumHeight().
00196 { 00197 return element->getBorder()->getTotalHeight(); 00198 } |
Here is the call graph for this function:
|
Definition at line 200 of file CSLayoutManager.cpp. References CSGrafikElement::getInsetInternal(), and CSInset::getTotalWidth(). Referenced by buildArea(), CSLayoutManagerBorder::getMinimumWidth(), CSLayoutManagerStackVertical::getMinimumWidth(), CSLayoutManagerXY::getMinimumWidth(), and CSLayoutManagerStackHorizontal::getMinimumWidth().
00201 { 00202 return element->getInsetInternal()->getTotalWidth(); 00203 } |
Here is the call graph for this function:
|
Definition at line 205 of file CSLayoutManager.cpp. References CSGrafikElement::getInsetInternal(), and CSInset::getTotalHeight(). Referenced by buildArea(), CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerStackVertical::getMinimumHeight(), CSLayoutManagerXY::getMinimumHeight(), and CSLayoutManagerStackHorizontal::getMinimumHeight().
00206 { 00207 return element->getInsetInternal()->getTotalHeight(); 00208 } |
Here is the call graph for this function:
|
Reimplemented in CSLayoutManagerXY, CSLayoutManagerStackHorizontal, CSLayoutManagerStackVertical, and CSLayoutManagerBorder. Definition at line 114 of file CSLayoutManager.h. Referenced by layout().
00114 {} |
|
Reimplemented in CSLayoutManagerXY, CSLayoutManagerStackHorizontal, CSLayoutManagerStackVertical, and CSLayoutManagerBorder. Definition at line 119 of file CSLayoutManager.h. References CLASS. Referenced by CSGrafikElement::layoutChanged(), and CSGrafikElement::setPosition().
00119 {return (std::string) CLASS;} |
|
Definition at line 126 of file CSLayoutManager.h. Referenced by CSGrafikElement::setMainLayoutManager().
00126 {mHostingElement = hostingElement;} |
|
|
|
not all LayoutManagers support Packing! Packing changes the size of the element and possibly the size of stretching children it does not change the position of THIS element Packing is done AFTER layout is finished it cannot be called straight, but must be set with setPack(true); Definition at line 210 of file CSLayoutManager.cpp. References buildArea(), CSGrafikElement::getLayoutManager(), getMinimumHeight(), getMinimumWidth(), CSGrafikElement::mHeight, and CSGrafikElement::mWidth. Referenced by CSMenu::openMenu().
00211 { 00212 static char *functionName="buildArea"; 00213 00214 if (element->mHeight < element->getLayoutManager()->getMinimumHeight(element)) 00215 { 00216 element->mHeight = element->getLayoutManager()->getMinimumHeight(element); 00217 } 00218 if (element->mWidth < element->getLayoutManager()->getMinimumWidth(element)) 00219 { 00220 element->mWidth = element->getLayoutManager()->getMinimumWidth(element); 00221 } 00222 buildArea(element); 00223 } |
Here is the call graph for this function:
|
layout does not change the size of the component! (might change size of children!)
Definition at line 44 of file CSLayoutManager.cpp. References buildArea(), getHostingElement(), and layoutElements(). Referenced by CSGrafikElement::doLayout().
00045 { 00046 CSGrafikElement *host = getHostingElement(); 00047 if (host == 0) 00048 { 00049 return; 00050 } 00051 buildArea(host); 00052 layoutElements(); 00053 } |
Here is the call graph for this function:
|
Definition at line 138 of file CSLayoutManager.h. References mPropagateSizeChangesOnly. Referenced by CSScrollbar::CSScrollbar().
00138 {mPropagateSizeChangesOnly = b;} |
|
Definition at line 139 of file CSLayoutManager.h. References mPropagateSizeChangesOnly. Referenced by CSGrafikElement::layoutChanged().
00139 {return mPropagateSizeChangesOnly;} |
|
Here is the call graph for this function:
|
Definition at line 96 of file CSLayoutManager.h. Referenced by CSLayoutManager(), getPropagateSizeChangesOnly(), setLayout(), and setPropagateSizeChangesOnly(). |
|
Reimplemented in CSLayoutManagerXY, CSLayoutManagerStackHorizontal, CSLayoutManagerStackVertical, and CSLayoutManagerBorder. Definition at line 9 of file CSLayoutManager.cpp. Referenced by getType(). |