1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 23:07:34 +00:00

LibGUI: Put all classes in the GUI namespace and remove the leading G

This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
Andreas Kling 2020-02-02 15:07:41 +01:00
parent 2d39da5405
commit c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions

View file

@ -30,10 +30,13 @@
#include <LibCore/CObject.h>
class GraphicsBitmap;
class GWindowServerConnection;
class GDragOperation : public Core::Object {
C_OBJECT(GDragOperation)
namespace GUI {
class WindowServerConnection;
class DragOperation : public Core::Object {
C_OBJECT(DragOperation)
public:
enum class Outcome {
None,
@ -41,7 +44,7 @@ public:
Cancelled,
};
virtual ~GDragOperation() override;
virtual ~DragOperation() override;
void set_text(const String& text) { m_text = text; }
void set_bitmap(const GraphicsBitmap* bitmap) { m_bitmap = bitmap; }
@ -54,11 +57,11 @@ public:
Outcome exec();
Outcome outcome() const { return m_outcome; }
static void notify_accepted(Badge<GWindowServerConnection>);
static void notify_cancelled(Badge<GWindowServerConnection>);
static void notify_accepted(Badge<WindowServerConnection>);
static void notify_cancelled(Badge<WindowServerConnection>);
protected:
explicit GDragOperation(Core::Object* parent = nullptr);
explicit DragOperation(Core::Object* parent = nullptr);
private:
void done(Outcome);
@ -70,3 +73,5 @@ private:
String m_data;
RefPtr<GraphicsBitmap> m_bitmap;
};
}