Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

CSLayoutData Class Reference

#include <CSLayoutManager.h>


Detailed Description

LayoutData is responsible ONLY for the GraphicElement it is set to.

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


Constructor & Destructor Documentation

CSLayoutData::CSLayoutData  )  [inline]
 

Definition at line 38 of file CSLayoutManager.h.

References init().

00039         {
00040             init();
00041         }

Here is the call graph for this function:

CSLayoutData::CSLayoutData int  x,
int  y
[inline]
 

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:

CSLayoutData::CSLayoutData int  position,
bool  stretchAndCentered = false
[inline]
 

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:


Member Function Documentation

void CSLayoutData::init  ) 
 

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 }

bool CSLayoutData::getStretched  )  [inline]
 

Definition at line 59 of file CSLayoutManager.h.

00060         {
00061             return mStretchedVertical||mStretchedHorizontal;
00062         }

bool CSLayoutData::getPacked  )  [inline]
 

Definition at line 63 of file CSLayoutManager.h.

00064         {
00065             return mPackedVertical||mPackedHorizontal;
00066         }

void CSLayoutData::setPackedHorizontal bool  c  )  [inline]
 

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

const bool CSLayoutData::getPackedHorizontal  )  [inline]
 

Definition at line 68 of file CSLayoutManager.h.

Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), CSLayoutManagerBorder::layoutElements(), and CSLayoutManagerXY::layoutElements().

00068 {return mPackedHorizontal;}

void CSLayoutData::setPackedVertical bool  c  )  [inline]
 

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

const bool CSLayoutData::getPackedVertical  )  [inline]
 

Definition at line 70 of file CSLayoutManager.h.

Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), CSLayoutManagerBorder::layoutElements(), and CSLayoutManagerXY::layoutElements().

00070 {return mPackedVertical;}

void CSLayoutData::setCenteredHorizontal bool  c  )  [inline]
 

Definition at line 71 of file CSLayoutManager.h.

Referenced by CSCombobox::rebuildElement().

00071 {mCenteredHorizontal = c;}

const bool CSLayoutData::getCenteredHorizontal  )  [inline]
 

Definition at line 72 of file CSLayoutManager.h.

Referenced by CSLayoutManagerStackVertical::layoutElements(), and CSLayoutManagerBorder::layoutElements().

00072 {return mCenteredHorizontal;}

void CSLayoutData::setCenteredVertical bool  c  )  [inline]
 

Definition at line 73 of file CSLayoutManager.h.

Referenced by CSWindow::rebuildElementWindow().

00073 {mCenteredVertical = c;}

const bool CSLayoutData::getCenteredVertical  )  [inline]
 

Definition at line 74 of file CSLayoutManager.h.

Referenced by CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().

00074 {return mCenteredVertical;}

const bool CSLayoutData::getStretchedVertical  )  [inline]
 

Definition at line 75 of file CSLayoutManager.h.

Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().

00075 {return mStretchedVertical;}

void CSLayoutData::setStretchedVertical bool  s  )  [inline]
 

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

const bool CSLayoutData::getStretchedHorizontal  )  [inline]
 

Definition at line 77 of file CSLayoutManager.h.

Referenced by CSLayoutManagerStackVertical::layoutElements(), CSLayoutManagerStackHorizontal::layoutElements(), and CSLayoutManagerBorder::layoutElements().

00077 {return mStretchedHorizontal;}

void CSLayoutData::setStretchedHorizontal bool  s  )  [inline]
 

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

void CSLayoutData::setSpacing int  v,
int  h
[inline]
 

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

const void CSLayoutData::getSpacing int &  v,
int &  h
[inline]
 

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

const int CSLayoutData::getX  )  [inline]
 

Definition at line 81 of file CSLayoutManager.h.

Referenced by CSLayoutManagerXY::getMinimumWidth(), and CSLayoutManagerXY::layoutElements().

00081 {return mX;}

const int CSLayoutData::getY  )  [inline]
 

Definition at line 82 of file CSLayoutManager.h.

Referenced by CSLayoutManagerXY::getMinimumHeight(), and CSLayoutManagerXY::layoutElements().

00082 {return mY;}

void CSLayoutData::setX int  x  )  [inline]
 

Definition at line 83 of file CSLayoutManager.h.

Referenced by CSGrafikElement::addFrontElement(), CSGrafikElement::addFrontElementCenter(), CSGrafikElement::addMainElement(), CSLayoutManager::buildArea(), and CSGrafikElement::setPosition().

00083 {mX = x;}

void CSLayoutData::setY int  y  )  [inline]
 

Definition at line 84 of file CSLayoutManager.h.

Referenced by CSGrafikElement::addFrontElement(), CSGrafikElement::addFrontElementCenter(), CSGrafikElement::addMainElement(), CSLayoutManager::buildArea(), and CSGrafikElement::setPosition().

00084 {mY = y;}

const int CSLayoutData::getPosition  )  [inline]
 

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

void CSLayoutData::setPosition int  position  )  [inline]
 

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

bool CSLayoutData::getSpacingSet  )  [inline]
 

Definition at line 87 of file CSLayoutManager.h.

Referenced by CSGrafikElement::addMainElement().

00087 {return mSpacingSet;}


Generated on Wed Jul 14 00:44:35 2004 for CSLib by doxygen 1.3.6