io.qt.gui.QGradient Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Used in combination with QBrush to specify gradient fills
* Java wrapper for Qt class QGradient
*/
public class QGradient extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGradient.class);
/**
* Java wrapper for Qt enum QGradient::CoordinateMode
*/
public enum CoordinateMode implements QtEnumerator {
/**
* Representing QGradient:: LogicalMode
*/
LogicalMode(0),
/**
* Representing QGradient:: StretchToDeviceMode
*/
StretchToDeviceMode(1),
/**
* Representing QGradient:: ObjectBoundingMode
*/
ObjectBoundingMode(2),
/**
* Representing QGradient:: ObjectMode
*/
ObjectMode(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private CoordinateMode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull CoordinateMode resolve(int value) {
switch (value) {
case 0: return LogicalMode;
case 1: return StretchToDeviceMode;
case 2: return ObjectBoundingMode;
case 3: return ObjectMode;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QGradient::InterpolationMode
*/
public enum InterpolationMode implements QtEnumerator {
/**
* Representing QGradient:: ColorInterpolation
*/
ColorInterpolation(0),
/**
* Representing QGradient:: ComponentInterpolation
*/
ComponentInterpolation(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private InterpolationMode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull InterpolationMode resolve(int value) {
switch (value) {
case 0: return ColorInterpolation;
case 1: return ComponentInterpolation;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QGradient::Preset
*/
public enum Preset implements QtEnumerator {
/**
* Representing QGradient:: WarmFlame
*/
WarmFlame(1),
/**
* Representing QGradient:: NightFade
*/
NightFade(2),
/**
* Representing QGradient:: SpringWarmth
*/
SpringWarmth(3),
/**
* Representing QGradient:: JuicyPeach
*/
JuicyPeach(4),
/**
* Representing QGradient:: YoungPassion
*/
YoungPassion(5),
/**
* Representing QGradient:: LadyLips
*/
LadyLips(6),
/**
* Representing QGradient:: SunnyMorning
*/
SunnyMorning(7),
/**
* Representing QGradient:: RainyAshville
*/
RainyAshville(8),
/**
* Representing QGradient:: FrozenDreams
*/
FrozenDreams(9),
/**
* Representing QGradient:: WinterNeva
*/
WinterNeva(10),
/**
* Representing QGradient:: DustyGrass
*/
DustyGrass(11),
/**
* Representing QGradient:: TemptingAzure
*/
TemptingAzure(12),
/**
* Representing QGradient:: HeavyRain
*/
HeavyRain(13),
/**
* Representing QGradient:: AmyCrisp
*/
AmyCrisp(14),
/**
* Representing QGradient:: MeanFruit
*/
MeanFruit(15),
/**
* Representing QGradient:: DeepBlue
*/
DeepBlue(16),
/**
* Representing QGradient:: RipeMalinka
*/
RipeMalinka(17),
/**
* Representing QGradient:: CloudyKnoxville
*/
CloudyKnoxville(18),
/**
* Representing QGradient:: MalibuBeach
*/
MalibuBeach(19),
/**
* Representing QGradient:: NewLife
*/
NewLife(20),
/**
* Representing QGradient:: TrueSunset
*/
TrueSunset(21),
/**
* Representing QGradient:: MorpheusDen
*/
MorpheusDen(22),
/**
* Representing QGradient:: RareWind
*/
RareWind(23),
/**
* Representing QGradient:: NearMoon
*/
NearMoon(24),
/**
* Representing QGradient:: WildApple
*/
WildApple(25),
/**
* Representing QGradient:: SaintPetersburg
*/
SaintPetersburg(26),
/**
* Representing QGradient:: PlumPlate
*/
PlumPlate(28),
/**
* Representing QGradient:: EverlastingSky
*/
EverlastingSky(29),
/**
* Representing QGradient:: HappyFisher
*/
HappyFisher(30),
/**
* Representing QGradient:: Blessing
*/
Blessing(31),
/**
* Representing QGradient:: SharpeyeEagle
*/
SharpeyeEagle(32),
/**
* Representing QGradient:: LadogaBottom
*/
LadogaBottom(33),
/**
* Representing QGradient:: LemonGate
*/
LemonGate(34),
/**
* Representing QGradient:: ItmeoBranding
*/
ItmeoBranding(35),
/**
* Representing QGradient:: ZeusMiracle
*/
ZeusMiracle(36),
/**
* Representing QGradient:: OldHat
*/
OldHat(37),
/**
* Representing QGradient:: StarWine
*/
StarWine(38),
/**
* Representing QGradient:: HappyAcid
*/
HappyAcid(41),
/**
* Representing QGradient:: AwesomePine
*/
AwesomePine(42),
/**
* Representing QGradient:: NewYork
*/
NewYork(43),
/**
* Representing QGradient:: ShyRainbow
*/
ShyRainbow(44),
/**
* Representing QGradient:: MixedHopes
*/
MixedHopes(46),
/**
* Representing QGradient:: FlyHigh
*/
FlyHigh(47),
/**
* Representing QGradient:: StrongBliss
*/
StrongBliss(48),
/**
* Representing QGradient:: FreshMilk
*/
FreshMilk(49),
/**
* Representing QGradient:: SnowAgain
*/
SnowAgain(50),
/**
* Representing QGradient:: FebruaryInk
*/
FebruaryInk(51),
/**
* Representing QGradient:: KindSteel
*/
KindSteel(52),
/**
* Representing QGradient:: SoftGrass
*/
SoftGrass(53),
/**
* Representing QGradient:: GrownEarly
*/
GrownEarly(54),
/**
* Representing QGradient:: SharpBlues
*/
SharpBlues(55),
/**
* Representing QGradient:: ShadyWater
*/
ShadyWater(56),
/**
* Representing QGradient:: DirtyBeauty
*/
DirtyBeauty(57),
/**
* Representing QGradient:: GreatWhale
*/
GreatWhale(58),
/**
* Representing QGradient:: TeenNotebook
*/
TeenNotebook(59),
/**
* Representing QGradient:: PoliteRumors
*/
PoliteRumors(60),
/**
* Representing QGradient:: SweetPeriod
*/
SweetPeriod(61),
/**
* Representing QGradient:: WideMatrix
*/
WideMatrix(62),
/**
* Representing QGradient:: SoftCherish
*/
SoftCherish(63),
/**
* Representing QGradient:: RedSalvation
*/
RedSalvation(64),
/**
* Representing QGradient:: BurningSpring
*/
BurningSpring(65),
/**
* Representing QGradient:: NightParty
*/
NightParty(66),
/**
* Representing QGradient:: SkyGlider
*/
SkyGlider(67),
/**
* Representing QGradient:: HeavenPeach
*/
HeavenPeach(68),
/**
* Representing QGradient:: PurpleDivision
*/
PurpleDivision(69),
/**
* Representing QGradient:: AquaSplash
*/
AquaSplash(70),
/**
* Representing QGradient:: SpikyNaga
*/
SpikyNaga(72),
/**
* Representing QGradient:: LoveKiss
*/
LoveKiss(73),
/**
* Representing QGradient:: CleanMirror
*/
CleanMirror(75),
/**
* Representing QGradient:: PremiumDark
*/
PremiumDark(76),
/**
* Representing QGradient:: ColdEvening
*/
ColdEvening(77),
/**
* Representing QGradient:: CochitiLake
*/
CochitiLake(78),
/**
* Representing QGradient:: SummerGames
*/
SummerGames(79),
/**
* Representing QGradient:: PassionateBed
*/
PassionateBed(80),
/**
* Representing QGradient:: MountainRock
*/
MountainRock(81),
/**
* Representing QGradient:: DesertHump
*/
DesertHump(82),
/**
* Representing QGradient:: JungleDay
*/
JungleDay(83),
/**
* Representing QGradient:: PhoenixStart
*/
PhoenixStart(84),
/**
* Representing QGradient:: OctoberSilence
*/
OctoberSilence(85),
/**
* Representing QGradient:: FarawayRiver
*/
FarawayRiver(86),
/**
* Representing QGradient:: AlchemistLab
*/
AlchemistLab(87),
/**
* Representing QGradient:: OverSun
*/
OverSun(88),
/**
* Representing QGradient:: PremiumWhite
*/
PremiumWhite(89),
/**
* Representing QGradient:: MarsParty
*/
MarsParty(90),
/**
* Representing QGradient:: EternalConstance
*/
EternalConstance(91),
/**
* Representing QGradient:: JapanBlush
*/
JapanBlush(92),
/**
* Representing QGradient:: SmilingRain
*/
SmilingRain(93),
/**
* Representing QGradient:: CloudyApple
*/
CloudyApple(94),
/**
* Representing QGradient:: BigMango
*/
BigMango(95),
/**
* Representing QGradient:: HealthyWater
*/
HealthyWater(96),
/**
* Representing QGradient:: AmourAmour
*/
AmourAmour(97),
/**
* Representing QGradient:: RiskyConcrete
*/
RiskyConcrete(98),
/**
* Representing QGradient:: StrongStick
*/
StrongStick(99),
/**
* Representing QGradient:: ViciousStance
*/
ViciousStance(100),
/**
* Representing QGradient:: PaloAlto
*/
PaloAlto(101),
/**
* Representing QGradient:: HappyMemories
*/
HappyMemories(102),
/**
* Representing QGradient:: MidnightBloom
*/
MidnightBloom(103),
/**
* Representing QGradient:: Crystalline
*/
Crystalline(104),
/**
* Representing QGradient:: PartyBliss
*/
PartyBliss(106),
/**
* Representing QGradient:: ConfidentCloud
*/
ConfidentCloud(107),
/**
* Representing QGradient:: LeCocktail
*/
LeCocktail(108),
/**
* Representing QGradient:: RiverCity
*/
RiverCity(109),
/**
* Representing QGradient:: FrozenBerry
*/
FrozenBerry(110),
/**
* Representing QGradient:: ChildCare
*/
ChildCare(112),
/**
* Representing QGradient:: FlyingLemon
*/
FlyingLemon(113),
/**
* Representing QGradient:: NewRetrowave
*/
NewRetrowave(114),
/**
* Representing QGradient:: HiddenJaguar
*/
HiddenJaguar(115),
/**
* Representing QGradient:: AboveTheSky
*/
AboveTheSky(116),
/**
* Representing QGradient:: Nega
*/
Nega(117),
/**
* Representing QGradient:: DenseWater
*/
DenseWater(118),
/**
* Representing QGradient:: Seashore
*/
Seashore(120),
/**
* Representing QGradient:: MarbleWall
*/
MarbleWall(121),
/**
* Representing QGradient:: CheerfulCaramel
*/
CheerfulCaramel(122),
/**
* Representing QGradient:: NightSky
*/
NightSky(123),
/**
* Representing QGradient:: MagicLake
*/
MagicLake(124),
/**
* Representing QGradient:: YoungGrass
*/
YoungGrass(125),
/**
* Representing QGradient:: ColorfulPeach
*/
ColorfulPeach(126),
/**
* Representing QGradient:: GentleCare
*/
GentleCare(127),
/**
* Representing QGradient:: PlumBath
*/
PlumBath(128),
/**
* Representing QGradient:: HappyUnicorn
*/
HappyUnicorn(129),
/**
* Representing QGradient:: AfricanField
*/
AfricanField(131),
/**
* Representing QGradient:: SolidStone
*/
SolidStone(132),
/**
* Representing QGradient:: OrangeJuice
*/
OrangeJuice(133),
/**
* Representing QGradient:: GlassWater
*/
GlassWater(134),
/**
* Representing QGradient:: NorthMiracle
*/
NorthMiracle(136),
/**
* Representing QGradient:: FruitBlend
*/
FruitBlend(137),
/**
* Representing QGradient:: MillenniumPine
*/
MillenniumPine(138),
/**
* Representing QGradient:: HighFlight
*/
HighFlight(139),
/**
* Representing QGradient:: MoleHall
*/
MoleHall(140),
/**
* Representing QGradient:: SpaceShift
*/
SpaceShift(142),
/**
* Representing QGradient:: ForestInei
*/
ForestInei(143),
/**
* Representing QGradient:: RoyalGarden
*/
RoyalGarden(144),
/**
* Representing QGradient:: RichMetal
*/
RichMetal(145),
/**
* Representing QGradient:: JuicyCake
*/
JuicyCake(146),
/**
* Representing QGradient:: SmartIndigo
*/
SmartIndigo(147),
/**
* Representing QGradient:: SandStrike
*/
SandStrike(148),
/**
* Representing QGradient:: NorseBeauty
*/
NorseBeauty(149),
/**
* Representing QGradient:: AquaGuidance
*/
AquaGuidance(150),
/**
* Representing QGradient:: SunVeggie
*/
SunVeggie(151),
/**
* Representing QGradient:: SeaLord
*/
SeaLord(152),
/**
* Representing QGradient:: BlackSea
*/
BlackSea(153),
/**
* Representing QGradient:: GrassShampoo
*/
GrassShampoo(154),
/**
* Representing QGradient:: LandingAircraft
*/
LandingAircraft(155),
/**
* Representing QGradient:: WitchDance
*/
WitchDance(156),
/**
* Representing QGradient:: SleeplessNight
*/
SleeplessNight(157),
/**
* Representing QGradient:: AngelCare
*/
AngelCare(158),
/**
* Representing QGradient:: CrystalRiver
*/
CrystalRiver(159),
/**
* Representing QGradient:: SoftLipstick
*/
SoftLipstick(160),
/**
* Representing QGradient:: SaltMountain
*/
SaltMountain(161),
/**
* Representing QGradient:: PerfectWhite
*/
PerfectWhite(162),
/**
* Representing QGradient:: FreshOasis
*/
FreshOasis(163),
/**
* Representing QGradient:: StrictNovember
*/
StrictNovember(164),
/**
* Representing QGradient:: MorningSalad
*/
MorningSalad(165),
/**
* Representing QGradient:: DeepRelief
*/
DeepRelief(166),
/**
* Representing QGradient:: SeaStrike
*/
SeaStrike(167),
/**
* Representing QGradient:: NightCall
*/
NightCall(168),
/**
* Representing QGradient:: SupremeSky
*/
SupremeSky(169),
/**
* Representing QGradient:: LightBlue
*/
LightBlue(170),
/**
* Representing QGradient:: MindCrawl
*/
MindCrawl(171),
/**
* Representing QGradient:: LilyMeadow
*/
LilyMeadow(172),
/**
* Representing QGradient:: SugarLollipop
*/
SugarLollipop(173),
/**
* Representing QGradient:: SweetDessert
*/
SweetDessert(174),
/**
* Representing QGradient:: MagicRay
*/
MagicRay(175),
/**
* Representing QGradient:: TeenParty
*/
TeenParty(176),
/**
* Representing QGradient:: FrozenHeat
*/
FrozenHeat(177),
/**
* Representing QGradient:: GagarinView
*/
GagarinView(178),
/**
* Representing QGradient:: FabledSunset
*/
FabledSunset(179),
/**
* Representing QGradient:: PerfectBlue
*/
PerfectBlue(180),
/**
* Representing QGradient:: NumPresets
*/
NumPresets(181);
static {
QtJambi_LibraryUtilities.initialize();
}
private Preset(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Preset resolve(int value) {
switch (value) {
case 1: return WarmFlame;
case 2: return NightFade;
case 3: return SpringWarmth;
case 4: return JuicyPeach;
case 5: return YoungPassion;
case 6: return LadyLips;
case 7: return SunnyMorning;
case 8: return RainyAshville;
case 9: return FrozenDreams;
case 10: return WinterNeva;
case 11: return DustyGrass;
case 12: return TemptingAzure;
case 13: return HeavyRain;
case 14: return AmyCrisp;
case 15: return MeanFruit;
case 16: return DeepBlue;
case 17: return RipeMalinka;
case 18: return CloudyKnoxville;
case 19: return MalibuBeach;
case 20: return NewLife;
case 21: return TrueSunset;
case 22: return MorpheusDen;
case 23: return RareWind;
case 24: return NearMoon;
case 25: return WildApple;
case 26: return SaintPetersburg;
case 28: return PlumPlate;
case 29: return EverlastingSky;
case 30: return HappyFisher;
case 31: return Blessing;
case 32: return SharpeyeEagle;
case 33: return LadogaBottom;
case 34: return LemonGate;
case 35: return ItmeoBranding;
case 36: return ZeusMiracle;
case 37: return OldHat;
case 38: return StarWine;
case 41: return HappyAcid;
case 42: return AwesomePine;
case 43: return NewYork;
case 44: return ShyRainbow;
case 46: return MixedHopes;
case 47: return FlyHigh;
case 48: return StrongBliss;
case 49: return FreshMilk;
case 50: return SnowAgain;
case 51: return FebruaryInk;
case 52: return KindSteel;
case 53: return SoftGrass;
case 54: return GrownEarly;
case 55: return SharpBlues;
case 56: return ShadyWater;
case 57: return DirtyBeauty;
case 58: return GreatWhale;
case 59: return TeenNotebook;
case 60: return PoliteRumors;
case 61: return SweetPeriod;
case 62: return WideMatrix;
case 63: return SoftCherish;
case 64: return RedSalvation;
case 65: return BurningSpring;
case 66: return NightParty;
case 67: return SkyGlider;
case 68: return HeavenPeach;
case 69: return PurpleDivision;
case 70: return AquaSplash;
case 72: return SpikyNaga;
case 73: return LoveKiss;
case 75: return CleanMirror;
case 76: return PremiumDark;
case 77: return ColdEvening;
case 78: return CochitiLake;
case 79: return SummerGames;
case 80: return PassionateBed;
case 81: return MountainRock;
case 82: return DesertHump;
case 83: return JungleDay;
case 84: return PhoenixStart;
case 85: return OctoberSilence;
case 86: return FarawayRiver;
case 87: return AlchemistLab;
case 88: return OverSun;
case 89: return PremiumWhite;
case 90: return MarsParty;
case 91: return EternalConstance;
case 92: return JapanBlush;
case 93: return SmilingRain;
case 94: return CloudyApple;
case 95: return BigMango;
case 96: return HealthyWater;
case 97: return AmourAmour;
case 98: return RiskyConcrete;
case 99: return StrongStick;
case 100: return ViciousStance;
case 101: return PaloAlto;
case 102: return HappyMemories;
case 103: return MidnightBloom;
case 104: return Crystalline;
case 106: return PartyBliss;
case 107: return ConfidentCloud;
case 108: return LeCocktail;
case 109: return RiverCity;
case 110: return FrozenBerry;
case 112: return ChildCare;
case 113: return FlyingLemon;
case 114: return NewRetrowave;
case 115: return HiddenJaguar;
case 116: return AboveTheSky;
case 117: return Nega;
case 118: return DenseWater;
case 120: return Seashore;
case 121: return MarbleWall;
case 122: return CheerfulCaramel;
case 123: return NightSky;
case 124: return MagicLake;
case 125: return YoungGrass;
case 126: return ColorfulPeach;
case 127: return GentleCare;
case 128: return PlumBath;
case 129: return HappyUnicorn;
case 131: return AfricanField;
case 132: return SolidStone;
case 133: return OrangeJuice;
case 134: return GlassWater;
case 136: return NorthMiracle;
case 137: return FruitBlend;
case 138: return MillenniumPine;
case 139: return HighFlight;
case 140: return MoleHall;
case 142: return SpaceShift;
case 143: return ForestInei;
case 144: return RoyalGarden;
case 145: return RichMetal;
case 146: return JuicyCake;
case 147: return SmartIndigo;
case 148: return SandStrike;
case 149: return NorseBeauty;
case 150: return AquaGuidance;
case 151: return SunVeggie;
case 152: return SeaLord;
case 153: return BlackSea;
case 154: return GrassShampoo;
case 155: return LandingAircraft;
case 156: return WitchDance;
case 157: return SleeplessNight;
case 158: return AngelCare;
case 159: return CrystalRiver;
case 160: return SoftLipstick;
case 161: return SaltMountain;
case 162: return PerfectWhite;
case 163: return FreshOasis;
case 164: return StrictNovember;
case 165: return MorningSalad;
case 166: return DeepRelief;
case 167: return SeaStrike;
case 168: return NightCall;
case 169: return SupremeSky;
case 170: return LightBlue;
case 171: return MindCrawl;
case 172: return LilyMeadow;
case 173: return SugarLollipop;
case 174: return SweetDessert;
case 175: return MagicRay;
case 176: return TeenParty;
case 177: return FrozenHeat;
case 178: return GagarinView;
case 179: return FabledSunset;
case 180: return PerfectBlue;
case 181: return NumPresets;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QGradient::Spread
*/
public enum Spread implements QtEnumerator {
/**
* Representing QGradient:: PadSpread
*/
PadSpread(0),
/**
* Representing QGradient:: ReflectSpread
*/
ReflectSpread(1),
/**
* Representing QGradient:: RepeatSpread
*/
RepeatSpread(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private Spread(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Spread resolve(int value) {
switch (value) {
case 0: return PadSpread;
case 1: return ReflectSpread;
case 2: return RepeatSpread;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QGradient:: QGradient(QGradient)
*/
public QGradient(io.qt.gui.@NonNull QGradient other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QGradient instance, io.qt.gui.QGradient other);
/**
* See QGradient:: coordinateMode()const
*/
@QtUninvokable
public final io.qt.gui.QGradient.@NonNull CoordinateMode coordinateMode(){
return io.qt.gui.QGradient.CoordinateMode.resolve(coordinateMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int coordinateMode_native_constfct(long __this__nativeId);
/**
* See QGradient:: interpolationMode()const
*/
@QtUninvokable
public final io.qt.gui.QGradient.@NonNull InterpolationMode interpolationMode(){
return io.qt.gui.QGradient.InterpolationMode.resolve(interpolationMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int interpolationMode_native_constfct(long __this__nativeId);
/**
* See QGradient:: operator!=(QGradient)const
*/
@QtUninvokable
private final boolean operator_not_equal(io.qt.gui.@NonNull QGradient other){
return operator_not_equal_native_cref_QGradient_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean operator_not_equal_native_cref_QGradient_constfct(long __this__nativeId, long other);
/**
* See QGradient:: setColorAt(qreal, QColor)
*/
@QtUninvokable
public final void setColorAt(double pos, io.qt.gui.@NonNull QColor color){
setColorAt_native_qreal_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), pos, QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@QtUninvokable
private native void setColorAt_native_qreal_cref_QColor(long __this__nativeId, double pos, long color);
/**
* See QGradient:: setCoordinateMode(QGradient::CoordinateMode)
*/
@QtUninvokable
public final void setCoordinateMode(io.qt.gui.QGradient.@NonNull CoordinateMode mode){
setCoordinateMode_native_QGradient_CoordinateMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setCoordinateMode_native_QGradient_CoordinateMode(long __this__nativeId, int mode);
/**
* See QGradient:: setInterpolationMode(QGradient::InterpolationMode)
*/
@QtUninvokable
public final void setInterpolationMode(io.qt.gui.QGradient.@NonNull InterpolationMode mode){
setInterpolationMode_native_QGradient_InterpolationMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setInterpolationMode_native_QGradient_InterpolationMode(long __this__nativeId, int mode);
/**
* See QGradient:: setSpread(QGradient::Spread)
*/
@QtUninvokable
public final void setSpread(io.qt.gui.QGradient.@NonNull Spread spread){
setSpread_native_QGradient_Spread(QtJambi_LibraryUtilities.internal.nativeId(this), spread.value());
}
@QtUninvokable
private native void setSpread_native_QGradient_Spread(long __this__nativeId, int spread);
/**
* See QGradient:: setStops(QGradientStops)
*/
@QtUninvokable
public final void setStops(java.util.@NonNull Collection extends io.qt.core.@NonNull QPair> stops){
setStops_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), stops);
}
@QtUninvokable
private native void setStops_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.core.QPair> stops);
/**
*
*/
@QtUninvokable
public final io.qt.gui.QGradient.@NonNull Spread spread(){
return io.qt.gui.QGradient.Spread.resolve(spread_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int spread_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QList> stops(){
return stops_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList> stops_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QGradient(QPrivateConstructor p) { super(p); }
/**
* See QGradient:: operator!=(QGradient)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QGradient) {
return !operator_not_equal((io.qt.gui.QGradient) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QGradient)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@QtUninvokable
public static QGradient create(io.qt.gui.QGradient.Preset preset){
return create(preset.value());
}
@QtUninvokable
private native static QGradient create(int preset);
/**
* Creates and returns a copy of this object.
See QGradient:: QGradient(QGradient)
*/
@QtUninvokable
@Override
public QGradient clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QGradient clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #setColorAt(double, io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColorAt(double pos, io.qt.core.Qt.@NonNull GlobalColor color) {
setColorAt(pos, new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setColorAt(double, io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColorAt(double pos, io.qt.gui.@NonNull QRgba64 color) {
setColorAt(pos, new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setColorAt(double, io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColorAt(double pos, java.lang.@NonNull String color) {
setColorAt(pos, new io.qt.gui.QColor(color));
}
}