mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-27 18:00:12 +00:00
progress on per-view searching operation - will be specialized & used for replacements for finding text, for going to line/address, and filtering in query views
This commit is contained in:
+3
-2
@@ -795,7 +795,7 @@ ui_begin_build(OS_Handle window, UI_EventList *events, UI_IconInfo *icon_info, U
|
||||
ui_state->build_box_count = 0;
|
||||
ui_state->tooltip_open = 0;
|
||||
ui_state->ctx_menu_changed = 0;
|
||||
ui_state->default_animation_rate = 1 - pow_f32(2, (-80.f * ui_state->animation_dt));
|
||||
ui_state->default_animation_rate = 1 - pow_f32(2, (-70.f * ui_state->animation_dt));
|
||||
ui_state->tooltip_can_overflow_window = 0;
|
||||
ui_state->tags_key_stack_top = ui_state->tags_key_stack_free = 0;
|
||||
ui_state->tags_cache_slots_count = 512;
|
||||
@@ -2550,11 +2550,11 @@ internal void
|
||||
ui_box_equip_display_string(UI_Box *box, String8 string)
|
||||
{
|
||||
ProfBeginFunction();
|
||||
Vec4F32 text_color = ui_color_from_name(str8_lit("text"));
|
||||
box->string = push_str8_copy(ui_build_arena(), string);
|
||||
box->flags |= UI_BoxFlag_HasDisplayString;
|
||||
if(box->flags & UI_BoxFlag_DrawText && (box->fastpath_codepoint == 0 || !(box->flags & UI_BoxFlag_DrawTextFastpathCodepoint)))
|
||||
{
|
||||
Vec4F32 text_color = ui_color_from_name(str8_lit("text"));
|
||||
String8 display_string = ui_box_display_string(box);
|
||||
DR_FStrNode fstr_n = {0, {display_string, {box->font, box->text_raster_flags, text_color, box->font_size, 0, 0}}};
|
||||
DR_FStrList fstrs = {&fstr_n, &fstr_n, 1};
|
||||
@@ -2564,6 +2564,7 @@ ui_box_equip_display_string(UI_Box *box, String8 string)
|
||||
else if(box->flags & UI_BoxFlag_DrawText && box->flags & UI_BoxFlag_DrawTextFastpathCodepoint && box->fastpath_codepoint != 0)
|
||||
{
|
||||
Temp scratch = scratch_begin(0, 0);
|
||||
Vec4F32 text_color = ui_color_from_name(str8_lit("text"));
|
||||
String8 display_string = ui_box_display_string(box);
|
||||
String32 fpcp32 = str32(&box->fastpath_codepoint, 1);
|
||||
String8 fpcp = str8_from_32(scratch.arena, fpcp32);
|
||||
|
||||
+22
-26
@@ -383,32 +383,28 @@ typedef U64 UI_BoxFlags;
|
||||
# define UI_BoxFlag_DrawDropShadow (UI_BoxFlags)(1ull<<27)
|
||||
# define UI_BoxFlag_DrawBackgroundBlur (UI_BoxFlags)(1ull<<28)
|
||||
# define UI_BoxFlag_DrawBackground (UI_BoxFlags)(1ull<<29)
|
||||
# define UI_BoxFlag_DrawAlt (UI_BoxFlags)(1ull<<30)
|
||||
# define UI_BoxFlag_DrawGood (UI_BoxFlags)(1ull<<31)
|
||||
# define UI_BoxFlag_DrawBad (UI_BoxFlags)(1ull<<32)
|
||||
# define UI_BoxFlag_DrawPop (UI_BoxFlags)(1ull<<33)
|
||||
# define UI_BoxFlag_DrawBorder (UI_BoxFlags)(1ull<<34)
|
||||
# define UI_BoxFlag_DrawSideTop (UI_BoxFlags)(1ull<<35)
|
||||
# define UI_BoxFlag_DrawSideBottom (UI_BoxFlags)(1ull<<36)
|
||||
# define UI_BoxFlag_DrawSideLeft (UI_BoxFlags)(1ull<<37)
|
||||
# define UI_BoxFlag_DrawSideRight (UI_BoxFlags)(1ull<<38)
|
||||
# define UI_BoxFlag_DrawText (UI_BoxFlags)(1ull<<39)
|
||||
# define UI_BoxFlag_DrawTextFastpathCodepoint (UI_BoxFlags)(1ull<<40)
|
||||
# define UI_BoxFlag_DrawTextWeak (UI_BoxFlags)(1ull<<41)
|
||||
# define UI_BoxFlag_DrawHotEffects (UI_BoxFlags)(1ull<<42)
|
||||
# define UI_BoxFlag_DrawActiveEffects (UI_BoxFlags)(1ull<<43)
|
||||
# define UI_BoxFlag_DrawOverlay (UI_BoxFlags)(1ull<<44)
|
||||
# define UI_BoxFlag_DrawBucket (UI_BoxFlags)(1ull<<45)
|
||||
# define UI_BoxFlag_Clip (UI_BoxFlags)(1ull<<46)
|
||||
# define UI_BoxFlag_AnimatePosX (UI_BoxFlags)(1ull<<47)
|
||||
# define UI_BoxFlag_AnimatePosY (UI_BoxFlags)(1ull<<48)
|
||||
# define UI_BoxFlag_DisableTextTrunc (UI_BoxFlags)(1ull<<49)
|
||||
# define UI_BoxFlag_DisableIDString (UI_BoxFlags)(1ull<<50)
|
||||
# define UI_BoxFlag_DisableFocusBorder (UI_BoxFlags)(1ull<<51)
|
||||
# define UI_BoxFlag_DisableFocusOverlay (UI_BoxFlags)(1ull<<52)
|
||||
# define UI_BoxFlag_HasDisplayString (UI_BoxFlags)(1ull<<53)
|
||||
# define UI_BoxFlag_HasFuzzyMatchRanges (UI_BoxFlags)(1ull<<54)
|
||||
# define UI_BoxFlag_RoundChildrenByParent (UI_BoxFlags)(1ull<<55)
|
||||
# define UI_BoxFlag_DrawBorder (UI_BoxFlags)(1ull<<30)
|
||||
# define UI_BoxFlag_DrawSideTop (UI_BoxFlags)(1ull<<31)
|
||||
# define UI_BoxFlag_DrawSideBottom (UI_BoxFlags)(1ull<<32)
|
||||
# define UI_BoxFlag_DrawSideLeft (UI_BoxFlags)(1ull<<33)
|
||||
# define UI_BoxFlag_DrawSideRight (UI_BoxFlags)(1ull<<34)
|
||||
# define UI_BoxFlag_DrawText (UI_BoxFlags)(1ull<<35)
|
||||
# define UI_BoxFlag_DrawTextFastpathCodepoint (UI_BoxFlags)(1ull<<36)
|
||||
# define UI_BoxFlag_DrawTextWeak (UI_BoxFlags)(1ull<<37)
|
||||
# define UI_BoxFlag_DrawHotEffects (UI_BoxFlags)(1ull<<38)
|
||||
# define UI_BoxFlag_DrawActiveEffects (UI_BoxFlags)(1ull<<39)
|
||||
# define UI_BoxFlag_DrawOverlay (UI_BoxFlags)(1ull<<40)
|
||||
# define UI_BoxFlag_DrawBucket (UI_BoxFlags)(1ull<<41)
|
||||
# define UI_BoxFlag_Clip (UI_BoxFlags)(1ull<<42)
|
||||
# define UI_BoxFlag_AnimatePosX (UI_BoxFlags)(1ull<<43)
|
||||
# define UI_BoxFlag_AnimatePosY (UI_BoxFlags)(1ull<<44)
|
||||
# define UI_BoxFlag_DisableTextTrunc (UI_BoxFlags)(1ull<<45)
|
||||
# define UI_BoxFlag_DisableIDString (UI_BoxFlags)(1ull<<46)
|
||||
# define UI_BoxFlag_DisableFocusBorder (UI_BoxFlags)(1ull<<47)
|
||||
# define UI_BoxFlag_DisableFocusOverlay (UI_BoxFlags)(1ull<<48)
|
||||
# define UI_BoxFlag_HasDisplayString (UI_BoxFlags)(1ull<<49)
|
||||
# define UI_BoxFlag_HasFuzzyMatchRanges (UI_BoxFlags)(1ull<<50)
|
||||
# define UI_BoxFlag_RoundChildrenByParent (UI_BoxFlags)(1ull<<51)
|
||||
|
||||
//- rjf: bundles
|
||||
# define UI_BoxFlag_Clickable (UI_BoxFlag_MouseClickable|UI_BoxFlag_KeyboardClickable)
|
||||
|
||||
Reference in New Issue
Block a user