summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2017-04-19 11:53:19 +0200
committerMurray Cumming <murrayc@murrayc.com>2017-04-19 12:35:57 +0200
commit3c6357c11f061abc8e209428156efb2f138cc2f7 (patch)
tree11bf158a656b799a46c68ebf4609d900ea0c771c /examples
parenteb083bae8433bf5dc01237d45dc3147a7551edc6 (diff)
Change Cairo::Format enum to Cairo::Surface::Format.
And change this from an old-style enum to a C++11 enum class.
Diffstat (limited to 'examples')
-rw-r--r--examples/surfaces/image-surface.cc2
-rw-r--r--examples/text/text-rotate.cc2
-rw-r--r--examples/text/toy-text.cc2
-rw-r--r--examples/text/user-font.cc2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/surfaces/image-surface.cc b/examples/surfaces/image-surface.cc
index 9318a1a..2fb0d08 100644
--- a/examples/surfaces/image-surface.cc
+++ b/examples/surfaces/image-surface.cc
@@ -16,7 +16,7 @@
int main()
{
auto surface =
- Cairo::ImageSurface::create(Cairo::FORMAT_ARGB32, 600, 400);
+ Cairo::ImageSurface::create(Cairo::Surface::Format::ARGB32, 600, 400);
auto cr = Cairo::Context::create(surface);
diff --git a/examples/text/text-rotate.cc b/examples/text/text-rotate.cc
index 3a94280..bf7c24f 100644
--- a/examples/text/text-rotate.cc
+++ b/examples/text/text-rotate.cc
@@ -90,7 +90,7 @@ void draw(Cairo::RefPtr<Cairo::Context> cr, int width, int height)
int main (void)
{
- auto surface = Cairo::ImageSurface::create(Cairo::FORMAT_ARGB32, WIDTH, HEIGHT);
+ auto surface = Cairo::ImageSurface::create(Cairo::Surface::Format::ARGB32, WIDTH, HEIGHT);
auto cr = Cairo::Context::create(surface);
draw(cr, WIDTH, HEIGHT);
#ifdef CAIRO_HAS_PNG_FUNCTIONS
diff --git a/examples/text/toy-text.cc b/examples/text/toy-text.cc
index 87b1cc6..2934d5f 100644
--- a/examples/text/toy-text.cc
+++ b/examples/text/toy-text.cc
@@ -9,7 +9,7 @@ const double TEXT_ORIGIN_X = 50.0; // arbitrary
int main(int, char**)
{
auto surface =
- Cairo::ImageSurface::create(Cairo::FORMAT_ARGB32, WIDTH, HEIGHT);
+ Cairo::ImageSurface::create(Cairo::Surface::Format::ARGB32, WIDTH, HEIGHT);
auto cr = Cairo::Context::create(surface);
// fill background in white
cr->set_source_rgb(1.0, 1.0, 1.0);
diff --git a/examples/text/user-font.cc b/examples/text/user-font.cc
index f831595..a4b6a05 100644
--- a/examples/text/user-font.cc
+++ b/examples/text/user-font.cc
@@ -99,7 +99,7 @@ protected:
int main(int, char**)
{
auto surface =
- Cairo::ImageSurface::create(Cairo::FORMAT_ARGB32, WIDTH, HEIGHT);
+ Cairo::ImageSurface::create(Cairo::Surface::Format::ARGB32, WIDTH, HEIGHT);
auto cr = Cairo::Context::create(surface);
// fill background in white
cr->set_source_rgb(1.0, 1.0, 1.0);