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]
56 lines
1.4 KiB
Modula-2
56 lines
1.4 KiB
Modula-2
native enum QPainter::RenderHint is Editor.RenderHints;
|
|
|
|
native enum QGraphicsView::DragMode is Editor.GraphicsView.DragTypes;
|
|
|
|
native class QGraphicsView as Native.QGraphicsView : QFrame
|
|
{
|
|
bool isInteractive();
|
|
void setInteractive(bool allowed);
|
|
|
|
void resetTransform();
|
|
void rotate(qreal angle);
|
|
void scale(qreal sx, qreal sy);
|
|
void shear(qreal sh, qreal sv);
|
|
void translate(qreal dx, qreal dy);
|
|
void centerOn(QPointF xy);
|
|
void ensureVisible(QRectF rect, int xmargin, int ymargin);
|
|
void fitInView(QRectF rect);
|
|
|
|
QRectF sceneRect();
|
|
void setSceneRect(QRectF rect);
|
|
|
|
QGraphicsScene scene();
|
|
void setScene(QGraphicsScene scene);
|
|
|
|
ScrollbarMode horizontalScrollBarPolicy();
|
|
void setHorizontalScrollBarPolicy( ScrollbarMode m );
|
|
|
|
ScrollbarMode verticalScrollBarPolicy();
|
|
void setVerticalScrollBarPolicy( ScrollbarMode m );
|
|
|
|
ViewportAnchorType transformationAnchor() const;
|
|
void setTransformationAnchor(ViewportAnchorType anchor);
|
|
|
|
QPointF mapToScene( QPoint pos );
|
|
QPoint mapFromScene( QPointF pos );
|
|
|
|
void setRenderHint(QPainter::RenderHint hint, bool on );
|
|
|
|
QGraphicsItem itemAt( QPoint pos );
|
|
|
|
inline void setBackground( QPixmap pixmap )
|
|
{
|
|
if ( pixmap == nullptr ) return;
|
|
this->setBackgroundBrush( QBrush( *pixmap ) );
|
|
}
|
|
|
|
void setDragMode( DragTypes mode );
|
|
|
|
QRectF rubberBandRect();
|
|
}
|
|
|
|
|
|
managed class Editor.GraphicsView : Editor.Widget
|
|
{
|
|
|
|
} |