2024-08-25 04:08:24 +00:00
|
|
|
package qt
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qbrush.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"runtime"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
type QGradient__Type int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QGradient__LinearGradient QGradient__Type = 0
|
|
|
|
QGradient__RadialGradient QGradient__Type = 1
|
|
|
|
QGradient__ConicalGradient QGradient__Type = 2
|
|
|
|
QGradient__NoGradient QGradient__Type = 3
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QGradient__Spread int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QGradient__PadSpread QGradient__Spread = 0
|
|
|
|
QGradient__ReflectSpread QGradient__Spread = 1
|
|
|
|
QGradient__RepeatSpread QGradient__Spread = 2
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QGradient__CoordinateMode int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QGradient__LogicalMode QGradient__CoordinateMode = 0
|
|
|
|
QGradient__StretchToDeviceMode QGradient__CoordinateMode = 1
|
|
|
|
QGradient__ObjectBoundingMode QGradient__CoordinateMode = 2
|
|
|
|
QGradient__ObjectMode QGradient__CoordinateMode = 3
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QGradient__InterpolationMode int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QGradient__ColorInterpolation QGradient__InterpolationMode = 0
|
|
|
|
QGradient__ComponentInterpolation QGradient__InterpolationMode = 1
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type QGradient__Preset int
|
|
|
|
|
|
|
|
const (
|
2024-09-20 07:13:26 +00:00
|
|
|
QGradient__WarmFlame QGradient__Preset = 1
|
|
|
|
QGradient__NightFade QGradient__Preset = 2
|
|
|
|
QGradient__SpringWarmth QGradient__Preset = 3
|
|
|
|
QGradient__JuicyPeach QGradient__Preset = 4
|
|
|
|
QGradient__YoungPassion QGradient__Preset = 5
|
|
|
|
QGradient__LadyLips QGradient__Preset = 6
|
|
|
|
QGradient__SunnyMorning QGradient__Preset = 7
|
|
|
|
QGradient__RainyAshville QGradient__Preset = 8
|
|
|
|
QGradient__FrozenDreams QGradient__Preset = 9
|
|
|
|
QGradient__WinterNeva QGradient__Preset = 10
|
|
|
|
QGradient__DustyGrass QGradient__Preset = 11
|
|
|
|
QGradient__TemptingAzure QGradient__Preset = 12
|
|
|
|
QGradient__HeavyRain QGradient__Preset = 13
|
|
|
|
QGradient__AmyCrisp QGradient__Preset = 14
|
|
|
|
QGradient__MeanFruit QGradient__Preset = 15
|
|
|
|
QGradient__DeepBlue QGradient__Preset = 16
|
|
|
|
QGradient__RipeMalinka QGradient__Preset = 17
|
|
|
|
QGradient__CloudyKnoxville QGradient__Preset = 18
|
|
|
|
QGradient__MalibuBeach QGradient__Preset = 19
|
|
|
|
QGradient__NewLife QGradient__Preset = 20
|
|
|
|
QGradient__TrueSunset QGradient__Preset = 21
|
|
|
|
QGradient__MorpheusDen QGradient__Preset = 22
|
|
|
|
QGradient__RareWind QGradient__Preset = 23
|
|
|
|
QGradient__NearMoon QGradient__Preset = 24
|
|
|
|
QGradient__WildApple QGradient__Preset = 25
|
|
|
|
QGradient__SaintPetersburg QGradient__Preset = 26
|
|
|
|
QGradient__PlumPlate QGradient__Preset = 28
|
|
|
|
QGradient__EverlastingSky QGradient__Preset = 29
|
|
|
|
QGradient__HappyFisher QGradient__Preset = 30
|
|
|
|
QGradient__Blessing QGradient__Preset = 31
|
|
|
|
QGradient__SharpeyeEagle QGradient__Preset = 32
|
|
|
|
QGradient__LadogaBottom QGradient__Preset = 33
|
|
|
|
QGradient__LemonGate QGradient__Preset = 34
|
|
|
|
QGradient__ItmeoBranding QGradient__Preset = 35
|
|
|
|
QGradient__ZeusMiracle QGradient__Preset = 36
|
|
|
|
QGradient__OldHat QGradient__Preset = 37
|
|
|
|
QGradient__StarWine QGradient__Preset = 38
|
|
|
|
QGradient__HappyAcid QGradient__Preset = 41
|
|
|
|
QGradient__AwesomePine QGradient__Preset = 42
|
|
|
|
QGradient__NewYork QGradient__Preset = 43
|
|
|
|
QGradient__ShyRainbow QGradient__Preset = 44
|
|
|
|
QGradient__MixedHopes QGradient__Preset = 46
|
|
|
|
QGradient__FlyHigh QGradient__Preset = 47
|
|
|
|
QGradient__StrongBliss QGradient__Preset = 48
|
|
|
|
QGradient__FreshMilk QGradient__Preset = 49
|
|
|
|
QGradient__SnowAgain QGradient__Preset = 50
|
|
|
|
QGradient__FebruaryInk QGradient__Preset = 51
|
|
|
|
QGradient__KindSteel QGradient__Preset = 52
|
|
|
|
QGradient__SoftGrass QGradient__Preset = 53
|
|
|
|
QGradient__GrownEarly QGradient__Preset = 54
|
|
|
|
QGradient__SharpBlues QGradient__Preset = 55
|
|
|
|
QGradient__ShadyWater QGradient__Preset = 56
|
|
|
|
QGradient__DirtyBeauty QGradient__Preset = 57
|
|
|
|
QGradient__GreatWhale QGradient__Preset = 58
|
|
|
|
QGradient__TeenNotebook QGradient__Preset = 59
|
|
|
|
QGradient__PoliteRumors QGradient__Preset = 60
|
|
|
|
QGradient__SweetPeriod QGradient__Preset = 61
|
|
|
|
QGradient__WideMatrix QGradient__Preset = 62
|
|
|
|
QGradient__SoftCherish QGradient__Preset = 63
|
|
|
|
QGradient__RedSalvation QGradient__Preset = 64
|
|
|
|
QGradient__BurningSpring QGradient__Preset = 65
|
|
|
|
QGradient__NightParty QGradient__Preset = 66
|
|
|
|
QGradient__SkyGlider QGradient__Preset = 67
|
|
|
|
QGradient__HeavenPeach QGradient__Preset = 68
|
|
|
|
QGradient__PurpleDivision QGradient__Preset = 69
|
|
|
|
QGradient__AquaSplash QGradient__Preset = 70
|
|
|
|
QGradient__SpikyNaga QGradient__Preset = 72
|
|
|
|
QGradient__LoveKiss QGradient__Preset = 73
|
|
|
|
QGradient__CleanMirror QGradient__Preset = 75
|
|
|
|
QGradient__PremiumDark QGradient__Preset = 76
|
|
|
|
QGradient__ColdEvening QGradient__Preset = 77
|
|
|
|
QGradient__CochitiLake QGradient__Preset = 78
|
|
|
|
QGradient__SummerGames QGradient__Preset = 79
|
|
|
|
QGradient__PassionateBed QGradient__Preset = 80
|
|
|
|
QGradient__MountainRock QGradient__Preset = 81
|
|
|
|
QGradient__DesertHump QGradient__Preset = 82
|
|
|
|
QGradient__JungleDay QGradient__Preset = 83
|
|
|
|
QGradient__PhoenixStart QGradient__Preset = 84
|
|
|
|
QGradient__OctoberSilence QGradient__Preset = 85
|
|
|
|
QGradient__FarawayRiver QGradient__Preset = 86
|
|
|
|
QGradient__AlchemistLab QGradient__Preset = 87
|
|
|
|
QGradient__OverSun QGradient__Preset = 88
|
|
|
|
QGradient__PremiumWhite QGradient__Preset = 89
|
|
|
|
QGradient__MarsParty QGradient__Preset = 90
|
|
|
|
QGradient__EternalConstance QGradient__Preset = 91
|
|
|
|
QGradient__JapanBlush QGradient__Preset = 92
|
|
|
|
QGradient__SmilingRain QGradient__Preset = 93
|
|
|
|
QGradient__CloudyApple QGradient__Preset = 94
|
|
|
|
QGradient__BigMango QGradient__Preset = 95
|
|
|
|
QGradient__HealthyWater QGradient__Preset = 96
|
|
|
|
QGradient__AmourAmour QGradient__Preset = 97
|
|
|
|
QGradient__RiskyConcrete QGradient__Preset = 98
|
|
|
|
QGradient__StrongStick QGradient__Preset = 99
|
|
|
|
QGradient__ViciousStance QGradient__Preset = 100
|
|
|
|
QGradient__PaloAlto QGradient__Preset = 101
|
|
|
|
QGradient__HappyMemories QGradient__Preset = 102
|
|
|
|
QGradient__MidnightBloom QGradient__Preset = 103
|
|
|
|
QGradient__Crystalline QGradient__Preset = 104
|
|
|
|
QGradient__PartyBliss QGradient__Preset = 106
|
|
|
|
QGradient__ConfidentCloud QGradient__Preset = 107
|
|
|
|
QGradient__LeCocktail QGradient__Preset = 108
|
|
|
|
QGradient__RiverCity QGradient__Preset = 109
|
|
|
|
QGradient__FrozenBerry QGradient__Preset = 110
|
|
|
|
QGradient__ChildCare QGradient__Preset = 112
|
|
|
|
QGradient__FlyingLemon QGradient__Preset = 113
|
|
|
|
QGradient__NewRetrowave QGradient__Preset = 114
|
|
|
|
QGradient__HiddenJaguar QGradient__Preset = 115
|
|
|
|
QGradient__AboveTheSky QGradient__Preset = 116
|
|
|
|
QGradient__Nega QGradient__Preset = 117
|
|
|
|
QGradient__DenseWater QGradient__Preset = 118
|
|
|
|
QGradient__Seashore QGradient__Preset = 120
|
|
|
|
QGradient__MarbleWall QGradient__Preset = 121
|
|
|
|
QGradient__CheerfulCaramel QGradient__Preset = 122
|
|
|
|
QGradient__NightSky QGradient__Preset = 123
|
|
|
|
QGradient__MagicLake QGradient__Preset = 124
|
|
|
|
QGradient__YoungGrass QGradient__Preset = 125
|
|
|
|
QGradient__ColorfulPeach QGradient__Preset = 126
|
|
|
|
QGradient__GentleCare QGradient__Preset = 127
|
|
|
|
QGradient__PlumBath QGradient__Preset = 128
|
|
|
|
QGradient__HappyUnicorn QGradient__Preset = 129
|
|
|
|
QGradient__AfricanField QGradient__Preset = 131
|
|
|
|
QGradient__SolidStone QGradient__Preset = 132
|
|
|
|
QGradient__OrangeJuice QGradient__Preset = 133
|
|
|
|
QGradient__GlassWater QGradient__Preset = 134
|
|
|
|
QGradient__NorthMiracle QGradient__Preset = 136
|
|
|
|
QGradient__FruitBlend QGradient__Preset = 137
|
|
|
|
QGradient__MillenniumPine QGradient__Preset = 138
|
|
|
|
QGradient__HighFlight QGradient__Preset = 139
|
|
|
|
QGradient__MoleHall QGradient__Preset = 140
|
|
|
|
QGradient__SpaceShift QGradient__Preset = 142
|
|
|
|
QGradient__ForestInei QGradient__Preset = 143
|
|
|
|
QGradient__RoyalGarden QGradient__Preset = 144
|
|
|
|
QGradient__RichMetal QGradient__Preset = 145
|
|
|
|
QGradient__JuicyCake QGradient__Preset = 146
|
|
|
|
QGradient__SmartIndigo QGradient__Preset = 147
|
|
|
|
QGradient__SandStrike QGradient__Preset = 148
|
|
|
|
QGradient__NorseBeauty QGradient__Preset = 149
|
|
|
|
QGradient__AquaGuidance QGradient__Preset = 150
|
|
|
|
QGradient__SunVeggie QGradient__Preset = 151
|
|
|
|
QGradient__SeaLord QGradient__Preset = 152
|
|
|
|
QGradient__BlackSea QGradient__Preset = 153
|
|
|
|
QGradient__GrassShampoo QGradient__Preset = 154
|
|
|
|
QGradient__LandingAircraft QGradient__Preset = 155
|
|
|
|
QGradient__WitchDance QGradient__Preset = 156
|
|
|
|
QGradient__SleeplessNight QGradient__Preset = 157
|
|
|
|
QGradient__AngelCare QGradient__Preset = 158
|
|
|
|
QGradient__CrystalRiver QGradient__Preset = 159
|
|
|
|
QGradient__SoftLipstick QGradient__Preset = 160
|
|
|
|
QGradient__SaltMountain QGradient__Preset = 161
|
|
|
|
QGradient__PerfectWhite QGradient__Preset = 162
|
|
|
|
QGradient__FreshOasis QGradient__Preset = 163
|
|
|
|
QGradient__StrictNovember QGradient__Preset = 164
|
|
|
|
QGradient__MorningSalad QGradient__Preset = 165
|
|
|
|
QGradient__DeepRelief QGradient__Preset = 166
|
|
|
|
QGradient__SeaStrike QGradient__Preset = 167
|
|
|
|
QGradient__NightCall QGradient__Preset = 168
|
|
|
|
QGradient__SupremeSky QGradient__Preset = 169
|
|
|
|
QGradient__LightBlue QGradient__Preset = 170
|
|
|
|
QGradient__MindCrawl QGradient__Preset = 171
|
|
|
|
QGradient__LilyMeadow QGradient__Preset = 172
|
|
|
|
QGradient__SugarLollipop QGradient__Preset = 173
|
|
|
|
QGradient__SweetDessert QGradient__Preset = 174
|
|
|
|
QGradient__MagicRay QGradient__Preset = 175
|
|
|
|
QGradient__TeenParty QGradient__Preset = 176
|
|
|
|
QGradient__FrozenHeat QGradient__Preset = 177
|
|
|
|
QGradient__GagarinView QGradient__Preset = 178
|
|
|
|
QGradient__FabledSunset QGradient__Preset = 179
|
|
|
|
QGradient__PerfectBlue QGradient__Preset = 180
|
|
|
|
QGradient__NumPresets QGradient__Preset = 181
|
2024-09-04 06:54:22 +00:00
|
|
|
)
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QBrush struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QBrush
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) cPointer() *C.QBrush {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QBrush) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQBrush constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQBrush(h *C.QBrush) *QBrush {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QBrush{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQBrush constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQBrush(h unsafe.Pointer) *QBrush {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQBrush((*C.QBrush)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush constructs a new QBrush object.
|
|
|
|
func NewQBrush() *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush2 constructs a new QBrush object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQBrush2(bs BrushStyle) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new2((C.int)(bs)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush3 constructs a new QBrush object.
|
2024-08-29 07:01:51 +00:00
|
|
|
func NewQBrush3(color *QColor) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new3(color.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush4 constructs a new QBrush object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQBrush4(color GlobalColor) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new4((C.int)(color)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush5 constructs a new QBrush object.
|
2024-08-29 07:01:51 +00:00
|
|
|
func NewQBrush5(color *QColor, pixmap *QPixmap) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new5(color.cPointer(), pixmap.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush6 constructs a new QBrush object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQBrush6(color GlobalColor, pixmap *QPixmap) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new6((C.int)(color), pixmap.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush7 constructs a new QBrush object.
|
|
|
|
func NewQBrush7(pixmap *QPixmap) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new7(pixmap.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush8 constructs a new QBrush object.
|
|
|
|
func NewQBrush8(image *QImage) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new8(image.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush9 constructs a new QBrush object.
|
|
|
|
func NewQBrush9(brush *QBrush) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new9(brush.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush10 constructs a new QBrush object.
|
|
|
|
func NewQBrush10(gradient *QGradient) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new10(gradient.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush11 constructs a new QBrush object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQBrush11(color *QColor, bs BrushStyle) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new11(color.cPointer(), (C.int)(bs)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrush12 constructs a new QBrush object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQBrush12(color GlobalColor, bs BrushStyle) *QBrush {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrush(C.QBrush_new12((C.int)(color), (C.int)(bs)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) OperatorAssign(brush *QBrush) {
|
|
|
|
C.QBrush_OperatorAssign(this.h, brush.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) Swap(other *QBrush) {
|
|
|
|
C.QBrush_Swap(this.h, other.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QBrush) Style() BrushStyle {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (BrushStyle)(C.QBrush_Style(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QBrush) SetStyle(style BrushStyle) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QBrush_SetStyle(this.h, (C.int)(style))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QBrush) Matrix() *QMatrix {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQMatrix(C.QBrush_Matrix(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) SetMatrix(mat *QMatrix) {
|
|
|
|
C.QBrush_SetMatrix(this.h, mat.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) Transform() *QTransform {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQTransform(C.QBrush_Transform(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) SetTransform(transform *QTransform) {
|
|
|
|
C.QBrush_SetTransform(this.h, transform.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) Texture() *QPixmap {
|
2024-12-07 04:15:57 +00:00
|
|
|
_goptr := newQPixmap(C.QBrush_Texture(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) SetTexture(pixmap *QPixmap) {
|
|
|
|
C.QBrush_SetTexture(this.h, pixmap.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) TextureImage() *QImage {
|
2024-12-07 04:15:57 +00:00
|
|
|
_goptr := newQImage(C.QBrush_TextureImage(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) SetTextureImage(image *QImage) {
|
|
|
|
C.QBrush_SetTextureImage(this.h, image.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) Color() *QColor {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQColor(C.QBrush_Color(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) SetColor(color *QColor) {
|
|
|
|
C.QBrush_SetColor(this.h, color.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QBrush) SetColorWithColor(color GlobalColor) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QBrush_SetColorWithColor(this.h, (C.int)(color))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QBrush) Gradient() *QGradient {
|
2024-12-07 02:02:06 +00:00
|
|
|
return newQGradient(C.QBrush_Gradient(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) IsOpaque() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QBrush_IsOpaque(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) OperatorEqual(b *QBrush) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QBrush_OperatorEqual(this.h, b.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) OperatorNotEqual(b *QBrush) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QBrush_OperatorNotEqual(this.h, b.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrush) IsDetached() bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QBrush_IsDetached(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QBrush) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QBrush_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QBrush) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QBrush) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QBrushData struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QBrushData
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrushData) cPointer() *C.QBrushData {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QBrushData) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQBrushData constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQBrushData(h *C.QBrushData) *QBrushData {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QBrushData{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQBrushData constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQBrushData(h unsafe.Pointer) *QBrushData {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQBrushData((*C.QBrushData)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQBrushData constructs a new QBrushData object.
|
|
|
|
func NewQBrushData(param1 *QBrushData) *QBrushData {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQBrushData(C.QBrushData_new(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QBrushData) OperatorAssign(param1 *QBrushData) {
|
|
|
|
C.QBrushData_OperatorAssign(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QBrushData) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QBrushData_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QBrushData) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QBrushData) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QGradient struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QGradient
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGradient) cPointer() *C.QGradient {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QGradient) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQGradient constructs the type using only CGO pointers.
|
2024-08-25 04:08:24 +00:00
|
|
|
func newQGradient(h *C.QGradient) *QGradient {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
return &QGradient{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQGradient constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQGradient(h unsafe.Pointer) *QGradient {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQGradient((*C.QGradient)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGradient constructs a new QGradient object.
|
|
|
|
func NewQGradient() *QGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQGradient(C.QGradient_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGradient2 constructs a new QGradient object.
|
2024-09-04 06:54:22 +00:00
|
|
|
func NewQGradient2(param1 QGradient__Preset) *QGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQGradient(C.QGradient_new2((C.int)(param1)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
// NewQGradient3 constructs a new QGradient object.
|
|
|
|
func NewQGradient3(param1 *QGradient) *QGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQGradient(C.QGradient_new3(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGradient) Type() QGradient__Type {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QGradient__Type)(C.QGradient_Type(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGradient) SetSpread(spread QGradient__Spread) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QGradient_SetSpread(this.h, (C.int)(spread))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGradient) Spread() QGradient__Spread {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QGradient__Spread)(C.QGradient_Spread(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGradient) SetColorAt(pos float64, color *QColor) {
|
|
|
|
C.QGradient_SetColorAt(this.h, (C.double)(pos), color.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-11-17 06:21:37 +00:00
|
|
|
func (this *QGradient) SetStops(stops []struct {
|
|
|
|
First float64
|
|
|
|
Second QColor
|
|
|
|
}) {
|
|
|
|
stops_CArray := (*[0xffff]C.struct_miqt_map)(C.malloc(C.size_t(8 * len(stops))))
|
|
|
|
defer C.free(unsafe.Pointer(stops_CArray))
|
|
|
|
for i := range stops {
|
|
|
|
stops_i_First_CArray := (*[0xffff]C.double)(C.malloc(C.size_t(8)))
|
|
|
|
defer C.free(unsafe.Pointer(stops_i_First_CArray))
|
|
|
|
stops_i_Second_CArray := (*[0xffff]*C.QColor)(C.malloc(C.size_t(8)))
|
|
|
|
defer C.free(unsafe.Pointer(stops_i_Second_CArray))
|
|
|
|
stops_i_First_CArray[0] = (C.double)(stops[i].First)
|
|
|
|
stops_i_Second_CArray[0] = stops[i].Second.cPointer()
|
|
|
|
stops_i_pair := C.struct_miqt_map{
|
|
|
|
len: 1,
|
|
|
|
keys: unsafe.Pointer(stops_i_First_CArray),
|
|
|
|
values: unsafe.Pointer(stops_i_Second_CArray),
|
|
|
|
}
|
|
|
|
stops_CArray[i] = stops_i_pair
|
|
|
|
}
|
|
|
|
stops_ma := C.struct_miqt_array{len: C.size_t(len(stops)), data: unsafe.Pointer(stops_CArray)}
|
|
|
|
C.QGradient_SetStops(this.h, stops_ma)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGradient) Stops() []struct {
|
|
|
|
First float64
|
|
|
|
Second QColor
|
|
|
|
} {
|
|
|
|
var _ma C.struct_miqt_array = C.QGradient_Stops(this.h)
|
|
|
|
_ret := make([]struct {
|
|
|
|
First float64
|
|
|
|
Second QColor
|
|
|
|
}, int(_ma.len))
|
|
|
|
_outCast := (*[0xffff]C.struct_miqt_map)(unsafe.Pointer(_ma.data)) // hey ya
|
|
|
|
for i := 0; i < int(_ma.len); i++ {
|
|
|
|
var _vv_mm C.struct_miqt_map = _outCast[i]
|
|
|
|
_vv_First_CArray := (*[0xffff]C.double)(unsafe.Pointer(_vv_mm.keys))
|
|
|
|
_vv_Second_CArray := (*[0xffff]*C.QColor)(unsafe.Pointer(_vv_mm.values))
|
|
|
|
_vv_entry_First := (float64)(_vv_First_CArray[0])
|
|
|
|
|
2024-12-07 02:02:06 +00:00
|
|
|
_vv_second_goptr := newQColor(_vv_Second_CArray[0])
|
2024-11-17 06:21:37 +00:00
|
|
|
_vv_second_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
_vv_entry_Second := *_vv_second_goptr
|
|
|
|
|
|
|
|
_ret[i] = struct {
|
|
|
|
First float64
|
|
|
|
Second QColor
|
|
|
|
}{First: _vv_entry_First, Second: _vv_entry_Second}
|
|
|
|
}
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGradient) CoordinateMode() QGradient__CoordinateMode {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QGradient__CoordinateMode)(C.QGradient_CoordinateMode(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGradient) SetCoordinateMode(mode QGradient__CoordinateMode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QGradient_SetCoordinateMode(this.h, (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGradient) InterpolationMode() QGradient__InterpolationMode {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (QGradient__InterpolationMode)(C.QGradient_InterpolationMode(this.h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-04 06:54:22 +00:00
|
|
|
func (this *QGradient) SetInterpolationMode(mode QGradient__InterpolationMode) {
|
2024-09-18 00:12:02 +00:00
|
|
|
C.QGradient_SetInterpolationMode(this.h, (C.int)(mode))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGradient) OperatorEqual(gradient *QGradient) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QGradient_OperatorEqual(this.h, gradient.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGradient) OperatorNotEqual(other *QGradient) bool {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (bool)(C.QGradient_OperatorNotEqual(this.h, other.cPointer()))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QGradient) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QGradient_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QGradient) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QGradient) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QLinearGradient struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QLinearGradient
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QGradient
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QLinearGradient) cPointer() *C.QLinearGradient {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QLinearGradient) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQLinearGradient constructs the type using only CGO pointers.
|
2024-12-07 04:15:57 +00:00
|
|
|
func newQLinearGradient(h *C.QLinearGradient) *QLinearGradient {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
var outptr_QGradient *C.QGradient = nil
|
|
|
|
C.QLinearGradient_virtbase(h, &outptr_QGradient)
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QLinearGradient{h: h,
|
2024-12-07 04:15:57 +00:00
|
|
|
QGradient: newQGradient(outptr_QGradient)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQLinearGradient constructs the type using only unsafe pointers.
|
2024-12-07 04:15:57 +00:00
|
|
|
func UnsafeNewQLinearGradient(h unsafe.Pointer) *QLinearGradient {
|
|
|
|
return newQLinearGradient((*C.QLinearGradient)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQLinearGradient constructs a new QLinearGradient object.
|
|
|
|
func NewQLinearGradient() *QLinearGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQLinearGradient(C.QLinearGradient_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQLinearGradient2 constructs a new QLinearGradient object.
|
|
|
|
func NewQLinearGradient2(start *QPointF, finalStop *QPointF) *QLinearGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQLinearGradient(C.QLinearGradient_new2(start.cPointer(), finalStop.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQLinearGradient3 constructs a new QLinearGradient object.
|
|
|
|
func NewQLinearGradient3(xStart float64, yStart float64, xFinalStop float64, yFinalStop float64) *QLinearGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQLinearGradient(C.QLinearGradient_new3((C.double)(xStart), (C.double)(yStart), (C.double)(xFinalStop), (C.double)(yFinalStop)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQLinearGradient4 constructs a new QLinearGradient object.
|
|
|
|
func NewQLinearGradient4(param1 *QLinearGradient) *QLinearGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQLinearGradient(C.QLinearGradient_new4(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QLinearGradient) Start() *QPointF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQPointF(C.QLinearGradient_Start(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QLinearGradient) SetStart(start *QPointF) {
|
|
|
|
C.QLinearGradient_SetStart(this.h, start.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QLinearGradient) SetStart2(x float64, y float64) {
|
|
|
|
C.QLinearGradient_SetStart2(this.h, (C.double)(x), (C.double)(y))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QLinearGradient) FinalStop() *QPointF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQPointF(C.QLinearGradient_FinalStop(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QLinearGradient) SetFinalStop(stop *QPointF) {
|
|
|
|
C.QLinearGradient_SetFinalStop(this.h, stop.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QLinearGradient) SetFinalStop2(x float64, y float64) {
|
|
|
|
C.QLinearGradient_SetFinalStop2(this.h, (C.double)(x), (C.double)(y))
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QLinearGradient) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QLinearGradient_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QLinearGradient) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QLinearGradient) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QRadialGradient struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QRadialGradient
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QGradient
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) cPointer() *C.QRadialGradient {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QRadialGradient) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQRadialGradient constructs the type using only CGO pointers.
|
2024-12-07 04:15:57 +00:00
|
|
|
func newQRadialGradient(h *C.QRadialGradient) *QRadialGradient {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
var outptr_QGradient *C.QGradient = nil
|
|
|
|
C.QRadialGradient_virtbase(h, &outptr_QGradient)
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QRadialGradient{h: h,
|
2024-12-07 04:15:57 +00:00
|
|
|
QGradient: newQGradient(outptr_QGradient)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQRadialGradient constructs the type using only unsafe pointers.
|
2024-12-07 04:15:57 +00:00
|
|
|
func UnsafeNewQRadialGradient(h unsafe.Pointer) *QRadialGradient {
|
|
|
|
return newQRadialGradient((*C.QRadialGradient)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQRadialGradient constructs a new QRadialGradient object.
|
|
|
|
func NewQRadialGradient() *QRadialGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQRadialGradient(C.QRadialGradient_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQRadialGradient2 constructs a new QRadialGradient object.
|
|
|
|
func NewQRadialGradient2(center *QPointF, radius float64, focalPoint *QPointF) *QRadialGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQRadialGradient(C.QRadialGradient_new2(center.cPointer(), (C.double)(radius), focalPoint.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQRadialGradient3 constructs a new QRadialGradient object.
|
|
|
|
func NewQRadialGradient3(cx float64, cy float64, radius float64, fx float64, fy float64) *QRadialGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQRadialGradient(C.QRadialGradient_new3((C.double)(cx), (C.double)(cy), (C.double)(radius), (C.double)(fx), (C.double)(fy)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQRadialGradient4 constructs a new QRadialGradient object.
|
|
|
|
func NewQRadialGradient4(center *QPointF, radius float64) *QRadialGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQRadialGradient(C.QRadialGradient_new4(center.cPointer(), (C.double)(radius)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQRadialGradient5 constructs a new QRadialGradient object.
|
|
|
|
func NewQRadialGradient5(cx float64, cy float64, radius float64) *QRadialGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQRadialGradient(C.QRadialGradient_new5((C.double)(cx), (C.double)(cy), (C.double)(radius)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQRadialGradient6 constructs a new QRadialGradient object.
|
|
|
|
func NewQRadialGradient6(center *QPointF, centerRadius float64, focalPoint *QPointF, focalRadius float64) *QRadialGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQRadialGradient(C.QRadialGradient_new6(center.cPointer(), (C.double)(centerRadius), focalPoint.cPointer(), (C.double)(focalRadius)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQRadialGradient7 constructs a new QRadialGradient object.
|
|
|
|
func NewQRadialGradient7(cx float64, cy float64, centerRadius float64, fx float64, fy float64, focalRadius float64) *QRadialGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQRadialGradient(C.QRadialGradient_new7((C.double)(cx), (C.double)(cy), (C.double)(centerRadius), (C.double)(fx), (C.double)(fy), (C.double)(focalRadius)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQRadialGradient8 constructs a new QRadialGradient object.
|
|
|
|
func NewQRadialGradient8(param1 *QRadialGradient) *QRadialGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQRadialGradient(C.QRadialGradient_new8(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) Center() *QPointF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQPointF(C.QRadialGradient_Center(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) SetCenter(center *QPointF) {
|
|
|
|
C.QRadialGradient_SetCenter(this.h, center.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) SetCenter2(x float64, y float64) {
|
|
|
|
C.QRadialGradient_SetCenter2(this.h, (C.double)(x), (C.double)(y))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) FocalPoint() *QPointF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQPointF(C.QRadialGradient_FocalPoint(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) SetFocalPoint(focalPoint *QPointF) {
|
|
|
|
C.QRadialGradient_SetFocalPoint(this.h, focalPoint.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) SetFocalPoint2(x float64, y float64) {
|
|
|
|
C.QRadialGradient_SetFocalPoint2(this.h, (C.double)(x), (C.double)(y))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) Radius() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QRadialGradient_Radius(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) SetRadius(radius float64) {
|
|
|
|
C.QRadialGradient_SetRadius(this.h, (C.double)(radius))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) CenterRadius() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QRadialGradient_CenterRadius(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) SetCenterRadius(radius float64) {
|
|
|
|
C.QRadialGradient_SetCenterRadius(this.h, (C.double)(radius))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) FocalRadius() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QRadialGradient_FocalRadius(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QRadialGradient) SetFocalRadius(radius float64) {
|
|
|
|
C.QRadialGradient_SetFocalRadius(this.h, (C.double)(radius))
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QRadialGradient) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QRadialGradient_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QRadialGradient) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QRadialGradient) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
type QConicalGradient struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QConicalGradient
|
|
|
|
isSubclass bool
|
2024-08-25 04:08:24 +00:00
|
|
|
*QGradient
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QConicalGradient) cPointer() *C.QConicalGradient {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QConicalGradient) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQConicalGradient constructs the type using only CGO pointers.
|
2024-12-07 04:15:57 +00:00
|
|
|
func newQConicalGradient(h *C.QConicalGradient) *QConicalGradient {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
var outptr_QGradient *C.QGradient = nil
|
|
|
|
C.QConicalGradient_virtbase(h, &outptr_QGradient)
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
return &QConicalGradient{h: h,
|
2024-12-07 04:15:57 +00:00
|
|
|
QGradient: newQGradient(outptr_QGradient)}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQConicalGradient constructs the type using only unsafe pointers.
|
2024-12-07 04:15:57 +00:00
|
|
|
func UnsafeNewQConicalGradient(h unsafe.Pointer) *QConicalGradient {
|
|
|
|
return newQConicalGradient((*C.QConicalGradient)(h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQConicalGradient constructs a new QConicalGradient object.
|
|
|
|
func NewQConicalGradient() *QConicalGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQConicalGradient(C.QConicalGradient_new())
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQConicalGradient2 constructs a new QConicalGradient object.
|
|
|
|
func NewQConicalGradient2(center *QPointF, startAngle float64) *QConicalGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQConicalGradient(C.QConicalGradient_new2(center.cPointer(), (C.double)(startAngle)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQConicalGradient3 constructs a new QConicalGradient object.
|
|
|
|
func NewQConicalGradient3(cx float64, cy float64, startAngle float64) *QConicalGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQConicalGradient(C.QConicalGradient_new3((C.double)(cx), (C.double)(cy), (C.double)(startAngle)))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQConicalGradient4 constructs a new QConicalGradient object.
|
|
|
|
func NewQConicalGradient4(param1 *QConicalGradient) *QConicalGradient {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQConicalGradient(C.QConicalGradient_new4(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QConicalGradient) Center() *QPointF {
|
2024-12-07 02:02:06 +00:00
|
|
|
_goptr := newQPointF(C.QConicalGradient_Center(this.h))
|
2024-09-14 22:29:05 +00:00
|
|
|
_goptr.GoGC() // Qt uses pass-by-value semantics for this type. Mimic with finalizer
|
|
|
|
return _goptr
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QConicalGradient) SetCenter(center *QPointF) {
|
|
|
|
C.QConicalGradient_SetCenter(this.h, center.cPointer())
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QConicalGradient) SetCenter2(x float64, y float64) {
|
|
|
|
C.QConicalGradient_SetCenter2(this.h, (C.double)(x), (C.double)(y))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QConicalGradient) Angle() float64 {
|
2024-09-17 07:30:27 +00:00
|
|
|
return (float64)(C.QConicalGradient_Angle(this.h))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QConicalGradient) SetAngle(angle float64) {
|
|
|
|
C.QConicalGradient_SetAngle(this.h, (C.double)(angle))
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-25 04:08:24 +00:00
|
|
|
func (this *QConicalGradient) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QConicalGradient_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QConicalGradient) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QConicalGradient) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
type QGradient__QGradientData struct {
|
2024-11-19 06:29:06 +00:00
|
|
|
h *C.QGradient__QGradientData
|
|
|
|
isSubclass bool
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QGradient__QGradientData) cPointer() *C.QGradient__QGradientData {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
func (this *QGradient__QGradientData) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// newQGradient__QGradientData constructs the type using only CGO pointers.
|
2024-08-29 07:01:51 +00:00
|
|
|
func newQGradient__QGradientData(h *C.QGradient__QGradientData) *QGradient__QGradientData {
|
2024-09-01 02:23:55 +00:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 04:15:57 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
return &QGradient__QGradientData{h: h}
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
// UnsafeNewQGradient__QGradientData constructs the type using only unsafe pointers.
|
2024-10-16 05:07:56 +00:00
|
|
|
func UnsafeNewQGradient__QGradientData(h unsafe.Pointer) *QGradient__QGradientData {
|
2024-12-07 04:15:57 +00:00
|
|
|
return newQGradient__QGradientData((*C.QGradient__QGradientData)(h))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQGradient__QGradientData constructs a new QGradient::QGradientData object.
|
|
|
|
func NewQGradient__QGradientData(param1 *QGradient__QGradientData) *QGradient__QGradientData {
|
2024-11-19 06:29:06 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
ret := newQGradient__QGradientData(C.QGradient__QGradientData_new(param1.cPointer()))
|
2024-11-19 06:29:06 +00:00
|
|
|
ret.isSubclass = true
|
|
|
|
return ret
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
func (this *QGradient__QGradientData) OperatorAssign(param1 *QGradient__QGradientData) {
|
|
|
|
C.QGradient__QGradientData_OperatorAssign(this.h, param1.cPointer())
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
// Delete this object from C++ memory.
|
2024-08-29 07:01:51 +00:00
|
|
|
func (this *QGradient__QGradientData) Delete() {
|
2024-11-19 06:29:06 +00:00
|
|
|
C.QGradient__QGradientData_Delete(this.h, C.bool(this.isSubclass))
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QGradient__QGradientData) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QGradient__QGradientData) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|