mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 06:53:36 +00:00
29 lines
791 B
C++
29 lines
791 B
C++
#pragma once
|
|
|
|
#include "Icon.h"
|
|
|
|
class FlippedIcon : public Icon {
|
|
private:
|
|
Icon* base;
|
|
const bool horizontal;
|
|
const bool vertical;
|
|
|
|
public:
|
|
FlippedIcon(Icon* base, bool horizontal, bool vertical);
|
|
|
|
int getX() const;
|
|
int getY() const;
|
|
int getWidth() const;
|
|
int getHeight() const;
|
|
float getU0(bool adjust = false) const;
|
|
float getU1(bool adjust = false) const;
|
|
float getU(double offset, bool adjust = false) const;
|
|
float getV0(bool adjust = false) const;
|
|
float getV1(bool adjust = false) const;
|
|
float getV(double offset, bool adjust = false) const;
|
|
std::wstring getName() const;
|
|
int getSourceWidth() const;
|
|
int getSourceHeight() const;
|
|
int getFlags() const; // 4J added
|
|
void setFlags(int flags); // 4J added
|
|
}; |