Cthulhu  0.2.10
Cthulhu compiler collection
ed::IEditorPanel Class Reference

#include <panel.hpp>

Inheritance diagram for ed::IEditorPanel:

Public Member Functions

 IEditorPanel (std::string_view name)
 
virtual ~IEditorPanel ()=default
 
virtual void update ()
 
virtual bool draw_window ()
 
void draw ()
 
virtual bool menu_item (const char *shortcut=nullptr)
 
const char * get_title () const
 
bool is_visible () const
 
bool is_enabled () const
 

Protected Member Functions

void set_enabled (bool value)
 
void disable (std::string_view reason)
 

Protected Attributes

bool visible = true
 
bool enabled = true
 
std::string disabled_reason
 
ImGuiWindowFlags flags = ImGuiWindowFlags_None
 

Detailed Description

Definition at line 23 of file panel.hpp.

Constructor & Destructor Documentation

◆ IEditorPanel()

IEditorPanel::IEditorPanel ( std::string_view  name)

Definition at line 8 of file panel.cpp.

◆ ~IEditorPanel()

virtual ed::IEditorPanel::~IEditorPanel ( )
virtualdefault

Member Function Documentation

◆ disable()

void ed::IEditorPanel::disable ( std::string_view  reason)
inlineprotected

Definition at line 36 of file panel.hpp.

◆ draw()

void IEditorPanel::draw ( )

Definition at line 26 of file panel.cpp.

◆ draw_window()

bool IEditorPanel::draw_window ( )
virtual

Definition at line 13 of file panel.cpp.

◆ get_title()

const char* ed::IEditorPanel::get_title ( ) const
inline

Definition at line 54 of file panel.hpp.

◆ is_enabled()

bool ed::IEditorPanel::is_enabled ( ) const
inline

Definition at line 56 of file panel.hpp.

◆ is_visible()

bool ed::IEditorPanel::is_visible ( ) const
inline

Definition at line 55 of file panel.hpp.

◆ menu_item()

bool IEditorPanel::menu_item ( const char *  shortcut = nullptr)
virtual

Reimplemented in StaticModulePanel, and EditorModulePanel.

Definition at line 32 of file panel.cpp.

◆ set_enabled()

void ed::IEditorPanel::set_enabled ( bool  value)
inlineprotected

Definition at line 35 of file panel.hpp.

◆ update()

virtual void ed::IEditorPanel::update ( )
inlinevirtual

Definition at line 43 of file panel.hpp.

Field Documentation

◆ disabled_reason

std::string ed::IEditorPanel::disabled_reason
protected

Definition at line 32 of file panel.hpp.

◆ enabled

bool ed::IEditorPanel::enabled = true
protected

Definition at line 31 of file panel.hpp.

◆ flags

ImGuiWindowFlags ed::IEditorPanel::flags = ImGuiWindowFlags_None
protected

Definition at line 33 of file panel.hpp.

◆ visible

bool ed::IEditorPanel::visible = true
protected

Definition at line 30 of file panel.hpp.


The documentation for this class was generated from the following files: