Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Gauges.cpp File Reference

Implements CGauge and related classes for panel gauges. More...

#include "../Include/Gauges.h"
#include "../Include/Utility.h"
#include "../Include/Ui.h"
#include "../Include/Globals.h"
#include "../Include/Subsystems.h"

Go to the source code of this file.

Enumerations

enum  EMagnetoSwitch {
  MAGNETO_SWITCH_OFF = 0, MAGNETO_SWITCH_RIGHT = 1, MAGNETO_SWITCH_LEFT = 2, MAGNETO_SWITCH_BOTH = 3,
  MAGNETO_SWITCH_START = 4
}

Functions

static int ClickAreaFromTag (Tag tag)
static void BlitSurface (SSurface *surface, int xOffset, int yOffset, int y_isiz)
static void ConvertFreq (float f, int *whole, int *fract)


Detailed Description

Implementation of the many different varieties of panel gauge classes, including CGauge and all descendents. Also includes the implementation of related classes such as CGaugeNeedle, CGaugeClickArea, etc.

Definition in file Gauges.cpp.


Enumeration Type Documentation

enum EMagnetoSwitch
 

Enumerator:
MAGNETO_SWITCH_OFF 
MAGNETO_SWITCH_RIGHT 
MAGNETO_SWITCH_LEFT 
MAGNETO_SWITCH_BOTH 
MAGNETO_SWITCH_START 

Definition at line 9714 of file Gauges.cpp.


Function Documentation

static void BlitSurface SSurface surface,
int  xOffset,
int  yOffset,
int  y_isiz
[static]
 

Definition at line 69 of file Gauges.cpp.

References BlitTransparent(), SSurface::xScreen, SSurface::yScreen, and SSurface::ySize.

Referenced by CNavigationGauge::Blit(), CBasicADFGauge::Blit(), and CGauge::Blit().

static int ClickAreaFromTag Tag  tag  )  [static]
 

Helper function to search for click area datatags. These are tags of the format <ca??> where ?? is a 2-digit value, i.e <ca01>, <ca15> etc.

Returns:
int between 1 and 99 corresponding to <ca??> value, zero otherwise

Definition at line 49 of file Gauges.cpp.

Referenced by CBKAP140Gauge::Read(), CBKADFKR87Gauge::Read(), and CBKXPDRKT76Gauge::Read().

static void ConvertFreq float  f,
int *  whole,
int *  fract
[static]
 

Definition at line 3970 of file Gauges.cpp.

Referenced by CBKNavComKX155Gauge::Draw().

SourceForge.net Logo Documentation generated by doxygen