#include <game/bases/d_2d/multi.hpp>
A base 2D layout class.
Definition at line 25 of file multi.hpp.
|
| | Multi_c () |
| | Creates a layout.
|
| virtual | ~Multi_c () |
| | Destroys the layout.
|
| virtual void | draw () |
| | Draws the layout.
|
| virtual void | calc () |
| | Applies the view matrix.
|
| virtual bool | build (const char *name, ResAccMult_c *resAcc) |
| | Builds the layout from a binary layout file.
|
| void | entry () |
| | Registers the layout to be drawn.
|
| void | calcBefore () |
| | Calculates an animation step before the main calculation.
|
| void | calcAfter () |
| | Calculates the view rectangle and view matrix after the main calculation.
|
| nw4r::lyt::Pane * | getRootPane () |
| | Gets the root pane of the layout.
|
| nw4r::lyt::Pane * | findPaneByName (const char *name) |
| | Finds a pane by name.
|
| nw4r::lyt::TextBox * | findTextBoxByName (const char *name) |
| | Finds a text box pane by name.
|
| nw4r::lyt::Picture * | findPictureByName (const char *name) |
| | Finds a picture pane by name.
|
| nw4r::lyt::Window * | findWindowByName (const char *name) |
| | Finds a window pane by name.
|
| void | entry () |
◆ Multi_c()
| d2d::Multi_c::Multi_c |
( |
| ) |
|
Creates a layout.
Definition at line 107 of file d_2d.cpp.
◆ ~Multi_c()
| d2d::Multi_c::~Multi_c |
( |
| ) |
|
|
virtual |
Destroys the layout.
Definition at line 119 of file d_2d.cpp.
◆ draw()
| void d2d::Multi_c::draw |
( |
| ) |
|
|
virtual |
◆ calc()
| void d2d::Multi_c::calc |
( |
| ) |
|
|
virtual |
Applies the view matrix.
Definition at line 125 of file d_2d.cpp.
◆ build()
| bool d2d::Multi_c::build |
( |
const char * | name, |
|
|
ResAccMult_c * | resAcc ) |
|
virtual |
Builds the layout from a binary layout file.
- Parameters
-
| name | The name of the binary layout file. |
| resAcc | The resource accessor to use. If nullptr, uses the internal accessor. |
- Returns
- Whether the layout was built successfully.
Reimplemented in LytBase_c.
Definition at line 182 of file d_2d.cpp.
◆ entry()
| void d2d::Multi_c::entry |
( |
| ) |
|
Registers the layout to be drawn.
Definition at line 121 of file d_2d.cpp.
◆ calcBefore()
| void d2d::Multi_c::calcBefore |
( |
| ) |
|
Calculates an animation step before the main calculation.
Definition at line 135 of file d_2d.cpp.
◆ calcAfter()
| void d2d::Multi_c::calcAfter |
( |
| ) |
|
Calculates the view rectangle and view matrix after the main calculation.
Definition at line 143 of file d_2d.cpp.
◆ getRootPane()
| nw4r::lyt::Pane * d2d::Multi_c::getRootPane |
( |
| ) |
|
Gets the root pane of the layout.
Definition at line 178 of file d_2d.cpp.
◆ findPaneByName()
| nw4r::lyt::Pane * d2d::Multi_c::findPaneByName |
( |
const char * | name | ) |
|
Finds a pane by name.
Definition at line 203 of file d_2d.cpp.
◆ findTextBoxByName()
Finds a text box pane by name.
Definition at line 207 of file d_2d.cpp.
◆ findPictureByName()
| nw4r::lyt::Picture * d2d::Multi_c::findPictureByName |
( |
const char * | name | ) |
|
Finds a picture pane by name.
Definition at line 216 of file d_2d.cpp.
◆ findWindowByName()
| nw4r::lyt::Window * d2d::Multi_c::findWindowByName |
( |
const char * | name | ) |
|
Finds a window pane by name.
Definition at line 225 of file d_2d.cpp.
◆ mLayout
The layout instance.
Definition at line 48 of file multi.hpp.
◆ mDrawInfo
| nw4r::lyt::DrawInfo d2d::Multi_c::mDrawInfo |
|
private |
The parameters for drawing the layout.
Definition at line 49 of file multi.hpp.
◆ mpResAccessor
The resource accessor for the layout.
Definition at line 52 of file multi.hpp.
◆ mPos
The position of the layout.
Definition at line 53 of file multi.hpp.
◆ mScissorMask
The scissor mask for the layout.
Definition at line 55 of file multi.hpp.
◆ mFlags
The flags for the layout.
Definition at line 58 of file multi.hpp.
◆ m_98