#include <GMSlide.h>
Definition at line 21 of file GMSlide.h.
◆ GMSlide()
GMSlide::GMSlide |
( |
std::unique_ptr< skiagm::GM > |
gm | ) |
|
Definition at line 22 of file GMSlide.cpp.
22 : fGM(std::move(gm)) {
24
26}
void printf(const char format[],...) SK_PRINTF_LIKE(2
◆ ~GMSlide()
◆ animate()
bool GMSlide::animate |
( |
double |
nanos | ) |
|
|
overridevirtual |
Reimplemented from Slide.
Definition at line 45 of file GMSlide.cpp.
45{ return fGM->animate(nanos); }
◆ draw()
Implements Slide.
Definition at line 34 of file GMSlide.cpp.
34 {
36
37 auto result = fGM->gpuSetup(canvas, &msg);
39 return;
40 }
41
42 fGM->draw(canvas, &msg);
43}
◆ getDimensions()
SkISize GMSlide::getDimensions |
( |
| ) |
const |
|
inlineoverridevirtual |
A slide may have a content dimensions that is independent of the current window size. An empty size indicates that the Slide's dimensions are equal to the window's dimensions.
Reimplemented from Slide.
Definition at line 26 of file GMSlide.h.
26{ return fGM->getISize(); }
◆ gpuTeardown()
void GMSlide::gpuTeardown |
( |
| ) |
|
|
overridevirtual |
Reimplemented from Slide.
Definition at line 30 of file GMSlide.cpp.
30 {
31 fGM->gpuTeardown();
32}
◆ onChar()
Reimplemented from Slide.
Definition at line 47 of file GMSlide.cpp.
47{ return fGM->onChar(c); }
◆ onGetControls()
bool GMSlide::onGetControls |
( |
SkMetaData * |
controls | ) |
|
|
overridevirtual |
Reimplemented from Slide.
Definition at line 49 of file GMSlide.cpp.
49 {
50 return fGM->getControls(controls);
51}
◆ onSetControls()
void GMSlide::onSetControls |
( |
const SkMetaData & |
controls | ) |
|
|
overridevirtual |
Reimplemented from Slide.
Definition at line 53 of file GMSlide.cpp.
53 {
54 fGM->setControls(controls);
55}
The documentation for this class was generated from the following files: