mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
ENH:Optimized Gizmo toolbar layout
Change-Id: I9e323c310abd2afcf0f9586ba261f714dd718f38
This commit is contained in:
parent
5bea8a76fc
commit
dbe354995e
7 changed files with 132 additions and 108 deletions
|
@ -67,6 +67,7 @@ public:
|
|||
//BBS: GUI refactor: GLToolbar
|
||||
ActionWithText,
|
||||
ActionWithTextImage,
|
||||
SeparatorLine,
|
||||
Num_Types
|
||||
};
|
||||
|
||||
|
@ -399,7 +400,7 @@ public:
|
|||
// returns true if any item changed its state
|
||||
bool update_items_state();
|
||||
|
||||
void render(const GLCanvas3D& parent);
|
||||
void render(const GLCanvas3D& parent,GLToolbarItem::EType type = GLToolbarItem::Action);
|
||||
void render_arrow(const GLCanvas3D& parent, GLToolbarItem* highlighted_item);
|
||||
|
||||
bool on_mouse(wxMouseEvent& evt, GLCanvas3D& parent);
|
||||
|
@ -428,7 +429,7 @@ private:
|
|||
int contains_mouse_vertical(const Vec2d& mouse_pos, const GLCanvas3D& parent) const;
|
||||
|
||||
void render_background(float left, float top, float right, float bottom, float border) const;
|
||||
void render_horizontal(const GLCanvas3D& parent);
|
||||
void render_horizontal(const GLCanvas3D& parent,GLToolbarItem::EType type);
|
||||
void render_vertical(const GLCanvas3D& parent);
|
||||
|
||||
bool generate_icons_texture();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue