yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::gfx::PaletteGroup Struct Reference

Represents a group of palettes. More...

#include <snes_palette.h>

Public Member Functions

 PaletteGroup ()=default
 
void AddPalette (SnesPalette pal)
 
void AddColor (SnesColor color)
 
void clear ()
 
void SetName (const std::string &name)
 
auto name () const
 
auto size () const
 
auto mutable_palette (int i)
 
auto palette (int i) const
 
SnesPalette operator[] (int i)
 
const SnesPaletteoperator[] (int i) const
 

Private Attributes

std::string name_
 
std::vector< SnesPalettepalettes
 

Detailed Description

Represents a group of palettes.

Supports adding palettes and colors, clearing the group, and accessing palettes and colors by index.

Definition at line 194 of file snes_palette.h.

Constructor & Destructor Documentation

◆ PaletteGroup()

yaze::app::gfx::PaletteGroup::PaletteGroup ( )
default

Member Function Documentation

◆ AddPalette()

◆ AddColor()

void yaze::app::gfx::PaletteGroup::AddColor ( SnesColor color)
inline

Definition at line 199 of file snes_palette.h.

References palettes.

Referenced by yaze::app::gfx::palette_group_internal::LoadGrassColors().

◆ clear()

void yaze::app::gfx::PaletteGroup::clear ( )
inline

◆ SetName()

void yaze::app::gfx::PaletteGroup::SetName ( const std::string & name)
inline

Definition at line 207 of file snes_palette.h.

References name(), and name_.

Here is the call graph for this function:

◆ name()

auto yaze::app::gfx::PaletteGroup::name ( ) const
inline

Definition at line 208 of file snes_palette.h.

References name_.

Referenced by SetName().

◆ size()

auto yaze::app::gfx::PaletteGroup::size ( ) const
inline

◆ mutable_palette()

auto yaze::app::gfx::PaletteGroup::mutable_palette ( int i)
inline

◆ palette()

auto yaze::app::gfx::PaletteGroup::palette ( int i) const
inline

Definition at line 211 of file snes_palette.h.

References palettes.

◆ operator[]() [1/2]

SnesPalette yaze::app::gfx::PaletteGroup::operator[] ( int i)
inline

Definition at line 213 of file snes_palette.h.

References palettes.

◆ operator[]() [2/2]

const SnesPalette & yaze::app::gfx::PaletteGroup::operator[] ( int i) const
inline

Definition at line 221 of file snes_palette.h.

References palettes.

Member Data Documentation

◆ name_

std::string yaze::app::gfx::PaletteGroup::name_
private

Definition at line 230 of file snes_palette.h.

Referenced by name(), and SetName().

◆ palettes

std::vector<SnesPalette> yaze::app::gfx::PaletteGroup::palettes
private

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