API Documentation
LogWin.h
1 // LogWin.h
3 //
5 
6 namespace nkWinUi
7 {
11  class LogWin : public Component
12  {
13  public :
14 
22  LogWin (System* system) noexcept ;
26  virtual ~LogWin () ;
27 
28  // Getters
32  unsigned int getMaxLine () const ;
36  virtual const ScrollBar* getVerticalScrollBar () const ;
37 
38  // Setters
44  void setMaxLine (unsigned int val) ;
45 
51  virtual void addLine (nkMemory::StringView line) ;
55  virtual void clear () ;
56 
57  // Import / Export
58  virtual void exportIntrospection (nkExport::Node* rootNode) override ;
59  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
60 
61  public :
62 
63  // Statics
71  static nkMemory::UniquePtr<LogWin> create (System* system = nullptr) ;
72  } ;
73 }
nkWinUi::LogWin::LogWin
LogWin(System *system) noexcept
nkWinUi::LogWin::getMaxLine
unsigned int getMaxLine() const
nkWinUi::LogWin::clear
virtual void clear()
nkWinUi::LogWin::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkWinUi::ScrollBar
A graphical scroll bar.
Definition: ScrollBar.h:12
nkWinUi::LogWin::addLine
virtual void addLine(nkMemory::StringView line)
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::LogWin::exportIntrospection
virtual void exportIntrospection(nkExport::Node *rootNode) override
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkWinUi::LogWin::create
static nkMemory::UniquePtr< LogWin > create(System *system=nullptr)
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkWinUi::LogWin::getVerticalScrollBar
virtual const ScrollBar * getVerticalScrollBar() const
nkWinUi::LogWin::setMaxLine
void setMaxLine(unsigned int val)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::LogWin
A graphical log window, where lines can be added like a console log.
Definition: LogWin.h:12
nkWinUi::LogWin::~LogWin
virtual ~LogWin()