mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-22 16:50:49 +00:00
Set filter field width through SetNextItemWidth.
This commit is contained in:
@@ -58,9 +58,12 @@ void Filters::Clear()
|
||||
|
||||
void Filters::Draw( float w )
|
||||
{
|
||||
m_addrFilter.Draw( "Address filter", w );
|
||||
m_portFilter.Draw( "Port filter", w );
|
||||
m_progFilter.Draw( "Program filter", w );
|
||||
ImGui::SetNextItemWidth( w );
|
||||
m_addrFilter.Draw( "Address filter" );
|
||||
ImGui::SetNextItemWidth( w );
|
||||
m_portFilter.Draw( "Port filter" );
|
||||
ImGui::SetNextItemWidth( w );
|
||||
m_progFilter.Draw( "Program filter" );
|
||||
}
|
||||
|
||||
bool Filters::IsActive() const
|
||||
|
||||
@@ -1711,7 +1711,8 @@ void View::DrawFindZoneCpuDetails( int16_t matchSrcloc )
|
||||
ImGui::AlignTextToFramePadding();
|
||||
TextDisabledUnformatted( "Filter user text:" );
|
||||
ImGui::SameLine();
|
||||
bool filterChanged = m_userTextFilter.Draw( ICON_FA_FILTER "###resultFilter", 200 );
|
||||
ImGui::SetNextItemWidth( 200 );
|
||||
bool filterChanged = m_userTextFilter.Draw( ICON_FA_FILTER "###resultFilter" );
|
||||
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( ICON_FA_DELETE_LEFT " Clear###userText" ) )
|
||||
|
||||
@@ -32,7 +32,8 @@ void View::DrawMessages()
|
||||
ImGui::AlignTextToFramePadding();
|
||||
ImGui::Text( ICON_FA_FILTER );
|
||||
ImGui::SameLine();
|
||||
bool filterChanged = m_messageFilter.m_text.Draw( "##Filter messages", 200 );
|
||||
ImGui::SetNextItemWidth( 200 );
|
||||
bool filterChanged = m_messageFilter.m_text.Draw( "##Filter messages" );
|
||||
|
||||
ImGui::SameLine();
|
||||
ImGui::Spacing();
|
||||
|
||||
@@ -462,7 +462,8 @@ void View::DrawStatistics()
|
||||
ImGui::AlignTextToFramePadding();
|
||||
TextDisabledUnformatted( "Name" );
|
||||
ImGui::SameLine();
|
||||
m_statisticsFilter.Draw( ICON_FA_FILTER "###resultFilter", 200 );
|
||||
ImGui::SetNextItemWidth( 200 );
|
||||
m_statisticsFilter.Draw( ICON_FA_FILTER "###resultFilter" );
|
||||
ImGui::SameLine();
|
||||
if( ImGui::Button( ICON_FA_DELETE_LEFT " Clear" ) )
|
||||
{
|
||||
@@ -477,7 +478,8 @@ void View::DrawStatistics()
|
||||
ImGui::SameLine();
|
||||
ToggleButton( ICON_FA_SCISSORS, m_shortImageNames );
|
||||
ImGui::SameLine();
|
||||
m_statisticsImageFilter.Draw( ICON_FA_FILTER "###imageFilter", 200 );
|
||||
ImGui::SetNextItemWidth( 200 );
|
||||
m_statisticsImageFilter.Draw( ICON_FA_FILTER "###imageFilter" );
|
||||
ImGui::SameLine();
|
||||
if( ImGui::BeginCombo( "###imageCombo", nullptr, ImGuiComboFlags_NoPreview | ImGuiComboFlags_HeightLarge ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user