123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- #pragma once
- #include "IGUIElement.h"
- #include "SColor.h"
- namespace irr
- {
- namespace gui
- {
- class IGUIFont;
- class IGUIEditBox : public IGUIElement
- {
- public:
-
- IGUIEditBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect<s32> rectangle) :
- IGUIElement(EGUIET_EDIT_BOX, environment, parent, id, rectangle) {}
-
-
- virtual void setOverrideFont(IGUIFont *font = 0) = 0;
-
-
- virtual IGUIFont *getOverrideFont() const = 0;
-
-
- virtual IGUIFont *getActiveFont() const = 0;
-
-
- virtual void setOverrideColor(video::SColor color) = 0;
-
- virtual video::SColor getOverrideColor() const = 0;
-
-
- virtual void enableOverrideColor(bool enable) = 0;
-
-
- virtual bool isOverrideColorEnabled(void) const = 0;
-
- virtual void setDrawBackground(bool draw) = 0;
-
-
- virtual bool isDrawBackgroundEnabled() const = 0;
-
-
- virtual void setDrawBorder(bool border) = 0;
-
-
- virtual bool isDrawBorderEnabled() const = 0;
-
-
- virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
-
-
- virtual void setWordWrap(bool enable) = 0;
-
-
- virtual bool isWordWrapEnabled() const = 0;
-
-
- virtual void setMultiLine(bool enable) = 0;
-
-
- virtual bool isMultiLineEnabled() const = 0;
-
-
- virtual void setAutoScroll(bool enable) = 0;
-
-
- virtual bool isAutoScrollEnabled() const = 0;
-
-
- virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar = L'*') = 0;
-
- virtual bool isPasswordBox() const = 0;
-
-
- virtual core::dimension2du getTextDimension() = 0;
-
-
- virtual void setMax(u32 max) = 0;
-
- virtual u32 getMax() const = 0;
-
-
- virtual void setCursorChar(const wchar_t cursorChar) = 0;
-
- virtual wchar_t getCursorChar() const = 0;
-
-
- virtual void setCursorBlinkTime(irr::u32 timeMs) = 0;
-
- virtual irr::u32 getCursorBlinkTime() const = 0;
- };
- }
- }
|