mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-20 22:38:16 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
47 lines
928 B
Modula-2
47 lines
928 B
Modula-2
native class QAbstractButton as Native.QAbstractButton : QWidget
|
|
{
|
|
void setText(QString text);
|
|
QString text();
|
|
|
|
void setIcon(QIcon icon);
|
|
inline void setIconFromPixmap( QPixmap icon )
|
|
{
|
|
QIcon qicon( *icon );
|
|
self->setIcon( qicon );
|
|
}
|
|
|
|
inline QPixmap getIconAsPixmap()
|
|
{
|
|
QIcon qicon = self->icon();
|
|
QPixmap pixmap = qicon.pixmap( qicon.actualSize( QSize( 32, 32 ) ) );
|
|
|
|
return new QPixmap( pixmap );
|
|
}
|
|
|
|
void setCheckable(bool b);
|
|
bool isCheckable();
|
|
|
|
bool isChecked();
|
|
|
|
void setDown(bool b);
|
|
bool isDown();
|
|
|
|
void setIconSize(const QSize size);
|
|
void animateClick(int msec);
|
|
void click();
|
|
void toggle();
|
|
void setChecked(bool b);
|
|
|
|
|
|
void setAutoRepeat(bool x);
|
|
bool autoRepeat();
|
|
|
|
void setAutoRepeatDelay(int x);
|
|
int autoRepeatDelay();
|
|
|
|
void setAutoRepeatInterval(int x);
|
|
int autoRepeatInterval();
|
|
|
|
void setAutoExclusive(bool x);
|
|
bool autoExclusive();
|
|
} |