当前位置: 首页 > wzjs >正文

在哪网站可以做农信社模拟试卷最近三天的国内新闻

在哪网站可以做农信社模拟试卷,最近三天的国内新闻,网站开发遇到的难题,网站策划书 范文ImGui 的窗口背景仅通过全局的 style 控制,这一点不方便于我们设置特定窗口的背景透明度(一般不用于调整颜色),分析代码,我们可以找到 ImGui::RenderWindowDecorations 函数: void ImGui::RenderWindowDec…

ImGui 的窗口背景仅通过全局的 style 控制,这一点不方便于我们设置特定窗口的背景透明度(一般不用于调整颜色),分析代码,我们可以找到 ImGui::RenderWindowDecorations 函数:

void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar_rect, bool title_bar_is_highlight, bool handle_borders_and_resize_grips, int resize_grip_count, const ImU32 resize_grip_col[4], float resize_grip_draw_size)
{ImGuiContext& g = *GImGui;ImGuiStyle& style = g.Style;ImGuiWindowFlags flags = window->Flags;// Ensure that Scrollbar() doesn't read last frame's SkipItems// 确保 Scrollbar() 不读取上一帧的 SkipItemsIM_ASSERT(window->BeginCount == 0);window->SkipItems = false;window->DC.NavLayerCurrent = ImGuiNavLayer_Menu;// Draw window + handle manual resize// 绘制窗口 + 手动调整大小// As we highlight the title bar when want_focus is set, multiple reappearing windows will have their title bar highlighted on their reappearing frame.// 当设置了 want_focus 后,在我们突出显示标题栏时,多个重新出现的窗口将在其重新出现的框架上突出显示其标题栏。const float window_rounding = window->WindowRounding;const float window_border_size = window->WindowBorderSize;if (window->Collapsed){// Title bar only// 仅标题栏const float backup_border_size = style.FrameBorderSize;g.Style.FrameBorderSize = window->WindowBorderSize;ImU32 title_bar_col = GetColorU32((title_bar_is_highlight && g.NavCursorVisible) ? ImGuiCol_TitleBgActive : ImGuiCol_TitleBgCollapsed);if (window->ViewportOwned)title_bar_col |= IM_COL32_A_MASK; // No alpha (we don't support is_docking_transparent_payload here because simpler and less meaningful, but could with a bit of code shuffle/reuse)RenderFrame(title_bar_rect.Min, title_bar_rect.Max, title_bar_col, true, window_rounding);g.Style.FrameBorderSize = backup_border_size;}else{// Window background// 窗口背景if (!(flags & ImGuiWindowFlags_NoBackground)){bool is_docking_transparent_payload = false;if (g.DragDropActive && (g.FrameCount - g.DragDropAcceptFrameCount) <= 1 && g.IO.ConfigDockingTransparentPayload)if (g.DragDropPayload.IsDataType(IMGUI_PAYLOAD_TYPE_WINDOW) && *(ImGuiWindow**)g.DragDropPayload.Data == window)is_docking_transparent_payload = true;ImU32 bg_col = GetColorU32(GetWindowBgColorIdx(window));if (window->ViewportOwned){//bg_col |= IM_COL32_A_MASK; // No alphaif (!(g.ConfigFlagsCurrFrame & ImGuiConfigFlags_TransparentBackbuffers)) {bg_col = (bg_col | IM_COL32_A_MASK);}if (is_docking_transparent_payload)window->Viewport->Alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA;}else{// Adjust alpha. For docking// 用于 dock 模式下调整 Alpha bool override_alpha = false;float alpha = 1.0f;if (g.NextWindowData.Flags & ImGuiNextWindowDataFlags_HasBgAlpha){alpha = g.NextWindowData.BgAlphaVal;override_alpha = true;}if (is_docking_transparent_payload){alpha *= DOCKING_TRANSPARENT_PAYLOAD_ALPHA; // FIXME-DOCK: Should that be an override?override_alpha = true;}if (override_alpha)bg_col = (bg_col & ~IM_COL32_A_MASK) | (IM_F32_TO_INT8_SAT(alpha) << IM_COL32_A_SHIFT);}
......
}

这里的 ImU32 bg_col = GetColorU32(GetWindowBgColorIdx(window)); 就是窗口要设置的背景颜色,想办法改成跟窗口 id,name 或者 hash 绑定的数值即可。


文章转载自:

http://18lho7dU.hmtft.cn
http://henoO5TH.hmtft.cn
http://3chHwsHO.hmtft.cn
http://ahCkn8m5.hmtft.cn
http://3k8nyJmy.hmtft.cn
http://FCHXDkP4.hmtft.cn
http://7JBWffPQ.hmtft.cn
http://TvTwyCKS.hmtft.cn
http://Ay5aWyIk.hmtft.cn
http://PM9hYlJ4.hmtft.cn
http://sjNXy63f.hmtft.cn
http://Vp6eU8PY.hmtft.cn
http://Q0HxxUST.hmtft.cn
http://xrGCHFRt.hmtft.cn
http://0QqsNHfB.hmtft.cn
http://pw0Fk0mK.hmtft.cn
http://v7zVfmbp.hmtft.cn
http://COJsZmVA.hmtft.cn
http://yIEHub8C.hmtft.cn
http://tu6XVGnI.hmtft.cn
http://qwqwWh9k.hmtft.cn
http://PAF2kBhr.hmtft.cn
http://IOyYaewM.hmtft.cn
http://AJucgJEo.hmtft.cn
http://gmGeBZGv.hmtft.cn
http://gu3kOHN8.hmtft.cn
http://fzsHR5sk.hmtft.cn
http://AK4QLQDZ.hmtft.cn
http://rctEk0zl.hmtft.cn
http://ZPaDa4dO.hmtft.cn
http://www.dtcms.com/wzjs/748441.html

相关文章:

  • 推广型网站建设模板阿里云安装两个wordpress
  • l网站建设网站建设捌金手指花总十八
  • 伊犁网站建设医药公司网站建设方案
  • 网站开发图片存哪里网站建设目的定位
  • 企业网站怎做跳网站查询的二维码怎么做的
  • wordpress幻灯片回收站在哪电商网站是获取流量
  • 客户端 网站开发 手机软件开发深圳建设工程交易
  • 广州培训做网站手机wordpress无法评论
  • 神木自适应网站开发农产品网站策划
  • 紫金银行网站新闻发布会发言稿范文
  • 网站营销seo完整网站设计
  • 电子商务网站怎么做wordpress 输出the id
  • 闸北区网站建设网页设用dw做网站的代码
  • 成都的网站苏州软件定制开发公司
  • 安卓优化大师官网下载现在网站优化
  • 网站关键词优化推广哪家好做企业网站对企业的好处
  • 本溪建设银行网站类似凡科建站的平台
  • 垂直 网站开发宝安网站建设zrare
  • 广州网站建设需要多少费用wordpress 商户插件
  • 爱用建站平台的优势深圳做网站设计公司
  • 四川做网站的网站托管是什么
  • 建设银行档案管理网站百度知道一下首页
  • 服务器部署php网站汕头网站搭建多少钱
  • 网站建设三层架构实训报告wordpress 博客主题
  • 专业网站的建设设行吗做火影网站背景图
  • 深圳网站建设高端工程房地产行业一条龙网站
  • 网站开发需要大学吗长春网站建设net
  • 基于C 的网站开发源码网站设计公司怎么样
  • 网站建设提高信息光谷软件园 网站建设
  • 北京做网站公司哪家强手机网站的好处