1#ifndef YAZE_APP_EDITOR_MENU_STATUS_BAR_H_
2#define YAZE_APP_EDITOR_MENU_STATUS_BAR_H_
5#include <unordered_map>
90 void SetSelection(
int count,
int width = 0,
int height = 0);
The Rom class is used to load, save, and modify Rom data. This is a generic SNES ROM container and do...
A session-aware status bar displayed at the bottom of the application.
static constexpr float kStatusBarHeight
void DrawCustomSegments()
void DrawSelectionSegment()
void HandleStatusUpdate(const StatusUpdateEvent &event)
GlobalEditorContext * context_
float GetHeight() const
Get the height of the status bar.
void SetSessionInfo(size_t session_id, size_t total_sessions)
Set session information.
void ClearCursorPosition()
Clear cursor position (no cursor in editor)
void SetSelection(int count, int width=0, int height=0)
Set selection information.
void ClearZoom()
Clear zoom display.
void SetRom(Rom *rom)
Set the current ROM for dirty status and filename display.
void SetCustomSegment(const std::string &key, const std::string &value)
Set a custom segment with key-value pair.
void SetZoom(float level)
Set current zoom level.
void SetEnabled(bool enabled)
Enable or disable the status bar.
std::string cursor_label_
std::unordered_map< std::string, std::string > custom_segments_
void ClearSelection()
Clear selection info.
void ClearEditorMode()
Clear editor mode display.
void Initialize(GlobalEditorContext *context)
void SetCursorPosition(int x, int y, const char *label="Pos")
Set cursor/mouse position in editor coordinates.
void SetEditorMode(const std::string &mode)
Set the current editor mode or tool.
void Draw()
Draw the status bar.
void ClearAllContext()
Clear all context (cursor, selection, zoom, mode, custom)
void ClearCustomSegment(const std::string &key)
Remove a custom segment.
void DrawSessionSegment()