mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-10 16:51:19 +03:00
UICodeEditor: improved minimap scrolling.
VertexBuffer: fixed a minor bug.
This commit is contained in:
@@ -528,6 +528,7 @@ class EE_API UICodeEditor : public UIWidget, public TextDocument::Client {
|
||||
size_t mMenuIconSize{ 16 };
|
||||
UIPopUpMenu* mCurrentMenu{ nullptr };
|
||||
MinimapConfig mMinimapConfig;
|
||||
Int64 mMinimapScrollOffset{ 0 };
|
||||
|
||||
UICodeEditor( const std::string& elementTag, const bool& autoRegisterBaseCommands = true,
|
||||
const bool& autoRegisterBaseKeybindings = true );
|
||||
@@ -556,6 +557,8 @@ class EE_API UICodeEditor : public UIWidget, public TextDocument::Client {
|
||||
|
||||
virtual bool onCreateContextMenu( const Vector2i& position, const Uint32& flags );
|
||||
|
||||
Int64 calculateMinimapClickedLine( const Vector2i& position );
|
||||
|
||||
virtual Uint32 onMouseDown( const Vector2i& position, const Uint32& flags );
|
||||
|
||||
virtual Uint32 onMouseMove( const Vector2i& position, const Uint32& flags );
|
||||
@@ -678,7 +681,7 @@ class EE_API UICodeEditor : public UIWidget, public TextDocument::Client {
|
||||
const String& translateString, const std::string& icon,
|
||||
const std::string& cmd );
|
||||
|
||||
void drawMinimap( const Vector2f& start, const std::pair<int, int>& lineRange );
|
||||
void drawMinimap( const Vector2f& start, const std::pair<Uint64, Uint64>& lineRange );
|
||||
|
||||
Vector2f getScreenStart() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user