scrollpad: adjust indentation in header file
This commit is contained in:
@@ -24,13 +24,12 @@
|
|||||||
#include "window.h"
|
#include "window.h"
|
||||||
#include "strbuffer.h"
|
#include "strbuffer.h"
|
||||||
|
|
||||||
namespace NC
|
namespace NC {//
|
||||||
|
|
||||||
|
/// Scrollpad is specialized window that can hold large portion of text and
|
||||||
|
/// supports scrolling if the amount of it is bigger than the window area.
|
||||||
|
struct Scrollpad: public Window
|
||||||
{
|
{
|
||||||
/// Scrollpad is specialized window that can hold large portion of text and
|
|
||||||
/// supports scrolling if the amount of it is bigger than the window area.
|
|
||||||
class Scrollpad: public Window
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
/// Constructs an empty scrollpad with given parameters
|
/// Constructs an empty scrollpad with given parameters
|
||||||
/// @param startx X position of left upper corner of constructed window
|
/// @param startx X position of left upper corner of constructed window
|
||||||
/// @param starty Y position of left upper corner of constructed window
|
/// @param starty Y position of left upper corner of constructed window
|
||||||
@@ -118,7 +117,7 @@ namespace NC
|
|||||||
Scrollpad &operator<<(const std::string &s);
|
Scrollpad &operator<<(const std::string &s);
|
||||||
# endif // _UTF8
|
# endif // _UTF8
|
||||||
|
|
||||||
private:
|
private:
|
||||||
basic_buffer<my_char_t> m_buffer;
|
basic_buffer<my_char_t> m_buffer;
|
||||||
|
|
||||||
int m_beginning;
|
int m_beginning;
|
||||||
@@ -130,7 +129,8 @@ namespace NC
|
|||||||
std::basic_string<my_char_t> m_found_pattern;
|
std::basic_string<my_char_t> m_found_pattern;
|
||||||
|
|
||||||
size_t m_real_height;
|
size_t m_real_height;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace NC {//
|
|||||||
/// window or taken as raw string at any time.
|
/// window or taken as raw string at any time.
|
||||||
template <typename C> class basic_buffer
|
template <typename C> class basic_buffer
|
||||||
{
|
{
|
||||||
friend class Scrollpad;
|
friend struct Scrollpad;
|
||||||
|
|
||||||
/// Struct used for storing information about
|
/// Struct used for storing information about
|
||||||
/// one color/format flag along with its position
|
/// one color/format flag along with its position
|
||||||
|
|||||||
Reference in New Issue
Block a user