mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 19:29:19 +02:00
LCD Screens in python
Merge with python branch
This commit is contained in:
10
Button.h
10
Button.h
@@ -25,7 +25,10 @@ class TButton
|
||||
TButton();
|
||||
~TButton();
|
||||
void Clear(int i = -1);
|
||||
inline void FeedbackBitSet(int i) { iFeedbackBit = 1 << i; };
|
||||
inline void FeedbackBitSet(int i)
|
||||
{
|
||||
iFeedbackBit = 1 << i;
|
||||
};
|
||||
inline void Turn(bool to)
|
||||
{
|
||||
bOn = to;
|
||||
@@ -46,7 +49,10 @@ class TButton
|
||||
bOn = !bOn;
|
||||
Update();
|
||||
};
|
||||
inline bool Active() { return (pModelOn) || (pModelOff); };
|
||||
inline bool Active()
|
||||
{
|
||||
return (pModelOn) || (pModelOff);
|
||||
};
|
||||
void Init(AnsiString asName, TModel3d *pModel, bool bNewOn = false);
|
||||
void Load(TQueryParserComp *Parser, TModel3d *pModel1, TModel3d *pModel2 = NULL);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user