رسومات: قوائم وأوامر — رسم Menu/Toolbar/SegmentedControl حرًّا (م٣ من خطّة الودجات)#285
Merged
Hidden character warning
The head ref may contain hidden characters: "\u0631\u0633\u0648\u0645\u0627\u062a/\u06453-\u0642\u0648\u0627\u0626\u0645-\u0648\u0623\u0648\u0627\u0645\u0631"
Conversation
… خطّة الودجات) هذه الأنواع الثلاثة معرَّفة سلفًا في UINodeType لكن بلا مظهر خاصّ على الباطن الحرّ (تسقط default ⇒ مظهرها في مولّد الويب فقط). تضيف هذه الرقعة حالات renderNode لها (طبقة رسم فقط — لا توسيع SoT، الأنواع قائمة): - قائمة_خيارات (Menu): لوح منبثق مرتفع بظلّ + إطار (يخدم القائمة المنسدلة والقائمة السياقية) — حاوية لبنودها - شريط_أدوات (Toolbar): شريط فاتح بحدّ سفليّ — حاوية لأزرار الأوامر - تحكم_مقسم (SegmentedControl): حبّة مستديرة تحوي الشرائح (أبناء) + أحجام measureLeaf افتراضيّة لـ Toolbar/SegmentedControl/Menu. النمط يطابق Dialog/BottomNav/Card. مبنيّ فوق م٠..م٢ المدموجة في dev. مُتحقَّق: يترجم ويُربط في ثنائيّ سطح مكتب sad-os الحرّ. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
📚 تذكير مزامنة دليل المطوّرين هذا الـPR يلمس مصادر موثَّقة في دليل المطوّرين. راجع الفصول الآتية وحدّثها إن تغيّر سلوكها، ثم ثبّت البصمات هناك (
بندٌ في معيار الإنجاز. تذكيرٌ آليّ — لا يحجب الدمج. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ما هذا
المرحلة ٣ من خطّة مكتبة ودجات سطح المكتب: قوائم وأوامر. ثلاثة أنواع
UINodeTypeموجودة سلفًا في التعداد لكن بلا مظهر خاصّ على الباطن الحرّ (تسقطdefault⇒ مظهرها في مولّد الويب فقط). تضيف هذه الرقعة حالات الرسم الحرّة لها — طبقة رسم فقط، لا توسيع SoT، لا حاجة لـ RFC (الأنواع مقنَّنة أصلًا).التغييرات (ملفّان، +50)
platform_renderer.cpp: ٣ حالاتrenderNode(نمط Dialog/StartMenu/Taskbar/ScrollBar)layout.cpp: أحجامmeasureLeafاحتياطيّة لـ Toolbar/SegmentedControl/Menuالتحقّق
caseمزدوج (كلّ نوع مرّة واحدة)، كلّswitchفيهdefault⇒ لا كسر بناء تحت-Werror.FreestandingRenderer(٤٢ غليف HD).دَين متتبَّع (رصدته Amelia — سابق لهذه الرقعة)
بنّاء
SegmentedControlBuilder::build()يضيف الشرائحTextمباشرةً بلا غلافRow⇒ تُكدَّس رأسيًّا في التوزيع الافتراضيّ (measureColumn). رقعة الرسم هذه ترسم الحبّة صحيحةً؛ إصلاح غلاف Row في البنّاء = متابعة منفصلة.🤖 Generated with Claude Code