Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::NodePreviewWindow Class Reference

#include <NodePreviewWindow.h>

+ Inheritance diagram for Divide::NodePreviewWindow:

Public Member Functions

 NodePreviewWindow (Editor &parent, const Descriptor &descriptor)
 
void drawInternal () override
 
const Rect< I32 > & sceneRect (bool globalCoords) const noexcept
 
- Public Member Functions inherited from Divide::DockedWindow
 DockedWindow (Editor &parent, Descriptor descriptor) noexcept
 
virtual ~DockedWindow ()=default
 
void draw ()
 
void backgroundUpdate ()
 
virtual string name () const
 
const Descriptordescriptor () const noexcept
 
virtual void onRemoveComponent (const EditorComponent &comp)
 
 PROPERTY_RW (ImGuiWindowFlags, windowFlags, 0)
 
 PROPERTY_RW (bool, enabled, true)
 
 PROPERTY_R_IW (bool, focused, false)
 
 PROPERTY_R_IW (bool, hovered, false)
 
 PROPERTY_R_IW (bool, visible, false)
 

Protected Member Functions

void drawInternal (Handle< Texture > tex)
 
void updateBounds (Rect< I32 > imageRect)
 
bool button (bool enabled, const char *label, const char *tooltip, bool small=false)
 
- Protected Member Functions inherited from Divide::DockedWindow
virtual void drawInternal ()=0
 
virtual void backgroundUpdateInternal ()
 
const char * getIconForNode (const SceneGraphNode *sgn) noexcept
 

Protected Attributes

Rect< I32_sceneRect [2]
 
string _originalName
 
- Protected Attributes inherited from Divide::DockedWindow
Editor_parent
 
Descriptor _descriptor
 

Detailed Description

Definition at line 41 of file NodePreviewWindow.h.

Constructor & Destructor Documentation

◆ NodePreviewWindow()

Divide::NodePreviewWindow::NodePreviewWindow ( Editor parent,
const Descriptor descriptor 
)

Definition at line 21 of file NodePreviewWindow.cpp.

Member Function Documentation

◆ button()

bool Divide::NodePreviewWindow::button ( bool  enabled,
const char *  label,
const char *  tooltip,
bool  small = false 
)
protected

Definition at line 51 of file NodePreviewWindow.cpp.

◆ drawInternal() [1/2]

void Divide::NodePreviewWindow::drawInternal ( )
overridevirtual

Implements Divide::DockedWindow.

Reimplemented in Divide::SceneViewWindow.

Definition at line 27 of file NodePreviewWindow.cpp.

◆ drawInternal() [2/2]

void Divide::NodePreviewWindow::drawInternal ( Handle< Texture tex)
protected

Definition at line 71 of file NodePreviewWindow.cpp.

◆ sceneRect()

const Rect< I32 > & Divide::NodePreviewWindow::sceneRect ( bool  globalCoords) const
noexcept

Definition at line 177 of file NodePreviewWindow.cpp.

◆ updateBounds()

void Divide::NodePreviewWindow::updateBounds ( Rect< I32 imageRect)
protected

Definition at line 164 of file NodePreviewWindow.cpp.

Member Data Documentation

◆ _originalName

string Divide::NodePreviewWindow::_originalName
protected

Definition at line 58 of file NodePreviewWindow.h.

◆ _sceneRect

Rect<I32> Divide::NodePreviewWindow::_sceneRect[2]
protected

Definition at line 57 of file NodePreviewWindow.h.


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