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

CSGrafikElement.h File Reference

#include <vector>
#include <string>
#include "SDLMain.h"
#include "CSMessageListener.h"
#include "CSLAF.h"
#include "CSLog.h"
#include "CSLayoutManager.h"
#include "CSInset.h"

Go to the source code of this file.

Data Structures

class  CSGrafikElement

Typedefs

typedef std::vector< CSGrafikElement * > CSGrafikElements

Variables

const int BORDER_STATE_VISIBLE = 1
const int BORDER_STATE_PRESSED = 2
const int BORDER_STATE_HOVERING = 4
const int BORDER_STATE_FOCUSED = 8
const int BORDER_STATE_ACTIVATED = 16
const int BORDER_STATE_ENABLED = 32
const int BORDER_STATE_DEFAULT = BORDER_STATE_VISIBLE
const int BUTTON_VISIBLE = BORDER_STATE_VISIBLE
 Button state -> pressed.

const int BUTTON_PRESSED = BORDER_STATE_PRESSED
 Button state -> pressed.

const int BUTTON_HOVERING = BORDER_STATE_HOVERING
 Button state -> hovering (unpressed) (implemented in CSMenu).

const int BUTTON_FOCUSED = BORDER_STATE_FOCUSED
 Button state -> focused (unpressed) (not done yet).

const int BUTTON_ACTIVATED = BORDER_STATE_ACTIVATED
 Button state -> activated (unpressed) (not done yet).

const int BUTTON_ENABLED = BORDER_STATE_ENABLED
 Button state -> disabled (unpressed) (not done yet).

const int BUTTON_DEFAULT = BUTTON_VISIBLE + BUTTON_ENABLED
 Button state -> unpressed.

const int POSITION_NOT_SET = -1
 positon information is not given

const int POSITION_NORTH = 0
 positon NORTH, item is placed above the element with the smallest y - pos value

const int POSITION_SOUTH = 1
 positon SOUTH, item is placed below the element with the greatest y - pos value

const int POSITION_EAST = 2
 positon EAST, item is placed left the element with the greatest x - pos value

const int POSITION_WEST = 3
 positon WEST, item is placed right the element with the smallest y - pos value

const int POSITION_CENTER = 4
 positon CENTER, makes only sense if component is autosizing both x and y

const int POSITION_ABSOLUT = 5
 not used

const int POSITION_ORDER_TOP = POSITION_NORTH
 same as POSITION_NORTH

const int POSITION_ORDER_BOTTOM = POSITION_SOUTH
 same as POSITION_SOUTH

const int POSITION_ORDER_LEFT = POSITION_WEST
 same as POSITION_WEST

const int POSITION_ORDER_RIGHT = POSITION_EAST
 same as POSITION_EAST

const int TYPE_HORIZONTAL = 0
 element is arranged horizontal

const int TYPE_VERTICAL = 1
 element is arranged vertical

const int TYPE_CHANGE_UP = 1
const int TYPE_CHANGE_INIT = 2
const int TYPE_CHANGE_DOWN = -1
const int TYPE_CHANGE_ONLY_ME = -2
const int LAYOUT_ELEMENT = 1
const int LAYOUT_INTERNAL = 8
const int LAYOUT_LAYOUT = 16
const int LAYOUT_MOVE = 2
const int LAYOUT_SIZE = 4
const int LAYOUT_NOT = 0
const int MOUSE_CURSOR_TYPE_DEFAULT = 0
const int MOUSE_CURSOR_TYPE_SIZING = 1


Typedef Documentation

typedef std::vector<CSGrafikElement *> CSGrafikElements
 

Definition at line 78 of file CSGrafikElement.h.

Referenced by CSBar::addElementAt(), CSLayoutManager::getElements(), 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().


Variable Documentation

const int BORDER_STATE_VISIBLE = 1
 

Definition at line 11 of file CSGrafikElement.h.

Referenced by CSListbox::paint(), CSRoundedBorder::paint(), and CSBorder::paint().

const int BORDER_STATE_PRESSED = 2
 

Definition at line 12 of file CSGrafikElement.h.

Referenced by CSRoundedBorder::paint(), and CSBorder::paint().

const int BORDER_STATE_HOVERING = 4
 

Definition at line 13 of file CSGrafikElement.h.

Referenced by CSRoundedBorder::paint(), and CSBorder::paint().

const int BORDER_STATE_FOCUSED = 8
 

Definition at line 14 of file CSGrafikElement.h.

const int BORDER_STATE_ACTIVATED = 16
 

Definition at line 15 of file CSGrafikElement.h.

const int BORDER_STATE_ENABLED = 32
 

Definition at line 16 of file CSGrafikElement.h.

const int BORDER_STATE_DEFAULT = BORDER_STATE_VISIBLE
 

Definition at line 18 of file CSGrafikElement.h.

Referenced by CSBorder::CSBorder(), and CSGrafikElement::init().

const int BUTTON_VISIBLE = BORDER_STATE_VISIBLE
 

Button state -> pressed.

Definition at line 21 of file CSGrafikElement.h.

Referenced by CSMenu::reactOnMessageMenu(), and CSMenuItem::reactOnMessageMenuItem().

const int BUTTON_PRESSED = BORDER_STATE_PRESSED
 

Button state -> pressed.

Definition at line 22 of file CSGrafikElement.h.

Referenced by CSButton::reactOnMessageButton(), CSCheckBox::reactOnMessageCheckBox(), CSMenu::reactOnMessageMenu(), and CSMenuItem::reactOnMessageMenuItem().

const int BUTTON_HOVERING = BORDER_STATE_HOVERING
 

Button state -> hovering (unpressed) (implemented in CSMenu).

Definition at line 23 of file CSGrafikElement.h.

Referenced by CSMenu::reactOnMessageMenu(), and CSMenuItem::reactOnMessageMenuItem().

const int BUTTON_FOCUSED = BORDER_STATE_FOCUSED
 

Button state -> focused (unpressed) (not done yet).

Definition at line 24 of file CSGrafikElement.h.

const int BUTTON_ACTIVATED = BORDER_STATE_ACTIVATED
 

Button state -> activated (unpressed) (not done yet).

Definition at line 25 of file CSGrafikElement.h.

const int BUTTON_ENABLED = BORDER_STATE_ENABLED
 

Button state -> disabled (unpressed) (not done yet).

Definition at line 26 of file CSGrafikElement.h.

Referenced by CSButton::reactOnMessageButton(), and CSCheckBox::reactOnMessageCheckBox().

const int BUTTON_DEFAULT = BUTTON_VISIBLE + BUTTON_ENABLED
 

Button state -> unpressed.

Definition at line 28 of file CSGrafikElement.h.

Referenced by CSCheckBox::CSCheckBox(), CSMenuBar::getMenuState(), CSMenuBar::initMenuBar(), CSMenuItem::reactOnMessageMenuItem(), and CSMenuBar::resetMenu().

const int POSITION_NOT_SET = -1
 

positon information is not given

Definition at line 30 of file CSGrafikElement.h.

Referenced by CSLayoutData::init().

const int POSITION_NORTH = 0
 

positon NORTH, item is placed above the element with the smallest y - pos value

Definition at line 31 of file CSGrafikElement.h.

Referenced by CSBar::addElementAt(), CSDesktop::CSDesktop(), CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerBorder::getMinimumWidth(), CSWindow::initWindow(), and CSLayoutManagerBorder::layoutElements().

const int POSITION_SOUTH = 1
 

positon SOUTH, item is placed below the element with the greatest y - pos value

Definition at line 32 of file CSGrafikElement.h.

Referenced by CSDesktop::CSDesktop(), CSScrollbar::CSScrollbar(), CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerBorder::getMinimumWidth(), CSWindow::initWindow(), CSLayoutManagerBorder::layoutElements(), and CSMenu::openMenu().

const int POSITION_EAST = 2
 

positon EAST, item is placed left the element with the greatest x - pos value

Definition at line 33 of file CSGrafikElement.h.

Referenced by CSDesktop::CSDesktop(), CSScrollbar::CSScrollbar(), CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerBorder::getMinimumWidth(), CSWindow::initWindow(), CSLayoutManagerBorder::layoutElements(), CSListbox::rebuildElement(), CSCombobox::rebuildElement(), and CSWindow::rebuildElementWindow().

const int POSITION_WEST = 3
 

positon WEST, item is placed right the element with the smallest y - pos value

Definition at line 34 of file CSGrafikElement.h.

Referenced by CSBar::addElementAt(), CSDesktop::CSDesktop(), CSMenu::CSMenu(), CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerBorder::getMinimumWidth(), CSWindow::initWindow(), CSLayoutManagerBorder::layoutElements(), and CSWindow::rebuildElementWindow().

const int POSITION_CENTER = 4
 

positon CENTER, makes only sense if component is autosizing both x and y

Definition at line 35 of file CSGrafikElement.h.

Referenced by CSDesktop::CSDesktop(), CSLayoutManagerBorder::getMinimumHeight(), CSLayoutManagerBorder::getMinimumWidth(), CSWindow::initWindow(), and CSLayoutManagerBorder::layoutElements().

const int POSITION_ABSOLUT = 5
 

not used

Definition at line 36 of file CSGrafikElement.h.

const int POSITION_ORDER_TOP = POSITION_NORTH
 

same as POSITION_NORTH

Definition at line 39 of file CSGrafikElement.h.

Referenced by CSMenu::addMenuItem(), CSDesktop::CSDesktop(), CSBar::initBar(), and CSLayoutManagerStackVertical::layoutElements().

const int POSITION_ORDER_BOTTOM = POSITION_SOUTH
 

same as POSITION_SOUTH

Definition at line 40 of file CSGrafikElement.h.

Referenced by CSLayoutManagerStackVertical::layoutElements().

const int POSITION_ORDER_LEFT = POSITION_WEST
 

same as POSITION_WEST

Definition at line 41 of file CSGrafikElement.h.

Referenced by CSBar::initBar(), and CSLayoutManagerStackHorizontal::layoutElements().

const int POSITION_ORDER_RIGHT = POSITION_EAST
 

same as POSITION_EAST

Definition at line 42 of file CSGrafikElement.h.

Referenced by CSLayoutManagerStackHorizontal::layoutElements().

const int TYPE_HORIZONTAL = 0
 

element is arranged horizontal

Definition at line 44 of file CSGrafikElement.h.

Referenced by CSBar::addElementAt(), CSGradientArea::CSGradientArea(), CSMenuBar::CSMenuBar(), CSScrollbar::CSScrollbar(), CSBar::initBar(), CSScrollbar::layoutSetupScrollbar(), CSScrollbar::paint(), CSGradientArea::paint(), CSScrollbar::reactOnMessageScrollbar(), CSScrollbar::rebuildElement(), and CSWindow::rebuildElementWindow().

const int TYPE_VERTICAL = 1
 

element is arranged vertical

Definition at line 45 of file CSGrafikElement.h.

Referenced by CSScrollbar::CSScrollbar(), CSLAF::getAreaInternal(), CSScrollbar::layoutSetupScrollbar(), CSScrollbar::paint(), CSScrollbar::reactOnMessageScrollbar(), CSScrollbar::rebuildElement(), CSListbox::rebuildElement(), and CSWindow::rebuildElementWindow().

const int TYPE_CHANGE_UP = 1
 

Definition at line 47 of file CSGrafikElement.h.

const int TYPE_CHANGE_INIT = 2
 

Definition at line 48 of file CSGrafikElement.h.

const int TYPE_CHANGE_DOWN = -1
 

Definition at line 49 of file CSGrafikElement.h.

const int TYPE_CHANGE_ONLY_ME = -2
 

Definition at line 50 of file CSGrafikElement.h.

const int LAYOUT_ELEMENT = 1
 

Definition at line 52 of file CSGrafikElement.h.

const int LAYOUT_INTERNAL = 8
 

Definition at line 53 of file CSGrafikElement.h.

const int LAYOUT_LAYOUT = 16
 

Definition at line 54 of file CSGrafikElement.h.

const int LAYOUT_MOVE = 2
 

Definition at line 55 of file CSGrafikElement.h.

const int LAYOUT_SIZE = 4
 

Definition at line 56 of file CSGrafikElement.h.

const int LAYOUT_NOT = 0
 

Definition at line 57 of file CSGrafikElement.h.

const int MOUSE_CURSOR_TYPE_DEFAULT = 0
 

Definition at line 80 of file CSGrafikElement.h.

Referenced by CSGrafikElement::cursorDefault().

const int MOUSE_CURSOR_TYPE_SIZING = 1
 

Definition at line 81 of file CSGrafikElement.h.

Referenced by CSGrafikElement::cursorSizing(), and CSGrafikElement::getCursor().


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