Delphi XE System.UIConsts 模块
Delphi XE System.UIConsts 模块
1、源代码:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | unit System . UIConsts; interface uses System . UITypes, System . Classes; const claAliceblue = TAlphaColors . AliceBlue; claAntiquewhite = TAlphaColors . Antiquewhite; claAqua = TAlphaColors . Aqua; claAquamarine = TAlphaColors . Aquamarine; claAzure = TAlphaColors . Azure; claBeige = TAlphaColors . Beige; claBisque = TAlphaColors . Bisque; claBlack = TAlphaColors . Black; claBlanchedalmond = TAlphaColors . Blanchedalmond; claBlue = TAlphaColors . Blue; claBlueviolet = TAlphaColors . Blueviolet; claBrown = TAlphaColors . Brown; claBurlywood = TAlphaColors . Burlywood; claCadetblue = TAlphaColors . Cadetblue; claChartreuse = TAlphaColors . Chartreuse; claChocolate = TAlphaColors . Chocolate; claCoral = TAlphaColors . Coral; claCornflowerblue = TAlphaColors . Cornflowerblue; claCornsilk = TAlphaColors . Cornsilk; claCrimson = TAlphaColors . Crimson; claCyan = TAlphaColors . Cyan; claDarkblue = TAlphaColors . Darkblue; claDarkcyan = TAlphaColors . Darkcyan; claDarkgoldenrod = TAlphaColors . Darkgoldenrod; claDarkgray = TAlphaColors . Darkgray; claDarkgreen = TAlphaColors . Darkgreen; claDarkgrey = TAlphaColors . Darkgrey; claDarkkhaki = TAlphaColors . Darkkhaki; claDarkmagenta = TAlphaColors . Darkmagenta; claDarkolivegreen = TAlphaColors . Darkolivegreen; claDarkorange = TAlphaColors . Darkorange; claDarkorchid = TAlphaColors . Darkorchid; claDarkred = TAlphaColors . Darkred; claDarksalmon = TAlphaColors . Darksalmon; claDarkseagreen = TAlphaColors . Darkseagreen; claDarkslateblue = TAlphaColors . Darkslateblue; claDarkslategray = TAlphaColors . Darkslategray; claDarkslategrey = TAlphaColors . Darkslategrey; claDarkturquoise = TAlphaColors . Darkturquoise; claDarkviolet = TAlphaColors . Darkviolet; claDeeppink = TAlphaColors . Deeppink; claDeepskyblue = TAlphaColors . Deepskyblue; claDimgray = TAlphaColors . Dimgray; claDimgrey = TAlphaColors . Dimgrey; claDodgerblue = TAlphaColors . Dodgerblue; claFirebrick = TAlphaColors . Firebrick; claFloralwhite = TAlphaColors . Floralwhite; claForestgreen = TAlphaColors . Forestgreen; claFuchsia = TAlphaColors . Fuchsia; claGainsboro = TAlphaColors . Gainsboro; claGhostwhite = TAlphaColors . Ghostwhite; claGold = TAlphaColors . Gold; claGoldenrod = TAlphaColors . Goldenrod; claGray = TAlphaColors . Gray; claGreen = TAlphaColors . Green; claGreenyellow = TAlphaColors . Greenyellow; claGrey = TAlphaColors . Grey; claHoneydew = TAlphaColors . Honeydew; claHotpink = TAlphaColors . Hotpink; claIndianred = TAlphaColors . Indianred; claIndigo = TAlphaColors . Indigo; claIvory = TAlphaColors . Ivory; claKhaki = TAlphaColors . Khaki; claLavender = TAlphaColors . Lavender; claLavenderblush = TAlphaColors . Lavenderblush; claLawngreen = TAlphaColors . Lawngreen; claLemonchiffon = TAlphaColors . Lemonchiffon; claLightblue = TAlphaColors . Lightblue; claLightcoral = TAlphaColors . Lightcoral; claLightcyan = TAlphaColors . Lightcyan; claLightgoldenrodyellow = TAlphaColors . Lightgoldenrodyellow; claLightgray = TAlphaColors . Lightgray; claLightgreen = TAlphaColors . Lightgreen; claLightgrey = TAlphaColors . Lightgrey; claLightpink = TAlphaColors . Lightpink; claLightsalmon = TAlphaColors . Lightsalmon; claLightseagreen = TAlphaColors . Lightseagreen; claLightskyblue = TAlphaColors . Lightskyblue; claLightslategray = TAlphaColors . Lightslategray; claLightslategrey = TAlphaColors . Lightslategrey; claLightsteelblue = TAlphaColors . Lightsteelblue; claLightyellow = TAlphaColors . Lightyellow; claLime = TAlphaColors . Lime; claLimegreen = TAlphaColors . Limegreen; claLinen = TAlphaColors . Linen; claMagenta = TAlphaColors . Magenta; claMaroon = TAlphaColors . Maroon; claMediumaquamarine = TAlphaColors . Mediumaquamarine; claMediumblue = TAlphaColors . Mediumblue; claMediumorchid = TAlphaColors . Mediumorchid; claMediumpurple = TAlphaColors . Mediumpurple; claMediumseagreen = TAlphaColors . Mediumseagreen; claMediumslateblue = TAlphaColors . Mediumslateblue; claMediumspringgreen = TAlphaColors . Mediumspringgreen; claMediumturquoise = TAlphaColors . Mediumturquoise; claMediumvioletred = TAlphaColors . Mediumvioletred; claMidnightblue = TAlphaColors . Midnightblue; claMintcream = TAlphaColors . Mintcream; claMistyrose = TAlphaColors . Mistyrose; claMoccasin = TAlphaColors . Moccasin; claNavajowhite = TAlphaColors . Navajowhite; claNavy = TAlphaColors . Navy; claOldlace = TAlphaColors . Oldlace; claOlive = TAlphaColors . Olive; claOlivedrab = TAlphaColors . Olivedrab; claOrange = TAlphaColors . Orange; claOrangered = TAlphaColors . Orangered; claOrchid = TAlphaColors . Orchid; claPalegoldenrod = TAlphaColors . Palegoldenrod; claPalegreen = TAlphaColors . Palegreen; claPaleturquoise = TAlphaColors . Paleturquoise; claPalevioletred = TAlphaColors . Palevioletred; claPapayawhip = TAlphaColors . Papayawhip; claPeachpuff = TAlphaColors . Peachpuff; claPeru = TAlphaColors . Peru; claPink = TAlphaColors . Pink; claPlum = TAlphaColors . Plum; claPowderblue = TAlphaColors . Powderblue; claPurple = TAlphaColors . Purple; claRed = TAlphaColors . Red; claRosybrown = TAlphaColors . Rosybrown; claRoyalblue = TAlphaColors . Royalblue; claSaddlebrown = TAlphaColors . Saddlebrown; claSalmon = TAlphaColors . Salmon; claSandybrown = TAlphaColors . Sandybrown; claSeagreen = TAlphaColors . Seagreen; claSeashell = TAlphaColors . Seashell; claSienna = TAlphaColors . Sienna; claSilver = TAlphaColors . Silver; claSkyblue = TAlphaColors . Skyblue; claSlateblue = TAlphaColors . Slateblue; claSlategray = TAlphaColors . Slategray; claSlategrey = TAlphaColors . Slategrey; claSnow = TAlphaColors . Snow; claSpringgreen = TAlphaColors . Springgreen; claSteelblue = TAlphaColors . Steelblue; claTan = TAlphaColors . Tan; claTeal = TAlphaColors . Teal; claThistle = TAlphaColors . Thistle; claTomato = TAlphaColors . Tomato; claTurquoise = TAlphaColors . Turquoise; claViolet = TAlphaColors . Violet; claWheat = TAlphaColors . Wheat; claWhite = TAlphaColors . White; claWhitesmoke = TAlphaColors . Whitesmoke; claYellow = TAlphaColors . Yellow; claYellowgreen = TAlphaColors . Yellowgreen; claNull = TAlphaColors . Null; { Cursor string functions } function CursorToString(Cursor: TCursor): string ; function StringToCursor( const S: string ): TCursor; procedure GetCursorValues( const Proc: TGetStrProc); function CursorToIdent(Cursor: Integer ; var Ident: string ): Boolean ; function IdentToCursor( const Ident: string ; var Cursor: Integer ): Boolean ; procedure RegisterCursorIntegerConsts; { TColor string functions } function ColorToString(Color: TColor): string ; function StringToColor( const S: string ): TColor; procedure GetColorValues(Proc: TGetStrProc); function ColorToIdent(Color: Integer ; var Ident: string ): Boolean ; function IdentToColor( const Ident: string ; var Color: Integer ): Boolean ; procedure RegisterColorIntegerConsts; { TAlphaColor string functions } procedure GetAlphaColorValues(Proc: TGetStrProc); function AlphaColorToString(Value: TAlphaColor): string ; function StringToAlphaColor( const Value: string ): TAlphaColor; function AlphaColorToIdent(Color: Integer ; var Ident: string ): Boolean ; function IdentToAlphaColor( const Ident: string ; var Color: Integer ): Boolean ; procedure RegisterAlphaColorIntegerConsts; { TAlphaColor function's } /// <summary>Converts TAlphaColor into TColor structure, exchanging red and blue channels while losing alpha channel. </summary> function AlphaColorToColor( const Color: TAlphaColor): TColor; function AppendColor(Start, Stop: TAlphaColor): TAlphaColor; function SubtractColor(Start, Stop: TAlphaColor): TAlphaColor; function RGBtoBGR( const C: TAlphaColor): TAlphaColor; function CorrectColor( const C: TAlphaColor): TAlphaColor; function PremultiplyAlpha( const C: TAlphaColor): TAlphaColor; function UnpremultiplyAlpha( const C: TAlphaColor): TAlphaColor; function MakeColor(R, G, B: Byte ; A: Byte = $FF ): TAlphaColor; overload; function MakeColor( const C: TAlphaColor; const AOpacity: Single ): TAlphaColor; overload; function HSLtoRGB(H, S, L: Single ): TAlphaColor; procedure RGBtoHSL(RGB: TAlphaColor; out H, S, L: Single ); function ChangeHSL( const C: TAlphaColor; dH, dS, dL: Single ): TAlphaColor; |
创建时间:2020.07.21 更新时间:
博客园 滔Roy https://www.cnblogs.com/guorongtao 希望内容对你有所帮助,谢谢!
分类:
Delphi System单元
标签:
Delphi XE
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报