/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter Unisharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

package com.pullenti.unitext.internal.word;

public class ColorRef {

    private boolean _isauto;

    public boolean isAuto() {
        return _isauto;
    }

    public boolean setAuto(boolean value) {
        _isauto = value;
        return _isauto;
    }


    private byte _r;

    public byte getR() {
        return _r;
    }

    public byte setR(byte value) {
        _r = value;
        return _r;
    }


    private byte _g;

    public byte getG() {
        return _g;
    }

    public byte setG(byte value) {
        _g = value;
        return _g;
    }


    private byte _b;

    public byte getB() {
        return _b;
    }

    public byte setB(byte value) {
        _b = value;
        return _b;
    }


    public static ColorRef fromBytes(byte[] value, int offset) {
        ColorRef c = new ColorRef();
        c.setR(value[0]);
        c.setG(value[1]);
        c.setB(value[2]);
        c.setAuto(value[3] != ((byte)0));
        return c;
    }
    public ColorRef() {
    }
}
