yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::StatusUpdateEvent Struct Reference

#include <ui_events.h>

Inheritance diagram for yaze::editor::StatusUpdateEvent:
Collaboration diagram for yaze::editor::StatusUpdateEvent:

Public Types

enum class  Type {
  Cursor , Selection , Zoom , Mode ,
  Message , Clear
}
 

Static Public Member Functions

static StatusUpdateEvent Cursor (int x, int y, const std::string &label="Pos")
 
static StatusUpdateEvent Selection (int count, int width=0, int height=0)
 
static StatusUpdateEvent ClearAll ()
 

Public Attributes

Type type
 
std::string text
 
int x = 0
 
int y = 0
 
int count = 0
 
int width = 0
 
int height = 0
 
float zoom = 1.0f
 
std::string key
 

Additional Inherited Members

- Public Member Functions inherited from yaze::Event
virtual ~Event ()=default
 

Detailed Description

Definition at line 9 of file ui_events.h.

Member Enumeration Documentation

◆ Type

Enumerator
Cursor 
Selection 
Zoom 
Mode 
Message 
Clear 

Definition at line 10 of file ui_events.h.

Member Function Documentation

◆ Cursor()

static StatusUpdateEvent yaze::editor::StatusUpdateEvent::Cursor ( int x,
int y,
const std::string & label = "Pos" )
inlinestatic

Definition at line 27 of file ui_events.h.

References Cursor, text, type, x, and y.

◆ Selection()

static StatusUpdateEvent yaze::editor::StatusUpdateEvent::Selection ( int count,
int width = 0,
int height = 0 )
inlinestatic

Definition at line 35 of file ui_events.h.

References count, height, Selection, type, and width.

◆ ClearAll()

static StatusUpdateEvent yaze::editor::StatusUpdateEvent::ClearAll ( )
inlinestatic

Definition at line 44 of file ui_events.h.

References Clear, and type.

Member Data Documentation

◆ type

Type yaze::editor::StatusUpdateEvent::type

◆ text

std::string yaze::editor::StatusUpdateEvent::text

Definition at line 20 of file ui_events.h.

Referenced by Cursor(), and yaze::editor::StatusBar::HandleStatusUpdate().

◆ x

int yaze::editor::StatusUpdateEvent::x = 0

Definition at line 21 of file ui_events.h.

Referenced by Cursor(), and yaze::editor::StatusBar::HandleStatusUpdate().

◆ y

int yaze::editor::StatusUpdateEvent::y = 0

Definition at line 21 of file ui_events.h.

Referenced by Cursor(), and yaze::editor::StatusBar::HandleStatusUpdate().

◆ count

int yaze::editor::StatusUpdateEvent::count = 0

Definition at line 22 of file ui_events.h.

Referenced by yaze::editor::StatusBar::HandleStatusUpdate(), and Selection().

◆ width

int yaze::editor::StatusUpdateEvent::width = 0

Definition at line 22 of file ui_events.h.

Referenced by yaze::editor::StatusBar::HandleStatusUpdate(), and Selection().

◆ height

int yaze::editor::StatusUpdateEvent::height = 0

Definition at line 22 of file ui_events.h.

Referenced by yaze::editor::StatusBar::HandleStatusUpdate(), and Selection().

◆ zoom

float yaze::editor::StatusUpdateEvent::zoom = 1.0f

Definition at line 23 of file ui_events.h.

Referenced by yaze::editor::StatusBar::HandleStatusUpdate().

◆ key

std::string yaze::editor::StatusUpdateEvent::key

Definition at line 24 of file ui_events.h.


The documentation for this struct was generated from the following file: