GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi_gui.cc File Reference
#include "GameApi_h.hh"
#include "GameApi_gui.hh"
#include "GameApi_cmd.hh"
#include "Tasks.hh"
#include "GameApi_dep_env_delmap.hh"
Include dependency graph for GameApi_gui.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EmptyWidget
class  TimedWidget2
class  TimedWidget
class  DynamicTextGuiWidget
class  MousePositionTweakForEditors
class  HideWidgetIfArrayEmpty
class  HideNonSearchableGuiWidget
class  AltGuiWidget
class  OverlapGuiWidget
class  TextGuiWidgetAtlas
class  EditorGuiWidget< T >
class  Conv< T >
class  Conv< std::string >
class  Conv< float >
class  Conv< int >
class  MultilineEditor< T >
class  EditorGuiWidgetAtlas< T >
class  CollectInterfaceImpl2
struct  A
struct  ASyncCallback

Functions

int ret_type_count (std::string return_type)
std::string unique_id_apiitem ()
std::vector< GameApiItem * > all_functions (GameApi::EveryApi &ev)
std::vector< GameApiItem * > polydistfield_functions ()
std::vector< GameApiItem * > waveform_functions ()
std::vector< GameApiItem * > blocker_functions (GameApi::EveryApi &ev)
std::vector< GameApiItem * > textureapi_functions ()
std::vector< GameApiItem * > volumeapi_functions ()
std::vector< GameApiItem * > floatvolumeapi_functions ()
std::vector< GameApiItem * > colorvolumeapi_functions ()
std::vector< GameApiItem * > vectorapi_functions ()
std::vector< GameApiItem * > pointapi_functions ()
std::vector< GameApiItem * > fontapi_functions ()
std::vector< GameApiItem * > moveapi_functions ()
std::vector< GameApiItem * > polygonapi_functions ()
std::vector< GameApiItem * > shadermoduleapi_functions ()
std::vector< GameApiItem * > shaderapi_functions ()
std::vector< GameApiItem * > framebuffermoduleapi_functions ()
std::vector< GameApiItem * > booleanopsapi_functions ()
std::vector< GameApiItem * > polygonapi_functions1 ()
std::vector< GameApiItem * > polygonapi_functions2 ()
std::vector< GameApiItem * > linesapi_functions ()
std::vector< GameApiItem * > pointsapi_functions ()
std::vector< GameApiItem * > floatbitmapapi_functions ()
std::vector< GameApiItem * > boolbitmapapi_functions ()
std::vector< GameApiItem * > bitmapapi_functions ()
std::string FloatExprEval (std::string s)
std::string StringExprEval (std::string s)
std::string IntExprEval (std::string s)
int find_str (std::string val, std::string repl)
bool is_allowed (std::string chars, char ch)
std::string GetContentInstallDir (bool b)
template<class T>
EditorGuiWidgetAtlas GuiWidgetForward render ()
 EditorGuiWidgetAtlas (GameApi::Env &env, GameApi::EveryApi &ev, std::string allowed_chars, T &target_m, GameApi::FtA atlas, GameApi::BM atlas_bm, GameApi::SH sh, int x_gap, bool allow_expr=false, std::string &expr=g_temp44, int non_editable=0, GameApi::W *redraw_w=0)
void update (Point2d mouse, int button, int ch, int type, int mouse_wheel_y)
 if (ch==229)
 if (altgr &&ch=='4')
 if (ctrl &&ch=='s')
 if (active &&ctrl &&type==768 &&ch==118)
 if (active &&ctrl) ch=0
 if (shift)
 if (altgr)
 if (active &&is_allowed(allowed_chars, ch) &&type==768)
 if (done) changed
 if (!done) if(active &&type
int render_to_bitmap ()
void set_value (std::string value)

Variables

IMPORT bool g_transparent
IMPORT int g_event_screen_x
IMPORT int g_event_screen_y
int async_pending_count
const float keypress_rot_speed = 6.0
std::string g_searchstring ="@"
IMPORT ConversionTableInterface * g_conv_table = &g_conv_table_impl
std::map< std::string, int > shared_text
IMPORT bool g_dragdrop_enabled
IMPORT std::string g_dragdrop_filename
std::string g_temp44
IMPORT bool g_reload_edit_dialog = false
IMPORT GameApi::PAT gameapi_temp_dir
bool done = false
size dy = ev.bitmap_api.size_y(scaled_bitmap)

Function Documentation

◆ all_functions()

std::vector< GameApiItem * > all_functions ( GameApi::EveryApi & ev)
Here is the caller graph for this function:

◆ bitmapapi_functions()

std::vector< GameApiItem * > bitmapapi_functions ( )

◆ blocker_functions()

std::vector< GameApiItem * > blocker_functions ( GameApi::EveryApi & ev)

◆ boolbitmapapi_functions()

std::vector< GameApiItem * > boolbitmapapi_functions ( )

◆ booleanopsapi_functions()

std::vector< GameApiItem * > booleanopsapi_functions ( )

◆ colorvolumeapi_functions()

std::vector< GameApiItem * > colorvolumeapi_functions ( )

◆ EditorGuiWidgetAtlas()

render::EditorGuiWidgetAtlas ( GameApi::Env & env,
GameApi::EveryApi & ev,
std::string allowed_chars,
T & target_m,
GameApi::FtA atlas,
GameApi::BM atlas_bm,
GameApi::SH sh,
int x_gap,
bool allow_expr = false,
std::string & expr = g_temp44,
int non_editable = 0,
GameApi::W * redraw_w = 0 )

◆ find_str()

int find_str ( std::string val,
std::string repl )

◆ floatbitmapapi_functions()

std::vector< GameApiItem * > floatbitmapapi_functions ( )

◆ FloatExprEval()

std::string FloatExprEval ( std::string s)
Here is the caller graph for this function:

◆ floatvolumeapi_functions()

std::vector< GameApiItem * > floatvolumeapi_functions ( )

◆ fontapi_functions()

std::vector< GameApiItem * > fontapi_functions ( )

◆ framebuffermoduleapi_functions()

std::vector< GameApiItem * > framebuffermoduleapi_functions ( )

◆ GetContentInstallDir()

std::string GetContentInstallDir ( bool b)

◆ if() [1/10]

render::if ( ! done) &&

◆ if() [2/10]

render::if ( active &&ctrl && type = =768 && ch==118)

◆ if() [3/10]

render::if ( active && ctrl)
pure virtual

◆ if() [4/10]

render::if ( active &&is_allowed(allowed_chars, ch) && type = =768)

◆ if() [5/10]

render::if ( altgr && ch = ='4')

◆ if() [6/10]

render::if ( altgr )

◆ if() [7/10]

render::if ( ch = =229)

◆ if() [8/10]

render::if ( ctrl && ch = ='s')

◆ if() [9/10]

render::if ( done )

◆ if() [10/10]

render::if ( shift )

◆ IntExprEval()

std::string IntExprEval ( std::string s)
Here is the caller graph for this function:

◆ is_allowed()

bool is_allowed ( std::string chars,
char ch )

◆ linesapi_functions()

std::vector< GameApiItem * > linesapi_functions ( )

◆ moveapi_functions()

std::vector< GameApiItem * > moveapi_functions ( )

◆ pointapi_functions()

std::vector< GameApiItem * > pointapi_functions ( )

◆ pointsapi_functions()

std::vector< GameApiItem * > pointsapi_functions ( )

◆ polydistfield_functions()

std::vector< GameApiItem * > polydistfield_functions ( )

◆ polygonapi_functions()

std::vector< GameApiItem * > polygonapi_functions ( )

◆ polygonapi_functions1()

std::vector< GameApiItem * > polygonapi_functions1 ( )

◆ polygonapi_functions2()

std::vector< GameApiItem * > polygonapi_functions2 ( )

◆ render()

template<class T>
EditorGuiWidgetAtlas GuiWidgetForward render ( )
Here is the caller graph for this function:

◆ render_to_bitmap()

int render_to_bitmap ( )

◆ ret_type_count()

int ret_type_count ( std::string return_type)
Here is the caller graph for this function:

◆ set_value()

void set_value ( std::string value)

◆ shaderapi_functions()

std::vector< GameApiItem * > shaderapi_functions ( )

◆ shadermoduleapi_functions()

std::vector< GameApiItem * > shadermoduleapi_functions ( )

◆ StringExprEval()

std::string StringExprEval ( std::string s)
Here is the caller graph for this function:

◆ textureapi_functions()

std::vector< GameApiItem * > textureapi_functions ( )

◆ unique_id_apiitem()

std::string unique_id_apiitem ( )

◆ update()

void render::update ( Point2d mouse,
int button,
int ch,
int type,
int mouse_wheel_y )
Here is the caller graph for this function:

◆ vectorapi_functions()

std::vector< GameApiItem * > vectorapi_functions ( )

◆ volumeapi_functions()

std::vector< GameApiItem * > volumeapi_functions ( )

◆ waveform_functions()

std::vector< GameApiItem * > waveform_functions ( )

Variable Documentation

◆ async_pending_count

int async_pending_count
extern

◆ done

bool done = false

◆ dy

size dy = ev.bitmap_api.size_y(scaled_bitmap)

◆ g_conv_table

EXPORT ConversionTableInterface* g_conv_table = &g_conv_table_impl

◆ g_dragdrop_enabled

IMPORT bool g_dragdrop_enabled

◆ g_dragdrop_filename

IMPORT std::string g_dragdrop_filename

◆ g_event_screen_x

IMPORT int g_event_screen_x
extern

◆ g_event_screen_y

IMPORT int g_event_screen_y
extern

◆ g_reload_edit_dialog

IMPORT bool g_reload_edit_dialog = false

◆ g_searchstring

std::string g_searchstring ="@"

◆ g_temp44

std::string g_temp44

◆ g_transparent

IMPORT bool g_transparent
extern

◆ gameapi_temp_dir

IMPORT GameApi::PAT gameapi_temp_dir
extern

◆ keypress_rot_speed

const float keypress_rot_speed = 6.0

◆ shared_text

std::map<std::string, int> shared_text