49 _leftScrollbar(false),
50 _itemSelectionEnabled(false),
56 _textColorChanged(false),
57 _textR(0.0f), _textG(0.0f), _textB(0.0f), _textA(0.0f),
58 _borderColorChanged(false),
59 _borderR(0.0f), _borderG(0.0f), _borderB(0.0f), _borderA(0.0f) {
123 _items.push_back(contents);
135 for (
uint32 i = 0; i < count; ++i) {
166 float totalHeight = 0;
174 bool heightExceeded =
false;
178 bool visible =
false;
180 if (!heightExceeded) {
182 if (itemIndex < (
int)
_items.size()) {
187 if (totalHeight + textHeight >
getHeight())
188 heightExceeded =
true;
194 totalHeight += textHeight +
_padding;
198 if (!heightExceeded) {
252 if (index < 0 || static_cast<size_t>(index) >=
_items.size())
260 bool selectionChanged =
false;
264 selectionChanged =
true;
270 selectionChanged =
true;
274 if (selectionChanged)
284 bool selectionChanged =
false;
288 selectionChanged =
true;
294 selectionChanged =
true;
298 if (selectionChanged)
311 float deltaHeight = height -
_height;
372 for (
size_t i = 0; i < count; ++i) {
int64 getSint(const Common::UString &field, int64 def=0) const
Handling version V3.2/V3.3 of BioWare's GFFs (generic file format).
The global graphics manager.
A label widget for Star Wars: Knights of the Old Republic and Jade Empire.
bool getBool(const Common::UString &field, bool def=false) const
A class holding an UTF-8 string.
bool beginsWith(const UString &with) const
bool hasField(const Common::UString &field) const
Does this specific field exist?
Utility templates and functions for working with strings and streams.
const char * c_str() const
Return the (utf8 encoded) string data.
void replaceAll(uint32 what, uint32 with)
Replace all occurrences of a character with another character.
static UString format(const char *s,...) GCC_PRINTF(1
Print formatted data into an UString object, similar to sprintf().
A list box widget for Star Wars: Knights of the Old Republic and Jade Empire.
Sound::ChannelHandle playSound(const Common::UString &sound, Sound::SoundType soundType, bool loop, float volume, bool pitchVariance)
Play this sound resource.
const GFF3Struct & getStruct(const Common::UString &field) const
A protoitem widget for Star Wars: Knights of the Old Republic and Jade Empire.
Low-level detection of architecture/system properties.
An inventory item widget for Star Wars: Knights of the Old Republic.
Common::UString getString(const Common::UString &field, const Common::UString &def="") const
Generic Aurora engines utility functions.
void parseString(const UString &str, T &value, bool allowEmpty)
Parse a string into any POD integer, float/double or bool type.
#define GfxMan
Shortcut for accessing the graphics manager.