

Public Member Functions | |
| CtrlList (intf_thread_t *pIntf, VarList &rList, const GenericFont &rFont, const GenericBitmap *pBitmap, uint32_t fgcolor, uint32_t playcolor, uint32_t bgcolor1, uint32_t bgcolor2, uint32_t selColor, const UString &rHelp, VarBool *pVisible) | |
| virtual | ~CtrlList () |
| virtual void | handleEvent (EvtGeneric &rEvent) |
| Handle an event on the control. | |
| virtual bool | mouseOver (int x, int y) const |
| Check whether coordinates are inside the control. | |
| virtual void | draw (OSGraphics &rImage, int xDest, int yDest) |
| Draw the control on the given graphics. | |
| virtual void | onResize () |
| Called when the layout is resized. | |
| virtual bool | isFocusable () const |
| Return true if the control can gain the focus. | |
| virtual string | getType () const |
| Get the type of control (custom RTTI). | |
| CtrlList::CtrlList | ( | intf_thread_t * | pIntf, | |
| VarList & | rList, | |||
| const GenericFont & | rFont, | |||
| const GenericBitmap * | pBitmap, | |||
| uint32_t | fgcolor, | |||
| uint32_t | playcolor, | |||
| uint32_t | bgcolor1, | |||
| uint32_t | bgcolor2, | |||
| uint32_t | selColor, | |||
| const UString & | rHelp, | |||
| VarBool * | pVisible | |||
| ) |
References Subject< S, ARG >::addObserver(), and VarList::getPositionVar().
| CtrlList::~CtrlList | ( | ) | [virtual] |
References Subject< S, ARG >::delObserver(), and VarList::getPositionVar().
| void CtrlList::handleEvent | ( | EvtGeneric & | rEvent | ) | [virtual] |
Handle an event on the control.
Reimplemented from CtrlGeneric.
References VarList::action(), VarList::begin(), VarList::end(), VarPercent::get(), EvtGeneric::getAsString(), CtrlGeneric::getPosition(), VarList::getPositionVar(), GenericFont::getSize(), Position::getTop(), EvtMouse::getYPos(), index, KEY_DOWN, KEY_UP, EvtScroll::kUp, LINE_INTERVAL, VarList::Elem_t::m_selected, next(), CtrlGeneric::notifyLayout(), VarPercent::set(), and VarList::size().
| bool CtrlList::mouseOver | ( | int | x, | |
| int | y | |||
| ) | const [virtual] |
Check whether coordinates are inside the control.
Reimplemented from CtrlGeneric.
References Position::getHeight(), CtrlGeneric::getPosition(), and Position::getWidth().
| void CtrlList::draw | ( | OSGraphics & | rImage, | |
| int | xDest, | |||
| int | yDest | |||
| ) | [virtual] |
Draw the control on the given graphics.
Reimplemented from CtrlGeneric.
References OSGraphics::drawGraphics().
| void CtrlList::onResize | ( | ) | [virtual] |
Called when the layout is resized.
Reimplemented from CtrlGeneric.
References Position::getHeight(), CtrlGeneric::getPosition(), VarList::getPositionVar(), GenericFont::getSize(), LINE_INTERVAL, VarPercent::set(), and VarList::size().
| virtual bool CtrlList::isFocusable | ( | ) | const [inline, virtual] |
| virtual string CtrlList::getType | ( | ) | const [inline, virtual] |
1.5.6