aboutsummaryrefslogtreecommitdiff
Commit message (Expand)AuthorAge
...
* Translated using Weblate (German)Wuzzy2015-11-08
* Translated using Weblate (Indonesian)Muhammad Rifqi Priyo Susanto2015-11-08
* Translated using Weblate (Chinese (Taiwan))Jeff Huang2015-11-08
* Translated using Weblate (German)PilzAdam2015-11-08
* Translated using Weblate (German)PilzAdam2015-11-08
* Translated using Weblate (German)PilzAdam2015-11-08
* Translated using Weblate (French)Jean-Patrick G2015-11-08
* Translated using Weblate (German)pilzadam2015-11-08
* Don't compile pcgrandom on Windowsest312015-11-08
* Improve LuaVoxelManip documentationkwolekr2015-11-07
* Add support for audio feedback if placing node failedBlockMen2015-11-07
* Document ENABLE_CURSES in README.txtKahrl2015-11-06
* Conf.example, settingtypes: Improve mgfractal documentationparamat2015-11-06
* Add server side ncurses terminalest312015-11-06
* Schematics: Add core.place_schematic_on_vmanip APIkwolekr2015-11-05
* Settingtypes: Correct documentation for mgfractalparamat2015-11-05
* Fix time progressing too fastest312015-11-04
* Mgfractal: Add documentation to conf.example and settingtypesparamat2015-11-04
* Time: use locks againest312015-11-04
* Time: Remove serverside getter, and use atomic operationsest312015-11-03
* Atomic: cleanup and add more operationsest312015-11-03
* Only go fast in autorun if fast move is enabledest312015-11-03
* Silence 'unused typedef' warning for STATIC_ASSERT()kwolekr2015-11-03
* Add callback parameter for core.emerge_area()kwolekr2015-11-02
* Speed up saving of profiling data by 27xgregorycu2015-11-02
* Rename and move basicmacros.h to util/basic_macros.hest312015-11-02
* Print --videomodes response to standard output, tooKahrl2015-11-02
* Print direct command line responses to standard output instead of using the l...Perttu Ahola2015-11-02
* Fix Lua scripting synchronizationkwolekr2015-11-01
* Fix Noise compiled under clang >= 3.7.x with -O2 or higherkwolekr2015-11-01
* Fix server crashing on Lua errorsShadowNinja2015-10-31
* Fix clang warningShadowNinja2015-10-31
* Fix C++11 compatibilitykwolekr2015-10-31
* minetest. to core.Rui9142015-10-31
* WoW-style AutorunDuane Robertson2015-10-29
* findSpawnPos: Add setting for max height above water levelparamat2015-10-29
* Mgfractal: Add filler depth noiseparamat2015-10-29
* Add STATIC_ASSERT() macro and use itkwolekr2015-10-27
* Add DISABLE_CLASS_COPY macro (and use it)kwolekr2015-10-27
* Environment: Time of day fixes and add serverside getterest312015-10-27
* Fix missing #includePilzAdam2015-10-27
* Move basic, non-numeric macros from util/numeric.h to basicmacros.hkwolekr2015-10-27
* Fix jittering sounds on entities (fixes #2974)BlockMen2015-10-26
* Fix typoBlockMen2015-10-26
* SAPI: Fix seed parameter truncation for LuaPseudoRandom constructorkwolekr2015-10-26
* SAPI: Move core.get_us_time() to Util modulekwolekr2015-10-26
* Remove some abort() callsest312015-10-26
* SAPI: Throw runtime error instead of if l_get_mapgen_object called in incorre...kwolekr2015-10-25
* SAPI: Mark all Lua API functions requiring envlockkwolekr2015-10-25
* Correct comment in l_util.cppest312015-10-26
sion2du getTextDimension(); //! Sets text justification virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical); //! called if an event happened. virtual bool OnEvent(const SEvent& event); //! draws the element and its children virtual void draw(); //! Sets the new caption of this element. virtual void setText(const wchar_t* text); //! Sets the maximum amount of characters which may be entered in the box. //! \param max: Maximum amount of characters. If 0, the character amount is //! infinity. virtual void setMax(u32 max); //! Returns maximum amount of characters, previously set by setMax(); virtual u32 getMax() const; //! Sets whether the edit box is a password box. Setting this to true will /** disable MultiLine, WordWrap and the ability to copy with ctrl+c or ctrl+x \param passwordBox: true to enable password, false to disable \param passwordChar: the character that is displayed instead of letters */ virtual void setPasswordBox(bool passwordBox, wchar_t passwordChar = L'*'); //! Returns true if the edit box is currently a password box. virtual bool isPasswordBox() const; //! Updates the absolute position, splits text if required virtual void updateAbsolutePosition(); //! Writes attributes of the element. virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; //! Reads attributes of the element virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); protected: //! Breaks the single text line. void breakText(); //! sets the area of the given line void setTextRect(s32 line); //! returns the line number that the cursor is on s32 getLineFromPos(s32 pos); //! adds a letter to the edit box void inputChar(wchar_t c); //! calculates the current scroll position void calculateScrollPos(); //! send some gui event to parent void sendGuiEvent(EGUI_EVENT_TYPE type); //! set text markers void setTextMarkers(s32 begin, s32 end); bool processKey(const SEvent& event); bool processMouse(const SEvent& event); s32 getCursorPos(s32 x, s32 y); bool MouseMarking; bool Border; bool OverrideColorEnabled; s32 MarkBegin; s32 MarkEnd; video::SColor OverrideColor; gui::IGUIFont *OverrideFont, *LastBreakFont; IOSOperator* Operator; u32 BlinkStartTime; s32 CursorPos; s32 HScrollPos, VScrollPos; // scroll position in characters u32 Max; bool WordWrap, MultiLine, AutoScroll, PasswordBox; wchar_t PasswordChar; EGUI_ALIGNMENT HAlign, VAlign; core::array< core::stringw > BrokenText; core::array< s32 > BrokenTextPositions; core::rect<s32> CurrentTextRect, FrameRect; // temporary values }; } // end namespace gui } // end namespace irr //#endif // _IRR_COMPILE_WITH_GUI_ #endif // __C_GUI_EDIT_BOX_H_INCLUDED__