#include <CSLayoutManager.h>
Definition at line 22 of file CSLayoutManager.h.
Public Member Functions | |
CSLayoutData () | |
CSLayoutData (int x, int y) | |
CSLayoutData (int position, bool stretchAndCentered=false) | |
void | init () |
bool | getStretched () |
bool | getPacked () |
void | setPackedHorizontal (bool c) |
const bool | getPackedHorizontal () |
void | setPackedVertical (bool c) |
const bool | getPackedVertical () |
void | setCenteredHorizontal (bool c) |
const bool | getCenteredHorizontal () |
void | setCenteredVertical (bool c) |
const bool | getCenteredVertical () |
const bool | getStretchedVertical () |
void | setStretchedVertical (bool s) |
const bool | getStretchedHorizontal () |
void | setStretchedHorizontal (bool s) |
void | setSpacing (int v, int h) |
const void | getSpacing (int &v, int &h) |
const int | getX () |
const int | getY () |
void | setX (int x) |
void | setY (int y) |
const int | getPosition () |
void | setPosition (int position) |
bool | getSpacingSet () |
|
Definition at line 38 of file CSLayoutManager.h. References init().
00039 { 00040 init(); 00041 } |
Here is the call graph for this function:
|
Definition at line 42 of file CSLayoutManager.h. References init().
00043 { 00044 init(); 00045 mX = x; 00046 mY = y; 00047 } |
Here is the call graph for this function:
|
Definition at line 49 of file CSLayoutManager.h. References init().
00050 { 00051 init(); 00052 mPosition = position; 00053 mCenteredHorizontal = stretchAndCentered; 00054 mCenteredVertical = stretchAndCentered; 00055 mStretchedVertical = stretchAndCentered; 00056 mStretchedHorizontal = stretchAndCentered; 00057 } |
Here is the call graph for this function:
|
Definition at line 19 of file CSLayoutManager.cpp. References POSITION_NOT_SET. Referenced by CSLayoutData().
00020 { 00021 mX = 0; 00022 mY = 0; 00023 mPosition = POSITION_NOT_SET; 00024 mPackedHorizontal = false; 00025 mPackedVertical = false; 00026 mCenteredHorizontal = false; 00027 mCenteredVertical = false; 00028 mStretchedVertical = false; 00029 mStretchedHorizontal = false; 00030 mVerticalSpacing = 0; 00031 mHorizontalSpacing = 0; 00032 mSpacingSet = false; 00033 00034 } |
|
Definition at line 59 of file CSLayoutManager.h.
00060 {
00061 return mStretchedVertical||mStretchedHorizontal;
00062 }
|
|
Definition at line 63 of file CSLayoutManager.h.
00064 {
00065 return mPackedVertical||mPackedHorizontal;
00066 }
|
|
Definition at line 67 of file CSLayoutManager.h. Referenced by CSDesktop::CSDesktop(), CSDragButton::CSDragButton(), CSMenu::CSMenu(), CSBar::initBar(), CSWindow::initWindow(), and CSWindow::rebuildElementWindow().
00067 {mPackedHorizontal = c; if (c) mStretchedHorizontal = false;} |
|
Definition at line 68 of file CSLayoutManager.h. Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), CSLayoutManagerBorder::layoutElements(), and CSLayoutManagerXY::layoutElements().
00068 {return mPackedHorizontal;}
|
|
Definition at line 69 of file CSLayoutManager.h. Referenced by CSDesktop::CSDesktop(), CSDragButton::CSDragButton(), CSMenu::CSMenu(), CSBar::initBar(), CSWindow::initWindow(), and CSWindow::rebuildElementWindow().
00069 {mPackedVertical = c; if (c) mStretchedVertical = false;} |
|
Definition at line 70 of file CSLayoutManager.h. Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), CSLayoutManagerBorder::layoutElements(), and CSLayoutManagerXY::layoutElements().
00070 {return mPackedVertical;}
|
|
Definition at line 71 of file CSLayoutManager.h. Referenced by CSCombobox::rebuildElement().
00071 {mCenteredHorizontal = c;} |
|
Definition at line 72 of file CSLayoutManager.h. Referenced by CSLayoutManagerStackVertical::layoutElements(), and CSLayoutManagerBorder::layoutElements().
00072 {return mCenteredHorizontal;}
|
|
Definition at line 73 of file CSLayoutManager.h. Referenced by CSWindow::rebuildElementWindow().
00073 {mCenteredVertical = c;} |
|
Definition at line 74 of file CSLayoutManager.h. Referenced by CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().
00074 {return mCenteredVertical;}
|
|
Definition at line 75 of file CSLayoutManager.h. Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().
00075 {return mStretchedVertical;}
|
|
Definition at line 76 of file CSLayoutManager.h. Referenced by CSMenu::addMenuItem(), CSDesktop::CSDesktop(), CSScrollbar::CSScrollbar(), CSBar::initBar(), CSWindow::initWindow(), CSScrollbar::rebuildElement(), and CSWindow::rebuildElementWindow().
00076 {mStretchedVertical = s;if (s) mPackedVertical = false;} |
|
Definition at line 77 of file CSLayoutManager.h. Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().
00077 {return mStretchedHorizontal;}
|
|
Definition at line 78 of file CSLayoutManager.h. Referenced by CSMenu::addMenuItem(), CSDesktop::CSDesktop(), CSScrollbar::CSScrollbar(), CSBar::initBar(), CSWindow::initWindow(), and CSScrollbar::rebuildElement().
00078 {mStretchedHorizontal = s;if (s) mPackedHorizontal = false;} |
|
Definition at line 79 of file CSLayoutManager.h. Referenced by CSBar::addElementAt(), CSGrafikElement::addMainElement(), CSBar::initBar(), CSWindow::initWindow(), and CSCombobox::rebuildElement().
00079 {mVerticalSpacing = v; mHorizontalSpacing = h; mSpacingSet = true;}
|
|
Definition at line 80 of file CSLayoutManager.h. Referenced by CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerStackVertical::getMinimumHeight(), CSLayoutManagerBorder::getMinimumWidth(), CSLayoutManagerStackVertical::getMinimumWidth(), CSLayoutManagerStackHorizontal::getMinimumWidth(), CSLayoutManagerStackVertical::layoutElements(), and CSLayoutManagerStackHorizontal::layoutElements().
00080 {v = mVerticalSpacing; h = mHorizontalSpacing;} |
|
Definition at line 81 of file CSLayoutManager.h. Referenced by CSLayoutManagerXY::getMinimumWidth(), and CSLayoutManagerXY::layoutElements().
00081 {return mX;}
|
|
Definition at line 82 of file CSLayoutManager.h. Referenced by CSLayoutManagerXY::getMinimumHeight(), and CSLayoutManagerXY::layoutElements().
00082 {return mY;}
|
|
Definition at line 83 of file CSLayoutManager.h. Referenced by CSGrafikElement::addFrontElement(), CSGrafikElement::addFrontElementCenter(), CSGrafikElement::addMainElement(), CSLayoutManager::buildArea(), and CSGrafikElement::setPosition().
00083 {mX = x;} |
|
Definition at line 84 of file CSLayoutManager.h. Referenced by CSGrafikElement::addFrontElement(), CSGrafikElement::addFrontElementCenter(), CSGrafikElement::addMainElement(), CSLayoutManager::buildArea(), and CSGrafikElement::setPosition().
00084 {mY = y;} |
|
Definition at line 85 of file CSLayoutManager.h. Referenced by CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerBorder::getMinimumWidth(), CSBar::getPosition(), CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().
00085 {return mPosition;}
|
|
Definition at line 86 of file CSLayoutManager.h. Referenced by CSGrafikElement::addMainElement(), CSDesktop::CSDesktop(), CSMenu::CSMenu(), CSBar::initBar(), CSWindow::initWindow(), and CSWindow::rebuildElementWindow().
00086 {mPosition = position;} |
|
Definition at line 87 of file CSLayoutManager.h. Referenced by CSGrafikElement::addMainElement().
00087 {return mSpacingSet;}
|