libigl v2.5.0
Loading...
Searching...
No Matches
igl::opengl::glfw::imgui::ImGuiWidget Class Reference

Abstract class for imgui "widgets". More...

#include <ImGuiWidget.h>

Inheritance diagram for igl::opengl::glfw::imgui::ImGuiWidget:
igl::opengl::glfw::imgui::ImGuiMenu igl::opengl::glfw::imgui::ImGuizmoWidget igl::opengl::glfw::imgui::SelectionWidget

Public Member Functions

 ImGuiWidget ()
 
virtual ~ImGuiWidget ()
 
virtual void init (Viewer *_viewer, ImGuiPlugin *_plugin)
 
virtual void shutdown ()
 
virtual void draw ()
 
virtual bool mouse_down (int, int)
 
virtual bool mouse_up (int, int)
 
virtual bool mouse_move (int, int)
 
virtual bool key_pressed (unsigned int, int)
 
virtual bool key_down (int, int)
 
virtual bool key_up (int, int)
 

Public Attributes

std::string name
 

Protected Attributes

Viewerviewer
 
ImGuiPluginplugin
 

Detailed Description

Abstract class for imgui "widgets".

A widget is something that uses imgui, but doesn't own the entire imgui IO stack: the single ImGuiPlugin owns that and widgets are registered with it.

Constructor & Destructor Documentation

◆ ImGuiWidget()

igl::opengl::glfw::imgui::ImGuiWidget::ImGuiWidget ( )
inline

◆ ~ImGuiWidget()

virtual igl::opengl::glfw::imgui::ImGuiWidget::~ImGuiWidget ( )
inlinevirtual

Member Function Documentation

◆ init()

virtual void igl::opengl::glfw::imgui::ImGuiWidget::init ( Viewer _viewer,
ImGuiPlugin _plugin 
)
inlinevirtual

◆ shutdown()

virtual void igl::opengl::glfw::imgui::ImGuiWidget::shutdown ( )
inlinevirtual

◆ draw()

virtual void igl::opengl::glfw::imgui::ImGuiWidget::draw ( )
inlinevirtual

◆ mouse_down()

virtual bool igl::opengl::glfw::imgui::ImGuiWidget::mouse_down ( int  ,
int   
)
inlinevirtual

◆ mouse_up()

virtual bool igl::opengl::glfw::imgui::ImGuiWidget::mouse_up ( int  ,
int   
)
inlinevirtual

◆ mouse_move()

virtual bool igl::opengl::glfw::imgui::ImGuiWidget::mouse_move ( int  ,
int   
)
inlinevirtual

◆ key_pressed()

virtual bool igl::opengl::glfw::imgui::ImGuiWidget::key_pressed ( unsigned int  ,
int   
)
inlinevirtual

◆ key_down()

virtual bool igl::opengl::glfw::imgui::ImGuiWidget::key_down ( int  ,
int   
)
inlinevirtual

◆ key_up()

virtual bool igl::opengl::glfw::imgui::ImGuiWidget::key_up ( int  ,
int   
)
inlinevirtual

Member Data Documentation

◆ name

std::string igl::opengl::glfw::imgui::ImGuiWidget::name

◆ viewer

Viewer* igl::opengl::glfw::imgui::ImGuiWidget::viewer
protected

◆ plugin

ImGuiPlugin* igl::opengl::glfw::imgui::ImGuiWidget::plugin
protected

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