src/main/java/dev/lambdaurora/spruceui/util/ScissorManager.java
public static void push(int x, int y, int width, int height) {
        double scaleFactor = getCurrentScaleFactor();
        var handle = new ScissorHandle((int) (scaleFactor * x), adaptY(y, height, scaleFactor),
                (int) (scaleFactor * width), (int) (scaleFactor * height));
        handle.apply();
        SCISSOR_STACK.push(handle);
    }
/**
     * Pushes a new scissor state.
     *
     * @param x the X coordinate of the drawable area
     * @param y the Y coordinate of the drawable area
     * @param width the width of the drawable area
     * @param height the height of the drawable area
     */
Pushes a new scissor state.
@param x the X coordinate of the drawable area
@param y the Y coordinate of the drawable area
@param width the width of the drawable area
@param height the height of the drawable area
Pushes a new scissor state . @param x the X coordinate of the drawable area @param y the Y coordinate of the drawable area @param width the width of the drawable area @param height the height of the drawable area
public static void push(int x, int y, int width, int height) {
        double scaleFactor = getCurrentScaleFactor();
        var handle = new ScissorHandle((int) (scaleFactor * x), adaptY(y, height, scaleFactor),
                (int) (scaleFactor * width), (int) (scaleFactor * height));
        handle.apply();
        SCISSOR_STACK.push(handle);
    }
public static void push ( int x , int y , int width , int height ) { double scaleFactor = getCurrentScaleFactor ( ) ; var handle = new ScissorHandle ( ( int ) ( scaleFactor * x ) , adaptY ( y , height , scaleFactor ) , ( int ) ( scaleFactor * width ) , ( int ) ( scaleFactor * height ) ) ; handle . apply ( ) ; SCISSOR_STACK . push ( handle ) ; }
Pushes a new scissor state.
Pushes a new scissor state .