GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
EditorGuiWidgetAtlas< T > Class Template Referenceabstract
Inheritance diagram for EditorGuiWidgetAtlas< T >:
Collaboration diagram for EditorGuiWidgetAtlas< T >:

Public Member Functions

 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 (ch==246)
 if (ch==228)
 if (ch==13)
 if (altgr &&ch=='4')
 if (ctrl &&ch=='s')
 if (active &&ctrl &&type==768 &&ch==118)
 if (active &&ctrl &&type==768 &&ch==99)
 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
Public Member Functions inherited from GuiWidgetForward
 GuiWidgetForward (GameApi::EveryApi &ev, std::vector< GuiWidget * > vec)
void hide ()
void show ()
virtual bool is_visible () const
virtual Point2d get_pos () const
virtual Vector2d get_size () const
virtual void set_pos (Point2d new_pos)
virtual void set_size (Vector2d size_p)
virtual void render ()
virtual int render_to_bitmap ()
virtual void select_item (int item)
virtual int chosen_item () const
virtual float dynamic_param (int id) const
virtual void set_dynamic_param (int id, float val)
virtual bool content_changed () const
virtual void clear_content_changed ()
virtual int child_count () const
virtual GuiWidget * child (int num) const
virtual std::vector< GuiWidget * > * child_from_path (std::string path)
void sort_widgets ()
Public Member Functions inherited from GuiWidget
 GuiWidget ()
void set_id (std::string id_m)
std::string get_id () const
void set_index (int j)
int get_index () const
void set_size2 (int sz)
int get_size2 () const
virtual ~GuiWidget ()

Public Attributes

bool done = false
size dy = ev.bitmap_api.size_y(scaled_bitmap)
Public Attributes inherited from GuiWidgetForward
std::vector< GuiWidget * > vec
std::vector< GuiWidget * > sorted
bool isVisible

Additional Inherited Members

Protected Attributes inherited from GuiWidgetForward
GameApi::EveryApi & ev
Point2d pos
Vector2d size
int current_selected_item
int firsttime
Point2d prev_pos = { 0.0, 0.0 }
Point2d old_mouse = { 0.0, 0.0 }

Constructor & Destructor Documentation

◆ EditorGuiWidgetAtlas()

template<class T>
EditorGuiWidgetAtlas< T >::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 )
inline

Member Function Documentation

◆ if() [1/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( ! done) &&

◆ if() [2/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( active &&ctrl && type = =768 && ch==118)
inline

◆ if() [3/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( active &&ctrl && type = =768 && ch==99)
inline

◆ if() [4/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( active && ctrl)
pure virtual

◆ if() [5/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( active &&is_allowed(allowed_chars, ch) && type = =768)
inline

◆ if() [6/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( altgr && ch = ='4')
inline

◆ if() [7/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( altgr )
inline

◆ if() [8/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( ch = =13)
inline

◆ if() [9/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( ch = =228)
inline

◆ if() [10/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( ch = =229)
inline

◆ if() [11/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( ch = =246)
inline

◆ if() [12/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( ctrl && ch = ='s')
inline

◆ if() [13/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( done )

◆ if() [14/14]

template<class T>
EditorGuiWidgetAtlas< T >::if ( shift )
inline

◆ update()

template<class T>
void EditorGuiWidgetAtlas< T >::update ( Point2d mouse,
int button,
int ch,
int type,
int mouse_wheel_y )
inlinevirtual

Reimplemented from GuiWidgetForward.

Here is the caller graph for this function:

Member Data Documentation

◆ done

template<class T>
bool EditorGuiWidgetAtlas< T >::done = false

◆ dy

template<class T>
size EditorGuiWidgetAtlas< T >::dy = ev.bitmap_api.size_y(scaled_bitmap)

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