载入中...
搜索中...
未找到
eve::ui::UIBackend类 参考abstract

Platform / renderer backend for declarative UI. Concrete implementations live under ui/<backend>/ (e.g. ui/imgui). 更多...

#include <UIBackend.h>

类 eve::ui::UIBackend 继承关系图:
eve::ui::ImGuiBackend

Public 成员函数

virtual ~UIBackend ()=default
 
virtual bool init (SDL_Window *window, eve::graphics::Graphics *gfx)=0
 
virtual void shutdown ()=0
 
virtual bool isInitialized () const =0
 
virtual void processEvent (const SDL_Event *event)=0
 
virtual void newFrame ()=0
 
virtual bool wantCaptureMouse () const
 
virtual bool wantCaptureKeyboard () const
 
virtual void setScale (float)
 Scale fonts + ImGui style metrics (1 = default desktop).
 
virtual float getScale () const
 
virtual uint64_t registerTexture (graphics::Texture *)
 
virtual void unregisterTexture (uint64_t)
 
virtual bool textureSize (uint64_t, int *, int *) const
 
virtual void * textureHandle (uint64_t) const
 

详细描述

Platform / renderer backend for declarative UI. Concrete implementations live under ui/<backend>/ (e.g. ui/imgui).

在文件 UIBackend.h18 行定义.

构造及析构函数说明

◆ ~UIBackend()

virtual eve::ui::UIBackend::~UIBackend ( )
virtualdefault

成员函数说明

◆ getScale()

virtual float eve::ui::UIBackend::getScale ( ) const
inlinevirtual

eve::ui::ImGuiBackend 重载.

在文件 UIBackend.h34 行定义.

◆ init()

virtual bool eve::ui::UIBackend::init ( SDL_Window *  window,
eve::graphics::Graphics gfx 
)
pure virtual

eve::ui::ImGuiBackend 内被实现.

◆ isInitialized()

virtual bool eve::ui::UIBackend::isInitialized ( ) const
pure virtual

eve::ui::ImGuiBackend 内被实现.

◆ newFrame()

virtual void eve::ui::UIBackend::newFrame ( )
pure virtual

eve::ui::ImGuiBackend 内被实现.

◆ processEvent()

virtual void eve::ui::UIBackend::processEvent ( const SDL_Event *  event)
pure virtual

eve::ui::ImGuiBackend 内被实现.

◆ registerTexture()

virtual uint64_t eve::ui::UIBackend::registerTexture ( graphics::Texture )
inlinevirtual

Register an engine texture for UI drawing. Returns an opaque id usable as UINode::textureId (0 = unsupported / failure). The texture must stay alive while registered.

在文件 UIBackend.h41 行定义.

◆ setScale()

virtual void eve::ui::UIBackend::setScale ( float  )
inlinevirtual

Scale fonts + ImGui style metrics (1 = default desktop).

eve::ui::ImGuiBackend 重载.

在文件 UIBackend.h33 行定义.

◆ shutdown()

virtual void eve::ui::UIBackend::shutdown ( )
pure virtual

eve::ui::ImGuiBackend 内被实现.

◆ textureHandle()

virtual void * eve::ui::UIBackend::textureHandle ( uint64_t  ) const
inlinevirtual

Backend draw handle (ImTextureID) for a registered id; null if unknown.

在文件 UIBackend.h46 行定义.

◆ textureSize()

virtual bool eve::ui::UIBackend::textureSize ( uint64_t  ,
int *  ,
int *   
) const
inlinevirtual

Texture pixel size for a registered id (used by nine-patch UV math).

在文件 UIBackend.h44 行定义.

◆ unregisterTexture()

virtual void eve::ui::UIBackend::unregisterTexture ( uint64_t  )
inlinevirtual

在文件 UIBackend.h42 行定义.

◆ wantCaptureKeyboard()

virtual bool eve::ui::UIBackend::wantCaptureKeyboard ( ) const
inlinevirtual

eve::ui::ImGuiBackend 重载.

在文件 UIBackend.h30 行定义.

◆ wantCaptureMouse()

virtual bool eve::ui::UIBackend::wantCaptureMouse ( ) const
inlinevirtual

eve::ui::ImGuiBackend 重载.

在文件 UIBackend.h29 行定义.


该类的文档由以下文件生成: