Skip to content

Commit

Permalink
Rename Display::setTitleBar() -> setTitle() (related to #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Jul 29, 2019
1 parent 3a6d162 commit cf4692a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/allevents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LogWindow {
LogWindow(os::System* system)
: m_display(system->createDisplay(800, 600, 1)) {
m_display->setNativeMouseCursor(os::kArrowCursor);
m_display->setTitleBar("All Events");
m_display->setTitle("All Events");

recalcMaxLines();

Expand Down
2 changes: 1 addition & 1 deletion examples/complextextlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int app_main(int argc, char* argv[])
os::ScopedHandle<os::Display> display(system->createDisplay(400, 300, 1));

display->setNativeMouseCursor(os::kArrowCursor);
display->setTitleBar("CTL");
display->setTitle("CTL");

system->finishLaunching();
system->activateApp();
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ int app_main(int argc, char* argv[])
os::ScopedHandle<os::Display> display(system->createDisplay(400, 300, pixelScale));

display->setNativeMouseCursor(os::kArrowCursor);
display->setTitleBar("Hello World");
display->setTitle("Hello World");

// On macOS: With finishLaunching() we start processing
// NSApplicationDelegate events. After calling this we'll start
Expand Down
2 changes: 1 addition & 1 deletion os/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace os {
virtual bool isMaximized() const = 0;
virtual bool isMinimized() const = 0;

virtual void setTitleBar(const std::string& title) = 0;
virtual void setTitle(const std::string& title) = 0;
virtual void setIcons(const SurfaceList& icons) = 0;

virtual NativeCursor nativeMouseCursor() = 0;
Expand Down
2 changes: 1 addition & 1 deletion os/skia/skia_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ bool SkiaDisplay::isMinimized() const
return m_window.isMinimized();
}

void SkiaDisplay::setTitleBar(const std::string& title)
void SkiaDisplay::setTitle(const std::string& title)
{
m_window.setTitle(title);
}
Expand Down
2 changes: 1 addition & 1 deletion os/skia/skia_display.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class SkiaDisplay : public Display {
void maximize() override;
bool isMaximized() const override;
bool isMinimized() const override;
void setTitleBar(const std::string& title) override;
void setTitle(const std::string& title) override;
void setIcons(const SurfaceList& icons) override;
NativeCursor nativeMouseCursor() override;
bool setNativeMouseCursor(NativeCursor cursor) override;
Expand Down

0 comments on commit cf4692a

Please sign in to comment.