95 "tab_highlighted.xml",
110 mTabOutlineColor(&getThemeColor(
ThemeColorId::TAB_OUTLINE, 255U)),
111 mTabHighlightedColor(&getThemeColor(
ThemeColorId::TAB_HIGHLIGHTED, 255U)),
112 mTabHighlightedOutlineColor(&getThemeColor(
114 mTabSelectedColor(&getThemeColor(
ThemeColorId::TAB_SELECTED, 255U)),
115 mTabSelectedOutlineColor(&getThemeColor(
117 mFlashColor(&getThemeColor(
ThemeColorId::TAB_FLASH, 255U)),
118 mFlashOutlineColor(&getThemeColor(
ThemeColorId::TAB_FLASH_OUTLINE, 255U)),
119 mPlayerFlashColor(&getThemeColor(
ThemeColorId::TAB_PLAYER_FLASH, 255U)),
120 mPlayerFlashOutlineColor(&getThemeColor(
140 for (
int mode = 0; mode <
TAB_COUNT; mode ++)
166 if (
theme !=
nullptr)
168 for (
int mode = 0; mode <
TAB_COUNT; mode ++)
198 for (
int a = 0; a < 9; a++)
207 if (image !=
nullptr)
232 else if (labelMode == 0)
300 if (skin1 !=
nullptr)
335 else if (labelMode == 0)
393 if (skin1 !=
nullptr)
435 const SDL_Rect &rect =
mImage->mBounds;
436 setSize(rect.w + pad2, rect.h + pad2);
virtual void safeDrawChildren(Graphics *const graphics)
void add(Widget *const widget)
virtual void drawChildren(Graphics *const graphics)
virtual void drawImage(const Image *const image, int dstX, int dstY)=0
virtual void drawTileCollection(const ImageCollection *const vertCol)=0
virtual void calcTileCollection(ImageCollection *const vertCol, const Image *const image, int x, int y)=0
virtual void finalize(ImageCollection *const col)
virtual void calcWindow(ImageCollection *const vertCol, const int x, const int y, const int w, const int h, const ImageRect &imgRect)=0
virtual void drawImageRect(const int x, const int y, const int w, const int h, const ImageRect &imgRect)=0
void removeDragged(const Widget *const widget)
void setForegroundColorAll(const Color &color1, const Color &color2)
const std::string & getCaption() const
void setCaption(const std::string &caption)
const ImageRect & getBorder() const
const Color * mFlashColor
const Color * mTabSelectedColor
void mouseEntered(MouseEvent &event)
Tab(const Widget2 *const widget)
const Color * mTabSelectedOutlineColor
const Color * mTabHighlightedColor
const Color * mTabOutlineColor
void widgetMoved(const Event &event)
void setTabbedArea(TabbedArea *tabbedArea)
const std::string & getCaption() const
void safeDraw(Graphics *const graphics)
const Color * mPlayerFlashColor
const Color * mTabHighlightedOutlineColor
static Skin * tabImg[TAB_COUNT]
void mouseExited(MouseEvent &event)
void setCaption(const std::string &caption)
void setLabelFont(Font *const font)
void setImage(Image *const image)
void draw(Graphics *const graphics)
static void finalCleanup()
const Color * mFlashOutlineColor
TabbedArea * getTabbedArea() const
ImageCollection * mVertexes
const Color * mPlayerFlashOutlineColor
void widgetResized(const Event &event)
bool isTabSelected(const size_t index) const
void adjustTabPositions()
void unload(Skin *const skin)
static std::string getThemePath()
Skin * load(const std::string &filename, const std::string &filename2, const bool full, const std::string &defaultPath)
float getMinimumOpacity() const
#define BLOCK_START(name)