mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 13:45:08 +00:00
LibCore: Put all classes in the Core namespace and remove the leading C
I've been wanting to do this for a long time. It's time we start being consistent about how this stuff works. The new convention is: - "LibFoo" is a userspace library that provides the "Foo" namespace. That's it :^) This was pretty tedious to convert and I didn't even start on LibGUI yet. But it's coming up next.
This commit is contained in:
parent
b7e3810b5c
commit
2d39da5405
265 changed files with 1380 additions and 1167 deletions
|
@ -33,7 +33,7 @@
|
|||
class GPainter;
|
||||
|
||||
class GAbstractButton : public GWidget {
|
||||
C_OBJECT(GAbstractButton)
|
||||
C_OBJECT_ABSTRACT(GAbstractButton)
|
||||
public:
|
||||
virtual ~GAbstractButton() override;
|
||||
|
||||
|
@ -69,8 +69,8 @@ protected:
|
|||
virtual void mousemove_event(GMouseEvent&) override;
|
||||
virtual void mouseup_event(GMouseEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
virtual void enter_event(CEvent&) override;
|
||||
virtual void leave_event(CEvent&) override;
|
||||
virtual void enter_event(Core::Event&) override;
|
||||
virtual void leave_event(Core::Event&) override;
|
||||
virtual void change_event(GEvent&) override;
|
||||
|
||||
void paint_text(GPainter&, const Rect&, const Font&, TextAlignment);
|
||||
|
@ -86,11 +86,11 @@ private:
|
|||
bool m_exclusive { false };
|
||||
|
||||
int m_auto_repeat_interval { 0 };
|
||||
RefPtr<CTimer> m_auto_repeat_timer;
|
||||
RefPtr<Core::Timer> m_auto_repeat_timer;
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool is<GAbstractButton>(const CObject& object)
|
||||
inline bool Core::is<GAbstractButton>(const Core::Object& object)
|
||||
{
|
||||
if (!is<GWidget>(object))
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue