OpenCPN Partial API docs
Loading...
Searching...
No Matches
mui_bar.cpp File Reference

Implement mui_bar.h – MUI (Modern User Interface) Control bar. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include <wx/statline.h>
#include "ssfn.h"
#include "model/config_vars.h"
#include "model/idents.h"
#include "model/svg_utils.h"
#include "canvas_options.h"
#include "chcanv.h"
#include "color_handler.h"
#include "detail_slider.h"
#include "go_to_position_dlg.h"
#include "mui_bar.h"
#include "navutil.h"
#include "ocpn_platform.h"
#include "pluginmanager.h"
#include "styles.h"
#include "tooltip.h"

Go to the source code of this file.

Classes

class  SetScaleDialog
 
class  MUIButton
 
class  MUITextButton
 

Macros

#define ID_SCALE_CANCEL   8301
 
#define ID_SCALE_OK   8302
 
#define ID_SCALECTRL   8303
 
#define CANVAS_OPTIONS_ANIMATION_TIMER_1   800
 
#define CANVAS_OPTIONS_TIMER   801
 

Functions

ssfn_font_tload_font (const char *filename)
 Load a font.
 
bool RenderGlyphToImageBuffer (unsigned char *buffer, ssfn_glyph_t *glyph, int x_offset, int w, int h, int nominal_baseline, wxColour &color, wxColour &back_color)
 
bool RenderStringToBuffer (unsigned char *buffer, std::string s, int wbox, int hbox, int nominal_baseline, wxColour color, wxColour &back_color)
 
double bounceMaker (double t, double c, double a)
 

Detailed Description

Implement mui_bar.h – MUI (Modern User Interface) Control bar.

Definition in file mui_bar.cpp.

Macro Definition Documentation

◆ CANVAS_OPTIONS_ANIMATION_TIMER_1

#define CANVAS_OPTIONS_ANIMATION_TIMER_1   800

Definition at line 708 of file mui_bar.cpp.

◆ CANVAS_OPTIONS_TIMER

#define CANVAS_OPTIONS_TIMER   801

Definition at line 709 of file mui_bar.cpp.

◆ ID_SCALE_CANCEL

#define ID_SCALE_CANCEL   8301

Definition at line 63 of file mui_bar.cpp.

◆ ID_SCALE_OK

#define ID_SCALE_OK   8302

Definition at line 64 of file mui_bar.cpp.

◆ ID_SCALECTRL

#define ID_SCALECTRL   8303

Definition at line 65 of file mui_bar.cpp.

Function Documentation

◆ bounceMaker()

double bounceMaker ( double  t,
double  c,
double  a 
)

Definition at line 1548 of file mui_bar.cpp.

◆ load_font()

ssfn_font_t * load_font ( const char *  filename)

Load a font.

Definition at line 439 of file mui_bar.cpp.

◆ RenderGlyphToImageBuffer()

bool RenderGlyphToImageBuffer ( unsigned char *  buffer,
ssfn_glyph_t glyph,
int  x_offset,
int  w,
int  h,
int  nominal_baseline,
wxColour &  color,
wxColour &  back_color 
)

Definition at line 490 of file mui_bar.cpp.

◆ RenderStringToBuffer()

bool RenderStringToBuffer ( unsigned char *  buffer,
std::string  s,
int  wbox,
int  hbox,
int  nominal_baseline,
wxColour  color,
wxColour &  back_color 
)

Definition at line 512 of file mui_bar.cpp.