mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibGUI: Remove G prefix from macros
This commit is contained in:
parent
073ac3a22f
commit
9e6e731a78
Notes:
sideshowbarker
2024-07-19 08:13:15 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/9e6e731a78e Pull-request: https://github.com/SerenityOS/serenity/pull/1489
3 changed files with 13 additions and 13 deletions
|
@ -45,7 +45,7 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define DEBUG_GTEXTEDITOR
|
||||
//#define DEBUG_TEXTEDITOR
|
||||
|
||||
namespace GUI {
|
||||
|
||||
|
@ -411,7 +411,7 @@ void TextEditor::paint_event(PaintEvent& event)
|
|||
for_each_visual_line(line_index, [&](const Gfx::Rect& visual_line_rect, const StringView& visual_line_text, size_t start_of_visual_line) {
|
||||
if (is_multi_line() && line_index == m_cursor.line())
|
||||
painter.fill_rect(visual_line_rect, widget_background_color.darkened(0.9f));
|
||||
#ifdef DEBUG_GTEXTEDITOR
|
||||
#ifdef DEBUG_TEXTEDITOR
|
||||
painter.draw_rect(visual_line_rect, Color::Cyan);
|
||||
#endif
|
||||
if (!document().has_spans()) {
|
||||
|
|
|
@ -51,16 +51,16 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
REGISTER_GWIDGET(Button)
|
||||
REGISTER_GWIDGET(CheckBox)
|
||||
REGISTER_GWIDGET(GroupBox)
|
||||
REGISTER_GWIDGET(Label)
|
||||
REGISTER_GWIDGET(RadioButton)
|
||||
REGISTER_GWIDGET(ScrollBar)
|
||||
REGISTER_GWIDGET(Slider)
|
||||
REGISTER_GWIDGET(SpinBox)
|
||||
REGISTER_GWIDGET(TextBox)
|
||||
REGISTER_GWIDGET(Widget)
|
||||
REGISTER_WIDGET(Button)
|
||||
REGISTER_WIDGET(CheckBox)
|
||||
REGISTER_WIDGET(GroupBox)
|
||||
REGISTER_WIDGET(Label)
|
||||
REGISTER_WIDGET(RadioButton)
|
||||
REGISTER_WIDGET(ScrollBar)
|
||||
REGISTER_WIDGET(Slider)
|
||||
REGISTER_WIDGET(SpinBox)
|
||||
REGISTER_WIDGET(TextBox)
|
||||
REGISTER_WIDGET(Widget)
|
||||
|
||||
static HashMap<String, WidgetClassRegistration*>& widget_classes()
|
||||
{
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
#include <LibGfx/Orientation.h>
|
||||
#include <LibGfx/Rect.h>
|
||||
|
||||
#define REGISTER_GWIDGET(class_name) \
|
||||
#define REGISTER_WIDGET(class_name) \
|
||||
extern WidgetClassRegistration registration_##class_name; \
|
||||
WidgetClassRegistration registration_##class_name(#class_name, []() { return class_name::construct(); });
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue