mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:17:36 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -45,7 +45,7 @@ public:
|
|||
}
|
||||
|
||||
int metric(MetricRole) const;
|
||||
String path(PathRole) const;
|
||||
DeprecatedString path(PathRole) const;
|
||||
SystemTheme const& theme() const { return *m_theme_buffer.data<SystemTheme>(); }
|
||||
|
||||
void replace_internal_buffer(Badge<GUI::Application>, Core::AnonymousBuffer buffer);
|
||||
|
@ -151,24 +151,24 @@ public:
|
|||
int window_title_button_width() const { return metric(MetricRole::TitleButtonWidth); }
|
||||
int window_title_button_height() const { return metric(MetricRole::TitleButtonHeight); }
|
||||
|
||||
String title_button_icons_path() const { return path(PathRole::TitleButtonIcons); }
|
||||
String active_window_shadow_path() const { return path(PathRole::ActiveWindowShadow); }
|
||||
String inactive_window_shadow_path() const { return path(PathRole::InactiveWindowShadow); }
|
||||
String menu_shadow_path() const { return path(PathRole::MenuShadow); }
|
||||
String taskbar_shadow_path() const { return path(PathRole::TaskbarShadow); }
|
||||
String tooltip_shadow_path() const { return path(PathRole::TooltipShadow); }
|
||||
DeprecatedString title_button_icons_path() const { return path(PathRole::TitleButtonIcons); }
|
||||
DeprecatedString active_window_shadow_path() const { return path(PathRole::ActiveWindowShadow); }
|
||||
DeprecatedString inactive_window_shadow_path() const { return path(PathRole::InactiveWindowShadow); }
|
||||
DeprecatedString menu_shadow_path() const { return path(PathRole::MenuShadow); }
|
||||
DeprecatedString taskbar_shadow_path() const { return path(PathRole::TaskbarShadow); }
|
||||
DeprecatedString tooltip_shadow_path() const { return path(PathRole::TooltipShadow); }
|
||||
|
||||
Color color(ColorRole role) const { return m_impl->color(role); }
|
||||
Gfx::TextAlignment alignment(AlignmentRole role) const { return m_impl->alignment(role); }
|
||||
bool flag(FlagRole role) const { return m_impl->flag(role); }
|
||||
int metric(MetricRole role) const { return m_impl->metric(role); }
|
||||
String path(PathRole role) const { return m_impl->path(role); }
|
||||
DeprecatedString path(PathRole role) const { return m_impl->path(role); }
|
||||
|
||||
void set_color(ColorRole, Color);
|
||||
void set_alignment(AlignmentRole, Gfx::TextAlignment);
|
||||
void set_flag(FlagRole, bool);
|
||||
void set_metric(MetricRole, int);
|
||||
void set_path(PathRole, String);
|
||||
void set_path(PathRole, DeprecatedString);
|
||||
|
||||
SystemTheme const& theme() const { return m_impl->theme(); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue