All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QGradient Maven / Gradle / Ivy

There is a newer version: 6.3.0
Show newest version
package io.qt.gui;


/**
 * 

Used in combination with QBrush to specify gradient fills

*

Java wrapper for Qt class QGradient

*/ public class QGradient extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGradient.class); /** *

Java wrapper for Qt enum QGradient::CoordinateMode

*/ public enum CoordinateMode implements io.qt.QtEnumerator { LogicalMode(0), StretchToDeviceMode(1), ObjectBoundingMode(2), ObjectMode(3); 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 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 io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QGradient::InterpolationMode

*/ public enum InterpolationMode implements io.qt.QtEnumerator { ColorInterpolation(0), ComponentInterpolation(1); 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 InterpolationMode resolve(int value) { switch (value) { case 0: return ColorInterpolation; case 1: return ComponentInterpolation; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QGradient::Preset

*/ public enum Preset implements io.qt.QtEnumerator { WarmFlame(1), NightFade(2), SpringWarmth(3), JuicyPeach(4), YoungPassion(5), LadyLips(6), SunnyMorning(7), RainyAshville(8), FrozenDreams(9), WinterNeva(10), DustyGrass(11), TemptingAzure(12), HeavyRain(13), AmyCrisp(14), MeanFruit(15), DeepBlue(16), RipeMalinka(17), CloudyKnoxville(18), MalibuBeach(19), NewLife(20), TrueSunset(21), MorpheusDen(22), RareWind(23), NearMoon(24), WildApple(25), SaintPetersburg(26), PlumPlate(28), EverlastingSky(29), HappyFisher(30), Blessing(31), SharpeyeEagle(32), LadogaBottom(33), LemonGate(34), ItmeoBranding(35), ZeusMiracle(36), OldHat(37), StarWine(38), HappyAcid(41), AwesomePine(42), NewYork(43), ShyRainbow(44), MixedHopes(46), FlyHigh(47), StrongBliss(48), FreshMilk(49), SnowAgain(50), FebruaryInk(51), KindSteel(52), SoftGrass(53), GrownEarly(54), SharpBlues(55), ShadyWater(56), DirtyBeauty(57), GreatWhale(58), TeenNotebook(59), PoliteRumors(60), SweetPeriod(61), WideMatrix(62), SoftCherish(63), RedSalvation(64), BurningSpring(65), NightParty(66), SkyGlider(67), HeavenPeach(68), PurpleDivision(69), AquaSplash(70), SpikyNaga(72), LoveKiss(73), CleanMirror(75), PremiumDark(76), ColdEvening(77), CochitiLake(78), SummerGames(79), PassionateBed(80), MountainRock(81), DesertHump(82), JungleDay(83), PhoenixStart(84), OctoberSilence(85), FarawayRiver(86), AlchemistLab(87), OverSun(88), PremiumWhite(89), MarsParty(90), EternalConstance(91), JapanBlush(92), SmilingRain(93), CloudyApple(94), BigMango(95), HealthyWater(96), AmourAmour(97), RiskyConcrete(98), StrongStick(99), ViciousStance(100), PaloAlto(101), HappyMemories(102), MidnightBloom(103), Crystalline(104), PartyBliss(106), ConfidentCloud(107), LeCocktail(108), RiverCity(109), FrozenBerry(110), ChildCare(112), FlyingLemon(113), NewRetrowave(114), HiddenJaguar(115), AboveTheSky(116), Nega(117), DenseWater(118), Seashore(120), MarbleWall(121), CheerfulCaramel(122), NightSky(123), MagicLake(124), YoungGrass(125), ColorfulPeach(126), GentleCare(127), PlumBath(128), HappyUnicorn(129), AfricanField(131), SolidStone(132), OrangeJuice(133), GlassWater(134), NorthMiracle(136), FruitBlend(137), MillenniumPine(138), HighFlight(139), MoleHall(140), SpaceShift(142), ForestInei(143), RoyalGarden(144), RichMetal(145), JuicyCake(146), SmartIndigo(147), SandStrike(148), NorseBeauty(149), AquaGuidance(150), SunVeggie(151), SeaLord(152), BlackSea(153), GrassShampoo(154), LandingAircraft(155), WitchDance(156), SleeplessNight(157), AngelCare(158), CrystalRiver(159), SoftLipstick(160), SaltMountain(161), PerfectWhite(162), FreshOasis(163), StrictNovember(164), MorningSalad(165), DeepRelief(166), SeaStrike(167), NightCall(168), SupremeSky(169), LightBlue(170), MindCrawl(171), LilyMeadow(172), SugarLollipop(173), SweetDessert(174), MagicRay(175), TeenParty(176), FrozenHeat(177), GagarinView(178), FabledSunset(179), PerfectBlue(180), NumPresets(181); 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 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 io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QGradient::Spread

*/ public enum Spread implements io.qt.QtEnumerator { PadSpread(0), ReflectSpread(1), RepeatSpread(2); 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 Spread resolve(int value) { switch (value) { case 0: return PadSpread; case 1: return ReflectSpread; case 2: return RepeatSpread; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QGradient::coordinateMode()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QGradient.CoordinateMode coordinateMode(){ return io.qt.gui.QGradient.CoordinateMode.resolve(coordinateMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int coordinateMode_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final io.qt.gui.QGradient.InterpolationMode interpolationMode(){ return io.qt.gui.QGradient.InterpolationMode.resolve(interpolationMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int interpolationMode_native_constfct(long __this__nativeId); /** *

See QGradient::operator!=(QGradient)const

*/ @io.qt.QtUninvokable private final boolean operator_not_equal(io.qt.gui.QGradient other){ return operator_not_equal_native_cref_QGradient_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native boolean operator_not_equal_native_cref_QGradient_constfct(long __this__nativeId, long other); /** *

See QGradient::setColorAt(qreal,QColor)

*/ @io.qt.QtUninvokable public final void setColorAt(double pos, io.qt.gui.QColor color){ setColorAt_native_qtjambireal_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), pos, QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } @io.qt.QtUninvokable private native void setColorAt_native_qtjambireal_cref_QColor(long __this__nativeId, double pos, long color); /** *

See QGradient::setCoordinateMode(QGradient::CoordinateMode)

*/ @io.qt.QtUninvokable public final void setCoordinateMode(io.qt.gui.QGradient.CoordinateMode mode){ setCoordinateMode_native_QGradient_CoordinateMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native void setCoordinateMode_native_QGradient_CoordinateMode(long __this__nativeId, int mode); @io.qt.QtUninvokable public final void setInterpolationMode(io.qt.gui.QGradient.InterpolationMode mode){ setInterpolationMode_native_QGradient_InterpolationMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native void setInterpolationMode_native_QGradient_InterpolationMode(long __this__nativeId, int mode); /** *

See QGradient::setSpread(QGradient::Spread)

*/ @io.qt.QtUninvokable public final void setSpread(io.qt.gui.QGradient.Spread spread){ setSpread_native_QGradient_Spread(QtJambi_LibraryUtilities.internal.nativeId(this), spread.value()); } @io.qt.QtUninvokable private native void setSpread_native_QGradient_Spread(long __this__nativeId, int spread); /** *

See QGradient::setStops(QGradientStops)

*/ @io.qt.QtUninvokable public final void setStops(java.util.Collection> stops){ setStops_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), stops); } @io.qt.QtUninvokable private native void setStops_native_cref_QList(long __this__nativeId, java.util.Collection> stops); /** *

See QGradient::spread()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QGradient.Spread spread(){ return io.qt.gui.QGradient.Spread.resolve(spread_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int spread_native_constfct(long __this__nativeId); /** *

See QGradient::stops()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList> stops(){ return stops_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList> stops_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QGradient(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QGradient) { return !operator_not_equal((io.qt.gui.QGradient) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @io.qt.QtUninvokable public static QGradient create(io.qt.gui.QGradient.Preset preset){ return create(preset.value()); } @io.qt.QtUninvokable private native static QGradient create(int preset); @Override public QGradient clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QGradient clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy