OpenClonk
ZoomDataStackItem Struct Reference

#include <C4Draw.h>

Inheritance diagram for ZoomDataStackItem:
[legend]
Collaboration diagram for ZoomDataStackItem:
[legend]

Public Member Functions

 ZoomDataStackItem (float newzoom)
 
 ZoomDataStackItem (float X, float Y, float newzoom)
 
 ~ZoomDataStackItem ()
 

Public Attributes

float Zoom
 
float X
 
float Y
 

Detailed Description

Definition at line 218 of file C4Draw.h.

Constructor & Destructor Documentation

◆ ZoomDataStackItem() [1/2]

ZoomDataStackItem::ZoomDataStackItem ( float  newzoom)
inline

Definition at line 220 of file C4Draw.h.

220 { pDraw->GetZoom(this); pDraw->SetZoom(X, Y, newzoom); }
C4Draw * pDraw
Definition: C4Draw.cpp:42
void GetZoom(ZoomData *r)
Definition: C4Draw.h:197
void SetZoom(float X, float Y, float Zoom)
Definition: C4Draw.cpp:773
float X
Definition: C4Draw.h:71
float Y
Definition: C4Draw.h:71

References C4Draw::GetZoom(), pDraw, C4Draw::SetZoom(), ZoomData::X, and ZoomData::Y.

Here is the call graph for this function:

◆ ZoomDataStackItem() [2/2]

ZoomDataStackItem::ZoomDataStackItem ( float  X,
float  Y,
float  newzoom 
)
inline

Definition at line 221 of file C4Draw.h.

221 { pDraw->GetZoom(this); pDraw->SetZoom(X, Y, newzoom); }

References C4Draw::GetZoom(), pDraw, C4Draw::SetZoom(), ZoomData::X, and ZoomData::Y.

Here is the call graph for this function:

◆ ~ZoomDataStackItem()

ZoomDataStackItem::~ZoomDataStackItem ( )
inline

Definition at line 222 of file C4Draw.h.

222 { pDraw->SetZoom(*this); }

References pDraw, and C4Draw::SetZoom().

Here is the call graph for this function:

Member Data Documentation

◆ X

float ZoomData::X
inherited

Definition at line 71 of file C4Draw.h.

Referenced by C4Viewport::Draw(), C4Draw::GetZoom(), C4Draw::SetZoom(), and ZoomDataStackItem().

◆ Y

float ZoomData::Y
inherited

Definition at line 71 of file C4Draw.h.

Referenced by C4Viewport::Draw(), C4Draw::GetZoom(), C4Draw::SetZoom(), and ZoomDataStackItem().

◆ Zoom

float ZoomData::Zoom
inherited

The documentation for this struct was generated from the following file: