mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Demos: Run clang-format on everything.
This commit is contained in:
parent
3ca332af42
commit
2c70ae0418
Notes:
sideshowbarker
2024-07-19 13:41:17 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2c70ae04189
4 changed files with 22 additions and 20 deletions
|
@ -1,9 +1,9 @@
|
|||
#include <LibGUI/GApplication.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
#include <LibGUI/GLabel.h>
|
||||
#include <LibGUI/GButton.h>
|
||||
#include <LibGUI/GBoxLayout.h>
|
||||
#include <LibGUI/GButton.h>
|
||||
#include <LibGUI/GLabel.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
@ -27,7 +27,7 @@ int main(int argc, char** argv)
|
|||
button->set_text("Good-bye");
|
||||
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
button->set_preferred_size({ 0, 20 });
|
||||
button->on_click = [&] (GButton&) {
|
||||
button->on_click = [&](GButton&) {
|
||||
app.quit();
|
||||
};
|
||||
|
||||
|
|
|
@ -1,13 +1,16 @@
|
|||
#include <LibGUI/GApplication.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
#include <SharedGraphics/PNGLoader.h>
|
||||
|
||||
class TestWidget final : public GWidget {
|
||||
public:
|
||||
TestWidget(GWidget* parent) : GWidget(parent) { }
|
||||
virtual ~TestWidget() override { }
|
||||
TestWidget(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
{
|
||||
}
|
||||
virtual ~TestWidget() override {}
|
||||
|
||||
void set_bitmap(RetainPtr<GraphicsBitmap>&& bitmap)
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include <AK/Assertions.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include <AK/Assertions.h>
|
||||
|
||||
static void moveto(int row, int column)
|
||||
{
|
||||
|
@ -68,4 +68,3 @@ int main()
|
|||
printf("\033[u\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
#include <LibCore/CTimer.h>
|
||||
#include <LibGUI/GApplication.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
#include <LibGUI/GLabel.h>
|
||||
#include <LibGUI/GButton.h>
|
||||
#include <LibGUI/GBoxLayout.h>
|
||||
#include <LibGUI/GButton.h>
|
||||
#include <LibGUI/GCheckBox.h>
|
||||
#include <LibGUI/GRadioButton.h>
|
||||
#include <LibGUI/GTextBox.h>
|
||||
#include <LibGUI/GGroupBox.h>
|
||||
#include <LibGUI/GLabel.h>
|
||||
#include <LibGUI/GProgressBar.h>
|
||||
#include <LibGUI/GRadioButton.h>
|
||||
#include <LibGUI/GScrollBar.h>
|
||||
#include <LibGUI/GSlider.h>
|
||||
#include <LibGUI/GSpinBox.h>
|
||||
#include <LibGUI/GGroupBox.h>
|
||||
#include <LibCore/CTimer.h>
|
||||
#include <LibGUI/GTextBox.h>
|
||||
#include <LibGUI/GWidget.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue