resonance 1.0.1
Loading...
Searching...
No Matches
metscreen.h File Reference
#include <list>
#include <map>
#include <vector>
#include "app/msgsink.h"
#include "met/metrenderer.h"
#include "os/hxstr.h"
#include "rnd/asyncloader.h"
#include "rnd/drawable.h"
#include "rnd/object.h"
#include "rnd/view.h"
Include dependency graph for metscreen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MetContainerLoad
 One shared container load, interned under the container name. More...
struct  MetScreenCommand
 One navigation command delivered to a screen. More...
struct  MetScreenEntry
 One value of MetScreen::ScreenRegistry(), a screen and the category it was registered under. More...
class  MetScreen
 Base of every front-end screen. More...

Namespaces

namespace  Rnd
 The rendering engine.

Enumerations

enum  MetScreenCommandCode {
  kMetScreenCommandNone = 0 , kMetScreenCommandPrevious = 1 , kMetScreenCommandNext = 2 , kMetScreenCommandLeft = 3 ,
  kMetScreenCommandRight = 4 , kMetScreenCommandSelect = 5 , kMetScreenCommandBack = 6
}
 What a navigation command requests. More...

Enumeration Type Documentation

◆ MetScreenCommandCode

What a navigation command requests.

The six values are the ones MetScreen::DeliverCommand() routes to a sound, through a six-entry jump table at 0x0080b460 indexed by the command code less one. Left and right are fixed by the sound literals that branch plays, SND_MET_CYCLE_L and SND_MET_CYCLE_R. Previous and next both play SND_MET_HIGH, and MetMainScreen separates them at 0x002c6820 by routing previous to MetButtonList::SelectPrevious() (a step of the selected index down) and next to MetButtonList::SelectNext() (a step up).

The translator at 0x002e3738 produces further codes from a 103-entry table, among them 7 and

  1. A code above six is discarded by DeliverCommand() without a sound and passed to slot 19 unchanged, and its meaning is recovered nowhere in the image.
Enumerator
kMetScreenCommandNone 

The renderer discards the command instead of delivering it.

kMetScreenCommandPrevious 

One step back along the button ring.

kMetScreenCommandNext 

One step forward along the button ring.

kMetScreenCommandLeft 

Cycle the selected value to the left.

kMetScreenCommandRight 

Cycle the selected value to the right.

kMetScreenCommandSelect 

Act on the selection.

kMetScreenCommandBack 

Depart the screen.