mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-08-02 17:00:23 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
55 lines
1.0 KiB
Modula-2
55 lines
1.0 KiB
Modula-2
|
|
|
|
native class QMenu as Native.QMenu : QWidget
|
|
{
|
|
static QMenu Create( QWidget parent ); [new]
|
|
|
|
void insertAction(QAction before, QAction action);
|
|
QAction addSeparator();
|
|
bool isEmpty();
|
|
void clear();
|
|
|
|
QString title();
|
|
void setTitle(QString title);
|
|
|
|
void setIcon(QIcon icon);
|
|
inline void setIconFromPixmap( QPixmap icon )
|
|
{
|
|
QIcon qicon( *icon );
|
|
self->setIcon( qicon );
|
|
}
|
|
|
|
void exec( QPoint pos );
|
|
QAction activeAction();
|
|
|
|
QAction addMenu(QMenu menu);
|
|
QAction insertMenu(QAction before, QMenu menu);
|
|
|
|
void setTearOffEnabled(bool b);
|
|
bool isTearOffEnabled();
|
|
|
|
void setToolTipsVisible(bool visible);
|
|
bool toolTipsVisible();
|
|
}
|
|
|
|
|
|
native class QMenuBar as Native.QMenuBar : QWidget
|
|
{
|
|
void insertAction(QAction before, QAction action);
|
|
|
|
QAction addMenu(QMenu menu);
|
|
QAction insertMenu(QAction before, QMenu menu);
|
|
|
|
QAction addSeparator();
|
|
void clear();
|
|
}
|
|
|
|
native class CMenuBar
|
|
{
|
|
static QMenuBar Create( QWidget parent, Editor.MenuBar menubar ); [new]
|
|
}
|
|
|
|
managed class Editor.MenuBar : Editor.Widget
|
|
{
|
|
|
|
} |