mirror of
https://github.com/hax4dazy/TinWoo.git
synced 2025-02-09 19:25:05 +01:00
Delete include directory
This commit is contained in:
parent
addf739e96
commit
591c73ae29
@ -1,28 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2017-2018 Adubbz
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <filesystem>
|
||||
#include <vector>
|
||||
namespace nspInstStuff_B {
|
||||
void installNspFromFile(std::vector<std::filesystem::path> ourNspList, int whereToInstall);
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,224 +0,0 @@
|
||||
#---------------------------------------------------------------------------------
|
||||
.SUFFIXES:
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(strip $(DEVKITPRO)),)
|
||||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro")
|
||||
endif
|
||||
|
||||
TOPDIR ?= $(CURDIR)
|
||||
include $(DEVKITPRO)/libnx/switch_rules
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# TARGET is the name of the output
|
||||
# BUILD is the directory where object files & intermediate files will be placed
|
||||
# SOURCES is a list of directories containing source code
|
||||
# DATA is a list of directories containing data files
|
||||
# INCLUDES is a list of directories containing header files
|
||||
# ROMFS is the directory containing data to be added to RomFS, relative to the Makefile (Optional)
|
||||
#
|
||||
# NO_ICON: if set to anything, do not use icon.
|
||||
# NO_NACP: if set to anything, no .nacp file is generated.
|
||||
# APP_TITLE is the name of the app stored in the .nacp file (Optional)
|
||||
# APP_AUTHOR is the author of the app stored in the .nacp file (Optional)
|
||||
# APP_VERSION is the version of the app stored in the .nacp file (Optional)
|
||||
# APP_TITLEID is the titleID of the app stored in the .nacp file (Optional)
|
||||
# ICON is the filename of the icon (.jpg), relative to the project folder.
|
||||
# If not set, it attempts to use one of the following (in this order):
|
||||
# - <Project name>.jpg
|
||||
# - icon.jpg
|
||||
# - <libnx folder>/default_icon.jpg
|
||||
#
|
||||
# CONFIG_JSON is the filename of the NPDM config file (.json), relative to the project folder.
|
||||
# If not set, it attempts to use one of the following (in this order):
|
||||
# - <Project name>.json
|
||||
# - config.json
|
||||
# If a JSON file is provided or autodetected, an ExeFS PFS0 (.nsp) is built instead
|
||||
# of a homebrew executable (.nro). This is intended to be used for sysmodules.
|
||||
# NACP building is skipped as well.
|
||||
#---------------------------------------------------------------------------------
|
||||
TARGET := $(notdir $(CURDIR))
|
||||
BUILD := build
|
||||
SOURCES := source
|
||||
DATA := data
|
||||
INCLUDES := include
|
||||
#ROMFS := romfs
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# options for code generation
|
||||
#---------------------------------------------------------------------------------
|
||||
ARCH := -march=armv8-a+crc+crypto -mtune=cortex-a57 -mtp=soft -fPIE
|
||||
|
||||
CFLAGS := -g -Wall -O2 -ffunction-sections \
|
||||
$(ARCH) $(DEFINES)
|
||||
|
||||
CFLAGS += $(INCLUDE) -D__SWITCH__
|
||||
|
||||
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions
|
||||
|
||||
ASFLAGS := -g $(ARCH)
|
||||
LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map)
|
||||
|
||||
LIBS := -lpu -lfreetype -lSDL2_mixer -lopusfile -lopus -lmodplug -lmpg123 -lvorbisidec -logg -lSDL2_ttf -lSDL2_gfx -lSDL2_image -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lwebp -lpng -ljpeg `sdl2-config --libs` `freetype-config --libs` -lnx
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# list of directories containing libraries, this must be the top level containing
|
||||
# include and lib
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
# IMPORTANT! Change "$(CURDIR)/../Plutonium" to the path in which you have Plutonium
|
||||
LIBDIRS := $(PORTLIBS) $(LIBNX) $(CURDIR)/../Plutonium
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# no real need to edit anything past this point unless you need to add additional
|
||||
# rules for different file extensions
|
||||
#---------------------------------------------------------------------------------
|
||||
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
export OUTPUT := $(CURDIR)/$(TARGET)
|
||||
export TOPDIR := $(CURDIR)
|
||||
|
||||
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
|
||||
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
|
||||
|
||||
export DEPSDIR := $(CURDIR)/$(BUILD)
|
||||
|
||||
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
||||
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# use CXX for linking C++ projects, CC for standard C
|
||||
#---------------------------------------------------------------------------------
|
||||
ifeq ($(strip $(CPPFILES)),)
|
||||
#---------------------------------------------------------------------------------
|
||||
export LD := $(CC)
|
||||
#---------------------------------------------------------------------------------
|
||||
else
|
||||
#---------------------------------------------------------------------------------
|
||||
export LD := $(CXX)
|
||||
#---------------------------------------------------------------------------------
|
||||
endif
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
export OFILES_BIN := $(addsuffix .o,$(BINFILES))
|
||||
export OFILES_SRC := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
||||
export OFILES := $(OFILES_BIN) $(OFILES_SRC)
|
||||
export HFILES_BIN := $(addsuffix .h,$(subst .,_,$(BINFILES)))
|
||||
|
||||
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||
-I$(CURDIR)/$(BUILD)
|
||||
|
||||
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
||||
|
||||
ifeq ($(strip $(CONFIG_JSON)),)
|
||||
jsons := $(wildcard *.json)
|
||||
ifneq (,$(findstring $(TARGET).json,$(jsons)))
|
||||
export APP_JSON := $(TOPDIR)/$(TARGET).json
|
||||
else
|
||||
ifneq (,$(findstring config.json,$(jsons)))
|
||||
export APP_JSON := $(TOPDIR)/config.json
|
||||
endif
|
||||
endif
|
||||
else
|
||||
export APP_JSON := $(TOPDIR)/$(CONFIG_JSON)
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(ICON)),)
|
||||
icons := $(wildcard *.jpg)
|
||||
ifneq (,$(findstring $(TARGET).jpg,$(icons)))
|
||||
export APP_ICON := $(TOPDIR)/$(TARGET).jpg
|
||||
else
|
||||
ifneq (,$(findstring icon.jpg,$(icons)))
|
||||
export APP_ICON := $(TOPDIR)/icon.jpg
|
||||
endif
|
||||
endif
|
||||
else
|
||||
export APP_ICON := $(TOPDIR)/$(ICON)
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(NO_ICON)),)
|
||||
export NROFLAGS += --icon=$(APP_ICON)
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(NO_NACP)),)
|
||||
export NROFLAGS += --nacp=$(CURDIR)/$(TARGET).nacp
|
||||
endif
|
||||
|
||||
ifneq ($(APP_TITLEID),)
|
||||
export NACPFLAGS += --titleid=$(APP_TITLEID)
|
||||
endif
|
||||
|
||||
ifneq ($(ROMFS),)
|
||||
export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS)
|
||||
endif
|
||||
|
||||
.PHONY: $(BUILD) clean all
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
all: $(BUILD)
|
||||
|
||||
$(BUILD):
|
||||
@[ -d $@ ] || mkdir -p $@
|
||||
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
@echo clean ...
|
||||
ifeq ($(strip $(APP_JSON)),)
|
||||
@rm -fr $(BUILD) $(TARGET).nro $(TARGET).nacp $(TARGET).elf
|
||||
else
|
||||
@rm -fr $(BUILD) $(TARGET).nsp $(TARGET).nso $(TARGET).npdm $(TARGET).elf
|
||||
endif
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
else
|
||||
.PHONY: all
|
||||
|
||||
DEPENDS := $(OFILES:.o=.d)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# main targets
|
||||
#---------------------------------------------------------------------------------
|
||||
ifeq ($(strip $(APP_JSON)),)
|
||||
|
||||
all : $(OUTPUT).nro
|
||||
|
||||
ifeq ($(strip $(NO_NACP)),)
|
||||
$(OUTPUT).nro : $(OUTPUT).elf $(OUTPUT).nacp
|
||||
else
|
||||
$(OUTPUT).nro : $(OUTPUT).elf
|
||||
endif
|
||||
|
||||
else
|
||||
|
||||
all : $(OUTPUT).nsp
|
||||
|
||||
$(OUTPUT).nsp : $(OUTPUT).nso $(OUTPUT).npdm
|
||||
|
||||
$(OUTPUT).nso : $(OUTPUT).elf
|
||||
|
||||
endif
|
||||
|
||||
$(OUTPUT).elf : $(OFILES)
|
||||
|
||||
$(OFILES_SRC) : $(HFILES_BIN)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# you need a rule like this for each extension you use as binary data
|
||||
#---------------------------------------------------------------------------------
|
||||
%.bin.o %_bin.h : %.bin
|
||||
#---------------------------------------------------------------------------------
|
||||
@echo $(notdir $<)
|
||||
@$(bin2o)
|
||||
|
||||
-include $(DEPENDS)
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
endif
|
||||
#---------------------------------------------------------------------------------------
|
@ -1,36 +0,0 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// Include Plutonium's main header
|
||||
#include <pu/Plutonium>
|
||||
|
||||
// Define your main layout as a class inheriting from pu::Layout
|
||||
class CustomLayout : public pu::ui::Layout {
|
||||
private:
|
||||
|
||||
// An easy way to keep objects is to have them as private members
|
||||
// Using ::Ref (of a Plutonium built-in object or any class having PU_SMART_CTOR) is an alias to a shared_ptr of the instance.
|
||||
pu::ui::elm::TextBlock::Ref helloText;
|
||||
|
||||
public:
|
||||
|
||||
CustomLayout();
|
||||
|
||||
// Have ::Ref alias and ::New() static constructor
|
||||
PU_SMART_CTOR(CustomLayout)
|
||||
};
|
||||
|
||||
// Define your application (can't instantiate base class, so need to make a derived one)
|
||||
class MainApplication : public pu::ui::Application {
|
||||
private:
|
||||
|
||||
// Layout instance
|
||||
CustomLayout::Ref layout;
|
||||
|
||||
public:
|
||||
using Application::Application;
|
||||
PU_SMART_CTOR(MainApplication)
|
||||
|
||||
// We need to define this, and use it to initialize everything
|
||||
void OnLoad() override;
|
||||
};
|
@ -1,37 +0,0 @@
|
||||
#include <MainApplication.hpp>
|
||||
|
||||
/*
|
||||
// If you would like to initialize and finalize stuff before or after Plutonium, you can use libnx's userAppInit/userAppExit
|
||||
|
||||
extern "C" void userAppInit() {
|
||||
// Initialize stuff
|
||||
}
|
||||
|
||||
extern "C" void userAppExit() {
|
||||
// Cleanup/finalize stuff
|
||||
}
|
||||
*/
|
||||
|
||||
// Main entrypoint
|
||||
int main() {
|
||||
// First create our renderer, where one can customize SDL or other stuff's initialization.
|
||||
auto renderer_opts = pu::ui::render::RendererInitOptions(SDL_INIT_EVERYTHING, pu::ui::render::RendererHardwareFlags);
|
||||
renderer_opts.UseImage(pu::ui::render::IMGAllFlags);
|
||||
renderer_opts.UseAudio(pu::ui::render::MixerAllFlags);
|
||||
renderer_opts.UseTTF();
|
||||
auto renderer = pu::ui::render::Renderer::New(renderer_opts);
|
||||
|
||||
// Create our main application from the renderer
|
||||
auto main = MainApplication::New(renderer);
|
||||
|
||||
// Prepare out application. This MUST be called or Show() will exit and nothing will be rendered.
|
||||
main->Prepare();
|
||||
|
||||
// Show -> start rendering in an "infinite" loop
|
||||
// If wou would like to show with a "fade in" from black-screen to the UI, use instead ->ShowWithFadeIn();
|
||||
main->Show();
|
||||
|
||||
// Exit homebrew (Plutonium will handle all disposing of UI and renderer/application, don't worry!
|
||||
|
||||
return 0;
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
#include <MainApplication.hpp>
|
||||
|
||||
// Implement all the layout/application functions here
|
||||
|
||||
CustomLayout::CustomLayout() : Layout::Layout() {
|
||||
// Create the TextBlock instance with the text we want
|
||||
this->helloText = pu::ui::elm::TextBlock::New(300, 300, "Press X to answer my question");
|
||||
|
||||
// Add the instance to the layout. IMPORTANT! this MUST be done for them to be used, having them as members is not enough (just a simple way to keep them)
|
||||
this->Add(this->helloText);
|
||||
}
|
||||
|
||||
void MainApplication::OnLoad() {
|
||||
// Create the layout (calling the smart constructor above)
|
||||
this->layout = CustomLayout::New();
|
||||
|
||||
// Load the layout. In applications layouts are loaded, not added into a container (you don't select an added layout, just load it from this function)
|
||||
// Simply explained: loading layout = the application will render that layout in the very next frame
|
||||
this->LoadLayout(this->layout);
|
||||
|
||||
// Set a function when input is caught. This input handling will be the first one to be handled (before Layout or any Elements)
|
||||
// Using a lambda function here to simplify things
|
||||
// You can use member functions via std::bind() C++ wrapper
|
||||
this->SetOnInput([&](const u64 keys_down, const u64 keys_up, const u64 keys_held, const pu::ui::TouchPoint touch_pos) {
|
||||
// If X is pressed, start with our dialog questions!
|
||||
if(keys_held & HidNpadButton_X) {
|
||||
int opt = this->CreateShowDialog("Question", "Do you like apples?", { "Yes!", "No...", "Cancel" }, true); // (using latest option as cancel option)
|
||||
// -1 and -2 are similar, but if the user cancels manually -1 is set, other types or cancel should be -2.
|
||||
if((opt == -1) || (opt == -2)) {
|
||||
this->CreateShowDialog("Cancel", "Last question was canceled.", { "Ok" }, true); // If we will ignore the option, it doesn't matter if this is true or false
|
||||
}
|
||||
else {
|
||||
// Otherwise, opt will be the index of the options we passed to the dialog
|
||||
switch(opt) {
|
||||
// "Yes!" was selected
|
||||
case 0: {
|
||||
this->CreateShowDialog("Answer", "Really? I like apples too!", { "Ok" }, true); // Same here ^
|
||||
break;
|
||||
}
|
||||
// "No..." was selected
|
||||
case 1: {
|
||||
this->CreateShowDialog("Answer", "Oh, bad news then...", { "Ok" }, true); // And here ^
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// If + is pressed, exit application
|
||||
else if(keys_down & HidNpadButton_Plus) {
|
||||
this->Close();
|
||||
}
|
||||
});
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
Copyright (c) 2018-2019 XorTroll
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -1,12 +0,0 @@
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
export PU_MAJOR := 0
|
||||
export PU_MINOR := 3
|
||||
export PU_MICRO := 0
|
||||
|
||||
all:
|
||||
@$(MAKE) -C Plutonium/
|
||||
|
||||
clean:
|
||||
@$(MAKE) clean -C Plutonium/
|
@ -1,128 +0,0 @@
|
||||
#---------------------------------------------------------------------------------
|
||||
.SUFFIXES:
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
ifeq ($(strip $(DEVKITPRO)),)
|
||||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>/devkitpro")
|
||||
endif
|
||||
|
||||
include $(DEVKITPRO)/devkitA64/base_rules
|
||||
include $(DEVKITPRO)/libnx/switch_rules
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# TARGET is the name of the output
|
||||
# SOURCES is a list of directories containing source code
|
||||
# DATA is a list of directories containing data files
|
||||
# INCLUDES is a list of directories containing header files
|
||||
#---------------------------------------------------------------------------------
|
||||
BUILD := build
|
||||
TARGET := pu
|
||||
SOURCES := source source/pu source/pu/audio source/pu/ttf source/pu/sdl2 source/pu/ui source/pu/ui/elm source/pu/ui/extras source/pu/ui/render
|
||||
INCLUDES := include
|
||||
OUT_LIB := lib
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# options for code generation
|
||||
#---------------------------------------------------------------------------------
|
||||
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIC -ftls-model=local-exec
|
||||
|
||||
CFLAGS := -g -Wall -D__SWITCH__ -ffunction-sections -fdata-sections $(ARCH)
|
||||
|
||||
CFLAGS += $(INCLUDE) -I$(PORTLIBS)/include/freetype2 -DPU_MAJOR=$(PU_MAJOR) -DPU_MINOR=$(PU_MINOR) -DPU_MICRO=$(PU_MICRO) -DPU_VERSION=\"$(PU_MAJOR).$(PU_MINOR).$(PU_MICRO)\"
|
||||
|
||||
CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions -std=gnu++17
|
||||
|
||||
ASFLAGS := -g $(ARCH)
|
||||
LDFLAGS = -specs=${DEVKITPRO}/libnx/switch.specs -g $(ARCH) -Wl,-r,-Map,$(notdir $*.map)
|
||||
|
||||
SDL_IMAGE_LIBS := -lSDL2_image -lpng -ljpeg
|
||||
SDL_GFX_LIBS := -lSDL2_gfx
|
||||
SDL_MIXER_LIBS := -lSDL2_mixer -lmodplug -lmpg123 -lvorbisidec -logg
|
||||
|
||||
LIBS := $(SDL_IMAGE_LIBS) $(SDL_GFX_LIBS) $(SDL_MIXER_LIBS) -lEGL -lGLESv2 -lglapi `sdl2-config --libs` `freetype-config --libs`
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# list of directories containing libraries, this must be the top level containing
|
||||
# include and lib
|
||||
#---------------------------------------------------------------------------------
|
||||
LIBDIRS := $(PORTLIBS) $(DEVKITPRO)/libnx
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# no real need to edit anything past this point unless you need to add additional
|
||||
# rules for different file extensions
|
||||
#---------------------------------------------------------------------------------
|
||||
ifneq ($(BUILD),$(notdir $(CURDIR)))
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
|
||||
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
|
||||
|
||||
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
||||
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
||||
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
||||
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# use CXX for linking C++ projects, CC for standard C
|
||||
#---------------------------------------------------------------------------------
|
||||
ifeq ($(strip $(CPPFILES)),)
|
||||
#---------------------------------------------------------------------------------
|
||||
export LD := $(CC)
|
||||
#---------------------------------------------------------------------------------
|
||||
else
|
||||
#---------------------------------------------------------------------------------
|
||||
export LD := $(CXX)
|
||||
#---------------------------------------------------------------------------------
|
||||
endif
|
||||
#---------------------------------------------------------------------------------
|
||||
export OUTPUT := $(CURDIR)/$(OUT_LIB)/lib$(TARGET).a
|
||||
export DEPSDIR := $(CURDIR)/$(BUILD)
|
||||
export OFILES_BIN := $(addsuffix .o,$(BINFILES))
|
||||
export OFILES_SRC := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
||||
export OFILES := $(OFILES_BIN) $(OFILES_SRC)
|
||||
export HFILES := $(addsuffix .h,$(subst .,_,$(BINFILES)))
|
||||
|
||||
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
||||
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
||||
-I$(CURDIR)/$(BUILD)
|
||||
|
||||
.PHONY: $(BUILD) clean all
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
all: $(BUILD)
|
||||
|
||||
$(BUILD):
|
||||
@[ -d $@ ] || mkdir -p $@
|
||||
@[ -d $(OUT_LIB) ] || mkdir -p $(OUT_LIB)
|
||||
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
@echo clean ...
|
||||
@rm -fr $(CURDIR)/$(BUILD)
|
||||
@rm -fr $(CURDIR)/$(OUT_LIB)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
else
|
||||
|
||||
DEPENDS := $(OFILES:.o=.d)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
# main targets
|
||||
#---------------------------------------------------------------------------------
|
||||
$(OUTPUT) : $(OFILES)
|
||||
|
||||
$(OFILES_SRC) : $(HFILES)
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
%_bin.h %.bin.o : %.bin
|
||||
#---------------------------------------------------------------------------------
|
||||
@echo $(notdir $<)
|
||||
@$(bin2o)
|
||||
|
||||
|
||||
-include $(DEPENDS)
|
||||
|
||||
#---------------------------------------------------------------------------------------
|
||||
endif
|
||||
#---------------------------------------------------------------------------------------
|
@ -1,39 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file Plutonium
|
||||
@brief Plutonium library's main header. (include this to use this library properly)
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/pu_Include.hpp>
|
||||
|
||||
#include <pu/audio/audio_Music.hpp>
|
||||
#include <pu/audio/audio_Sfx.hpp>
|
||||
|
||||
#include <pu/ui/ui_Application.hpp>
|
||||
#include <pu/ui/ui_Types.hpp>
|
||||
#include <pu/ui/ui_Container.hpp>
|
||||
#include <pu/ui/ui_Dialog.hpp>
|
||||
#include <pu/ui/ui_Layout.hpp>
|
||||
#include <pu/ui/ui_Overlay.hpp>
|
||||
|
||||
#include <pu/ui/elm/elm_Button.hpp>
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
#include <pu/ui/elm/elm_Image.hpp>
|
||||
#include <pu/ui/elm/elm_Menu.hpp>
|
||||
#include <pu/ui/elm/elm_ProgressBar.hpp>
|
||||
#include <pu/ui/elm/elm_Rectangle.hpp>
|
||||
#include <pu/ui/elm/elm_TextBlock.hpp>
|
||||
#include <pu/ui/elm/elm_Toggle.hpp>
|
||||
|
||||
#include <pu/ui/extras/extras_Toast.hpp>
|
||||
|
||||
#include <pu/ui/render/render_Renderer.hpp>
|
||||
#include <pu/ui/render/render_SDL2.hpp>
|
@ -1,36 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file audio_Music.hpp
|
||||
@brief Music (BGM) support
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <SDL2/SDL_mixer.h>
|
||||
#include <pu/pu_Include.hpp>
|
||||
|
||||
namespace pu::audio {
|
||||
|
||||
using Music = Mix_Music*;
|
||||
|
||||
Music OpenMusic(const std::string &path);
|
||||
void PlayMusic(Music mus, const int loops);
|
||||
void PlayMusicWithFadeIn(Music mus, const i32 llops, const i32 ms);
|
||||
bool IsPlayingMusic();
|
||||
void PauseMusic();
|
||||
void ResumeMusic();
|
||||
void SetMusicVolume(const i32 vol);
|
||||
i32 GetMusicVolume();
|
||||
void FadeOutMusic(const i32 ms);
|
||||
void RewindMusic();
|
||||
void StopMusic();
|
||||
void SetMusicPosition(const double sec);
|
||||
void DestroyMusic(Music &mus);
|
||||
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file audio_Sfx.hpp
|
||||
@brief Sfx (sound effects) support
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <SDL2/SDL_mixer.h>
|
||||
#include <pu/pu_Include.hpp>
|
||||
|
||||
namespace pu::audio {
|
||||
|
||||
using Sfx = Mix_Chunk*;
|
||||
|
||||
Sfx LoadSfx(const std::string &path);
|
||||
void PlaySfx(Sfx sfx);
|
||||
void DestroySfx(Sfx &sfx);
|
||||
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file pu_Include.hpp
|
||||
@brief Basic includes and definitions for the library
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <switch.h>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
// Defines a static function (::New(...)) as a constructor for smart ptrs, also defines a custom type (::Ref) to simplify it
|
||||
#define PU_SMART_CTOR(type) \
|
||||
using Ref = std::shared_ptr<type>; \
|
||||
template<typename ...Args> \
|
||||
inline static Ref New(Args &&...ctor_args) { \
|
||||
return std::move(std::make_shared<type>(std::forward<Args>(ctor_args)...)); \
|
||||
}
|
||||
|
||||
namespace pu {
|
||||
|
||||
using i32 = s32;
|
||||
|
||||
}
|
@ -1,276 +0,0 @@
|
||||
/*
|
||||
SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts
|
||||
Copyright (C) 2001-2013 Sam Lantinga <slouken@libsdl.org>
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
*/
|
||||
|
||||
/* This library is a wrapper around the excellent FreeType 2.0 library,
|
||||
available at:
|
||||
http://www.freetype.org/
|
||||
*/
|
||||
|
||||
#ifndef _SDL_TTF_H
|
||||
#define _SDL_TTF_H
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/begin_code.h>
|
||||
|
||||
#include <switch.h>
|
||||
|
||||
/* Set up for C function definitions, even when using C++ */
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
|
||||
*/
|
||||
#define SDL_TTF_MAJOR_VERSION 2
|
||||
#define SDL_TTF_MINOR_VERSION 0
|
||||
#define SDL_TTF_PATCHLEVEL 12
|
||||
|
||||
/* This macro can be used to fill a version structure with the compile-time
|
||||
* version of the SDL_ttf library.
|
||||
*/
|
||||
#define SDL_TTF_VERSION(X) \
|
||||
{ \
|
||||
(X)->major = SDL_TTF_MAJOR_VERSION; \
|
||||
(X)->minor = SDL_TTF_MINOR_VERSION; \
|
||||
(X)->patch = SDL_TTF_PATCHLEVEL; \
|
||||
}
|
||||
|
||||
/* Backwards compatibility */
|
||||
#define TTF_MAJOR_VERSION SDL_TTF_MAJOR_VERSION
|
||||
#define TTF_MINOR_VERSION SDL_TTF_MINOR_VERSION
|
||||
#define TTF_PATCHLEVEL SDL_TTF_PATCHLEVEL
|
||||
#define TTF_VERSION(X) SDL_TTF_VERSION(X)
|
||||
|
||||
/* This function gets the version of the dynamically linked SDL_ttf library.
|
||||
it should NOT be used to fill a version structure, instead you should
|
||||
use the SDL_TTF_VERSION() macro.
|
||||
*/
|
||||
extern DECLSPEC const SDL_version * SDLCALL TTF_Linked_Version(void);
|
||||
|
||||
/* ZERO WIDTH NO-BREAKSPACE (Unicode byte order mark) */
|
||||
#define UNICODE_BOM_NATIVE 0xFEFF
|
||||
#define UNICODE_BOM_SWAPPED 0xFFFE
|
||||
|
||||
/* This function tells the library whether UNICODE text is generally
|
||||
byteswapped. A UNICODE BOM character in a string will override
|
||||
this setting for the remainder of that string.
|
||||
*/
|
||||
extern DECLSPEC void SDLCALL TTF_ByteSwappedUNICODE(int swapped);
|
||||
|
||||
/* The internal structure containing font information */
|
||||
typedef struct _TTF_Font TTF_Font;
|
||||
|
||||
/* Initialize the TTF engine - returns 0 if successful, -1 on error */
|
||||
extern DECLSPEC int SDLCALL TTF_Init(void);
|
||||
|
||||
/* Open a font file and create a font of the specified point size.
|
||||
* Some .fon fonts will have several sizes embedded in the file, so the
|
||||
* point size becomes the index of choosing which size. If the value
|
||||
* is too high, the last indexed size will be the default. */
|
||||
extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFont(const char *file, int ptsize);
|
||||
extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontIndex(const char *file, int ptsize, long index);
|
||||
extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontRW(SDL_RWops *src, int freesrc, int ptsize);
|
||||
extern DECLSPEC TTF_Font * SDLCALL TTF_OpenFontIndexRW(SDL_RWops *src, int freesrc, int ptsize, long index);
|
||||
|
||||
/* Set and retrieve the font style */
|
||||
#define TTF_STYLE_NORMAL 0x00
|
||||
#define TTF_STYLE_BOLD 0x01
|
||||
#define TTF_STYLE_ITALIC 0x02
|
||||
#define TTF_STYLE_UNDERLINE 0x04
|
||||
#define TTF_STYLE_STRIKETHROUGH 0x08
|
||||
extern DECLSPEC int SDLCALL TTF_GetFontStyle(const TTF_Font *font);
|
||||
extern DECLSPEC void SDLCALL TTF_SetFontStyle(TTF_Font *font, int style);
|
||||
extern DECLSPEC int SDLCALL TTF_GetFontOutline(const TTF_Font *font);
|
||||
extern DECLSPEC void SDLCALL TTF_SetFontOutline(TTF_Font *font, int outline);
|
||||
|
||||
/* Set and retrieve FreeType hinter settings */
|
||||
#define TTF_HINTING_NORMAL 0
|
||||
#define TTF_HINTING_LIGHT 1
|
||||
#define TTF_HINTING_MONO 2
|
||||
#define TTF_HINTING_NONE 3
|
||||
extern DECLSPEC int SDLCALL TTF_GetFontHinting(const TTF_Font *font);
|
||||
extern DECLSPEC void SDLCALL TTF_SetFontHinting(TTF_Font *font, int hinting);
|
||||
|
||||
/* Get the total height of the font - usually equal to point size */
|
||||
extern DECLSPEC int SDLCALL TTF_FontHeight(const TTF_Font *font);
|
||||
|
||||
/* Get the offset from the baseline to the top of the font
|
||||
This is a positive value, relative to the baseline.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL TTF_FontAscent(const TTF_Font *font);
|
||||
|
||||
/* Get the offset from the baseline to the bottom of the font
|
||||
This is a negative value, relative to the baseline.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL TTF_FontDescent(const TTF_Font *font);
|
||||
|
||||
/* Get the recommended spacing between lines of text for this font */
|
||||
extern DECLSPEC int SDLCALL TTF_FontLineSkip(const TTF_Font *font);
|
||||
|
||||
/* Get/Set whether or not kerning is allowed for this font */
|
||||
extern DECLSPEC int SDLCALL TTF_GetFontKerning(const TTF_Font *font);
|
||||
extern DECLSPEC void SDLCALL TTF_SetFontKerning(TTF_Font *font, int allowed);
|
||||
|
||||
/* Get the number of faces of the font */
|
||||
extern DECLSPEC long SDLCALL TTF_FontFaces(const TTF_Font *font);
|
||||
|
||||
/* Get the font face attributes, if any */
|
||||
extern DECLSPEC int SDLCALL TTF_FontFaceIsFixedWidth(const TTF_Font *font);
|
||||
extern DECLSPEC char * SDLCALL TTF_FontFaceFamilyName(const TTF_Font *font);
|
||||
extern DECLSPEC char * SDLCALL TTF_FontFaceStyleName(const TTF_Font *font);
|
||||
|
||||
/* Check wether a glyph is provided by the font or not */
|
||||
extern DECLSPEC int SDLCALL TTF_GlyphIsProvided(const TTF_Font *font, Uint16 ch);
|
||||
|
||||
/* Get the metrics (dimensions) of a glyph
|
||||
To understand what these metrics mean, here is a useful link:
|
||||
http://freetype.sourceforge.net/freetype2/docs/tutorial/step2.html
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL TTF_GlyphMetrics(TTF_Font *font, Uint16 ch,
|
||||
int *minx, int *maxx,
|
||||
int *miny, int *maxy, int *advance);
|
||||
|
||||
/* Get the dimensions of a rendered string of text */
|
||||
extern DECLSPEC int SDLCALL TTF_SizeText(TTF_Font *font, const char *text, int *w, int *h);
|
||||
extern DECLSPEC int SDLCALL TTF_SizeUTF8(TTF_Font *font, const char *text, int *w, int *h);
|
||||
extern DECLSPEC int SDLCALL TTF_SizeUNICODE(TTF_Font *font, const Uint16 *text, int *w, int *h);
|
||||
|
||||
/* Create an 8-bit palettized surface and render the given text at
|
||||
fast quality with the given font and color. The 0 pixel is the
|
||||
colorkey, giving a transparent background, and the 1 pixel is set
|
||||
to the text color.
|
||||
This function returns the new surface, or NULL if there was an error.
|
||||
*/
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Solid(TTF_Font *font,
|
||||
const char *text, SDL_Color fg);
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Solid(TTF_Font *font,
|
||||
const char *text, SDL_Color fg);
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Solid(TTF_Font *font,
|
||||
const Uint16 *text, SDL_Color fg);
|
||||
|
||||
/* Create an 8-bit palettized surface and render the given glyph at
|
||||
fast quality with the given font and color. The 0 pixel is the
|
||||
colorkey, giving a transparent background, and the 1 pixel is set
|
||||
to the text color. The glyph is rendered without any padding or
|
||||
centering in the X direction, and aligned normally in the Y direction.
|
||||
This function returns the new surface, or NULL if there was an error.
|
||||
*/
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Solid(TTF_Font *font,
|
||||
Uint16 ch, SDL_Color fg);
|
||||
|
||||
/* Create an 8-bit palettized surface and render the given text at
|
||||
high quality with the given font and colors. The 0 pixel is background,
|
||||
while other pixels have varying degrees of the foreground color.
|
||||
This function returns the new surface, or NULL if there was an error.
|
||||
*/
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Shaded(TTF_Font *font,
|
||||
const char *text, SDL_Color fg, SDL_Color bg);
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Shaded(TTF_Font *font,
|
||||
const char *text, SDL_Color fg, SDL_Color bg);
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Shaded(TTF_Font *font,
|
||||
const Uint16 *text, SDL_Color fg, SDL_Color bg);
|
||||
|
||||
/* Create an 8-bit palettized surface and render the given glyph at
|
||||
high quality with the given font and colors. The 0 pixel is background,
|
||||
while other pixels have varying degrees of the foreground color.
|
||||
The glyph is rendered without any padding or centering in the X
|
||||
direction, and aligned normally in the Y direction.
|
||||
This function returns the new surface, or NULL if there was an error.
|
||||
*/
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Shaded(TTF_Font *font,
|
||||
Uint16 ch, SDL_Color fg, SDL_Color bg);
|
||||
|
||||
/* Create a 32-bit ARGB surface and render the given text at high quality,
|
||||
using alpha blending to dither the font with the given color.
|
||||
This function returns the new surface, or NULL if there was an error.
|
||||
*/
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Blended(TTF_Font *font,
|
||||
const char *text, SDL_Color fg);
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Blended(TTF_Font *font,
|
||||
const char *text, SDL_Color fg);
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Blended(TTF_Font *font,
|
||||
const Uint16 *text, SDL_Color fg);
|
||||
|
||||
|
||||
/* Create a 32-bit ARGB surface and render the given text at high quality,
|
||||
using alpha blending to dither the font with the given color.
|
||||
Text is wrapped to multiple lines on line endings and on word boundaries
|
||||
if it extends beyond wrapLength in pixels.
|
||||
This function returns the new surface, or NULL if there was an error.
|
||||
*/
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderText_Blended_Wrapped(TTF_Font *font,
|
||||
const char *text, SDL_Color fg, Uint32 wrapLength);
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUTF8_Blended_Wrapped(TTF_Font *font,
|
||||
const char *text, SDL_Color fg, Uint32 wrapLength);
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderUNICODE_Blended_Wrapped(TTF_Font *font,
|
||||
const Uint16 *text, SDL_Color fg, Uint32 wrapLength);
|
||||
|
||||
/* Create a 32-bit ARGB surface and render the given glyph at high quality,
|
||||
using alpha blending to dither the font with the given color.
|
||||
The glyph is rendered without any padding or centering in the X
|
||||
direction, and aligned normally in the Y direction.
|
||||
This function returns the new surface, or NULL if there was an error.
|
||||
*/
|
||||
extern DECLSPEC SDL_Surface * SDLCALL TTF_RenderGlyph_Blended(TTF_Font *font,
|
||||
Uint16 ch, SDL_Color fg);
|
||||
|
||||
/* For compatibility with previous versions, here are the old functions */
|
||||
#define TTF_RenderText(font, text, fg, bg) \
|
||||
TTF_RenderText_Shaded(font, text, fg, bg)
|
||||
#define TTF_RenderUTF8(font, text, fg, bg) \
|
||||
TTF_RenderUTF8_Shaded(font, text, fg, bg)
|
||||
#define TTF_RenderUNICODE(font, text, fg, bg) \
|
||||
TTF_RenderUNICODE_Shaded(font, text, fg, bg)
|
||||
|
||||
/* Close an opened font file */
|
||||
extern DECLSPEC void SDLCALL TTF_CloseFont(TTF_Font *font);
|
||||
|
||||
/* De-initialize the TTF engine */
|
||||
extern DECLSPEC void SDLCALL TTF_Quit(void);
|
||||
|
||||
/* Check if the TTF engine is initialized */
|
||||
extern DECLSPEC int SDLCALL TTF_WasInit(void);
|
||||
|
||||
/* Get the kerning size of two glyphs */
|
||||
extern DECLSPEC int TTF_GetFontKerningSize(TTF_Font *font, int prev_index, int index);
|
||||
|
||||
/* Code present in C++ code */
|
||||
TTF_Font *TTF_CppWrap_FindValidFont(TTF_Font *font, Uint16 ch);
|
||||
|
||||
/* Get the pointer to the C++ data */
|
||||
void *TTF_CppWrap_GetCppPtrRef(TTF_Font *font);
|
||||
|
||||
/* Set the pointer to the C++ data */
|
||||
void TTF_CppWrap_SetCppPtrRef(TTF_Font *font, void *cpp_ptr_ref);
|
||||
|
||||
/* We'll use SDL for reporting errors */
|
||||
#define TTF_SetError SDL_SetError
|
||||
#define TTF_GetError SDL_GetError
|
||||
|
||||
#define TMP_LOG(str) { const char *cstr = str; svcOutputDebugString(cstr, strlen(cstr)); }
|
||||
|
||||
/* Ends C function definitions when using C++ */
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#include <SDL2/close_code.h>
|
||||
|
||||
#endif /* _SDL_TTF_H */
|
@ -1,17 +0,0 @@
|
||||
|
||||
#pragma once
|
||||
#include <SDL2/SDL.h>
|
||||
#include <SDL2/SDL2_gfxPrimitives.h>
|
||||
#include <SDL2/SDL_image.h>
|
||||
#include <SDL2/SDL_mixer.h>
|
||||
#include <pu/sdl2/sdl2_CustomTtf.h>
|
||||
|
||||
namespace pu::sdl2 {
|
||||
|
||||
using Texture = SDL_Texture*;
|
||||
using Window = SDL_Window*;
|
||||
using Renderer = SDL_Renderer*;
|
||||
using Font = TTF_Font*;
|
||||
using Surface = SDL_Surface*;
|
||||
|
||||
}
|
@ -1,87 +0,0 @@
|
||||
|
||||
#pragma once
|
||||
#include <pu/sdl2/sdl2_Types.hpp>
|
||||
#include <pu/ui/ui_Types.hpp>
|
||||
#include <vector>
|
||||
|
||||
namespace pu::ttf {
|
||||
|
||||
class Font {
|
||||
private:
|
||||
using FontFaceDisposingFunction = void(*)(void*);
|
||||
|
||||
struct FontFace {
|
||||
sdl2::Font font;
|
||||
void *ptr;
|
||||
size_t ptr_sz;
|
||||
FontFaceDisposingFunction dispose_fn;
|
||||
|
||||
FontFace(void *buf, const size_t buf_size, FontFaceDisposingFunction disp_fn, const u32 font_sz, void *font_class_ptr) : font(nullptr), ptr(buf), ptr_sz(buf_size), dispose_fn(disp_fn) {
|
||||
this->font = TTF_OpenFontRW(SDL_RWFromMem(this->ptr, this->ptr_sz), 1, font_sz);
|
||||
if(this->font != nullptr) {
|
||||
TTF_CppWrap_SetCppPtrRef(this->font, font_class_ptr);
|
||||
}
|
||||
}
|
||||
|
||||
FontFace() : font(nullptr), ptr(nullptr), ptr_sz(0), dispose_fn(EmptyFontFaceDisposingFunction) {}
|
||||
|
||||
inline bool IsSourceValid() {
|
||||
// AKA - is the base ptr and size valid?
|
||||
return (this->ptr != nullptr) && (this->ptr_sz > 0);
|
||||
}
|
||||
|
||||
void DisposeFont() {
|
||||
if(this->font != nullptr) {
|
||||
TTF_CloseFont(this->font);
|
||||
this->font = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void Dispose() {
|
||||
this->DisposeFont();
|
||||
if(this->IsSourceValid()) {
|
||||
(this->dispose_fn)(this->ptr);
|
||||
this->ptr = nullptr;
|
||||
this->ptr_sz = 0;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
std::vector<std::pair<i32, std::unique_ptr<FontFace>>> font_faces;
|
||||
u32 font_size;
|
||||
|
||||
inline sdl2::Font TryGetFirstFont() {
|
||||
if(!this->font_faces.empty()) {
|
||||
return this->font_faces.begin()->second->font;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
public:
|
||||
static constexpr i32 InvalidFontFaceIndex = -1;
|
||||
static constexpr u32 DefaultFontSize = 25;
|
||||
|
||||
static void EmptyFontFaceDisposingFunction(void*) {}
|
||||
|
||||
static inline constexpr bool IsValidFontFaceIndex(const i32 index) {
|
||||
return index != InvalidFontFaceIndex;
|
||||
}
|
||||
|
||||
Font(const u32 font_sz) : font_size(font_sz) {}
|
||||
~Font();
|
||||
|
||||
i32 LoadFromMemory(void *ptr, const size_t size, FontFaceDisposingFunction disp_fn);
|
||||
i32 LoadFromFile(const std::string &path);
|
||||
void Unload(const i32 font_idx);
|
||||
|
||||
inline u32 GetFontSize() {
|
||||
return this->font_size;
|
||||
}
|
||||
|
||||
sdl2::Font FindValidFontFor(const Uint16 ch);
|
||||
std::pair<u32, u32> GetTextDimensions(const std::string &str);
|
||||
sdl2::Texture RenderText(const std::string &str, const ui::Color clr);
|
||||
};
|
||||
|
||||
}
|
@ -1,131 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file Button.hpp
|
||||
@brief A Button is an Element for option selecting.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <functional>
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
class Button : public Element {
|
||||
public:
|
||||
using OnClickCallback = std::function<void()>;
|
||||
|
||||
static constexpr u8 DarkerColorFactor = 70;
|
||||
|
||||
static constexpr u8 HoverAlphaIncrement = 48;
|
||||
|
||||
private:
|
||||
i32 x;
|
||||
i32 y;
|
||||
i32 w;
|
||||
i32 h;
|
||||
std::string fnt_name;
|
||||
Color bg_clr;
|
||||
Color cnt_clr;
|
||||
std::string cnt;
|
||||
sdl2::Texture cnt_tex;
|
||||
OnClickCallback on_click_cb;
|
||||
bool hover;
|
||||
i32 hover_alpha;
|
||||
|
||||
inline Color MakeHoverBackgroundColor(const i32 alpha) {
|
||||
i32 base_r = this->bg_clr.r - DarkerColorFactor;
|
||||
if(base_r < 0) {
|
||||
base_r = 0;
|
||||
}
|
||||
i32 base_g = this->bg_clr.g - DarkerColorFactor;
|
||||
if(base_g < 0) {
|
||||
base_g = 0;
|
||||
}
|
||||
i32 base_b = this->bg_clr.b - DarkerColorFactor;
|
||||
if(base_b < 0) {
|
||||
base_b = 0;
|
||||
}
|
||||
|
||||
auto base_a = this->bg_clr.a;
|
||||
if(alpha >= 0) {
|
||||
base_a = static_cast<u8>(alpha);
|
||||
}
|
||||
|
||||
return { static_cast<u8>(base_r), static_cast<u8>(base_g), static_cast<u8>(base_b), base_a };
|
||||
}
|
||||
|
||||
public:
|
||||
Button(const i32 x, const i32 y, const i32 width, const i32 height, const std::string &content, const Color content_clr, const Color bg_clr);
|
||||
PU_SMART_CTOR(Button)
|
||||
~Button();
|
||||
|
||||
inline i32 GetX() override {
|
||||
return this->x;
|
||||
}
|
||||
|
||||
inline void SetX(const i32 x) {
|
||||
this->x = x;
|
||||
}
|
||||
|
||||
inline i32 GetY() override {
|
||||
return this->y;
|
||||
}
|
||||
|
||||
inline void SetY(const i32 y) {
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
inline i32 GetWidth() override {
|
||||
return this->w;
|
||||
}
|
||||
|
||||
inline void SetWidth(const i32 width) {
|
||||
this->w = width;
|
||||
}
|
||||
|
||||
inline i32 GetHeight() override {
|
||||
return this->h;
|
||||
}
|
||||
|
||||
inline void SetHeight(const i32 height) {
|
||||
this->h = height;
|
||||
}
|
||||
|
||||
inline std::string GetContent() {
|
||||
return this->cnt;
|
||||
}
|
||||
|
||||
void SetContent(const std::string &content);
|
||||
|
||||
inline Color GetContentColor() {
|
||||
return this->cnt_clr;
|
||||
}
|
||||
|
||||
void SetContentColor(const Color content_clr);
|
||||
|
||||
inline Color GetBackgroundColor() {
|
||||
return this->bg_clr;
|
||||
}
|
||||
|
||||
inline void SetBackgroundColor(const Color bg_clr) {
|
||||
this->bg_clr = bg_clr;
|
||||
}
|
||||
|
||||
void SetContentFont(const std::string &font_name);
|
||||
|
||||
inline void SetOnClick(OnClickCallback on_click_cb) {
|
||||
this->on_click_cb = on_click_cb;
|
||||
}
|
||||
|
||||
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override;
|
||||
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override;
|
||||
};
|
||||
|
||||
}
|
@ -1,88 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file Element.hpp
|
||||
@brief An Element is the base of Plutonium UI's content.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/render/render_Renderer.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
class Container;
|
||||
|
||||
}
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
enum class HorizontalAlign {
|
||||
Left,
|
||||
Center,
|
||||
Right
|
||||
};
|
||||
|
||||
enum class VerticalAlign {
|
||||
Up,
|
||||
Center,
|
||||
Down
|
||||
};
|
||||
|
||||
class Element {
|
||||
protected:
|
||||
bool visible;
|
||||
HorizontalAlign h_align;
|
||||
VerticalAlign v_align;
|
||||
Container *parent_container;
|
||||
|
||||
public:
|
||||
Element() : visible(true), h_align(HorizontalAlign::Left), v_align(VerticalAlign::Up), parent_container(nullptr) {}
|
||||
PU_SMART_CTOR(Element)
|
||||
virtual ~Element() {}
|
||||
|
||||
virtual i32 GetX() = 0;
|
||||
virtual i32 GetY() = 0;
|
||||
virtual i32 GetWidth() = 0;
|
||||
virtual i32 GetHeight() = 0;
|
||||
virtual void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) = 0;
|
||||
virtual void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) = 0;
|
||||
|
||||
inline bool IsVisible() {
|
||||
return this->visible;
|
||||
}
|
||||
|
||||
inline void SetVisible(const bool visible) {
|
||||
this->visible = visible;
|
||||
}
|
||||
|
||||
inline void SetHorizontalAlign(const HorizontalAlign align) {
|
||||
this->h_align = align;
|
||||
}
|
||||
|
||||
inline HorizontalAlign GetHorizontalAlign() {
|
||||
return this->h_align;
|
||||
}
|
||||
|
||||
inline void SetVerticalAlign(const VerticalAlign align) {
|
||||
this->v_align = align;
|
||||
}
|
||||
|
||||
inline VerticalAlign GetVerticalAlign() {
|
||||
return this->v_align;
|
||||
}
|
||||
|
||||
inline void SetParentContainer(Container *parent_container) {
|
||||
this->parent_container = parent_container;
|
||||
}
|
||||
|
||||
i32 GetProcessedX();
|
||||
i32 GetProcessedY();
|
||||
};
|
||||
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file Image.hpp
|
||||
@brief An Image is an Element showing a picture. (JPEG, PNG, TGA, BMP)
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
class Image : public Element {
|
||||
private:
|
||||
std::string img_path;
|
||||
sdl2::Texture img_tex;
|
||||
render::TextureRenderOptions rend_opts;
|
||||
i32 x;
|
||||
i32 y;
|
||||
|
||||
public:
|
||||
Image(const i32 x, const i32 y, const std::string &image_path);
|
||||
PU_SMART_CTOR(Image)
|
||||
~Image();
|
||||
|
||||
inline i32 GetX() override {
|
||||
return this->x;
|
||||
}
|
||||
|
||||
inline void SetX(const i32 x) {
|
||||
this->x = x;
|
||||
}
|
||||
|
||||
inline i32 GetY() override {
|
||||
return this->y;
|
||||
}
|
||||
|
||||
inline void SetY(const i32 y) {
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
inline i32 GetWidth() override {
|
||||
return this->rend_opts.width;
|
||||
}
|
||||
|
||||
inline void SetWidth(const i32 width) {
|
||||
this->rend_opts.width = width;
|
||||
}
|
||||
|
||||
inline i32 GetHeight() override {
|
||||
return this->rend_opts.height;
|
||||
}
|
||||
|
||||
inline void SetHeight(const i32 height) {
|
||||
this->rend_opts.height = height;
|
||||
}
|
||||
|
||||
inline float GetRotationAngle() {
|
||||
return this->rend_opts.rot_angle;
|
||||
}
|
||||
|
||||
inline void SetRotationAngle(const float angle) {
|
||||
this->rend_opts.rot_angle = angle;
|
||||
}
|
||||
|
||||
inline std::string GetImagePath() {
|
||||
return this->img_path;
|
||||
}
|
||||
|
||||
void SetImage(const std::string &image_path);
|
||||
|
||||
inline bool IsImageValid() {
|
||||
return this->img_tex != nullptr;
|
||||
}
|
||||
|
||||
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override;
|
||||
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override {}
|
||||
};
|
||||
|
||||
}
|
@ -1,291 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file Menu.hpp
|
||||
@brief A Menu is a very useful Element for option browsing or selecting.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
class MenuItem {
|
||||
public:
|
||||
using OnKeyCallback = std::function<void()>;
|
||||
static constexpr Color DefaultColor = { 10, 10, 10, 0xFF };
|
||||
|
||||
private:
|
||||
std::string name;
|
||||
Color items_clr;
|
||||
std::string icon_path;
|
||||
std::vector<OnKeyCallback> on_key_cbs;
|
||||
std::vector<u64> on_key_cb_keys;
|
||||
|
||||
public:
|
||||
MenuItem(const std::string &name) : name(name), items_clr(DefaultColor) {}
|
||||
PU_SMART_CTOR(MenuItem)
|
||||
|
||||
inline std::string GetName() {
|
||||
return this->name;
|
||||
}
|
||||
|
||||
inline void SetName(const std::string &name) {
|
||||
this->name = name;
|
||||
}
|
||||
|
||||
inline Color GetColor() {
|
||||
return this->items_clr;
|
||||
}
|
||||
|
||||
inline void SetColor(const Color items_clr) {
|
||||
this->items_clr = items_clr;
|
||||
}
|
||||
|
||||
void AddOnKey(OnKeyCallback on_key_cb, const u64 key = HidNpadButton_A);
|
||||
|
||||
inline u32 GetOnKeyCallbackCount() {
|
||||
return this->on_key_cbs.size();
|
||||
}
|
||||
|
||||
inline OnKeyCallback GetOnKeyCallback(const u32 idx) {
|
||||
if(idx < this->on_key_cbs.size()) {
|
||||
return this->on_key_cbs.at(idx);
|
||||
}
|
||||
else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
inline u64 GetOnKeyCallbackKey(const u32 idx) {
|
||||
if(idx < this->on_key_cb_keys.size()) {
|
||||
return this->on_key_cb_keys.at(idx);
|
||||
}
|
||||
else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
inline std::string GetIconPath() {
|
||||
return this->icon_path;
|
||||
}
|
||||
|
||||
void SetIcon(const std::string &icon_path);
|
||||
|
||||
inline bool HasIcon() {
|
||||
return !this->icon_path.empty();
|
||||
}
|
||||
};
|
||||
|
||||
class Menu : public Element {
|
||||
public:
|
||||
static constexpr Color DefaultScrollbarColor = { 110, 110, 110, 0xFF };
|
||||
|
||||
static constexpr u8 ItemAlphaIncrement = 48;
|
||||
|
||||
static constexpr float IconItemSizesFactor = 0.8f;
|
||||
|
||||
static constexpr u32 IconMargin = 25;
|
||||
static constexpr u32 TextMargin = 25;
|
||||
|
||||
static constexpr u8 LightScrollbarColorFactor = 30;
|
||||
|
||||
static constexpr u32 ScrollbarWidth = 20;
|
||||
|
||||
static constexpr u32 ShadowHeight = 5;
|
||||
static constexpr u8 ShadowBaseAlpha = 160;
|
||||
|
||||
using OnSelectionChangedCallback = std::function<void()>;
|
||||
|
||||
private:
|
||||
i32 x;
|
||||
i32 y;
|
||||
i32 w;
|
||||
i32 items_h;
|
||||
u32 items_to_show;
|
||||
u32 selected_item_idx;
|
||||
i32 selected_item_alpha;
|
||||
i32 prev_selected_item_idx;
|
||||
i32 prev_selected_item_alpha;
|
||||
u32 advanced_item_count;
|
||||
Color scrollbar_clr;
|
||||
Color items_clr;
|
||||
Color items_focus_clr;
|
||||
bool cooldown_enabled;
|
||||
bool item_touched;
|
||||
u8 move_mode;
|
||||
std::chrono::time_point<std::chrono::steady_clock> move_start_time;
|
||||
OnSelectionChangedCallback on_selection_changed_cb;
|
||||
std::vector<MenuItem::Ref> items;
|
||||
std::string font_name;
|
||||
std::vector<sdl2::Texture> loaded_name_texs;
|
||||
std::vector<sdl2::Texture> loaded_icon_texs;
|
||||
|
||||
void ReloadItemRenders();
|
||||
|
||||
inline Color MakeItemsFocusColor(const u8 alpha) {
|
||||
return { this->items_focus_clr.r, this->items_focus_clr.g, this->items_focus_clr.b, alpha };
|
||||
}
|
||||
|
||||
inline constexpr Color MakeLighterScrollbarColor() {
|
||||
i32 base_r = this->scrollbar_clr.r - LightScrollbarColorFactor;
|
||||
if(base_r < 0) {
|
||||
base_r = 0;
|
||||
}
|
||||
i32 base_g = this->scrollbar_clr.g - LightScrollbarColorFactor;
|
||||
if(base_g < 0) {
|
||||
base_g = 0;
|
||||
}
|
||||
i32 base_b = this->scrollbar_clr.b - LightScrollbarColorFactor;
|
||||
if(base_b < 0) {
|
||||
base_b = 0;
|
||||
}
|
||||
|
||||
return { static_cast<u8>(base_r), static_cast<u8>(base_g), static_cast<u8>(base_b), this->scrollbar_clr.a };
|
||||
}
|
||||
|
||||
inline void HandleOnSelectionChanged() {
|
||||
if(this->on_selection_changed_cb) {
|
||||
(this->on_selection_changed_cb)();
|
||||
}
|
||||
}
|
||||
|
||||
inline void RunSelectedItemCallback(const u64 keys) {
|
||||
auto item = this->items.at(this->selected_item_idx);
|
||||
const auto cb_count = item->GetOnKeyCallbackCount();
|
||||
for(u32 i = 0; i < cb_count; i++) {
|
||||
if(keys & item->GetOnKeyCallbackKey(i)) {
|
||||
if(!this->cooldown_enabled) {
|
||||
auto cb = item->GetOnKeyCallback(i);
|
||||
if(cb) {
|
||||
cb();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this->cooldown_enabled = false;
|
||||
}
|
||||
|
||||
inline u32 GetItemCount() {
|
||||
auto item_count = this->items_to_show;
|
||||
if(item_count > this->items.size()) {
|
||||
item_count = this->items.size();
|
||||
}
|
||||
if((item_count + this->advanced_item_count) > this->items.size()) {
|
||||
item_count = this->items.size() - this->advanced_item_count;
|
||||
}
|
||||
return item_count;
|
||||
}
|
||||
|
||||
public:
|
||||
Menu(const i32 x, const i32 y, const i32 width, const Color items_clr, const Color items_focus_clr, const i32 items_height, const u32 items_to_show);
|
||||
PU_SMART_CTOR(Menu)
|
||||
|
||||
inline i32 GetX() override {
|
||||
return this->x;
|
||||
}
|
||||
|
||||
inline void SetX(const i32 x) {
|
||||
this->x = x;
|
||||
}
|
||||
|
||||
inline i32 GetY() override {
|
||||
return this->y;
|
||||
}
|
||||
|
||||
inline void SetY(const i32 y) {
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
inline i32 GetWidth() override {
|
||||
return this->w;
|
||||
}
|
||||
|
||||
inline void SetWidth(const i32 width) {
|
||||
this->w = width;
|
||||
}
|
||||
|
||||
inline i32 GetHeight() override {
|
||||
return this->items_h * this->items_to_show;
|
||||
}
|
||||
|
||||
inline i32 GetItemsHeight() {
|
||||
return this->items_h;
|
||||
}
|
||||
|
||||
inline void SetItemsHeight(const i32 items_height) {
|
||||
this->items_h = items_height;
|
||||
}
|
||||
|
||||
inline i32 GetNumberOfItemsToShow() {
|
||||
return this->items_to_show;
|
||||
}
|
||||
|
||||
inline void SetNumberOfItemsToShow(const i32 items_to_show) {
|
||||
this->items_to_show = items_to_show;
|
||||
}
|
||||
|
||||
inline Color GetItemsColor() {
|
||||
return this->items_clr;
|
||||
}
|
||||
|
||||
inline void SetItemsColor(const Color items_clr) {
|
||||
this->items_clr = items_clr;
|
||||
}
|
||||
|
||||
inline Color GetItemsFocusColor() {
|
||||
return this->items_focus_clr;
|
||||
}
|
||||
|
||||
inline void SetItemsFocusColor(const Color items_focus_clr) {
|
||||
this->items_focus_clr = items_focus_clr;
|
||||
}
|
||||
|
||||
inline Color GetScrollbarColor() {
|
||||
return this->scrollbar_clr;
|
||||
}
|
||||
|
||||
inline void SetScrollbarColor(const Color scrollbar_clr) {
|
||||
this->scrollbar_clr = scrollbar_clr;
|
||||
}
|
||||
|
||||
inline void SetOnSelectionChanged(OnSelectionChangedCallback on_selection_changed_cb) {
|
||||
this->on_selection_changed_cb = on_selection_changed_cb;
|
||||
}
|
||||
|
||||
inline void AddItem(MenuItem::Ref &item) {
|
||||
this->items.push_back(item);
|
||||
}
|
||||
|
||||
void ClearItems();
|
||||
|
||||
inline void SetCooldownEnabled(const bool enabled) {
|
||||
this->cooldown_enabled = enabled;
|
||||
}
|
||||
|
||||
inline MenuItem::Ref &GetSelectedItem() {
|
||||
return this->items.at(this->selected_item_idx);
|
||||
}
|
||||
|
||||
inline std::vector<MenuItem::Ref> &GetItems() {
|
||||
return this->items;
|
||||
}
|
||||
|
||||
inline i32 GetSelectedIndex() {
|
||||
return this->selected_item_idx;
|
||||
}
|
||||
|
||||
void SetSelectedIndex(const u32 idx);
|
||||
|
||||
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override;
|
||||
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override;
|
||||
};
|
||||
}
|
@ -1,124 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file ProgressBar.hpp
|
||||
@brief A ProgressBar is an Element which represents a progress (a percentage) by filling a bar.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
class ProgressBar : public Element {
|
||||
public:
|
||||
static constexpr Color DefaultProgressColor = { 139, 195, 74, 255 };
|
||||
static constexpr Color DefaultBackgroundColor = { 140, 140, 140, 255 };
|
||||
|
||||
private:
|
||||
i32 x;
|
||||
i32 y;
|
||||
i32 w;
|
||||
i32 h;
|
||||
double val;
|
||||
double max_val;
|
||||
Color progress_clr;
|
||||
Color bg_clr;
|
||||
|
||||
public:
|
||||
ProgressBar(const i32 x, const i32 y, const i32 width, const i32 height, const double max_val) : Element(), x(x), y(y), w(width), h(height), val(0), max_val(max_val), progress_clr(DefaultProgressColor), bg_clr(DefaultBackgroundColor) {}
|
||||
PU_SMART_CTOR(ProgressBar)
|
||||
|
||||
inline i32 GetX() override {
|
||||
return this->x;
|
||||
}
|
||||
|
||||
inline void SetX(const i32 x) {
|
||||
this->x = x;
|
||||
}
|
||||
|
||||
inline i32 GetY() override {
|
||||
return this->y;
|
||||
}
|
||||
|
||||
inline void SetY(const i32 y) {
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
inline i32 GetWidth() override {
|
||||
return this->w;
|
||||
}
|
||||
|
||||
inline void SetWidth(const i32 width) {
|
||||
this->w = width;
|
||||
}
|
||||
|
||||
inline i32 GetHeight() override {
|
||||
return this->h;
|
||||
}
|
||||
|
||||
inline void SetHeight(const i32 height) {
|
||||
this->h = height;
|
||||
}
|
||||
|
||||
inline Color GetProgressColor() {
|
||||
return this->progress_clr;
|
||||
}
|
||||
|
||||
inline void SetProgressColor(const Color progress_clr) {
|
||||
this->progress_clr = progress_clr;
|
||||
}
|
||||
|
||||
inline Color GetBackgroundColor() {
|
||||
return this->bg_clr;
|
||||
}
|
||||
|
||||
inline void SetBackgroundColor(const Color bg_clr) {
|
||||
this->bg_clr = bg_clr;
|
||||
}
|
||||
|
||||
inline double GetProgress() {
|
||||
return this->val;
|
||||
}
|
||||
|
||||
void SetProgress(const double progress);
|
||||
|
||||
inline void IncrementProgress(const double extra_progress) {
|
||||
this->SetProgress(this->val + extra_progress);
|
||||
}
|
||||
|
||||
inline void DecrementProgress(const double extra_progress) {
|
||||
this->SetProgress(this->val - extra_progress);
|
||||
}
|
||||
|
||||
inline void SetMaxProgress(const double max_progress) {
|
||||
this->max_val = max_progress;
|
||||
}
|
||||
|
||||
inline double GetMaxProgress() {
|
||||
return this->max_val;
|
||||
}
|
||||
|
||||
inline void FillProgress() {
|
||||
this->SetProgress(this->max_val);
|
||||
}
|
||||
|
||||
inline void ClearProgress() {
|
||||
this->SetProgress(0);
|
||||
}
|
||||
|
||||
inline bool IsCompleted() {
|
||||
return this->val == this->max_val;
|
||||
}
|
||||
|
||||
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override;
|
||||
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override {}
|
||||
};
|
||||
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file Rectangle.hpp
|
||||
@brief A Rectangle is an Element which simply draws a filled rectangle.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
class Rectangle : public Element
|
||||
{
|
||||
private:
|
||||
i32 x;
|
||||
i32 y;
|
||||
i32 w;
|
||||
i32 h;
|
||||
Color clr;
|
||||
i32 border_radius;
|
||||
|
||||
public:
|
||||
Rectangle(const i32 x, const i32 y, const i32 width, const i32 height, const Color clr, const i32 border_radius = 0) : Element(), x(x), y(y), w(width), h(height), clr(clr), border_radius(border_radius) {}
|
||||
PU_SMART_CTOR(Rectangle)
|
||||
|
||||
inline i32 GetX() override {
|
||||
return this->x;
|
||||
}
|
||||
|
||||
inline void SetX(const i32 x) {
|
||||
this->x = x;
|
||||
}
|
||||
|
||||
inline i32 GetY() override {
|
||||
return this->y;
|
||||
}
|
||||
|
||||
inline void SetY(const i32 y) {
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
inline i32 GetWidth() override {
|
||||
return this->w;
|
||||
}
|
||||
|
||||
inline void SetWidth(const i32 width) {
|
||||
this->w = width;
|
||||
}
|
||||
|
||||
inline i32 GetHeight() override {
|
||||
return this->h;
|
||||
}
|
||||
|
||||
inline void SetHeight(const i32 height) {
|
||||
this->h = height;
|
||||
}
|
||||
|
||||
inline i32 GetBorderRadius() {
|
||||
return this->border_radius;
|
||||
}
|
||||
|
||||
inline void SetBorderRadius(const i32 border_radius) {
|
||||
this->border_radius = border_radius;
|
||||
}
|
||||
|
||||
|
||||
inline Color GetColor() {
|
||||
return this->clr;
|
||||
}
|
||||
|
||||
inline void SetColor(const Color clr) {
|
||||
this->clr = clr;
|
||||
}
|
||||
|
||||
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override;
|
||||
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override {}
|
||||
};
|
||||
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file TextBlock.hpp
|
||||
@brief A TextBlock is a very useful Element which is used to draw text on the screen.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
class TextBlock : public Element {
|
||||
public:
|
||||
static constexpr Color DefaultColor = { 0, 0, 0, 0xFF };
|
||||
|
||||
private:
|
||||
i32 x;
|
||||
i32 y;
|
||||
Color clr;
|
||||
std::string text;
|
||||
sdl2::Texture text_tex;
|
||||
std::string fnt_name;
|
||||
|
||||
public:
|
||||
TextBlock(const i32 x, const i32 y, const std::string &text);
|
||||
PU_SMART_CTOR(TextBlock)
|
||||
~TextBlock();
|
||||
|
||||
inline i32 GetX() override {
|
||||
return this->x;
|
||||
}
|
||||
|
||||
inline void SetX(const i32 x) {
|
||||
this->x = x;
|
||||
}
|
||||
|
||||
inline i32 GetY() override {
|
||||
return this->y;
|
||||
}
|
||||
|
||||
inline void SetY(const i32 y) {
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
i32 GetWidth() override;
|
||||
i32 GetHeight() override;
|
||||
|
||||
inline std::string GetText() {
|
||||
return this->text;
|
||||
}
|
||||
|
||||
void SetText(const std::string &text);
|
||||
void SetFont(const std::string &font_name);
|
||||
|
||||
inline Color GetColor() {
|
||||
return this->clr;
|
||||
}
|
||||
|
||||
void SetColor(const Color clr);
|
||||
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override;
|
||||
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override {}
|
||||
};
|
||||
|
||||
}
|
@ -1,94 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file Toggle.hpp
|
||||
@brief A Toggle is an Element used to switch between two options by toggling the item.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
class Toggle : public Element {
|
||||
public:
|
||||
static constexpr u32 ContentHorizontalMargin = 30;
|
||||
static constexpr u32 ContentVerticalMargin = 20;
|
||||
|
||||
static constexpr u8 ToggleAlphaIncrement = 48;
|
||||
|
||||
static constexpr Color MakeBackgroundColor(const u8 alpha) {
|
||||
return { 130, 130, 130, alpha };
|
||||
}
|
||||
|
||||
private:
|
||||
i32 x;
|
||||
i32 y;
|
||||
u64 key;
|
||||
bool checked;
|
||||
Color clr;
|
||||
std::string fnt_name;
|
||||
i32 toggle_alpha;
|
||||
std::string cnt;
|
||||
sdl2::Texture cnt_tex;
|
||||
|
||||
public:
|
||||
Toggle(const i32 x, const i32 y, const std::string &content, const u64 toggle_key, const Color clr);
|
||||
PU_SMART_CTOR(Toggle)
|
||||
~Toggle();
|
||||
|
||||
inline i32 GetX() override {
|
||||
return this->x;
|
||||
}
|
||||
|
||||
inline void SetX(const i32 x) {
|
||||
this->x = x;
|
||||
}
|
||||
|
||||
inline i32 GetY() override {
|
||||
return this->y;
|
||||
}
|
||||
|
||||
inline void SetY(const i32 y) {
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
i32 GetWidth() override;
|
||||
i32 GetHeight() override;
|
||||
|
||||
inline std::string GetContent() {
|
||||
return this->cnt;
|
||||
}
|
||||
|
||||
void SetContent(const std::string &content);
|
||||
void SetFont(const std::string &font_name);
|
||||
|
||||
inline Color GetColor() {
|
||||
return this->clr;
|
||||
}
|
||||
|
||||
void SetColor(const Color clr);
|
||||
|
||||
inline u64 GetKey() {
|
||||
return this->key;
|
||||
}
|
||||
|
||||
inline void SetKey(const u64 toggle_key) {
|
||||
this->key = toggle_key;
|
||||
}
|
||||
|
||||
inline bool IsChecked() {
|
||||
return this->checked;
|
||||
}
|
||||
|
||||
void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override;
|
||||
void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override;
|
||||
};
|
||||
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file extras_Toast.hpp
|
||||
@brief An Overlay similar to Android's toast notifications
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/ui_Overlay.hpp>
|
||||
#include <pu/ui/elm/elm_TextBlock.hpp>
|
||||
|
||||
namespace pu::ui::extras {
|
||||
|
||||
class Toast final : public Overlay {
|
||||
public:
|
||||
static constexpr i32 DefaultY = 550;
|
||||
static constexpr i32 HeightAndTextHeightFactor = 3;
|
||||
static constexpr i32 HorizontalMargin = 50;
|
||||
static constexpr u8 BaseAlpha = 200;
|
||||
|
||||
private:
|
||||
pu::ui::elm::TextBlock::Ref text;
|
||||
|
||||
void AdjustDimensions();
|
||||
|
||||
public:
|
||||
Toast(const std::string &text, const std::string &font_name, const Color text_clr, const Color bg_clr);
|
||||
PU_SMART_CTOR(Toast)
|
||||
|
||||
void SetText(const std::string &text);
|
||||
void OnPreRender(render::Renderer::Ref &drawer) override;
|
||||
void OnPostRender(render::Renderer::Ref &drawer) override;
|
||||
};
|
||||
|
||||
}
|
@ -1,199 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file render_Renderer.hpp
|
||||
@brief A Renderer is the object performing basic rendering. (simply, a SDL2 wrapper)
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/ui_Types.hpp>
|
||||
#include <pu/ui/render/render_SDL2.hpp>
|
||||
#include <vector>
|
||||
|
||||
namespace pu::ui::render {
|
||||
|
||||
constexpr u32 ScreenWidth = 1280;
|
||||
constexpr u32 ScreenHeight = 720;
|
||||
|
||||
struct RendererInitOptions {
|
||||
u32 sdl_flags;
|
||||
u32 sdl_render_flags;
|
||||
u32 width;
|
||||
u32 height;
|
||||
bool init_ttf;
|
||||
std::vector<u32> extra_default_font_sizes;
|
||||
std::string default_font_path;
|
||||
bool init_mixer;
|
||||
u32 audio_mixer_flags;
|
||||
bool init_img;
|
||||
u32 sdl_img_flags;
|
||||
bool init_pl;
|
||||
bool init_romfs;
|
||||
|
||||
RendererInitOptions(const u32 sdl_flags, const u32 sdl_render_flags, const u32 w = ScreenWidth, const u32 h = ScreenHeight) : sdl_flags(sdl_flags), sdl_render_flags(sdl_render_flags), width(w), height(h), init_ttf(false), extra_default_font_sizes(), default_font_path(), init_mixer(false), audio_mixer_flags(0), init_img(false), sdl_img_flags(0), init_pl(false), init_romfs(false) {}
|
||||
|
||||
inline void UseTTF(const std::string &default_font_path = "") {
|
||||
this->init_ttf = true;
|
||||
|
||||
// Empty font path = using shared font
|
||||
if(!default_font_path.empty()) {
|
||||
this->default_font_path = default_font_path;
|
||||
}
|
||||
else {
|
||||
this->init_pl = true;
|
||||
}
|
||||
}
|
||||
|
||||
inline void SetExtraDefaultFontSize(const u32 font_size) {
|
||||
this->extra_default_font_sizes.push_back(font_size);
|
||||
}
|
||||
|
||||
inline void UseAudio(const u32 audio_mixer_flags) {
|
||||
this->init_mixer = true;
|
||||
this->audio_mixer_flags = audio_mixer_flags;
|
||||
}
|
||||
|
||||
inline void UseImage(const u32 sdl_img_flags) {
|
||||
this->init_img = true;
|
||||
this->sdl_img_flags = sdl_img_flags;
|
||||
}
|
||||
|
||||
inline void UseRomfs() {
|
||||
this->init_romfs = true;
|
||||
}
|
||||
};
|
||||
|
||||
constexpr u32 MixerAllFlags = MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG;
|
||||
constexpr u32 IMGAllFlags = IMG_INIT_PNG | IMG_INIT_JPG | IMG_INIT_TIF | IMG_INIT_WEBP;
|
||||
constexpr u32 RendererSoftwareFlags = SDL_RENDERER_SOFTWARE;
|
||||
constexpr u32 RendererHardwareFlags = SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED;
|
||||
|
||||
struct TextureRenderOptions {
|
||||
i32 alpha_mod;
|
||||
i32 width;
|
||||
i32 height;
|
||||
float rot_angle;
|
||||
|
||||
static constexpr i32 NoAlpha = -1;
|
||||
static constexpr i32 NoWidth = -1;
|
||||
static constexpr i32 NoHeight = -1;
|
||||
static constexpr float NoRotation = -1.0f;
|
||||
|
||||
static constexpr TextureRenderOptions Default() {
|
||||
return { NoAlpha, NoWidth, NoHeight, NoRotation };
|
||||
}
|
||||
|
||||
static constexpr TextureRenderOptions WithCustomAlpha(const u8 alpha) {
|
||||
return { alpha, NoWidth, NoHeight, NoRotation };
|
||||
}
|
||||
|
||||
static constexpr TextureRenderOptions WithCustomDimensions(const i32 width, const i32 height) {
|
||||
return { NoAlpha, width, height, NoRotation };
|
||||
}
|
||||
|
||||
static constexpr TextureRenderOptions WithCustomAlphaAndDimensions(const u8 alpha, const i32 width, const i32 height) {
|
||||
return { alpha, width, height, NoRotation };
|
||||
}
|
||||
};
|
||||
|
||||
class Renderer {
|
||||
private:
|
||||
RendererInitOptions init_opts;
|
||||
bool ok_romfs;
|
||||
bool ok_pl;
|
||||
bool initialized;
|
||||
i32 base_x;
|
||||
i32 base_y;
|
||||
i32 base_a;
|
||||
|
||||
inline u8 GetActualAlpha(const u8 input_a) {
|
||||
if(this->base_a >= 0) {
|
||||
return static_cast<u8>(this->base_a);
|
||||
}
|
||||
else {
|
||||
return input_a;
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
Renderer(const RendererInitOptions init_opts) : init_opts(init_opts), ok_romfs(false), ok_pl(false), initialized(false), base_x(0), base_y(0), base_a(0) {}
|
||||
PU_SMART_CTOR(Renderer)
|
||||
|
||||
void Initialize();
|
||||
void Finalize();
|
||||
|
||||
inline bool HasInitialized() {
|
||||
return this->initialized;
|
||||
}
|
||||
|
||||
inline bool HasRomFs() {
|
||||
return this->ok_romfs;
|
||||
}
|
||||
|
||||
void InitializeRender(const Color clr);
|
||||
void FinalizeRender();
|
||||
void RenderTexture(sdl2::Texture texture, const i32 x, const i32 y, const TextureRenderOptions opts = TextureRenderOptions::Default());
|
||||
void RenderRectangle(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height);
|
||||
void RenderRectangleFill(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height);
|
||||
|
||||
inline void RenderRectangleOutline(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 border_width) {
|
||||
this->RenderRectangleFill(clr, x - border_width, y - border_width, width + (border_width * 2), height + (border_width * 2));
|
||||
}
|
||||
|
||||
void RenderRoundedRectangle(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 radius);
|
||||
void RenderRoundedRectangleFill(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 radius);
|
||||
void RenderCircle(const Color clr, const i32 x, const i32 y, const i32 radius);
|
||||
void RenderCircleFill(const Color clr, const i32 x, const i32 y, const i32 radius);
|
||||
void RenderShadowSimple(const i32 x, const i32 y, const i32 width, const i32 height, const i32 base_alpha, const u8 main_alpha = 0xFF);
|
||||
|
||||
inline void SetBaseRenderPosition(const i32 x, const i32 y) {
|
||||
this->base_x = x;
|
||||
this->base_y = y;
|
||||
}
|
||||
|
||||
inline void ResetBaseRenderPosition() {
|
||||
this->SetBaseRenderPosition(0, 0);
|
||||
}
|
||||
|
||||
inline void SetBaseRenderAlpha(const u8 alpha) {
|
||||
this->base_a = alpha;
|
||||
}
|
||||
|
||||
inline void ResetBaseRenderAlpha() {
|
||||
this->base_a = -1;
|
||||
}
|
||||
};
|
||||
|
||||
// Global rendering
|
||||
|
||||
sdl2::Renderer GetMainRenderer();
|
||||
sdl2::Window GetMainWindow();
|
||||
sdl2::Surface GetMainSurface();
|
||||
|
||||
std::pair<u32, u32> GetDimensions();
|
||||
|
||||
// Text rendering
|
||||
|
||||
bool AddSharedFont(const std::string &font_name, const u32 font_size, const PlSharedFontType type);
|
||||
bool AddAllSharedFonts(const std::string &font_name, const u32 font_size);
|
||||
bool AddFontFile(const std::string &font_name, const u32 font_size, const std::string &path);
|
||||
|
||||
inline void AddDefaultFontFromShared(const u32 font_size) {
|
||||
AddAllSharedFonts(MakeDefaultFontName(font_size), font_size);
|
||||
}
|
||||
|
||||
inline void AddDefaultFontFromFile(const u32 font_size, const std::string &path) {
|
||||
AddFontFile(MakeDefaultFontName(font_size), font_size, path);
|
||||
}
|
||||
|
||||
sdl2::Texture RenderText(const std::string &font_name, const std::string &text, const Color clr);
|
||||
i32 GetTextWidth(const std::string &font_name, const std::string &text);
|
||||
i32 GetTextHeight(const std::string &font_name, const std::string &text);
|
||||
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file render_SDL2.hpp
|
||||
@brief Wrapper code to simplify SDL2 usage
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/ui_Types.hpp>
|
||||
#include <pu/sdl2/sdl2_Types.hpp>
|
||||
|
||||
namespace pu::ui::render {
|
||||
|
||||
sdl2::Texture ConvertToTexture(sdl2::Surface surface);
|
||||
sdl2::Texture LoadImage(const std::string &path);
|
||||
i32 GetTextureWidth(sdl2::Texture texture);
|
||||
i32 GetTextureHeight(sdl2::Texture texture);
|
||||
void SetAlphaValue(sdl2::Texture texture, const u8 alpha);
|
||||
void DeleteTexture(sdl2::Texture &texture);
|
||||
|
||||
}
|
@ -1,142 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file ui_Application.hpp
|
||||
@brief An Application is the base to use the UI system of this library.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/ui_Dialog.hpp>
|
||||
#include <pu/ui/ui_Layout.hpp>
|
||||
#include <pu/ui/ui_Overlay.hpp>
|
||||
#include <chrono>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
class Application {
|
||||
public:
|
||||
using OnInputCallback = std::function<void(const u64, const u64, const u64, const TouchPoint)>;
|
||||
using RenderCallback = std::function<void()>;
|
||||
using RenderOverFunction = std::function<bool(render::Renderer::Ref&)>;
|
||||
|
||||
static constexpr u8 DefaultFadeAlphaIncrement = 35;
|
||||
|
||||
protected:
|
||||
bool loaded;
|
||||
bool in_render_over;
|
||||
RenderOverFunction render_over_fn;
|
||||
bool is_shown;
|
||||
u8 fade_alpha_increment;
|
||||
i32 fade_alpha;
|
||||
Layout::Ref lyt;
|
||||
Overlay::Ref ovl;
|
||||
u64 ovl_timeout_ms;
|
||||
std::chrono::steady_clock::time_point ovl_start_time;
|
||||
std::vector<RenderCallback> render_cbs;
|
||||
OnInputCallback on_ipt_cb;
|
||||
render::Renderer::Ref renderer;
|
||||
PadState input_pad;
|
||||
|
||||
public:
|
||||
Application(render::Renderer::Ref renderer);
|
||||
PU_SMART_CTOR(Application)
|
||||
|
||||
inline void LoadLayout(Layout::Ref lyt) {
|
||||
this->lyt = lyt;
|
||||
}
|
||||
|
||||
template<typename L>
|
||||
inline std::shared_ptr<L> GetLayout() {
|
||||
static_assert(std::is_base_of_v<ui::Layout, L>);
|
||||
return std::static_pointer_cast<L>(this->lyt);
|
||||
}
|
||||
|
||||
void Prepare();
|
||||
|
||||
// Force create a derived Application class which initializes everything here
|
||||
virtual void OnLoad() = 0;
|
||||
|
||||
inline void AddRenderCallback(RenderCallback render_cb) {
|
||||
this->render_cbs.push_back(render_cb);
|
||||
}
|
||||
|
||||
inline void SetOnInput(OnInputCallback on_ipt_cb) {
|
||||
this->on_ipt_cb = on_ipt_cb;
|
||||
}
|
||||
|
||||
inline i32 ShowDialog(Dialog::Ref &dialog) {
|
||||
return dialog->Show(this);
|
||||
}
|
||||
|
||||
i32 CreateShowDialog(const std::string &title, const std::string &content, const std::vector<std::string> &opts, const bool use_last_opt_as_cancel, const std::string &icon_path = "");
|
||||
|
||||
inline void StartOverlay(Overlay::Ref ovl) {
|
||||
if(this->ovl == nullptr) {
|
||||
this->ovl = ovl;
|
||||
}
|
||||
}
|
||||
|
||||
void StartOverlayWithTimeout(Overlay::Ref ovl, const u64 ms);
|
||||
void EndOverlay();
|
||||
void Show();
|
||||
|
||||
inline void ShowWithFadeIn() {
|
||||
this->FadeIn();
|
||||
this->Show();
|
||||
}
|
||||
|
||||
inline bool IsShown() {
|
||||
return this->is_shown;
|
||||
}
|
||||
|
||||
inline bool CanBeShown() {
|
||||
return this->loaded && (this->lyt != nullptr);
|
||||
}
|
||||
|
||||
bool CallForRender();
|
||||
bool CallForRenderWithRenderOver(RenderOverFunction render_over_fn);
|
||||
void FadeIn();
|
||||
void FadeOut();
|
||||
|
||||
inline bool IsFadedIn() {
|
||||
return this->fade_alpha > 0;
|
||||
}
|
||||
|
||||
inline void SetFadeAlphaIncrement(const u8 fade_alpha_increment) {
|
||||
this->fade_alpha_increment = fade_alpha_increment;
|
||||
}
|
||||
|
||||
void OnRender();
|
||||
void Close();
|
||||
|
||||
inline void CloseWithFadeOut() {
|
||||
this->FadeOut();
|
||||
this->Close();
|
||||
}
|
||||
|
||||
inline u64 GetButtonsDown() {
|
||||
return padGetButtonsDown(&this->input_pad);
|
||||
}
|
||||
|
||||
inline u64 GetButtonsUp() {
|
||||
return padGetButtonsUp(&this->input_pad);
|
||||
}
|
||||
|
||||
inline u64 GetButtonsHeld() {
|
||||
return padGetButtons(&this->input_pad);
|
||||
}
|
||||
|
||||
inline HidTouchScreenState GetTouchState() {
|
||||
HidTouchScreenState state = {};
|
||||
hidGetTouchScreenStates(&state, 1);
|
||||
return state;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
@ -1,88 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file ui_Container.hpp
|
||||
@brief A Container is a basic object which contains a bunch of Elements.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
#include <vector>
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
class Container {
|
||||
protected:
|
||||
i32 x;
|
||||
i32 y;
|
||||
i32 w;
|
||||
i32 h;
|
||||
std::vector<elm::Element::Ref> elems;
|
||||
|
||||
public:
|
||||
Container(const i32 x, const i32 y, const i32 width, const i32 height) : x(x), y(y), w(width), h(height), elems() {}
|
||||
PU_SMART_CTOR(Container)
|
||||
|
||||
inline void Add(elm::Element::Ref elem) {
|
||||
this->elems.push_back(elem);
|
||||
}
|
||||
|
||||
inline elm::Element::Ref &At(const i32 idx) {
|
||||
return this->elems.at(idx);
|
||||
}
|
||||
|
||||
inline bool Has(elm::Element::Ref &elem) {
|
||||
return std::find(this->elems.begin(), this->elems.end(), elem) != this->elems.end();
|
||||
}
|
||||
|
||||
inline void Clear() {
|
||||
this->elems.clear();
|
||||
}
|
||||
|
||||
inline size_t GetCount() {
|
||||
return this->elems.size();
|
||||
}
|
||||
|
||||
inline void SetX(const i32 x) {
|
||||
this->x = x;
|
||||
}
|
||||
|
||||
inline i32 GetX() {
|
||||
return this->x;
|
||||
}
|
||||
|
||||
inline void SetY(const i32 y) {
|
||||
this->y = y;
|
||||
}
|
||||
|
||||
inline i32 GetY() {
|
||||
return this->y;
|
||||
}
|
||||
|
||||
inline void SetWidth(const i32 width) {
|
||||
this->w = width;
|
||||
}
|
||||
|
||||
inline i32 GetWidth() {
|
||||
return this->w;
|
||||
}
|
||||
|
||||
inline void SetHeight(const i32 height) {
|
||||
this->h = height;
|
||||
}
|
||||
|
||||
inline i32 GetHeight() {
|
||||
return this->h;
|
||||
}
|
||||
|
||||
void PreRender();
|
||||
};
|
||||
|
||||
}
|
@ -1,128 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file ui_Dialog.hpp
|
||||
@brief A Dialog is an easy way to ask the user to choose between several options.
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/render/render_Renderer.hpp>
|
||||
#include <vector>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
class Application;
|
||||
|
||||
class Dialog {
|
||||
public:
|
||||
static constexpr Color DefaultTitleColor = { 0xA, 0xA, 0xA, 0xFF };
|
||||
static constexpr Color DefaultContentColor = { 0x14, 0x14, 0x14, 0xFF };
|
||||
static constexpr Color DefaultOptionColor = { 0xA, 0xA, 0xA, 0xFF };
|
||||
|
||||
static constexpr u32 DialogExtraBaseWidth = 250;
|
||||
static constexpr u32 DialogBorderRadius = 35;
|
||||
|
||||
static constexpr u32 SpaceBetweenOptions = 20;
|
||||
|
||||
static constexpr u32 TitleExtraWidth = 90;
|
||||
static constexpr u32 ContentExtraWidth = 90;
|
||||
static constexpr u32 SpaceBetweenContentAndOptions = 140;
|
||||
static constexpr u32 TitleTopMargin = 20;
|
||||
|
||||
static constexpr u32 TitleX = 45;
|
||||
static constexpr u32 TitleY = 55;
|
||||
static constexpr u32 ContentX = 45;
|
||||
static constexpr u32 ContentY = 140;
|
||||
|
||||
static constexpr u32 IconExtraHeight = 25;
|
||||
|
||||
static constexpr u32 OptionsBaseHorizontalMargin = 45;
|
||||
static constexpr u32 OptionHeight = 60;
|
||||
static constexpr u32 OptionHorizontalMargin = 30;
|
||||
static constexpr u32 OptionBorderRadius = OptionHeight / 3;
|
||||
static constexpr u32 OptionBottomMargin = 25;
|
||||
|
||||
static constexpr u8 MaxScreenFadeAlpha = 125;
|
||||
|
||||
static constexpr u32 IconMargin = 30;
|
||||
|
||||
static inline constexpr Color MakeDialogColor(const u8 alpha) {
|
||||
return { 0xE1, 0xE1, 0xE1, alpha };
|
||||
}
|
||||
|
||||
static inline constexpr Color MakeOverColor(const u8 alpha) {
|
||||
return { 0xB4, 0xB4, 0xC8, alpha };
|
||||
}
|
||||
|
||||
static constexpr u8 OverAlphaIncrement = 48;
|
||||
static constexpr u8 FadeAlphaIncrement = 25;
|
||||
|
||||
private:
|
||||
std::string title_font_name;
|
||||
std::string cnt_font_name;
|
||||
std::string opt_font_name;
|
||||
std::string title;
|
||||
std::string cnt;
|
||||
sdl2::Texture title_tex;
|
||||
sdl2::Texture cnt_tex;
|
||||
std::vector<std::string> opts;
|
||||
std::vector<sdl2::Texture> opt_texs;
|
||||
std::string cancel_opt;
|
||||
u32 selected_opt_idx;
|
||||
i32 selected_opt_over_alpha;
|
||||
i32 prev_selected_opt_idx;
|
||||
i32 prev_selected_opt_over_alpha;
|
||||
bool user_cancelled;
|
||||
sdl2::Texture icon_tex;
|
||||
|
||||
public:
|
||||
Dialog(const std::string &title, const std::string &content);
|
||||
PU_SMART_CTOR(Dialog)
|
||||
~Dialog();
|
||||
|
||||
void AddOption(const std::string &opt_name);
|
||||
|
||||
inline void SetCancelOption(const std::string &opt_name) {
|
||||
this->cancel_opt = opt_name;
|
||||
}
|
||||
|
||||
inline void RemoveCancelOption() {
|
||||
this->SetCancelOption("");
|
||||
}
|
||||
|
||||
inline bool HasCancelOption() {
|
||||
return !this->cancel_opt.empty();
|
||||
}
|
||||
|
||||
void SetIcon(const std::string &icon_path);
|
||||
|
||||
inline constexpr bool HasIcon() {
|
||||
return this->icon_tex != nullptr;
|
||||
}
|
||||
|
||||
i32 Show(Application *app_ref);
|
||||
|
||||
inline constexpr bool UserCancelled() {
|
||||
return this->user_cancelled;
|
||||
}
|
||||
|
||||
inline bool IsOk() {
|
||||
if(this->user_cancelled) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(this->HasCancelOption() && (this->selected_opt_idx == (this->opt_texs.size() - 1))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
@ -1,82 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file ui_Layout.hpp
|
||||
@brief Contains pu::Layout class, the object used to render within applications
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/ui_Container.hpp>
|
||||
#include <functional>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
class Layout : public Container {
|
||||
public:
|
||||
using OnInputCallback = std::function<void(const u64, const u64, const u64, const TouchPoint)>;
|
||||
using RenderCallback = std::function<void()>;
|
||||
|
||||
static constexpr Color DefaultBackgroundColor = { 0xE1, 0xE1, 0xE1, 0xFF };
|
||||
|
||||
private:
|
||||
bool has_image;
|
||||
Color over_bg_color;
|
||||
TouchPoint sim_touch_pos;
|
||||
sdl2::Texture over_bg_tex;
|
||||
OnInputCallback on_ipt;
|
||||
std::vector<RenderCallback> render_cbs;
|
||||
|
||||
public:
|
||||
Layout() : Container(0, 0, render::ScreenWidth, render::ScreenHeight), has_image(false), over_bg_color(DefaultBackgroundColor), sim_touch_pos(), over_bg_tex(), on_ipt(), render_cbs() {}
|
||||
PU_SMART_CTOR(Layout)
|
||||
~Layout();
|
||||
|
||||
inline bool HasChildren() {
|
||||
return !this->elems.empty();
|
||||
}
|
||||
|
||||
inline void SetOnInput(OnInputCallback on_ipt_cb) {
|
||||
this->on_ipt = on_ipt_cb;
|
||||
}
|
||||
|
||||
inline OnInputCallback GetOnInput() {
|
||||
return this->on_ipt;
|
||||
}
|
||||
|
||||
inline void AddRenderCallback(RenderCallback render_cb) {
|
||||
this->render_cbs.push_back(render_cb);
|
||||
}
|
||||
|
||||
inline std::vector<RenderCallback> &GetRenderCallbacks() {
|
||||
return this->render_cbs;
|
||||
}
|
||||
|
||||
inline bool HasBackgroundImage() {
|
||||
return this->has_image;
|
||||
}
|
||||
|
||||
inline sdl2::Texture GetBackgroundImageTexture() {
|
||||
return this->over_bg_tex;
|
||||
}
|
||||
|
||||
inline Color GetBackgroundColor() {
|
||||
return this->over_bg_color;
|
||||
}
|
||||
|
||||
void SetBackgroundImage(const std::string &path);
|
||||
void SetBackgroundColor(const Color clr);
|
||||
|
||||
inline void SimulateTouchPosition(const TouchPoint sim_touch_pos) {
|
||||
this->sim_touch_pos = sim_touch_pos;
|
||||
}
|
||||
|
||||
TouchPoint ConsumeSimulatedTouchPosition();
|
||||
};
|
||||
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file ui_Overlay.hpp
|
||||
@brief An overlay is some kind of "pop-up", like notification messages or similar items
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/ui/ui_Container.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
class Overlay : public Container {
|
||||
public:
|
||||
static constexpr i32 DefaultRadius = 25;
|
||||
static constexpr i32 MaxFadeAlpha = 200;
|
||||
static constexpr i32 FadeAlphaVariation = 25;
|
||||
|
||||
private:
|
||||
i32 fade_a;
|
||||
Color bg_clr;
|
||||
i32 rad;
|
||||
bool is_ending;
|
||||
bool round;
|
||||
|
||||
public:
|
||||
Overlay(const i32 x, const i32 y, const i32 width, const i32 height, const Color bg_clr, const bool round = true, const i32 radius = DefaultRadius) : Container(x, y, width, height), fade_a(0), bg_clr(bg_clr), rad(radius), is_ending(false), round(round) {}
|
||||
PU_SMART_CTOR(Overlay)
|
||||
|
||||
inline void SetRadius(const i32 radius) {
|
||||
this->rad = radius;
|
||||
}
|
||||
|
||||
inline i32 GetRadius() {
|
||||
return this->rad;
|
||||
}
|
||||
|
||||
virtual void OnPreRender(render::Renderer::Ref &drawer) {}
|
||||
virtual void OnPostRender(render::Renderer::Ref &drawer) {}
|
||||
bool Render(render::Renderer::Ref &drawer);
|
||||
|
||||
inline void NotifyEnding(const bool ending) {
|
||||
this->is_ending = ending;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
@ -1,82 +0,0 @@
|
||||
|
||||
/*
|
||||
|
||||
Plutonium library
|
||||
|
||||
@file ui_Types.hpp
|
||||
@brief Several basic types helpful for UI and rendering, such as Color
|
||||
@author XorTroll
|
||||
|
||||
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <pu/pu_Include.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
// Font sizes Plutonium components use by default
|
||||
|
||||
enum class DefaultFontSize : u32 {
|
||||
Small,
|
||||
Medium,
|
||||
MediumLarge,
|
||||
Large,
|
||||
|
||||
Count
|
||||
};
|
||||
|
||||
static inline constexpr std::array<u32, static_cast<u32>(DefaultFontSize::Count)> DefaultFontSizes = { 18, 20, 25, 30 };
|
||||
|
||||
inline std::string MakeDefaultFontName(const u32 font_size) {
|
||||
return "DefaultFont@" + std::to_string(font_size);
|
||||
}
|
||||
|
||||
inline constexpr u32 GetDefaultFontSize(const DefaultFontSize kind) {
|
||||
return DefaultFontSizes[static_cast<u32>(kind)];
|
||||
}
|
||||
|
||||
inline std::string GetDefaultFont(const DefaultFontSize kind) {
|
||||
return MakeDefaultFontName(GetDefaultFontSize(kind));
|
||||
}
|
||||
|
||||
struct Color {
|
||||
u8 r;
|
||||
u8 g;
|
||||
u8 b;
|
||||
u8 a;
|
||||
|
||||
constexpr Color() : r(0), g(0), b(0), a(0xFF) {}
|
||||
constexpr Color(const u8 r, const u8 g, const u8 b, const u8 a) : r(r), g(g), b(b), a(a) {}
|
||||
|
||||
static Color FromHex(const std::string &str_clr);
|
||||
};
|
||||
|
||||
static inline constexpr bool TouchHitsRegion(const i32 touch_x, const i32 touch_y, const i32 region_x, const i32 region_y, const i32 region_w, const i32 region_h) {
|
||||
return (touch_x >= region_x) && (touch_x < (region_x + region_w)) && (touch_y >= region_y) && (touch_y < (region_y + region_h));
|
||||
}
|
||||
|
||||
constexpr u64 TouchPseudoKey = HidNpadButton_29;
|
||||
|
||||
struct TouchPoint {
|
||||
i32 x;
|
||||
i32 y;
|
||||
|
||||
constexpr TouchPoint() : x(-1), y(-1) {}
|
||||
constexpr TouchPoint(const u32 x, const u32 y) : x(x), y(y) {}
|
||||
|
||||
inline constexpr bool IsEmpty() const {
|
||||
return (this->x < 0) && (this->y < 0);
|
||||
}
|
||||
|
||||
inline constexpr bool HitsRegion(const i32 region_x, const i32 region_y, const i32 region_w, const i32 region_h) const {
|
||||
if(this->IsEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return TouchHitsRegion(this->x, this->y, region_x, region_y, region_w, region_h);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
#include <pu/audio/audio_Music.hpp>
|
||||
|
||||
namespace pu::audio {
|
||||
|
||||
Music OpenMusic(const std::string &path) {
|
||||
return Mix_LoadMUS(path.c_str());
|
||||
}
|
||||
|
||||
void PlayMusic(Music mus, const i32 loops) {
|
||||
Mix_PlayMusic(mus, loops);
|
||||
}
|
||||
|
||||
void PlayMusicWithFadeIn(Music mus, const i32 loops, const i32 ms) {
|
||||
Mix_FadeInMusic(mus, loops, ms);
|
||||
}
|
||||
|
||||
bool IsPlayingMusic() {
|
||||
return Mix_PlayingMusic();
|
||||
}
|
||||
|
||||
void PauseMusic() {
|
||||
Mix_PauseMusic();
|
||||
}
|
||||
|
||||
void ResumeMusic() {
|
||||
Mix_ResumeMusic();
|
||||
}
|
||||
|
||||
void SetMusicVolume(const i32 vol) {
|
||||
Mix_VolumeMusic(vol);
|
||||
}
|
||||
|
||||
i32 GetMusicVolume() {
|
||||
return Mix_VolumeMusic(-1);
|
||||
}
|
||||
|
||||
void FadeOutMusic(const i32 ms) {
|
||||
Mix_FadeOutMusic(ms);
|
||||
}
|
||||
|
||||
void RewindMusic() {
|
||||
Mix_RewindMusic();
|
||||
}
|
||||
|
||||
void StopMusic() {
|
||||
Mix_HaltMusic();
|
||||
}
|
||||
|
||||
void SetMusicPosition(const double sec) {
|
||||
Mix_SetMusicPosition(sec);
|
||||
}
|
||||
|
||||
void DestroyMusic(Music &mus) {
|
||||
Mix_FreeMusic(mus);
|
||||
mus = nullptr;
|
||||
}
|
||||
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
#include <pu/audio/audio_Sfx.hpp>
|
||||
|
||||
namespace pu::audio {
|
||||
|
||||
Sfx LoadSfx(const std::string &path) {
|
||||
return Mix_LoadWAV(path.c_str());
|
||||
}
|
||||
|
||||
void PlaySfx(Sfx sfx) {
|
||||
Mix_PlayChannel(-1, sfx, 0);
|
||||
}
|
||||
|
||||
void DestroySfx(Sfx &sfx) {
|
||||
Mix_FreeChunk(sfx);
|
||||
sfx = nullptr;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,142 +0,0 @@
|
||||
#include <pu/ttf/ttf_Font.hpp>
|
||||
#include <pu/ui/render/render_Renderer.hpp>
|
||||
#include <pu/ui/render/render_SDL2.hpp>
|
||||
|
||||
namespace pu::ttf {
|
||||
|
||||
namespace {
|
||||
|
||||
void FileBufferFontFaceDisposingFunction(void *ptr) {
|
||||
if(ptr != nullptr) {
|
||||
auto file_buf = reinterpret_cast<u8*>(ptr);
|
||||
delete[] file_buf;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Font::~Font() {
|
||||
for(auto &[idx, font] : this->font_faces) {
|
||||
font->Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
i32 Font::LoadFromMemory(void *ptr, const size_t size, FontFaceDisposingFunction disp_fn) {
|
||||
const auto idx = rand();
|
||||
auto font = std::make_unique<FontFace>(ptr, size, disp_fn, this->font_size, reinterpret_cast<void*>(this));
|
||||
this->font_faces.push_back({ idx, std::move(font) });
|
||||
return idx;
|
||||
}
|
||||
|
||||
i32 Font::LoadFromFile(const std::string &path) {
|
||||
auto f = fopen(path.c_str(), "rb");
|
||||
if(f) {
|
||||
fseek(f, 0, SEEK_END);
|
||||
const auto f_size = ftell(f);
|
||||
rewind(f);
|
||||
if(f_size > 0) {
|
||||
auto font_buf = new u8[f_size]();
|
||||
fread(font_buf, 1, f_size, f);
|
||||
fclose(f);
|
||||
return this->LoadFromMemory(font_buf, f_size, FileBufferFontFaceDisposingFunction);
|
||||
}
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
return InvalidFontFaceIndex;
|
||||
}
|
||||
|
||||
void Font::Unload(const i32 font_idx) {
|
||||
u32 i = 0;
|
||||
for(auto &[idx, font]: this->font_faces) {
|
||||
if(idx == font_idx) {
|
||||
this->font_faces.erase(this->font_faces.begin() + i);
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
sdl2::Font Font::FindValidFontFor(const Uint16 ch) {
|
||||
for(const auto &[idx, font] : this->font_faces) {
|
||||
if(TTF_GlyphIsProvided(font->font, ch)) {
|
||||
return font->font;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
inline void ProcessLineDimensionsImpl(sdl2::Font font, std::string &str, u32 &w, u32 &h) {
|
||||
i32 str_w = 0;
|
||||
i32 str_h = 0;
|
||||
TTF_SizeUTF8(font, str.c_str(), &str_w, &str_h);
|
||||
|
||||
const auto str_w_32 = static_cast<u32>(str_w);
|
||||
const auto str_h_32 = static_cast<u32>(str_h);
|
||||
if(str_w_32 > w) {
|
||||
w = str_w_32;
|
||||
}
|
||||
h += str_h_32;
|
||||
str = "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::pair<u32, u32> Font::GetTextDimensions(const std::string &str) {
|
||||
u32 w = 0;
|
||||
u32 h = 0;
|
||||
auto font = this->TryGetFirstFont();
|
||||
if(font != nullptr) {
|
||||
std::string tmp_line;
|
||||
for(const auto &ch: str) {
|
||||
if(ch == '\n') {
|
||||
ProcessLineDimensionsImpl(font, tmp_line, w, h);
|
||||
}
|
||||
else {
|
||||
tmp_line += ch;
|
||||
}
|
||||
}
|
||||
if(!tmp_line.empty()) {
|
||||
ProcessLineDimensionsImpl(font, tmp_line, w, h);
|
||||
}
|
||||
}
|
||||
return { w, h };
|
||||
}
|
||||
|
||||
sdl2::Texture Font::RenderText(const std::string &str, const ui::Color clr) {
|
||||
auto font = this->TryGetFirstFont();
|
||||
if(font != nullptr) {
|
||||
const auto [w, _] = ui::render::GetDimensions();
|
||||
auto srf = TTF_RenderUTF8_Blended_Wrapped(font, str.c_str(), { clr.r, clr.g, clr.b, clr.a }, w);
|
||||
return ui::render::ConvertToTexture(srf);
|
||||
}
|
||||
else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
pu::sdl2::Font TTF_CppWrap_FindValidFont(pu::sdl2::Font font, Uint16 ch) {
|
||||
if(font != nullptr) {
|
||||
auto raw_font_ptr = TTF_CppWrap_GetCppPtrRef(font);
|
||||
if(raw_font_ptr != nullptr) {
|
||||
auto font_ptr = reinterpret_cast<pu::ttf::Font*>(raw_font_ptr);
|
||||
auto find_font = font_ptr->FindValidFontFor(ch);
|
||||
if(find_font == nullptr) {
|
||||
return font;
|
||||
}
|
||||
else {
|
||||
return find_font;
|
||||
}
|
||||
}
|
||||
}
|
||||
return font;
|
||||
}
|
||||
|
||||
}
|
@ -1,89 +0,0 @@
|
||||
#include <pu/ui/elm/elm_Button.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
Button::Button(const i32 x, const i32 y, const i32 width, const i32 height, const std::string &content, const Color content_clr, const Color bg_clr) : Element::Element() {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
this->w = width;
|
||||
this->h = height;
|
||||
this->cnt = content;
|
||||
this->cnt_clr = content_clr;
|
||||
this->bg_clr = bg_clr;
|
||||
this->hover = false;
|
||||
this->hover_alpha = 0xFF;
|
||||
this->fnt_name = GetDefaultFont(DefaultFontSize::MediumLarge);
|
||||
this->cnt_tex = nullptr;
|
||||
this->SetContent(content);
|
||||
this->on_click_cb = {};
|
||||
}
|
||||
|
||||
Button::~Button() {
|
||||
render::DeleteTexture(this->cnt_tex);
|
||||
}
|
||||
|
||||
void Button::SetContent(const std::string &content) {
|
||||
this->cnt = content;
|
||||
render::DeleteTexture(this->cnt_tex);
|
||||
this->cnt_tex = render::RenderText(this->fnt_name, content, this->cnt_clr);
|
||||
}
|
||||
|
||||
void Button::SetContentColor(const Color content_clr) {
|
||||
this->cnt_clr = content_clr;
|
||||
this->SetContent(this->cnt);
|
||||
}
|
||||
|
||||
void Button::SetContentFont(const std::string &font_name) {
|
||||
this->fnt_name = font_name;
|
||||
this->SetContent(this->cnt);
|
||||
}
|
||||
|
||||
void Button::OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) {
|
||||
drawer->RenderRectangleFill(this->bg_clr, x, y, this->w, this->h);
|
||||
if(this->hover) {
|
||||
if(this->hover_alpha < 0xFF) {
|
||||
const auto hover_bg_clr = this->MakeHoverBackgroundColor(this->hover_alpha);
|
||||
drawer->RenderRectangleFill(hover_bg_clr, x, y, this->w, this->h);
|
||||
this->hover_alpha += HoverAlphaIncrement;
|
||||
}
|
||||
else {
|
||||
this->hover_alpha = 0xFF;
|
||||
const auto darker_bg_clr = this->MakeHoverBackgroundColor(-1);
|
||||
drawer->RenderRectangleFill(darker_bg_clr, x, y, this->w, this->h);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(this->hover_alpha > 0) {
|
||||
const auto hover_bg_clr = this->MakeHoverBackgroundColor(this->hover_alpha);
|
||||
drawer->RenderRectangleFill(hover_bg_clr, x, y, this->w, this->h);
|
||||
this->hover_alpha -= HoverAlphaIncrement;
|
||||
}
|
||||
else {
|
||||
this->hover_alpha = 0;
|
||||
drawer->RenderRectangleFill(this->bg_clr, x, y, this->w, this->h);
|
||||
}
|
||||
}
|
||||
|
||||
const auto cnt_width = render::GetTextureWidth(this->cnt_tex);
|
||||
const auto cnt_height = render::GetTextureHeight(this->cnt_tex);
|
||||
const auto cnt_x = x + ((this->w - cnt_width) / 2);
|
||||
const auto cnt_y = y + ((this->h - cnt_height) / 2);
|
||||
drawer->RenderTexture(this->cnt_tex, cnt_x, cnt_y);
|
||||
}
|
||||
|
||||
void Button::OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) {
|
||||
if(this->hover) {
|
||||
if(touch_pos.IsEmpty()) {
|
||||
(this->on_click_cb)();
|
||||
this->hover = false;
|
||||
this->hover_alpha = 0xFF;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(touch_pos.HitsRegion(this->x, this->y, this->w, this->h)) {
|
||||
this->hover = true;
|
||||
this->hover_alpha = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
#include <pu/ui/elm/elm_Element.hpp>
|
||||
#include <pu/ui/ui_Layout.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
i32 Element::GetProcessedX() {
|
||||
auto x = this->GetX();
|
||||
if(this->parent_container != nullptr) {
|
||||
auto container = reinterpret_cast<Container*>(this->parent_container);
|
||||
x += container->GetX();
|
||||
|
||||
if(this->h_align == HorizontalAlign::Center) {
|
||||
x = container->GetX() + ((container->GetWidth() - this->GetWidth()) / 2);
|
||||
}
|
||||
else if(this->h_align == HorizontalAlign::Right) {
|
||||
x = container->GetX() + (container->GetWidth() - this->GetWidth());
|
||||
}
|
||||
}
|
||||
return x;
|
||||
}
|
||||
|
||||
i32 Element::GetProcessedY() {
|
||||
auto y = this->GetY();
|
||||
if(this->parent_container != nullptr) {
|
||||
auto container = reinterpret_cast<Container*>(this->parent_container);
|
||||
y += container->GetY();
|
||||
|
||||
if(this->v_align == VerticalAlign::Center) {
|
||||
y = container->GetY() + ((container->GetHeight() - this->GetHeight()) / 2);
|
||||
}
|
||||
else if(this->v_align == VerticalAlign::Down) {
|
||||
y = container->GetY() + (container->GetHeight() - this->GetHeight());
|
||||
}
|
||||
}
|
||||
return y;
|
||||
}
|
||||
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
#include <pu/ui/elm/elm_Image.hpp>
|
||||
#include <sys/stat.h>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
Image::Image(const i32 x, const i32 y, const std::string &image_path) : Element::Element() {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
this->img_tex = nullptr;
|
||||
this->rend_opts = render::TextureRenderOptions::Default();
|
||||
this->SetImage(image_path);
|
||||
}
|
||||
|
||||
Image::~Image() {
|
||||
render::DeleteTexture(this->img_tex);
|
||||
}
|
||||
|
||||
void Image::SetImage(const std::string &image_path) {
|
||||
render::DeleteTexture(this->img_tex);
|
||||
|
||||
struct stat st;
|
||||
if(stat(image_path.c_str(), &st) == 0) {
|
||||
this->img_path = image_path;
|
||||
this->img_tex = render::LoadImage(image_path);
|
||||
this->rend_opts.width = render::GetTextureWidth(this->img_tex);
|
||||
this->rend_opts.height = render::GetTextureHeight(this->img_tex);
|
||||
}
|
||||
}
|
||||
|
||||
void Image::OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) {
|
||||
drawer->RenderTexture(this->img_tex, x, y, this->rend_opts);
|
||||
}
|
||||
|
||||
}
|
@ -1,310 +0,0 @@
|
||||
#include <pu/ui/elm/elm_Menu.hpp>
|
||||
#include <sys/stat.h>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
void MenuItem::AddOnKey(OnKeyCallback on_key_cb, const u64 key) {
|
||||
this->on_key_cbs.push_back(on_key_cb);
|
||||
this->on_key_cb_keys.push_back(key);
|
||||
}
|
||||
|
||||
void MenuItem::SetIcon(const std::string &icon_path) {
|
||||
struct stat st;
|
||||
if(stat(icon_path.c_str(), &st) == 0) {
|
||||
this->icon_path = icon_path;
|
||||
}
|
||||
else {
|
||||
this->icon_path = "";
|
||||
}
|
||||
}
|
||||
|
||||
void Menu::ReloadItemRenders() {
|
||||
for(auto &name_tex : this->loaded_name_texs) {
|
||||
render::DeleteTexture(name_tex);
|
||||
}
|
||||
this->loaded_name_texs.clear();
|
||||
for(auto &icon_tex : this->loaded_icon_texs) {
|
||||
render::DeleteTexture(icon_tex);
|
||||
}
|
||||
this->loaded_icon_texs.clear();
|
||||
|
||||
const auto item_count = this->GetItemCount();
|
||||
for(u32 i = this->advanced_item_count; i < (this->advanced_item_count + item_count); i++) {
|
||||
auto &item = this->items.at(i);
|
||||
auto name_tex = render::RenderText(this->font_name, item->GetName(), item->GetColor());
|
||||
this->loaded_name_texs.push_back(name_tex);
|
||||
|
||||
if(item->HasIcon()) {
|
||||
auto icon_tex = render::LoadImage(item->GetIconPath());
|
||||
this->loaded_icon_texs.push_back(icon_tex);
|
||||
}
|
||||
else {
|
||||
this->loaded_icon_texs.push_back(nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Menu::Menu(const i32 x, const i32 y, const i32 width, const Color items_clr, const Color items_focus_clr, const i32 items_height, const u32 items_to_show) : Element::Element() {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
this->w = width;
|
||||
this->items_clr = items_clr;
|
||||
this->scrollbar_clr = DefaultScrollbarColor;
|
||||
this->items_h = items_height;
|
||||
this->items_to_show = items_to_show;
|
||||
this->prev_selected_item_idx = 0;
|
||||
this->selected_item_idx = 0;
|
||||
this->advanced_item_count = 0;
|
||||
this->selected_item_alpha = 0xFF;
|
||||
this->prev_selected_item_alpha = 0;
|
||||
this->on_selection_changed_cb = {};
|
||||
this->cooldown_enabled = false;
|
||||
this->item_touched = false;
|
||||
this->items_focus_clr = items_focus_clr;
|
||||
this->move_mode = 0;
|
||||
this->font_name = GetDefaultFont(DefaultFontSize::MediumLarge);
|
||||
}
|
||||
|
||||
void Menu::ClearItems() {
|
||||
this->items.clear();
|
||||
for(auto &name_tex : this->loaded_name_texs) {
|
||||
render::DeleteTexture(name_tex);
|
||||
}
|
||||
this->loaded_name_texs.clear();
|
||||
for(auto &icon_tex : this->loaded_icon_texs) {
|
||||
render::DeleteTexture(icon_tex);
|
||||
}
|
||||
this->loaded_icon_texs.clear();
|
||||
this->selected_item_idx = 0;
|
||||
this->prev_selected_item_idx = 0;
|
||||
this->advanced_item_count = 0;
|
||||
}
|
||||
|
||||
void Menu::SetSelectedIndex(const u32 idx) {
|
||||
if(idx < this->items.size()) {
|
||||
this->selected_item_idx = idx;
|
||||
this->advanced_item_count = 0;
|
||||
if(this->selected_item_idx >= (this->items.size() - this->items_to_show)) {
|
||||
this->advanced_item_count = this->items.size() - this->items_to_show;
|
||||
}
|
||||
else if(this->selected_item_idx < this->items_to_show) {
|
||||
this->advanced_item_count = 0;
|
||||
}
|
||||
else {
|
||||
this->advanced_item_count = this->selected_item_idx;
|
||||
}
|
||||
|
||||
this->ReloadItemRenders();
|
||||
this->selected_item_alpha = 0xFF;
|
||||
this->prev_selected_item_alpha = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void Menu::OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) {
|
||||
if(!this->items.empty()) {
|
||||
const auto item_count = this->GetItemCount();
|
||||
|
||||
if(this->loaded_name_texs.empty()) {
|
||||
this->ReloadItemRenders();
|
||||
}
|
||||
|
||||
auto cur_item_y = y;
|
||||
for(u32 i = this->advanced_item_count; i < (this->advanced_item_count + item_count); i++) {
|
||||
const auto loaded_tex_idx = i - this->advanced_item_count;
|
||||
auto name_tex = this->loaded_name_texs.at(loaded_tex_idx);
|
||||
auto icon_tex = this->loaded_icon_texs.at(loaded_tex_idx);
|
||||
if(this->selected_item_idx == i) {
|
||||
drawer->RenderRectangleFill(this->items_clr, x, cur_item_y, this->w, this->items_h);
|
||||
if(this->selected_item_alpha < 0xFF) {
|
||||
const auto focus_clr = this->MakeItemsFocusColor(this->selected_item_alpha);
|
||||
drawer->RenderRectangleFill(focus_clr, x, cur_item_y, this->w, this->items_h);
|
||||
this->selected_item_alpha += ItemAlphaIncrement;
|
||||
}
|
||||
else {
|
||||
drawer->RenderRectangleFill(this->items_focus_clr, x, cur_item_y, this->w, this->items_h);
|
||||
}
|
||||
}
|
||||
else if(this->prev_selected_item_idx == static_cast<i32>(i)) {
|
||||
drawer->RenderRectangleFill(this->items_clr, x, cur_item_y, this->w, this->items_h);
|
||||
if(this->prev_selected_item_alpha > 0) {
|
||||
const auto focus_clr = this->MakeItemsFocusColor(this->prev_selected_item_alpha);
|
||||
drawer->RenderRectangleFill(focus_clr, x, cur_item_y, this->w, this->items_h);
|
||||
this->prev_selected_item_alpha -= ItemAlphaIncrement;
|
||||
}
|
||||
else {
|
||||
drawer->RenderRectangleFill(this->items_clr, x, cur_item_y, this->w, this->items_h);
|
||||
}
|
||||
}
|
||||
else {
|
||||
drawer->RenderRectangleFill(this->items_clr, x, cur_item_y, this->w, this->items_h);
|
||||
}
|
||||
|
||||
auto &item = this->items.at(i);
|
||||
const auto name_height = render::GetTextureHeight(name_tex);
|
||||
auto name_x = x + TextMargin;
|
||||
const auto name_y = cur_item_y + ((this->items_h - name_height) / 2);
|
||||
if(item->HasIcon()) {
|
||||
const auto factor = (float)render::GetTextureHeight(icon_tex) / (float)render::GetTextureWidth(icon_tex);
|
||||
auto icon_width = (i32)(this->items_h * IconItemSizesFactor);
|
||||
auto icon_height = icon_width;
|
||||
if(factor < 1) {
|
||||
icon_height = (i32)(icon_width * factor);
|
||||
}
|
||||
else {
|
||||
icon_width = (i32)(icon_height * factor);
|
||||
}
|
||||
|
||||
const auto icon_x = x + IconMargin;
|
||||
const auto icon_y = cur_item_y + (this->items_h - icon_height) / 2;
|
||||
name_x = icon_x + icon_width + TextMargin;
|
||||
drawer->RenderTexture(icon_tex, icon_x, icon_y, render::TextureRenderOptions::WithCustomDimensions(icon_width, icon_height));
|
||||
}
|
||||
drawer->RenderTexture(name_tex, name_x, name_y);
|
||||
cur_item_y += this->items_h;
|
||||
}
|
||||
|
||||
if(this->items_to_show < this->items.size()) {
|
||||
const auto scrollbar_x = x + (this->w - ScrollbarWidth);
|
||||
const auto scrollbar_height = this->GetHeight();
|
||||
drawer->RenderRectangleFill(this->scrollbar_clr, scrollbar_x, y, ScrollbarWidth, scrollbar_height);
|
||||
|
||||
const auto light_scrollbar_clr = this->MakeLighterScrollbarColor();
|
||||
const auto scrollbar_front_height = (this->items_to_show * scrollbar_height) / this->items.size();
|
||||
const auto scrollbar_front_y = y + (this->advanced_item_count * (scrollbar_height / this->items.size()));
|
||||
drawer->RenderRectangleFill(light_scrollbar_clr, scrollbar_x, scrollbar_front_y, ScrollbarWidth, scrollbar_front_height);
|
||||
}
|
||||
drawer->RenderShadowSimple(x, cur_item_y, this->w, ShadowHeight, ShadowBaseAlpha);
|
||||
}
|
||||
}
|
||||
|
||||
void Menu::OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) {
|
||||
if(this->items.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(this->move_mode == 1) {
|
||||
const auto cur_time = std::chrono::steady_clock::now();
|
||||
const auto time_diff_ms = std::chrono::duration_cast<std::chrono::milliseconds>(cur_time - this->move_start_time).count();
|
||||
if(time_diff_ms >= 150) {
|
||||
this->move_mode = 2;
|
||||
}
|
||||
}
|
||||
if(!touch_pos.IsEmpty()) {
|
||||
const auto x = this->GetProcessedX();
|
||||
auto cur_item_y = this->GetProcessedY();
|
||||
const auto item_count = this->GetItemCount();
|
||||
for(u32 i = this->advanced_item_count; i < (this->advanced_item_count + item_count); i++) {
|
||||
if(touch_pos.HitsRegion(x, cur_item_y, this->w, this->items_h)) {
|
||||
this->item_touched = true;
|
||||
this->prev_selected_item_idx = this->selected_item_idx;
|
||||
this->selected_item_idx = i;
|
||||
this->HandleOnSelectionChanged();
|
||||
if(i == this->selected_item_idx) {
|
||||
this->selected_item_alpha = 0xFF;
|
||||
}
|
||||
else if(static_cast<i32>(i) == this->prev_selected_item_idx) {
|
||||
this->prev_selected_item_alpha = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
cur_item_y += this->items_h;
|
||||
}
|
||||
}
|
||||
else if(this->item_touched) {
|
||||
if((this->selected_item_alpha >= 0xFF) && (this->prev_selected_item_alpha <= 0)) {
|
||||
if(this->cooldown_enabled) {
|
||||
this->cooldown_enabled = false;
|
||||
}
|
||||
else {
|
||||
this->RunSelectedItemCallback(TouchPseudoKey);
|
||||
}
|
||||
this->item_touched = false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(keys_down & HidNpadButton_AnyDown) {
|
||||
auto move = true;
|
||||
if(keys_held & HidNpadButton_StickRDown) {
|
||||
move = false;
|
||||
if(this->move_mode == 0) {
|
||||
this->move_start_time = std::chrono::steady_clock::now();
|
||||
this->move_mode = 1;
|
||||
}
|
||||
else if(move_mode == 2) {
|
||||
this->move_mode = 0;
|
||||
move = true;
|
||||
}
|
||||
}
|
||||
if(move) {
|
||||
if(!this->items.empty() && (this->selected_item_idx < (this->items.size() - 1))) {
|
||||
if((this->selected_item_idx - this->advanced_item_count) == (this->items_to_show - 1)) {
|
||||
this->advanced_item_count++;
|
||||
this->selected_item_idx++;
|
||||
this->HandleOnSelectionChanged();
|
||||
this->ReloadItemRenders();
|
||||
}
|
||||
else {
|
||||
this->prev_selected_item_idx = this->selected_item_idx;
|
||||
this->selected_item_idx++;
|
||||
this->HandleOnSelectionChanged();
|
||||
|
||||
this->selected_item_alpha = 0;
|
||||
this->prev_selected_item_alpha = 0xFF;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this->selected_item_idx = 0;
|
||||
this->advanced_item_count = 0;
|
||||
if(this->items.size() >= this->items_to_show) {
|
||||
this->ReloadItemRenders();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(keys_down & HidNpadButton_AnyUp) {
|
||||
auto move = true;
|
||||
if(keys_held & HidNpadButton_StickRUp) {
|
||||
move = false;
|
||||
if(this->move_mode == 0) {
|
||||
this->move_start_time = std::chrono::steady_clock::now();
|
||||
this->move_mode = 1;
|
||||
}
|
||||
else if(this->move_mode == 2) {
|
||||
this->move_mode = 0;
|
||||
move = true;
|
||||
}
|
||||
}
|
||||
if(move) {
|
||||
if(this->selected_item_idx > 0) {
|
||||
if(this->selected_item_idx == this->advanced_item_count) {
|
||||
this->advanced_item_count--;
|
||||
this->selected_item_idx--;
|
||||
this->HandleOnSelectionChanged();
|
||||
this->ReloadItemRenders();
|
||||
}
|
||||
else {
|
||||
this->prev_selected_item_idx = this->selected_item_idx;
|
||||
this->selected_item_idx--;
|
||||
this->HandleOnSelectionChanged();
|
||||
|
||||
this->selected_item_alpha = 0;
|
||||
this->prev_selected_item_alpha = 0xFF;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this->selected_item_idx = this->items.size() - 1;
|
||||
this->advanced_item_count = 0;
|
||||
if(this->items.size() >= this->items_to_show) {
|
||||
this->advanced_item_count = this->items.size() - this->items_to_show;
|
||||
this->ReloadItemRenders();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
this->RunSelectedItemCallback(keys_down);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
#include <pu/ui/elm/elm_ProgressBar.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
void ProgressBar::SetProgress(const double progress) {
|
||||
if(progress >= this->max_val) {
|
||||
this->val = this->max_val;
|
||||
}
|
||||
else {
|
||||
this->val = progress;
|
||||
}
|
||||
}
|
||||
|
||||
void ProgressBar::OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) {
|
||||
const auto progress_width = (i32)((this->val / this->max_val) * (double)this->w);
|
||||
// TODO: set radius?
|
||||
const auto radius = (this->h / 3);
|
||||
drawer->RenderRoundedRectangleFill(this->bg_clr, x, y, this->w, this->h, radius);
|
||||
drawer->RenderRoundedRectangleFill(this->progress_clr, x, y, progress_width, this->h, radius);
|
||||
}
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
#include <pu/ui/elm/elm_Rectangle.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
void Rectangle::OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) {
|
||||
drawer->RenderRectangleFill(this->clr, x, y, this->w, this->h);
|
||||
}
|
||||
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
#include <pu/ui/elm/elm_TextBlock.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
TextBlock::TextBlock(const i32 x, const i32 y, const std::string &text) : Element::Element() {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
this->clr = DefaultColor;
|
||||
this->text_tex = nullptr;
|
||||
this->fnt_name = GetDefaultFont(DefaultFontSize::MediumLarge);
|
||||
this->SetText(text);
|
||||
}
|
||||
|
||||
TextBlock::~TextBlock() {
|
||||
render::DeleteTexture(this->text_tex);
|
||||
}
|
||||
|
||||
i32 TextBlock::GetWidth() {
|
||||
return render::GetTextureWidth(this->text_tex);
|
||||
}
|
||||
|
||||
i32 TextBlock::GetHeight() {
|
||||
return render::GetTextureHeight(this->text_tex);
|
||||
}
|
||||
|
||||
void TextBlock::SetText(const std::string &text) {
|
||||
this->text = text;
|
||||
render::DeleteTexture(this->text_tex);
|
||||
this->text_tex = render::RenderText(this->fnt_name, text, this->clr);
|
||||
}
|
||||
|
||||
void TextBlock::SetFont(const std::string &font_name) {
|
||||
this->fnt_name = font_name;
|
||||
this->SetText(this->text);
|
||||
}
|
||||
|
||||
void TextBlock::SetColor(const Color clr) {
|
||||
this->clr = clr;
|
||||
this->SetText(this->text);
|
||||
}
|
||||
|
||||
void TextBlock::OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) {
|
||||
drawer->RenderTexture(this->text_tex, x, y);
|
||||
}
|
||||
|
||||
}
|
@ -1,80 +0,0 @@
|
||||
#include <pu/ui/elm/elm_Toggle.hpp>
|
||||
|
||||
namespace pu::ui::elm {
|
||||
|
||||
Toggle::Toggle(const i32 x, const i32 y, const std::string &content, const u64 toggle_key, const Color clr) : Element::Element() {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
this->key = toggle_key;
|
||||
this->clr = clr;
|
||||
this->cnt_tex = nullptr;
|
||||
this->fnt_name = GetDefaultFont(DefaultFontSize::MediumLarge);
|
||||
this->toggle_alpha = 0xFF;
|
||||
this->checked = false;
|
||||
this->SetContent(content);
|
||||
}
|
||||
|
||||
Toggle::~Toggle() {
|
||||
render::DeleteTexture(this->cnt_tex);
|
||||
}
|
||||
|
||||
i32 Toggle::GetWidth() {
|
||||
return render::GetTextureWidth(this->cnt_tex) + 2 * ContentHorizontalMargin;
|
||||
}
|
||||
|
||||
i32 Toggle::GetHeight() {
|
||||
return render::GetTextureHeight(this->cnt_tex) + 2 * ContentVerticalMargin;
|
||||
}
|
||||
|
||||
void Toggle::SetContent(const std::string &content) {
|
||||
this->cnt = content;
|
||||
render::DeleteTexture(this->cnt_tex);
|
||||
this->cnt_tex = render::RenderText(this->fnt_name, content, this->clr);
|
||||
}
|
||||
|
||||
void Toggle::SetFont(const std::string &font_name) {
|
||||
this->fnt_name = font_name;
|
||||
this->SetContent(this->cnt);
|
||||
}
|
||||
|
||||
void Toggle::SetColor(const Color clr) {
|
||||
this->clr = clr;
|
||||
this->SetContent(this->cnt);
|
||||
}
|
||||
|
||||
void Toggle::OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) {
|
||||
const auto bg_width = this->GetWidth();
|
||||
const auto bg_height = this->GetHeight();
|
||||
const auto cnt_x = x + ContentHorizontalMargin;
|
||||
const auto cnt_y = y + ContentVerticalMargin;
|
||||
if(this->checked) {
|
||||
drawer->RenderRectangleFill(MakeBackgroundColor(0xFF), x, y, bg_width, bg_height);
|
||||
if(this->toggle_alpha < 0xFF) {
|
||||
drawer->RenderRectangleFill(MakeBackgroundColor(0xFF - this->toggle_alpha), x, y, bg_width, bg_height);
|
||||
this->toggle_alpha += ToggleAlphaIncrement;
|
||||
}
|
||||
else {
|
||||
drawer->RenderRectangleFill(MakeBackgroundColor(0xFF), x, y, bg_width, bg_height);
|
||||
}
|
||||
}
|
||||
else {
|
||||
drawer->RenderRectangleFill(this->clr, x, y, bg_width, bg_height);
|
||||
if(this->toggle_alpha > 0)
|
||||
{
|
||||
drawer->RenderRectangleFill(MakeBackgroundColor(this->toggle_alpha), x, y, bg_width, bg_height);
|
||||
this->toggle_alpha -= ToggleAlphaIncrement;
|
||||
}
|
||||
else {
|
||||
drawer->RenderRectangleFill(this->clr, x, y, bg_width, bg_height);
|
||||
}
|
||||
}
|
||||
drawer->RenderTexture(this->cnt_tex, cnt_x, cnt_y);
|
||||
}
|
||||
|
||||
void Toggle::OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) {
|
||||
if((keys_down & this->key) || ((this->key == TouchPseudoKey) && touch_pos.HitsRegion(this->x, this->y, this->GetWidth(), this->GetHeight()))) {
|
||||
this->checked = !this->checked;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
#include <pu/ui/extras/extras_Toast.hpp>
|
||||
|
||||
namespace pu::ui::extras {
|
||||
|
||||
Toast::Toast(const std::string &text, const std::string &font_name, const Color text_clr, const Color bg_clr) : Overlay(0, DefaultY, 0, 0, bg_clr) {
|
||||
this->text = elm::TextBlock::New(0, 0, text);
|
||||
this->text->SetFont(font_name);
|
||||
this->text->SetColor(text_clr);
|
||||
this->text->SetHorizontalAlign(elm::HorizontalAlign::Center);
|
||||
this->text->SetVerticalAlign(elm::VerticalAlign::Center);
|
||||
this->AdjustDimensions();
|
||||
this->Add(this->text);
|
||||
}
|
||||
|
||||
void Toast::AdjustDimensions() {
|
||||
const auto text_width = this->text->GetWidth();
|
||||
const auto text_height = this->text->GetHeight();
|
||||
const auto toast_width = text_width + 2 * HorizontalMargin;
|
||||
const auto toast_height = text_height * HeightAndTextHeightFactor;
|
||||
this->SetX((render::ScreenWidth - toast_width) / 2);
|
||||
this->SetWidth(toast_width);
|
||||
this->SetHeight(toast_height);
|
||||
}
|
||||
|
||||
void Toast::SetText(const std::string &text) {
|
||||
this->text->SetText(text);
|
||||
this->AdjustDimensions();
|
||||
}
|
||||
|
||||
void Toast::OnPreRender(render::Renderer::Ref &drawer) {
|
||||
drawer->SetBaseRenderAlpha(BaseAlpha);
|
||||
}
|
||||
|
||||
void Toast::OnPostRender(render::Renderer::Ref &drawer) {
|
||||
drawer->ResetBaseRenderAlpha();
|
||||
}
|
||||
|
||||
}
|
@ -1,349 +0,0 @@
|
||||
#include <pu/ui/render/render_Renderer.hpp>
|
||||
#include <pu/ttf/ttf_Font.hpp>
|
||||
|
||||
namespace pu::ui::render {
|
||||
|
||||
namespace {
|
||||
|
||||
// Global rendering vars
|
||||
sdl2::Renderer g_Renderer = nullptr;
|
||||
sdl2::Window g_Window = nullptr;
|
||||
sdl2::Surface g_WindowSurface = nullptr;
|
||||
|
||||
// Global font object
|
||||
std::vector<std::pair<std::string, std::shared_ptr<ttf::Font>>> g_FontTable;
|
||||
|
||||
inline bool DoAddSharedFont(std::shared_ptr<ttf::Font> &font, const PlSharedFontType type) {
|
||||
// Let's assume pl services are initialized, and return if anything unexpected happens
|
||||
PlFontData data = {};
|
||||
if(R_FAILED(plGetSharedFontByType(&data, type))) {
|
||||
return false;
|
||||
}
|
||||
if(!ttf::Font::IsValidFontFaceIndex(font->LoadFromMemory(data.address, data.size, ttf::Font::EmptyFontFaceDisposingFunction))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
inline bool ExistsFont(const std::string &font_name) {
|
||||
for(const auto &[name, font]: g_FontTable) {
|
||||
if(name == font_name) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Renderer::Initialize() {
|
||||
if(!this->initialized) {
|
||||
if(this->init_opts.init_romfs) {
|
||||
this->ok_romfs = R_SUCCEEDED(romfsInit());
|
||||
}
|
||||
|
||||
if(this->init_opts.init_pl) {
|
||||
// TODO: choose pl service type?
|
||||
this->ok_pl = R_SUCCEEDED(plInitialize(PlServiceType_User));
|
||||
}
|
||||
|
||||
// TODO: check sdl return errcodes!
|
||||
|
||||
SDL_Init(this->init_opts.sdl_flags);
|
||||
g_Window = SDL_CreateWindow("Plutonium-SDL2", 0, 0, this->init_opts.width, this->init_opts.height, 0);
|
||||
g_Renderer = SDL_CreateRenderer(g_Window, -1, this->init_opts.sdl_render_flags);
|
||||
g_WindowSurface = SDL_GetWindowSurface(g_Window);
|
||||
SDL_SetRenderDrawBlendMode(g_Renderer, SDL_BLENDMODE_BLEND);
|
||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "2");
|
||||
|
||||
if(this->init_opts.init_img) {
|
||||
IMG_Init(this->init_opts.sdl_img_flags);
|
||||
}
|
||||
|
||||
if(this->init_opts.init_ttf) {
|
||||
TTF_Init();
|
||||
if(!this->init_opts.default_font_path.empty()) {
|
||||
for(const auto size: DefaultFontSizes) {
|
||||
AddDefaultFontFromFile(size, this->init_opts.default_font_path);
|
||||
}
|
||||
for(const auto size: this->init_opts.extra_default_font_sizes) {
|
||||
AddDefaultFontFromFile(size, this->init_opts.default_font_path);
|
||||
}
|
||||
}
|
||||
else {
|
||||
for(const auto size: DefaultFontSizes) {
|
||||
AddDefaultFontFromShared(size);
|
||||
}
|
||||
for(const auto size: this->init_opts.extra_default_font_sizes) {
|
||||
AddDefaultFontFromShared(size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(this->init_opts.init_mixer) {
|
||||
Mix_Init(this->init_opts.audio_mixer_flags);
|
||||
Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 4096);
|
||||
}
|
||||
|
||||
this->initialized = true;
|
||||
this->base_a = TextureRenderOptions::NoAlpha;
|
||||
this->base_x = 0;
|
||||
this->base_y = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void Renderer::Finalize() {
|
||||
if(this->initialized) {
|
||||
// Close all the fonts before closing TTF
|
||||
g_FontTable.clear();
|
||||
|
||||
if(this->init_opts.init_ttf) {
|
||||
TTF_Quit();
|
||||
}
|
||||
if(this->init_opts.init_img) {
|
||||
IMG_Quit();
|
||||
}
|
||||
if(this->init_opts.init_mixer) {
|
||||
Mix_CloseAudio();
|
||||
}
|
||||
if(this->ok_pl) {
|
||||
plExit();
|
||||
}
|
||||
if(this->ok_romfs) {
|
||||
romfsExit();
|
||||
}
|
||||
SDL_DestroyRenderer(g_Renderer);
|
||||
SDL_FreeSurface(g_WindowSurface);
|
||||
SDL_DestroyWindow(g_Window);
|
||||
SDL_Quit();
|
||||
this->initialized = false;
|
||||
}
|
||||
}
|
||||
|
||||
void Renderer::InitializeRender(const Color clr) {
|
||||
SDL_SetRenderDrawColor(g_Renderer, clr.r, clr.g, clr.b, clr.a);
|
||||
SDL_RenderClear(g_Renderer);
|
||||
}
|
||||
|
||||
void Renderer::FinalizeRender() {
|
||||
SDL_RenderPresent(g_Renderer);
|
||||
}
|
||||
|
||||
void Renderer::RenderTexture(sdl2::Texture texture, const i32 x, const i32 y, const TextureRenderOptions opts) {
|
||||
if(texture == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
SDL_Rect pos = {
|
||||
.x = x + this->base_x,
|
||||
.y = y + this->base_y
|
||||
};
|
||||
if(opts.width != TextureRenderOptions::NoWidth) {
|
||||
pos.w = opts.width;
|
||||
}
|
||||
else {
|
||||
SDL_QueryTexture(texture, nullptr, nullptr, &pos.w, nullptr);
|
||||
}
|
||||
if(opts.height != TextureRenderOptions::NoHeight) {
|
||||
pos.h = opts.height;
|
||||
}
|
||||
else {
|
||||
SDL_QueryTexture(texture, nullptr, nullptr, nullptr, &pos.h);
|
||||
}
|
||||
|
||||
float angle = 0;
|
||||
if(opts.rot_angle != TextureRenderOptions::NoRotation) {
|
||||
angle = opts.rot_angle;
|
||||
}
|
||||
if(opts.alpha_mod != TextureRenderOptions::NoAlpha) {
|
||||
SetAlphaValue(texture, static_cast<u8>(opts.alpha_mod));
|
||||
}
|
||||
if(this->base_a >= 0) {
|
||||
SetAlphaValue(texture, static_cast<u8>(this->base_a));
|
||||
}
|
||||
SDL_RenderCopyEx(g_Renderer, texture, nullptr, &pos, angle, nullptr, SDL_FLIP_NONE);
|
||||
}
|
||||
|
||||
void Renderer::RenderRectangle(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height) {
|
||||
const SDL_Rect rect = {
|
||||
.x = x + this->base_x,
|
||||
.y = y + this->base_y,
|
||||
.w = width,
|
||||
.h = height
|
||||
};
|
||||
SDL_SetRenderDrawColor(g_Renderer, clr.r, clr.g, clr.b, this->GetActualAlpha(clr.a));
|
||||
SDL_RenderDrawRect(g_Renderer, &rect);
|
||||
}
|
||||
|
||||
void Renderer::RenderRectangleFill(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height) {
|
||||
const SDL_Rect rect = {
|
||||
.x = x + this->base_x,
|
||||
.y = y + this->base_y,
|
||||
.w = width,
|
||||
.h = height
|
||||
};
|
||||
SDL_SetRenderDrawColor(g_Renderer, clr.r, clr.g, clr.b, this->GetActualAlpha(clr.a));
|
||||
SDL_RenderFillRect(g_Renderer, &rect);
|
||||
}
|
||||
|
||||
void Renderer::RenderRoundedRectangle(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 radius) {
|
||||
auto proper_radius = radius;
|
||||
if((2 * proper_radius) > width) {
|
||||
proper_radius = width / 2;
|
||||
}
|
||||
if((2 * proper_radius) > height) {
|
||||
proper_radius = height / 2;
|
||||
}
|
||||
|
||||
roundedRectangleRGBA(g_Renderer, x + this->base_x, y + this->base_y, x + this->base_x + width, y + this->base_y + height, proper_radius, clr.r, clr.g, clr.b, this->GetActualAlpha(clr.a));
|
||||
SDL_SetRenderDrawBlendMode(g_Renderer, SDL_BLENDMODE_BLEND);
|
||||
}
|
||||
|
||||
void Renderer::RenderRoundedRectangleFill(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 radius) {
|
||||
auto proper_radius = radius;
|
||||
if((2 * proper_radius) > width) {
|
||||
proper_radius = width / 2;
|
||||
}
|
||||
if((2 * proper_radius) > height) {
|
||||
proper_radius = height / 2;
|
||||
}
|
||||
|
||||
roundedBoxRGBA(g_Renderer, x + this->base_x, y + this->base_y, x + this->base_x + width, y + this->base_y + height, proper_radius, clr.r, clr.g, clr.b, this->GetActualAlpha(clr.a));
|
||||
SDL_SetRenderDrawBlendMode(g_Renderer, SDL_BLENDMODE_BLEND);
|
||||
}
|
||||
|
||||
void Renderer::RenderCircle(const Color clr, const i32 x, const i32 y, const i32 radius) {
|
||||
circleRGBA(g_Renderer, x + this->base_x, y + this->base_y, radius - 1, clr.r, clr.g, clr.b, this->GetActualAlpha(clr.a));
|
||||
aacircleRGBA(g_Renderer, x + this->base_x, y + this->base_y, radius - 1, clr.r, clr.g, clr.b, this->GetActualAlpha(clr.a));
|
||||
}
|
||||
|
||||
void Renderer::RenderCircleFill(const Color clr, const i32 x, const i32 y, const i32 radius) {
|
||||
filledCircleRGBA(g_Renderer, x + this->base_x, y + this->base_y, radius - 1, clr.r, clr.g, clr.b, this->GetActualAlpha(clr.a));
|
||||
aacircleRGBA(g_Renderer, x + this->base_x, y + this->base_y, radius - 1, clr.r, clr.g, clr.b, this->GetActualAlpha(clr.a));
|
||||
}
|
||||
|
||||
void Renderer::RenderShadowSimple(const i32 x, const i32 y, const i32 width, const i32 height, const i32 base_alpha, const u8 main_alpha) {
|
||||
auto crop = false;
|
||||
auto shadow_width = width;
|
||||
auto shadow_x = x;
|
||||
auto shadow_y = y;
|
||||
for(auto cur_a = base_alpha; cur_a > 0; cur_a -= (180 / height)) {
|
||||
const Color shadow_clr = { 130, 130, 130, static_cast<u8>(cur_a * (main_alpha / 0xFF)) };
|
||||
this->RenderRectangleFill(shadow_clr, shadow_x + this->base_x, shadow_y + this->base_y, shadow_width, 1);
|
||||
if(crop) {
|
||||
shadow_width -= 2;
|
||||
shadow_x++;
|
||||
}
|
||||
crop = !crop;
|
||||
shadow_y++;
|
||||
}
|
||||
}
|
||||
|
||||
sdl2::Renderer GetMainRenderer() {
|
||||
return g_Renderer;
|
||||
}
|
||||
|
||||
sdl2::Window GetMainWindow() {
|
||||
return g_Window;
|
||||
}
|
||||
|
||||
sdl2::Surface GetMainSurface() {
|
||||
return g_WindowSurface;
|
||||
}
|
||||
|
||||
std::pair<u32, u32> GetDimensions() {
|
||||
i32 w = 0;
|
||||
i32 h = 0;
|
||||
SDL_GetWindowSize(g_Window, &w, &h);
|
||||
return { static_cast<u32>(w), static_cast<u32>(h) };
|
||||
}
|
||||
|
||||
bool AddSharedFont(const std::string &font_name, const u32 font_size, const PlSharedFontType type) {
|
||||
if(ExistsFont(font_name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto font = std::make_shared<ttf::Font>(font_size);
|
||||
if(!DoAddSharedFont(font, type)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
g_FontTable.push_back(std::make_pair(font_name, std::move(font)));
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AddAllSharedFonts(const std::string &font_name, const u32 font_size) {
|
||||
if(ExistsFont(font_name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto font = std::make_shared<ttf::Font>(font_size);
|
||||
if(!DoAddSharedFont(font, PlSharedFontType_Standard)) {
|
||||
return false;
|
||||
}
|
||||
if(!DoAddSharedFont(font, PlSharedFontType_NintendoExt)) {
|
||||
return false;
|
||||
}
|
||||
if(!DoAddSharedFont(font, PlSharedFontType_ChineseSimplified)) {
|
||||
return false;
|
||||
}
|
||||
if(!DoAddSharedFont(font, PlSharedFontType_ExtChineseSimplified)) {
|
||||
return false;
|
||||
}
|
||||
if(!DoAddSharedFont(font, PlSharedFontType_ChineseTraditional)) {
|
||||
return false;
|
||||
}
|
||||
if(!DoAddSharedFont(font, PlSharedFontType_KO)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
g_FontTable.push_back(std::make_pair(font_name, std::move(font)));
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AddFontFile(const std::string &font_name, const u32 font_size, const std::string &path) {
|
||||
if(ExistsFont(font_name)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto font = std::make_shared<ttf::Font>(font_size);
|
||||
if(!ttf::Font::IsValidFontFaceIndex(font->LoadFromFile(path))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
g_FontTable.push_back(std::make_pair(font_name, std::move(font)));
|
||||
return true;
|
||||
}
|
||||
|
||||
sdl2::Texture RenderText(const std::string &font_name, const std::string &text, const Color clr) {
|
||||
for(auto &[name, font]: g_FontTable) {
|
||||
if(name == font_name) {
|
||||
return font->RenderText(text, clr);
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
i32 GetTextWidth(const std::string &font_name, const std::string &text) {
|
||||
for(auto &[name, font]: g_FontTable) {
|
||||
if(name == font_name) {
|
||||
const auto [w, _] = font->GetTextDimensions(text);
|
||||
return static_cast<i32>(w);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
i32 GetTextHeight(const std::string &font_name, const std::string &text) {
|
||||
for(auto &[name, font]: g_FontTable) {
|
||||
if(name == font_name) {
|
||||
const auto [_, h] = font->GetTextDimensions(text);
|
||||
return static_cast<i32>(h);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
#include <pu/ui/render/render_SDL2.hpp>
|
||||
#include <pu/ui/render/render_Renderer.hpp>
|
||||
|
||||
namespace pu::ui::render {
|
||||
|
||||
sdl2::Texture ConvertToTexture(sdl2::Surface surface) {
|
||||
if(surface == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto tex = SDL_CreateTextureFromSurface(GetMainRenderer(), surface);
|
||||
SDL_FreeSurface(surface);
|
||||
return tex;
|
||||
}
|
||||
|
||||
sdl2::Texture LoadImage(const std::string &path) {
|
||||
return ConvertToTexture(IMG_Load(path.c_str()));
|
||||
}
|
||||
|
||||
i32 GetTextureWidth(sdl2::Texture texture) {
|
||||
if(texture == nullptr) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
i32 w = 0;
|
||||
SDL_QueryTexture(texture, nullptr, nullptr, &w, nullptr);
|
||||
return w;
|
||||
}
|
||||
|
||||
i32 GetTextureHeight(sdl2::Texture texture) {
|
||||
if(texture == nullptr) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
i32 h = 0;
|
||||
SDL_QueryTexture(texture, nullptr, nullptr, nullptr, &h);
|
||||
return h;
|
||||
}
|
||||
|
||||
void SetAlphaValue(sdl2::Texture texture, const u8 alpha) {
|
||||
if(texture == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND);
|
||||
SDL_SetTextureAlphaMod(texture, alpha);
|
||||
}
|
||||
|
||||
void DeleteTexture(sdl2::Texture &texture) {
|
||||
if(texture != nullptr) {
|
||||
SDL_DestroyTexture(texture);
|
||||
texture = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,212 +0,0 @@
|
||||
#include <pu/ui/ui_Application.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
Application::Application(render::Renderer::Ref renderer) {
|
||||
this->renderer = renderer;
|
||||
// TODO: do it outside ctor, get result...?
|
||||
this->renderer->Initialize();
|
||||
this->is_shown = false;
|
||||
this->on_ipt_cb = {};
|
||||
this->in_render_over = false;
|
||||
this->ovl = nullptr;
|
||||
this->lyt = nullptr;
|
||||
this->loaded = false;
|
||||
this->render_over_fn = {};
|
||||
this->fade_alpha = 0xFF;
|
||||
this->fade_alpha_increment = DefaultFadeAlphaIncrement;
|
||||
padConfigureInput(1, HidNpadStyleSet_NpadStandard);
|
||||
padInitializeDefault(&this->input_pad);
|
||||
}
|
||||
|
||||
void Application::Prepare() {
|
||||
if(!this->loaded) {
|
||||
this->OnLoad();
|
||||
this->loaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
i32 Application::CreateShowDialog(const std::string &title, const std::string &content, const std::vector<std::string> &opts, const bool use_last_opt_as_cancel, const std::string &icon_path) {
|
||||
auto dialog = Dialog::New(title, content);
|
||||
for(u32 i = 0; i < opts.size(); i++) {
|
||||
const auto &opt = opts.at(i);
|
||||
if(use_last_opt_as_cancel && (i == (opts.size() - 1))) {
|
||||
dialog->SetCancelOption(opt);
|
||||
}
|
||||
else {
|
||||
dialog->AddOption(opt);
|
||||
}
|
||||
}
|
||||
|
||||
if(!icon_path.empty()) {
|
||||
dialog->SetIcon(icon_path);
|
||||
}
|
||||
|
||||
const auto opt = this->ShowDialog(dialog);
|
||||
if(dialog->UserCancelled()) {
|
||||
return -1;
|
||||
}
|
||||
else if(!dialog->IsOk()) {
|
||||
return -2;
|
||||
}
|
||||
else {
|
||||
return opt;
|
||||
}
|
||||
}
|
||||
|
||||
void Application::StartOverlayWithTimeout(Overlay::Ref ovl, const u64 ms) {
|
||||
if(this->ovl == nullptr) {
|
||||
this->ovl = ovl;
|
||||
this->ovl_timeout_ms = ms;
|
||||
this->ovl_start_time = std::chrono::steady_clock::now();
|
||||
}
|
||||
}
|
||||
|
||||
void Application::EndOverlay() {
|
||||
if(this->ovl != nullptr) {
|
||||
this->ovl->NotifyEnding(false);
|
||||
this->ovl_timeout_ms = 0;
|
||||
this->ovl = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void Application::Show() {
|
||||
if(!this->CanBeShown()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this->is_shown = true;
|
||||
while(this->is_shown) {
|
||||
this->CallForRender();
|
||||
}
|
||||
}
|
||||
|
||||
bool Application::CallForRender() {
|
||||
if(!this->CanBeShown()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
auto continue_render = true;
|
||||
this->renderer->InitializeRender(this->lyt->GetBackgroundColor());
|
||||
this->OnRender();
|
||||
if(this->in_render_over) {
|
||||
continue_render = (this->render_over_fn)(this->renderer);
|
||||
this->in_render_over = false;
|
||||
this->render_over_fn = {};
|
||||
}
|
||||
this->renderer->FinalizeRender();
|
||||
return continue_render;
|
||||
}
|
||||
|
||||
bool Application::CallForRenderWithRenderOver(RenderOverFunction render_over_fn) {
|
||||
this->in_render_over = true;
|
||||
this->render_over_fn = render_over_fn;
|
||||
return this->CallForRender();
|
||||
}
|
||||
|
||||
void Application::FadeIn() {
|
||||
this->fade_alpha = 0;
|
||||
while(true) {
|
||||
this->CallForRender();
|
||||
this->fade_alpha += this->fade_alpha_increment;
|
||||
if(this->fade_alpha > 0xFF) {
|
||||
this->fade_alpha = 0xFF;
|
||||
this->CallForRender();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Application::FadeOut() {
|
||||
this->fade_alpha = 0xFF;
|
||||
while(true) {
|
||||
this->CallForRender();
|
||||
this->fade_alpha -= this->fade_alpha_increment;
|
||||
if(this->fade_alpha < 0) {
|
||||
this->fade_alpha = 0;
|
||||
this->CallForRender();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Application::OnRender() {
|
||||
padUpdate(&this->input_pad);
|
||||
const auto keys_down = this->GetButtonsDown();
|
||||
const auto keys_up = this->GetButtonsUp();
|
||||
const auto keys_held = this->GetButtonsHeld();
|
||||
|
||||
const auto tch_state = this->GetTouchState();
|
||||
TouchPoint tch_pos = {};
|
||||
if(tch_state.count > 0) {
|
||||
tch_pos = { tch_state.touches[0].x, tch_state.touches[0].y };
|
||||
}
|
||||
const auto sim_tch_pos = this->lyt->ConsumeSimulatedTouchPosition();
|
||||
if(!sim_tch_pos.IsEmpty()) {
|
||||
tch_pos = sim_tch_pos;
|
||||
}
|
||||
|
||||
for(auto &render_cb: this->render_cbs) {
|
||||
if(render_cb) {
|
||||
render_cb();
|
||||
}
|
||||
}
|
||||
|
||||
this->lyt->PreRender();
|
||||
|
||||
for(auto &lyt_render_cb: this->lyt->GetRenderCallbacks()) {
|
||||
if(lyt_render_cb) {
|
||||
lyt_render_cb();
|
||||
}
|
||||
}
|
||||
|
||||
if(!this->in_render_over) {
|
||||
if(this->on_ipt_cb) {
|
||||
(this->on_ipt_cb)(keys_down, keys_up, keys_held, tch_pos);
|
||||
}
|
||||
}
|
||||
|
||||
if(this->lyt->HasBackgroundImage()) {
|
||||
this->renderer->RenderTexture(this->lyt->GetBackgroundImageTexture(), 0, 0);
|
||||
}
|
||||
|
||||
if(!this->in_render_over) {
|
||||
auto lyt_on_ipt_cb = this->lyt->GetOnInput();
|
||||
if(lyt_on_ipt_cb) {
|
||||
lyt_on_ipt_cb(keys_down, keys_up, keys_held, tch_pos);
|
||||
}
|
||||
}
|
||||
|
||||
for(u32 i = 0; i < this->lyt->GetCount(); i++) {
|
||||
auto elm = this->lyt->At(i);
|
||||
if(elm->IsVisible()) {
|
||||
elm->OnRender(this->renderer, elm->GetProcessedX(), elm->GetProcessedY());
|
||||
if(!this->in_render_over) {
|
||||
elm->OnInput(keys_down, keys_up, keys_held, tch_pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(this->ovl != nullptr) {
|
||||
const auto ovl_continue_render = this->ovl->Render(this->renderer);
|
||||
if(this->ovl_timeout_ms > 0) {
|
||||
const auto time_now = std::chrono::steady_clock::now();
|
||||
const u64 elapsed_time_ms = std::chrono::duration_cast<std::chrono::milliseconds>(time_now - this->ovl_start_time).count();
|
||||
if(elapsed_time_ms >= this->ovl_timeout_ms) {
|
||||
this->ovl->NotifyEnding(true);
|
||||
}
|
||||
}
|
||||
if(!ovl_continue_render) {
|
||||
this->EndOverlay();
|
||||
}
|
||||
}
|
||||
|
||||
this->renderer->RenderRectangleFill({ 0, 0, 0, static_cast<u8>(0xFF - this->fade_alpha) }, 0, 0, render::ScreenWidth, render::ScreenHeight);
|
||||
}
|
||||
|
||||
void Application::Close() {
|
||||
this->is_shown = false;
|
||||
this->renderer->Finalize();
|
||||
}
|
||||
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
#include <pu/ui/ui_Container.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
void Container::PreRender() {
|
||||
for(auto &elm : this->elems) {
|
||||
elm->SetParentContainer(this);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -1,250 +0,0 @@
|
||||
#include <pu/ui/ui_Dialog.hpp>
|
||||
#include <pu/ui/ui_Application.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
Dialog::Dialog(const std::string &title, const std::string &content) {
|
||||
this->title_font_name = GetDefaultFont(DefaultFontSize::Large);
|
||||
this->cnt_font_name = GetDefaultFont(DefaultFontSize::Medium);
|
||||
this->opt_font_name = GetDefaultFont(DefaultFontSize::Small);
|
||||
this->title = title;
|
||||
this->cnt = content;
|
||||
this->title_tex = render::RenderText(this->title_font_name, title, DefaultTitleColor);
|
||||
this->cnt_tex = render::RenderText(this->cnt_font_name, content, DefaultContentColor);
|
||||
this->icon_tex = nullptr;
|
||||
this->selected_opt_idx = 0;
|
||||
this->prev_selected_opt_idx = 0;
|
||||
this->selected_opt_over_alpha = 0xFF;
|
||||
this->prev_selected_opt_over_alpha = 0;
|
||||
this->user_cancelled = false;
|
||||
}
|
||||
|
||||
Dialog::~Dialog() {
|
||||
render::DeleteTexture(this->title_tex);
|
||||
render::DeleteTexture(this->cnt_tex);
|
||||
render::DeleteTexture(this->icon_tex);
|
||||
for(auto &opt_tex: this->opt_texs) {
|
||||
render::DeleteTexture(opt_tex);
|
||||
}
|
||||
}
|
||||
|
||||
void Dialog::AddOption(const std::string &opt_name) {
|
||||
this->opts.push_back(opt_name);
|
||||
this->opt_texs.push_back(render::RenderText(this->opt_font_name, opt_name, DefaultOptionColor));
|
||||
}
|
||||
|
||||
void Dialog::SetIcon(const std::string &icon_path) {
|
||||
render::DeleteTexture(this->icon_tex);
|
||||
this->icon_tex = render::LoadImage(icon_path);
|
||||
}
|
||||
|
||||
i32 Dialog::Show(Application *app_ref) {
|
||||
if(this->HasCancelOption()) {
|
||||
this->AddOption(this->cancel_opt);
|
||||
}
|
||||
|
||||
if(this->opt_texs.empty()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto opts_width = (SpaceBetweenOptions * (this->opt_texs.size() - 1)) + 2 * OptionsBaseHorizontalMargin;
|
||||
for(const auto &opt_tex : this->opt_texs) {
|
||||
const auto opt_width = render::GetTextureWidth(opt_tex) + 2 * OptionHorizontalMargin;
|
||||
opts_width += opt_width;
|
||||
}
|
||||
auto dialog_width = opts_width;
|
||||
|
||||
const auto cnt_width = render::GetTextureWidth(this->cnt_tex) + ContentExtraWidth;
|
||||
if(cnt_width > dialog_width) {
|
||||
dialog_width = cnt_width;
|
||||
}
|
||||
|
||||
const auto title_width = render::GetTextureWidth(this->title_tex) + TitleExtraWidth;
|
||||
if(title_width > dialog_width) {
|
||||
dialog_width = title_width;
|
||||
}
|
||||
const auto title_cnt_height = TitleTopMargin + render::GetTextureHeight(this->title_tex) + render::GetTextureHeight(this->cnt_tex) + SpaceBetweenContentAndOptions;
|
||||
auto opt_base_y = title_cnt_height;
|
||||
|
||||
if(this->HasIcon()) {
|
||||
const auto icon_height = render::GetTextureHeight(this->icon_tex) + 2 * IconMargin;
|
||||
if(icon_height > opt_base_y) {
|
||||
opt_base_y = icon_height;
|
||||
}
|
||||
|
||||
const auto icon_width = render::GetTextureWidth(this->icon_tex) + 2 * IconMargin;
|
||||
|
||||
const auto icon_title_width = title_width + icon_width;
|
||||
if(icon_title_width > dialog_width) {
|
||||
dialog_width = icon_title_width;
|
||||
}
|
||||
|
||||
const auto icon_cnt_width = cnt_width + icon_width;
|
||||
if(icon_cnt_width > dialog_width) {
|
||||
dialog_width = icon_cnt_width;
|
||||
}
|
||||
|
||||
const auto icon_opts_width = opts_width + icon_width;
|
||||
if(icon_opts_width > dialog_width) {
|
||||
dialog_width = icon_opts_width;
|
||||
}
|
||||
}
|
||||
|
||||
if(dialog_width > render::ScreenWidth) {
|
||||
dialog_width = render::ScreenWidth;
|
||||
}
|
||||
|
||||
auto dialog_height = opt_base_y + OptionHeight + OptionBottomMargin;
|
||||
if(dialog_height > render::ScreenHeight) {
|
||||
dialog_height = render::ScreenHeight;
|
||||
}
|
||||
|
||||
const auto dialog_x = (render::ScreenWidth - dialog_width) / 2;
|
||||
const auto dialog_y = (render::ScreenHeight - dialog_height) / 2;
|
||||
opt_base_y += dialog_y;
|
||||
|
||||
auto is_finishing = false;
|
||||
i32 initial_fade_alpha = 0;
|
||||
while(true) {
|
||||
const auto ok = app_ref->CallForRenderWithRenderOver([&](render::Renderer::Ref &drawer) -> bool {
|
||||
const auto keys_down = app_ref->GetButtonsDown();
|
||||
const auto tch_state = app_ref->GetTouchState();
|
||||
const TouchPoint tch_pos = { tch_state.touches[0].x, tch_state.touches[0].y };
|
||||
if(keys_down & HidNpadButton_AnyLeft) {
|
||||
if(this->selected_opt_idx > 0) {
|
||||
this->prev_selected_opt_idx = this->selected_opt_idx;
|
||||
this->selected_opt_idx--;
|
||||
|
||||
this->selected_opt_over_alpha = 0;
|
||||
this->prev_selected_opt_over_alpha = 0xFF;
|
||||
}
|
||||
}
|
||||
else if(keys_down & HidNpadButton_AnyRight) {
|
||||
if(this->selected_opt_idx < (this->opt_texs.size() - 1)) {
|
||||
this->prev_selected_opt_idx = this->selected_opt_idx;
|
||||
this->selected_opt_idx++;
|
||||
|
||||
this->selected_opt_over_alpha = 0;
|
||||
this->prev_selected_opt_over_alpha = 0xFF;
|
||||
}
|
||||
}
|
||||
else if(keys_down & HidNpadButton_A) {
|
||||
this->user_cancelled = false;
|
||||
is_finishing = true;
|
||||
}
|
||||
else if(keys_down & HidNpadButton_B) {
|
||||
this->user_cancelled = true;
|
||||
is_finishing = true;
|
||||
}
|
||||
if(tch_state.count > 0) {
|
||||
auto cur_opt_x = dialog_x + OptionsBaseHorizontalMargin;
|
||||
for(u32 i = 0; i < this->opts.size(); i++) {
|
||||
auto &opt_tex = this->opt_texs.at(i);
|
||||
const auto opt_name_width = render::GetTextureWidth(opt_tex);
|
||||
const auto opt_width = opt_name_width + 2 * OptionHorizontalMargin;
|
||||
|
||||
if(tch_pos.HitsRegion(cur_opt_x, opt_base_y, opt_width, OptionHeight)) {
|
||||
this->selected_opt_idx = i;
|
||||
this->user_cancelled = false;
|
||||
is_finishing = true;
|
||||
break;
|
||||
}
|
||||
|
||||
cur_opt_x += opt_width + SpaceBetweenOptions;
|
||||
}
|
||||
}
|
||||
|
||||
const auto dialog_clr = MakeDialogColor(static_cast<u8>(initial_fade_alpha));
|
||||
auto screen_fade_alpha = initial_fade_alpha;
|
||||
if(screen_fade_alpha < 0) {
|
||||
screen_fade_alpha = 0;
|
||||
}
|
||||
if(screen_fade_alpha > MaxScreenFadeAlpha) {
|
||||
screen_fade_alpha = MaxScreenFadeAlpha;
|
||||
}
|
||||
const Color screen_fade_clr = { 0, 0, 0, static_cast<u8>(screen_fade_alpha) };
|
||||
drawer->RenderRectangleFill(screen_fade_clr, 0, 0, render::ScreenWidth, render::ScreenHeight);
|
||||
|
||||
drawer->RenderRoundedRectangleFill(dialog_clr, dialog_x, dialog_y, dialog_width, dialog_height, DialogBorderRadius);
|
||||
|
||||
render::SetAlphaValue(this->title_tex, initial_fade_alpha);
|
||||
render::SetAlphaValue(this->cnt_tex, initial_fade_alpha);
|
||||
drawer->RenderTexture(this->title_tex, dialog_x + TitleX, dialog_y + TitleY);
|
||||
drawer->RenderTexture(this->cnt_tex, dialog_x + ContentX, dialog_y + ContentY);
|
||||
|
||||
if(this->HasIcon()) {
|
||||
const auto icon_width = render::GetTextureWidth(this->icon_tex);
|
||||
const auto icon_x = dialog_x + (dialog_width - (icon_width + 2 * IconMargin));
|
||||
const auto icon_y = dialog_y + IconMargin;
|
||||
drawer->RenderTexture(this->icon_tex, icon_x, icon_y, render::TextureRenderOptions::WithCustomAlpha(static_cast<u8>(initial_fade_alpha)));
|
||||
}
|
||||
|
||||
auto cur_opt_x = dialog_x + OptionsBaseHorizontalMargin;
|
||||
for(u32 i = 0; i < this->opt_texs.size(); i++) {
|
||||
auto &opt_tex = this->opt_texs.at(i);
|
||||
const auto opt_name_width = render::GetTextureWidth(opt_tex);
|
||||
const auto opt_name_height = render::GetTextureHeight(opt_tex);
|
||||
const auto opt_width = opt_name_width + 2 * OptionHorizontalMargin;
|
||||
const auto opt_name_x = cur_opt_x + OptionHorizontalMargin;
|
||||
const auto opt_name_y = opt_base_y + ((OptionHeight - opt_name_height) / 2);
|
||||
if(this->selected_opt_idx == i) {
|
||||
if(this->selected_opt_over_alpha < 0xFF) {
|
||||
const auto over_clr = MakeOverColor(static_cast<u8>(this->selected_opt_over_alpha));
|
||||
drawer->RenderRoundedRectangleFill(over_clr, cur_opt_x, opt_base_y, opt_width, OptionHeight, OptionBorderRadius);
|
||||
this->selected_opt_over_alpha += OverAlphaIncrement;
|
||||
}
|
||||
else {
|
||||
this->selected_opt_over_alpha = 0xFF;
|
||||
const auto over_clr = MakeOverColor(static_cast<u8>(initial_fade_alpha));
|
||||
drawer->RenderRoundedRectangleFill(over_clr, cur_opt_x, opt_base_y, opt_width, OptionHeight, OptionBorderRadius);
|
||||
}
|
||||
}
|
||||
else if(this->prev_selected_opt_idx == static_cast<i32>(i)) {
|
||||
if(this->prev_selected_opt_over_alpha > 0) {
|
||||
const auto over_clr = MakeOverColor(static_cast<u8>(this->prev_selected_opt_over_alpha));
|
||||
drawer->RenderRoundedRectangleFill(over_clr, cur_opt_x, opt_base_y, opt_width, OptionHeight, OptionBorderRadius);
|
||||
this->prev_selected_opt_over_alpha -= OverAlphaIncrement;
|
||||
}
|
||||
else {
|
||||
this->prev_selected_opt_over_alpha = 0;
|
||||
}
|
||||
}
|
||||
|
||||
render::SetAlphaValue(opt_tex, static_cast<u8>(initial_fade_alpha));
|
||||
drawer->RenderTexture(opt_tex, opt_name_x, opt_name_y);
|
||||
cur_opt_x += opt_width + SpaceBetweenOptions;
|
||||
}
|
||||
|
||||
if(is_finishing) {
|
||||
if(initial_fade_alpha == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(initial_fade_alpha > 0) {
|
||||
initial_fade_alpha -= FadeAlphaIncrement;
|
||||
}
|
||||
if(initial_fade_alpha < 0) {
|
||||
initial_fade_alpha = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(initial_fade_alpha < 0xFF) {
|
||||
initial_fade_alpha += FadeAlphaIncrement;
|
||||
}
|
||||
if(initial_fade_alpha > 0xFF) {
|
||||
initial_fade_alpha = 0xFF;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
if(!ok) {
|
||||
app_ref->CallForRenderWithRenderOver([](render::Renderer::Ref&) -> bool { return false; });
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return this->selected_opt_idx;
|
||||
}
|
||||
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
#include <pu/ui/ui_Layout.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
Layout::~Layout() {
|
||||
render::DeleteTexture(this->over_bg_tex);
|
||||
}
|
||||
|
||||
void Layout::SetBackgroundImage(const std::string &path) {
|
||||
render::DeleteTexture(this->over_bg_tex);
|
||||
this->has_image = true;
|
||||
this->over_bg_tex = render::LoadImage(path);
|
||||
}
|
||||
|
||||
void Layout::SetBackgroundColor(const Color clr) {
|
||||
render::DeleteTexture(this->over_bg_tex);
|
||||
this->has_image = false;
|
||||
this->over_bg_color = clr;
|
||||
}
|
||||
|
||||
TouchPoint Layout::ConsumeSimulatedTouchPosition() {
|
||||
auto touch_pos_copy = this->sim_touch_pos;
|
||||
this->sim_touch_pos = {};
|
||||
return touch_pos_copy;
|
||||
}
|
||||
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
#include <pu/ui/ui_Overlay.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
bool Overlay::Render(render::Renderer::Ref &drawer) {
|
||||
this->OnPreRender(drawer);
|
||||
drawer->SetBaseRenderAlpha(static_cast<u8>(this->fade_a));
|
||||
if(this->round) {
|
||||
drawer->RenderRoundedRectangleFill(this->bg_clr, this->x, this->y, this->w, this->h, this->rad);
|
||||
}
|
||||
else {
|
||||
drawer->RenderRectangleFill(this->bg_clr, this->x, this->y, this->w, this->h);
|
||||
}
|
||||
|
||||
this->PreRender();
|
||||
for(auto &elem: this->elems) {
|
||||
if(elem->IsVisible()) {
|
||||
elem->OnRender(drawer, elem->GetProcessedX(), elem->GetProcessedY());
|
||||
}
|
||||
}
|
||||
drawer->ResetBaseRenderAlpha();
|
||||
if(this->is_ending) {
|
||||
if(this->fade_a > 0) {
|
||||
this->fade_a -= FadeAlphaVariation;
|
||||
}
|
||||
else {
|
||||
this->fade_a = 0;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(this->fade_a < MaxFadeAlpha) {
|
||||
this->fade_a += FadeAlphaVariation;
|
||||
}
|
||||
else {
|
||||
this->fade_a = MaxFadeAlpha;
|
||||
}
|
||||
}
|
||||
this->OnPostRender(drawer);
|
||||
const auto is_finished = this->is_ending && (this->fade_a == 0);
|
||||
if(is_finished) {
|
||||
this->is_ending = false;
|
||||
}
|
||||
return !is_finished;
|
||||
}
|
||||
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
#include <pu/ui/ui_Types.hpp>
|
||||
|
||||
namespace pu::ui {
|
||||
|
||||
Color Color::FromHex(const std::string &str_clr) {
|
||||
// Format: '#rrggbbaa'
|
||||
|
||||
std::string r = "00";
|
||||
std::string g = "00";
|
||||
std::string b = "00";
|
||||
std::string a = "FF";
|
||||
|
||||
if(str_clr.length() >= 9) {
|
||||
a = str_clr.substr(7, 2);
|
||||
}
|
||||
if(str_clr.length() >= 7)
|
||||
{
|
||||
r = str_clr.substr(1, 2);
|
||||
g = str_clr.substr(3, 2);
|
||||
b = str_clr.substr(5, 2);
|
||||
}
|
||||
|
||||
const auto r_val = static_cast<u8>(std::stoul(r, nullptr, 16));
|
||||
const auto g_val = static_cast<u8>(std::stoul(g, nullptr, 16));
|
||||
const auto b_val = static_cast<u8>(std::stoul(b, nullptr, 16));
|
||||
const auto a_val = static_cast<u8>(std::stoul(a, nullptr, 16));
|
||||
return { r_val, g_val, b_val, a_val };
|
||||
}
|
||||
|
||||
}
|
@ -1,68 +0,0 @@
|
||||
# Plutonium - an easy-to-use UI framework for Nintendo Switch homebrew
|
||||
|
||||
## What is Plutonium?
|
||||
|
||||
Plutonium is a high-level, C++ graphics library with the aim of making Nintendo Switch homebrew UIs in a more user-firendly way.
|
||||
|
||||
It uses libnx and SDL2, so both libraries are required.
|
||||
|
||||
To be more exact, this libraries should be installed via pacman:
|
||||
|
||||
```
|
||||
switch-sdl2 switch-sdl2_ttf switch-sdl2_image switch-sdl2_gfx switch-sdl2_mixer switch-mesa switch-glad switch-glm switch-libdrm_nouveau switch-libwebp switch-libpng switch-freetype switch-bzip2 switch-libjpeg-turbo switch-opusfile switch-libopus
|
||||
```
|
||||
|
||||
## Internal structure and performance
|
||||
|
||||
Plutonium internally uses SDL2 for UI rendering.
|
||||
|
||||
Plutonium's API is based on WPF/WinForms's system. The user doesn't directly interact with the rendering, as it's done via a main rendering system and different objects to render.
|
||||
|
||||
Check the [basic example](Example) for a basic usage of the libraries. In case you want to see a really powerful app which really shows what Plutonium is capable of, take a look at [Goldleaf](https://github.com/XorTroll/Goldleaf), [uLaunch](https://github.com/XorTroll/uLaunch) or many other homebrew apps made using this libraries.
|
||||
|
||||
Check the [documentation](https://XorTroll.github.io/Plutonium/) for a more detailed explanation of the library's usage.
|
||||
|
||||
## Using this libraries
|
||||
|
||||
On the [releases](https://github.com/XorTroll/Plutonium/releases) page you have all the released versions. All of them are zipped files, containing `include` and `lib` directories.
|
||||
|
||||
### Simple project layout
|
||||
|
||||
This is how a regular Plutonium project would (more or less) have its Makefile and project layout using Plutonium:
|
||||
|
||||
- Makefile
|
||||
|
||||
```Makefile
|
||||
...
|
||||
|
||||
LIBS := -lpu -lfreetype -lSDL2_mixer -lopusfile -lopus -lmodplug -lmpg123 -lvorbisidec -logg -lSDL2_ttf -lSDL2_gfx -lSDL2_image -lSDL2 -lEGL -lGLESv2 -lglapi -ldrm_nouveau -lwebp -lpng -ljpeg `sdl2-config --libs` `freetype-config --libs` -lnx
|
||||
LIBDIRS := $(PORTLIBS) $(LIBNX) $(CURDIR)/Plutonium
|
||||
|
||||
...
|
||||
```
|
||||
|
||||
- Project directory
|
||||
|
||||
```txt
|
||||
Project
|
||||
|
|
||||
|-- Makefile
|
||||
|-- source
|
||||
|-- include
|
||||
|-- Plutonium
|
||||
|
|
||||
|-- include
|
||||
|-- lib
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
Clone the repository, cd into `Plutonium` directory and run `make`.
|
||||
|
||||
You will need devkitPro, libnx and all the libraries mentioned above installed via pacman.
|
||||
|
||||
## Support
|
||||
|
||||
If you would like to be more informed about my projects' status and support, you should check [my Discord server](https://discord.gg/3KpFyaH). It's a simple server for Nintendo homebrew and hacking stuff, focused on my projects. If you would like to take part in testing .
|
||||
|
||||
If you like my work, you should take a look at my [Patreon](https://patreon.com/xortroll) page!
|
@ -1,5 +0,0 @@
|
||||
# Plutonium API documentation
|
||||
|
||||
- Welcome to Plutonium library's documentation! You can browse the API's documentation here.
|
||||
|
||||
- More stuff will be added soon, like more info here, function and class descriptions...
|
@ -1,129 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Class List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('annotated.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">Class List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
|
||||
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span><span onclick="javascript:toggleLevel(3);">3</span><span onclick="javascript:toggleLevel(4);">4</span>]</div><table class="directory">
|
||||
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="da/df2/namespacepu.html" target="_self">pu</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_0_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_0_" class="arrow" onclick="toggleFolder('0_0_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d5/d72/namespacepu_1_1ttf.html" target="_self">ttf</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_0_0_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dd/d76/classpu_1_1ttf_1_1_font.html" target="_self">Font</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span id="arr_0_1_" class="arrow" onclick="toggleFolder('0_1_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d9/d7f/namespacepu_1_1ui.html" target="_self">ui</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span id="arr_0_1_0_" class="arrow" onclick="toggleFolder('0_1_0_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html" target="_self">elm</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_0_"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d4/de7/classpu_1_1ui_1_1elm_1_1_button.html" target="_self">Button</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_1_" class="even"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html" target="_self">Element</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_2_"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/d63/classpu_1_1ui_1_1elm_1_1_image.html" target="_self">Image</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_3_" class="even"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html" target="_self">Menu</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_4_"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html" target="_self">MenuItem</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_5_" class="even"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html" target="_self">ProgressBar</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_6_"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html" target="_self">Rectangle</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_7_" class="even"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html" target="_self">TextBlock</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_0_8_"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html" target="_self">Toggle</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span id="arr_0_1_1_" class="arrow" onclick="toggleFolder('0_1_1_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="d6/d78/namespacepu_1_1ui_1_1extras.html" target="_self">extras</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_1_0_"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html" target="_self">Toast</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_2_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span id="arr_0_1_2_" class="arrow" onclick="toggleFolder('0_1_2_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="da/d54/namespacepu_1_1ui_1_1render.html" target="_self">render</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_2_0_"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html" target="_self">Renderer</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_2_1_" class="even"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html" target="_self">RendererInitOptions</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_2_2_"><td class="entry"><span style="width:64px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html" target="_self">TextureRenderOptions</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_3_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="da/dc0/classpu_1_1ui_1_1_application.html" target="_self">Application</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_4_"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/d0c/structpu_1_1ui_1_1_color.html" target="_self">Color</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_5_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="dc/dcd/classpu_1_1ui_1_1_container.html" target="_self">Container</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_6_"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/de9/classpu_1_1ui_1_1_dialog.html" target="_self">Dialog</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_7_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/d11/classpu_1_1ui_1_1_layout.html" target="_self">Layout</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_8_"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d6/d8f/classpu_1_1ui_1_1_overlay.html" target="_self">Overlay</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_1_9_" class="even"><td class="entry"><span style="width:48px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="d7/d55/structpu_1_1ui_1_1_touch_point.html" target="_self">TouchPoint</a></td><td class="desc"></td></tr>
|
||||
</table>
|
||||
</div><!-- directory -->
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,36 +0,0 @@
|
||||
var annotated_dup =
|
||||
[
|
||||
[ "pu", "da/df2/namespacepu.html", [
|
||||
[ "ttf", "d5/d72/namespacepu_1_1ttf.html", [
|
||||
[ "Font", "dd/d76/classpu_1_1ttf_1_1_font.html", "dd/d76/classpu_1_1ttf_1_1_font" ]
|
||||
] ],
|
||||
[ "ui", "d9/d7f/namespacepu_1_1ui.html", [
|
||||
[ "elm", "d2/d5e/namespacepu_1_1ui_1_1elm.html", [
|
||||
[ "Button", "d4/de7/classpu_1_1ui_1_1elm_1_1_button.html", "d4/de7/classpu_1_1ui_1_1elm_1_1_button" ],
|
||||
[ "Element", "d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html", "d9/d0e/classpu_1_1ui_1_1elm_1_1_element" ],
|
||||
[ "Image", "d6/d63/classpu_1_1ui_1_1elm_1_1_image.html", "d6/d63/classpu_1_1ui_1_1elm_1_1_image" ],
|
||||
[ "Menu", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu" ],
|
||||
[ "MenuItem", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item" ],
|
||||
[ "ProgressBar", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar" ],
|
||||
[ "Rectangle", "d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html", "d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle" ],
|
||||
[ "TextBlock", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block" ],
|
||||
[ "Toggle", "d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html", "d5/d51/classpu_1_1ui_1_1elm_1_1_toggle" ]
|
||||
] ],
|
||||
[ "extras", "d6/d78/namespacepu_1_1ui_1_1extras.html", [
|
||||
[ "Toast", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html", "dc/d49/classpu_1_1ui_1_1extras_1_1_toast" ]
|
||||
] ],
|
||||
[ "render", "da/d54/namespacepu_1_1ui_1_1render.html", [
|
||||
[ "Renderer", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer" ],
|
||||
[ "RendererInitOptions", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options" ],
|
||||
[ "TextureRenderOptions", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options" ]
|
||||
] ],
|
||||
[ "Application", "da/dc0/classpu_1_1ui_1_1_application.html", "da/dc0/classpu_1_1ui_1_1_application" ],
|
||||
[ "Color", "d7/d0c/structpu_1_1ui_1_1_color.html", "d7/d0c/structpu_1_1ui_1_1_color" ],
|
||||
[ "Container", "dc/dcd/classpu_1_1ui_1_1_container.html", "dc/dcd/classpu_1_1ui_1_1_container" ],
|
||||
[ "Dialog", "d6/de9/classpu_1_1ui_1_1_dialog.html", "d6/de9/classpu_1_1ui_1_1_dialog" ],
|
||||
[ "Layout", "d6/d11/classpu_1_1ui_1_1_layout.html", "d6/d11/classpu_1_1ui_1_1_layout" ],
|
||||
[ "Overlay", "d6/d8f/classpu_1_1ui_1_1_overlay.html", "d6/d8f/classpu_1_1ui_1_1_overlay" ],
|
||||
[ "TouchPoint", "d7/d55/structpu_1_1ui_1_1_touch_point.html", "d7/d55/structpu_1_1ui_1_1_touch_point" ]
|
||||
] ]
|
||||
] ]
|
||||
];
|
Binary file not shown.
Before Width: | Height: | Size: 691 B |
Binary file not shown.
Before Width: | Height: | Size: 148 B |
@ -1,140 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Class Index</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="resize.js"></script>
|
||||
<script type="text/javascript" src="navtreedata.js"></script>
|
||||
<script type="text/javascript" src="navtree.js"></script>
|
||||
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="search/search.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="menudata.js"></script>
|
||||
<script type="text/javascript" src="menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('classes.html',''); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">Class Index</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="qindex"><a class="qindex" href="#letter_A">A</a> | <a class="qindex" href="#letter_B">B</a> | <a class="qindex" href="#letter_C">C</a> | <a class="qindex" href="#letter_D">D</a> | <a class="qindex" href="#letter_E">E</a> | <a class="qindex" href="#letter_F">F</a> | <a class="qindex" href="#letter_I">I</a> | <a class="qindex" href="#letter_L">L</a> | <a class="qindex" href="#letter_M">M</a> | <a class="qindex" href="#letter_O">O</a> | <a class="qindex" href="#letter_P">P</a> | <a class="qindex" href="#letter_R">R</a> | <a class="qindex" href="#letter_T">T</a></div>
|
||||
<div class="classindex">
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a id="letter_A" name="letter_A">A</a></dt>
|
||||
<dd><a class="el" href="da/dc0/classpu_1_1ui_1_1_application.html">Application</a> (<a class="el" href="d9/d7f/namespacepu_1_1ui.html">pu::ui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a id="letter_B" name="letter_B">B</a></dt>
|
||||
<dd><a class="el" href="d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">Button</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a id="letter_C" name="letter_C">C</a></dt>
|
||||
<dd><a class="el" href="d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> (<a class="el" href="d9/d7f/namespacepu_1_1ui.html">pu::ui</a>)</dd><dd><a class="el" href="dc/dcd/classpu_1_1ui_1_1_container.html">Container</a> (<a class="el" href="d9/d7f/namespacepu_1_1ui.html">pu::ui</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a id="letter_D" name="letter_D">D</a></dt>
|
||||
<dd><a class="el" href="d6/de9/classpu_1_1ui_1_1_dialog.html">Dialog</a> (<a class="el" href="d9/d7f/namespacepu_1_1ui.html">pu::ui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a id="letter_E" name="letter_E">E</a></dt>
|
||||
<dd><a class="el" href="d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">Element</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a id="letter_F" name="letter_F">F</a></dt>
|
||||
<dd><a class="el" href="dd/d76/classpu_1_1ttf_1_1_font.html">Font</a> (<a class="el" href="d5/d72/namespacepu_1_1ttf.html">pu::ttf</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a id="letter_I" name="letter_I">I</a></dt>
|
||||
<dd><a class="el" href="d6/d63/classpu_1_1ui_1_1elm_1_1_image.html">Image</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a id="letter_L" name="letter_L">L</a></dt>
|
||||
<dd><a class="el" href="d6/d11/classpu_1_1ui_1_1_layout.html">Layout</a> (<a class="el" href="d9/d7f/namespacepu_1_1ui.html">pu::ui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a id="letter_M" name="letter_M">M</a></dt>
|
||||
<dd><a class="el" href="dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">Menu</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd><dd><a class="el" href="de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html">MenuItem</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a id="letter_O" name="letter_O">O</a></dt>
|
||||
<dd><a class="el" href="d6/d8f/classpu_1_1ui_1_1_overlay.html">Overlay</a> (<a class="el" href="d9/d7f/namespacepu_1_1ui.html">pu::ui</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a id="letter_P" name="letter_P">P</a></dt>
|
||||
<dd><a class="el" href="d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html">ProgressBar</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd></dl>
|
||||
<dl class="classindex odd">
|
||||
<dt class="alphachar"><a id="letter_R" name="letter_R">R</a></dt>
|
||||
<dd><a class="el" href="d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html">Rectangle</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd><dd><a class="el" href="d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html">Renderer</a> (<a class="el" href="da/d54/namespacepu_1_1ui_1_1render.html">pu::ui::render</a>)</dd><dd><a class="el" href="df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html">RendererInitOptions</a> (<a class="el" href="da/d54/namespacepu_1_1ui_1_1render.html">pu::ui::render</a>)</dd></dl>
|
||||
<dl class="classindex even">
|
||||
<dt class="alphachar"><a id="letter_T" name="letter_T">T</a></dt>
|
||||
<dd><a class="el" href="df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">TextBlock</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd><dd><a class="el" href="dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> (<a class="el" href="da/d54/namespacepu_1_1ui_1_1render.html">pu::ui::render</a>)</dd><dd><a class="el" href="dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html">Toast</a> (<a class="el" href="d6/d78/namespacepu_1_1ui_1_1extras.html">pu::ui::extras</a>)</dd><dd><a class="el" href="d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">Toggle</a> (<a class="el" href="d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a>)</dd><dd><a class="el" href="d7/d55/structpu_1_1ui_1_1_touch_point.html">TouchPoint</a> (<a class="el" href="d9/d7f/namespacepu_1_1ui.html">pu::ui</a>)</dd></dl>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Before Width: | Height: | Size: 132 B |
@ -1,139 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Member List</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d4/de7/classpu_1_1ui_1_1elm_1_1_button.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu::ui::elm::Button Member List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a5f0c0c8ebb428045c252982e41b272d3">Button</a>(const i32 x, const i32 y, const i32 width, const i32 height, const std::string &content, const Color content_clr, const Color bg_clr)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#afa07ff33700aa99860cdb0af03c70d2b">DarkerColorFactor</a></td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ace42a2334b07d91fe497afd19d9d0309">Element</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#ae2f2501d783efdb7b3ced2d2190d2c8f">GetBackgroundColor</a>()</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a5d3fbfa9377eeb649127cf5466ba8ad0">GetContent</a>()</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a77b2cd801abd49d196b3f260d37cfc97">GetContentColor</a>()</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#acd2c0a743568a3c67a50dfc100e68410">GetHeight</a>() override</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a5c4ca13c8d3d6ad52f819c2065021044">GetHorizontalAlign</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a4ffe541c96bd748fa94ae17e61eed5c6">GetProcessedX</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a1bccdd7cf0e52c2d7db2201a30d2287c">GetProcessedY</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a48cb61fcdbc2cf757e0f5abfc00c0800">GetVerticalAlign</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#ae05f8905ac9b6bdf7a2727b75c303b35">GetWidth</a>() override</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#abdd2e602eff0bbb9e8f759393270e9db">GetX</a>() override</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a4bccb6a42f53dbf60cbd4c96571b8e5c">GetY</a>() override</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a27117765b66cf5a7bcc6d272fac1bf48">h_align</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#aedae485321432d002e9a3fb6ed4c4637">HoverAlphaIncrement</a></td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a767a3e3f7456881f039e393018f7a11e">IsVisible</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#aa95f57228b0de124787f510e2ded931e">OnClickCallback</a> typedef</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a64bbcf78f31d506eec6e11589cbf8af0">OnInput</a>(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a532dfac675c372aa56a2445c4a08f8ee">OnRender</a>(render::Renderer::Ref &drawer, const i32 x, const i32 y) override</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2e6c995d5a409815b11e15f1f895534a">parent_container</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#aa7e7edf0aee7055a4f340ef21cf5f656">SetBackgroundColor</a>(const Color bg_clr)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a40da0a79b6c225c9697a42809d2d8568">SetContent</a>(const std::string &content)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a879ccf37c2d2eb8379de5332b47d9a02">SetContentColor</a>(const Color content_clr)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a8ed632555291dc6f4661380f284dcf6a">SetContentFont</a>(const std::string &font_name)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a15b66ac94d655acdea7a3e9025d91c69">SetHeight</a>(const i32 height)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aaca68308c70cafceb4478a7d4136fb0c">SetHorizontalAlign</a>(const HorizontalAlign align)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a021277a50f3443a58b5c7350546c95c4">SetOnClick</a>(OnClickCallback on_click_cb)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ade29148867c9c92641413bd2098cfb4c">SetParentContainer</a>(Container *parent_container)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2c8c5cdc38c92dc0d21438a2c0140348">SetVerticalAlign</a>(const VerticalAlign align)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a6c5335a9797837d95e9125af890ec2b7">SetVisible</a>(const bool visible)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#ab5aa432cd55a4ff5d6a572813f283238">SetWidth</a>(const i32 width)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a769db72c019d7cb99f9fcc1b9868fcdd">SetX</a>(const i32 x)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#a45a817b45a09bb02e8f77058ad3b81fe">SetY</a>(const i32 y)</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ac9085dcbc1b4061b22075bc1cd32cedd">v_align</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ad46fad870d47414f843f2f35d099f1da">visible</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html#ad83b1b31e145b3aef21244c2ae0765b4">~Button</a>()</td><td class="entry"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">pu::ui::elm::Button</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a56d6fc9e9a6924ac904cb380d8c38909">~Element</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,838 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: pu::ui::render::Renderer Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="../../df/d8b/classpu_1_1ui_1_1render_1_1_renderer-members.html">List of all members</a> </div>
|
||||
<div class="headertitle"><div class="title">pu::ui::render::Renderer Class Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><code>#include <<a class="el" href="../../d4/dbe/render___renderer_8hpp_source.html">render_Renderer.hpp</a>></code></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a2d06e4ab292e03c75b40d88562dd5469"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2d06e4ab292e03c75b40d88562dd5469">Renderer</a> (const <a class="el" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html">RendererInitOptions</a> init_opts)</td></tr>
|
||||
<tr class="separator:a2d06e4ab292e03c75b40d88562dd5469"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6dfe3a5a54c6fbefd664abb073fe4f4d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a6dfe3a5a54c6fbefd664abb073fe4f4d">Initialize</a> ()</td></tr>
|
||||
<tr class="separator:a6dfe3a5a54c6fbefd664abb073fe4f4d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a15df7905cffacb178961b93b87d990dc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a15df7905cffacb178961b93b87d990dc">Finalize</a> ()</td></tr>
|
||||
<tr class="separator:a15df7905cffacb178961b93b87d990dc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:afea5a6b3fe4e8b149fe97a3d6678e144"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#afea5a6b3fe4e8b149fe97a3d6678e144">HasInitialized</a> ()</td></tr>
|
||||
<tr class="separator:afea5a6b3fe4e8b149fe97a3d6678e144"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7eadc0c749b995b0e4011c4e0d59984a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a7eadc0c749b995b0e4011c4e0d59984a">HasRomFs</a> ()</td></tr>
|
||||
<tr class="separator:a7eadc0c749b995b0e4011c4e0d59984a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af8848fa4a8a13ec522d778d98955864c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af8848fa4a8a13ec522d778d98955864c">InitializeRender</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr)</td></tr>
|
||||
<tr class="separator:af8848fa4a8a13ec522d778d98955864c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab6e04837ac0ea0a08eeab90ec1d27df6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ab6e04837ac0ea0a08eeab90ec1d27df6">FinalizeRender</a> ()</td></tr>
|
||||
<tr class="separator:ab6e04837ac0ea0a08eeab90ec1d27df6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:add2a3ca972026eb6e715f01b019d7d3b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#add2a3ca972026eb6e715f01b019d7d3b">RenderTexture</a> (<a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">sdl2::Texture</a> texture, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> opts=<a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050">TextureRenderOptions::Default</a>)</td></tr>
|
||||
<tr class="separator:add2a3ca972026eb6e715f01b019d7d3b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2329b554520fa5dc1a02208f4a8a76f5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2329b554520fa5dc1a02208f4a8a76f5">RenderRectangle</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height)</td></tr>
|
||||
<tr class="separator:a2329b554520fa5dc1a02208f4a8a76f5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a866ae45b8730a2ad786a701b7bae02f2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a866ae45b8730a2ad786a701b7bae02f2">RenderRectangleFill</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height)</td></tr>
|
||||
<tr class="separator:a866ae45b8730a2ad786a701b7bae02f2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0ecd70fc83b371f2957f990363400faa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0ecd70fc83b371f2957f990363400faa">RenderRectangleOutline</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> border_width)</td></tr>
|
||||
<tr class="separator:a0ecd70fc83b371f2957f990363400faa"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a578c086e93c8eecc71995dbd170dc2f9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a578c086e93c8eecc71995dbd170dc2f9">RenderRoundedRectangle</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> radius)</td></tr>
|
||||
<tr class="separator:a578c086e93c8eecc71995dbd170dc2f9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a97268b78eb7286d476c39a3308b55483"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a97268b78eb7286d476c39a3308b55483">RenderRoundedRectangleFill</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> radius)</td></tr>
|
||||
<tr class="separator:a97268b78eb7286d476c39a3308b55483"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0c3cc8e8cec5f7c77db744441cf3d8ac"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0c3cc8e8cec5f7c77db744441cf3d8ac">RenderCircle</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> radius)</td></tr>
|
||||
<tr class="separator:a0c3cc8e8cec5f7c77db744441cf3d8ac"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad080dfb16df4d934d227c83195debd37"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad080dfb16df4d934d227c83195debd37">RenderCircleFill</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> radius)</td></tr>
|
||||
<tr class="separator:ad080dfb16df4d934d227c83195debd37"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a41477557dcafdb135112dbaec7980e17"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a41477557dcafdb135112dbaec7980e17">RenderShadowSimple</a> (const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> base_alpha, const u8 main_alpha=0xFF)</td></tr>
|
||||
<tr class="separator:a41477557dcafdb135112dbaec7980e17"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af3446219ca682fa60778a3509bbedbc4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af3446219ca682fa60778a3509bbedbc4">SetBaseRenderPosition</a> (const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y)</td></tr>
|
||||
<tr class="separator:af3446219ca682fa60778a3509bbedbc4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad1726412cb8b0f2658fa8ac980d40a5c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad1726412cb8b0f2658fa8ac980d40a5c">ResetBaseRenderPosition</a> ()</td></tr>
|
||||
<tr class="separator:ad1726412cb8b0f2658fa8ac980d40a5c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a86280457eb612a88ab7c00199a17c115"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a86280457eb612a88ab7c00199a17c115">SetBaseRenderAlpha</a> (const u8 alpha)</td></tr>
|
||||
<tr class="separator:a86280457eb612a88ab7c00199a17c115"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0acd213f97329a9f584b6983cfe61910"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0acd213f97329a9f584b6983cfe61910">ResetBaseRenderAlpha</a> ()</td></tr>
|
||||
<tr class="separator:a0acd213f97329a9f584b6983cfe61910"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a2d06e4ab292e03c75b40d88562dd5469" name="a2d06e4ab292e03c75b40d88562dd5469"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2d06e4ab292e03c75b40d88562dd5469">◆ </a></span>Renderer()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">pu::ui::render::Renderer::Renderer </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html">RendererInitOptions</a> </td>
|
||||
<td class="paramname"><em>init_opts</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a15df7905cffacb178961b93b87d990dc" name="a15df7905cffacb178961b93b87d990dc"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a15df7905cffacb178961b93b87d990dc">◆ </a></span>Finalize()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::Finalize </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ab6e04837ac0ea0a08eeab90ec1d27df6" name="ab6e04837ac0ea0a08eeab90ec1d27df6"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab6e04837ac0ea0a08eeab90ec1d27df6">◆ </a></span>FinalizeRender()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::FinalizeRender </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="afea5a6b3fe4e8b149fe97a3d6678e144" name="afea5a6b3fe4e8b149fe97a3d6678e144"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#afea5a6b3fe4e8b149fe97a3d6678e144">◆ </a></span>HasInitialized()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool pu::ui::render::Renderer::HasInitialized </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a7eadc0c749b995b0e4011c4e0d59984a" name="a7eadc0c749b995b0e4011c4e0d59984a"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7eadc0c749b995b0e4011c4e0d59984a">◆ </a></span>HasRomFs()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool pu::ui::render::Renderer::HasRomFs </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a6dfe3a5a54c6fbefd664abb073fe4f4d" name="a6dfe3a5a54c6fbefd664abb073fe4f4d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6dfe3a5a54c6fbefd664abb073fe4f4d">◆ </a></span>Initialize()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::Initialize </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="af8848fa4a8a13ec522d778d98955864c" name="af8848fa4a8a13ec522d778d98955864c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#af8848fa4a8a13ec522d778d98955864c">◆ </a></span>InitializeRender()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::InitializeRender </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>clr</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0c3cc8e8cec5f7c77db744441cf3d8ac" name="a0c3cc8e8cec5f7c77db744441cf3d8ac"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0c3cc8e8cec5f7c77db744441cf3d8ac">◆ </a></span>RenderCircle()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderCircle </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>clr</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad080dfb16df4d934d227c83195debd37" name="ad080dfb16df4d934d227c83195debd37"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad080dfb16df4d934d227c83195debd37">◆ </a></span>RenderCircleFill()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderCircleFill </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>clr</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2329b554520fa5dc1a02208f4a8a76f5" name="a2329b554520fa5dc1a02208f4a8a76f5"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2329b554520fa5dc1a02208f4a8a76f5">◆ </a></span>RenderRectangle()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderRectangle </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>clr</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>width</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>height</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a866ae45b8730a2ad786a701b7bae02f2" name="a866ae45b8730a2ad786a701b7bae02f2"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a866ae45b8730a2ad786a701b7bae02f2">◆ </a></span>RenderRectangleFill()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderRectangleFill </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>clr</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>width</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>height</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0ecd70fc83b371f2957f990363400faa" name="a0ecd70fc83b371f2957f990363400faa"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0ecd70fc83b371f2957f990363400faa">◆ </a></span>RenderRectangleOutline()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderRectangleOutline </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>clr</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>width</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>height</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>border_width</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a578c086e93c8eecc71995dbd170dc2f9" name="a578c086e93c8eecc71995dbd170dc2f9"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a578c086e93c8eecc71995dbd170dc2f9">◆ </a></span>RenderRoundedRectangle()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderRoundedRectangle </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>clr</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>width</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>height</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a97268b78eb7286d476c39a3308b55483" name="a97268b78eb7286d476c39a3308b55483"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a97268b78eb7286d476c39a3308b55483">◆ </a></span>RenderRoundedRectangleFill()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderRoundedRectangleFill </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>clr</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>width</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>height</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>radius</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a41477557dcafdb135112dbaec7980e17" name="a41477557dcafdb135112dbaec7980e17"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a41477557dcafdb135112dbaec7980e17">◆ </a></span>RenderShadowSimple()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderShadowSimple </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>width</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>height</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>base_alpha</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const u8 </td>
|
||||
<td class="paramname"><em>main_alpha</em> = <code>0xFF</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="add2a3ca972026eb6e715f01b019d7d3b" name="add2a3ca972026eb6e715f01b019d7d3b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#add2a3ca972026eb6e715f01b019d7d3b">◆ </a></span>RenderTexture()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::RenderTexture </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">sdl2::Texture</a> </td>
|
||||
<td class="paramname"><em>texture</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> </td>
|
||||
<td class="paramname"><em>opts</em> = <code><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050">TextureRenderOptions::Default</a></code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a0acd213f97329a9f584b6983cfe61910" name="a0acd213f97329a9f584b6983cfe61910"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a0acd213f97329a9f584b6983cfe61910">◆ </a></span>ResetBaseRenderAlpha()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::ResetBaseRenderAlpha </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad1726412cb8b0f2658fa8ac980d40a5c" name="ad1726412cb8b0f2658fa8ac980d40a5c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad1726412cb8b0f2658fa8ac980d40a5c">◆ </a></span>ResetBaseRenderPosition()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::ResetBaseRenderPosition </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a86280457eb612a88ab7c00199a17c115" name="a86280457eb612a88ab7c00199a17c115"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a86280457eb612a88ab7c00199a17c115">◆ </a></span>SetBaseRenderAlpha()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::SetBaseRenderAlpha </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const u8 </td>
|
||||
<td class="paramname"><em>alpha</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="af3446219ca682fa60778a3509bbedbc4" name="af3446219ca682fa60778a3509bbedbc4"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#af3446219ca682fa60778a3509bbedbc4">◆ </a></span>SetBaseRenderPosition()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::render::Renderer::SetBaseRenderPosition </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>Plutonium/include/pu/ui/render/<a class="el" href="../../d4/dbe/render___renderer_8hpp_source.html">render_Renderer.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../da/df2/namespacepu.html">pu</a></li><li class="navelem"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">ui</a></li><li class="navelem"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html">render</a></li><li class="navelem"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html">Renderer</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
var classpu_1_1ui_1_1render_1_1_renderer =
|
||||
[
|
||||
[ "Renderer", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2d06e4ab292e03c75b40d88562dd5469", null ],
|
||||
[ "Finalize", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a15df7905cffacb178961b93b87d990dc", null ],
|
||||
[ "FinalizeRender", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ab6e04837ac0ea0a08eeab90ec1d27df6", null ],
|
||||
[ "HasInitialized", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#afea5a6b3fe4e8b149fe97a3d6678e144", null ],
|
||||
[ "HasRomFs", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a7eadc0c749b995b0e4011c4e0d59984a", null ],
|
||||
[ "Initialize", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a6dfe3a5a54c6fbefd664abb073fe4f4d", null ],
|
||||
[ "InitializeRender", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af8848fa4a8a13ec522d778d98955864c", null ],
|
||||
[ "RenderCircle", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0c3cc8e8cec5f7c77db744441cf3d8ac", null ],
|
||||
[ "RenderCircleFill", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad080dfb16df4d934d227c83195debd37", null ],
|
||||
[ "RenderRectangle", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2329b554520fa5dc1a02208f4a8a76f5", null ],
|
||||
[ "RenderRectangleFill", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a866ae45b8730a2ad786a701b7bae02f2", null ],
|
||||
[ "RenderRectangleOutline", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0ecd70fc83b371f2957f990363400faa", null ],
|
||||
[ "RenderRoundedRectangle", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a578c086e93c8eecc71995dbd170dc2f9", null ],
|
||||
[ "RenderRoundedRectangleFill", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a97268b78eb7286d476c39a3308b55483", null ],
|
||||
[ "RenderShadowSimple", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a41477557dcafdb135112dbaec7980e17", null ],
|
||||
[ "RenderTexture", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#add2a3ca972026eb6e715f01b019d7d3b", null ],
|
||||
[ "ResetBaseRenderAlpha", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0acd213f97329a9f584b6983cfe61910", null ],
|
||||
[ "ResetBaseRenderPosition", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad1726412cb8b0f2658fa8ac980d40a5c", null ],
|
||||
[ "SetBaseRenderAlpha", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a86280457eb612a88ab7c00199a17c115", null ],
|
||||
[ "SetBaseRenderPosition", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af3446219ca682fa60778a3509bbedbc4", null ]
|
||||
];
|
@ -1,130 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/sdl2/sdl2_Types.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d29/sdl2___types_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#typedef-members">Typedefs</a> </div>
|
||||
<div class="headertitle"><div class="title">sdl2_Types.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <SDL2/SDL.h></code><br />
|
||||
<code>#include <SDL2/SDL2_gfxPrimitives.h></code><br />
|
||||
<code>#include <SDL2/SDL_image.h></code><br />
|
||||
<code>#include <SDL2/SDL_mixer.h></code><br />
|
||||
<code>#include <<a class="el" href="../../de/dfe/sdl2___custom_ttf_8h_source.html">pu/sdl2/sdl2_CustomTtf.h</a>></code><br />
|
||||
</div>
|
||||
<p><a href="../../d0/d29/sdl2___types_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d1/d78/namespacepu_1_1sdl2"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html">pu::sdl2</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr class="memitem:a65fedc3a65aa972d8e05f05545a65fc3"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">pu::sdl2::Texture</a> = SDL_Texture *</td></tr>
|
||||
<tr class="separator:a65fedc3a65aa972d8e05f05545a65fc3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4dc2c75c183ac8dd775de27b4e26b932"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a4dc2c75c183ac8dd775de27b4e26b932">pu::sdl2::Window</a> = SDL_Window *</td></tr>
|
||||
<tr class="separator:a4dc2c75c183ac8dd775de27b4e26b932"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4872247f27ba13a3f3db43c110da39c0"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">pu::sdl2::Renderer</a> = SDL_Renderer *</td></tr>
|
||||
<tr class="separator:a4872247f27ba13a3f3db43c110da39c0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6cc3040689b5eaa481307108ed33d996"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a6cc3040689b5eaa481307108ed33d996">pu::sdl2::Font</a> = <a class="el" href="../../de/dfe/sdl2___custom_ttf_8h.html#ac3b14e1c2946c0cf19776fe568d9abcf">TTF_Font</a> *</td></tr>
|
||||
<tr class="separator:a6cc3040689b5eaa481307108ed33d996"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a00c40ae94ad2fc0b78571071c62faa19"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a00c40ae94ad2fc0b78571071c62faa19">pu::sdl2::Surface</a> = SDL_Surface *</td></tr>
|
||||
<tr class="separator:a00c40ae94ad2fc0b78571071c62faa19"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_c56977794eda337641b99df1140d49e6.html">sdl2</a></li><li class="navelem"><a class="el" href="../../d0/d29/sdl2___types_8hpp.html">sdl2_Types.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,8 +0,0 @@
|
||||
var sdl2___types_8hpp =
|
||||
[
|
||||
[ "Font", "d0/d29/sdl2___types_8hpp.html#a6cc3040689b5eaa481307108ed33d996", null ],
|
||||
[ "Renderer", "d0/d29/sdl2___types_8hpp.html#a4872247f27ba13a3f3db43c110da39c0", null ],
|
||||
[ "Surface", "d0/d29/sdl2___types_8hpp.html#a00c40ae94ad2fc0b78571071c62faa19", null ],
|
||||
[ "Texture", "d0/d29/sdl2___types_8hpp.html#a65fedc3a65aa972d8e05f05545a65fc3", null ],
|
||||
[ "Window", "d0/d29/sdl2___types_8hpp.html#a4dc2c75c183ac8dd775de27b4e26b932", null ]
|
||||
];
|
@ -1,124 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/sdl2/sdl2_Types.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d29/sdl2___types_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">sdl2_Types.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d0/d29/sdl2___types_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="preprocessor">#include <SDL2/SDL.h></span></div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include <SDL2/SDL2_gfxPrimitives.h></span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include <SDL2/SDL_image.h></span></div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="preprocessor">#include <SDL2/SDL_mixer.h></span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <<a class="code" href="../../de/dfe/sdl2___custom_ttf_8h.html">pu/sdl2/sdl2_CustomTtf.h</a>></span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"><a class="line" href="../../d1/d78/namespacepu_1_1sdl2.html"> 9</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d1/d78/namespacepu_1_1sdl2.html">pu::sdl2</a> {</div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3"> 11</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">Texture</a> = SDL_Texture*;</div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="../../d1/d78/namespacepu_1_1sdl2.html#a4dc2c75c183ac8dd775de27b4e26b932"> 12</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a4dc2c75c183ac8dd775de27b4e26b932">Window</a> = SDL_Window*;</div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0"> 13</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">Renderer</a> = SDL_Renderer*;</div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="../../d1/d78/namespacepu_1_1sdl2.html#a6cc3040689b5eaa481307108ed33d996"> 14</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a6cc3040689b5eaa481307108ed33d996">Font</a> = <a class="code hl_typedef" href="../../de/dfe/sdl2___custom_ttf_8h.html#ac3b14e1c2946c0cf19776fe568d9abcf">TTF_Font</a>*;</div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="../../d1/d78/namespacepu_1_1sdl2.html#a00c40ae94ad2fc0b78571071c62faa19"> 15</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a00c40ae94ad2fc0b78571071c62faa19">Surface</a> = SDL_Surface*;</div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span>}</div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html">pu::sdl2</a></div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:9</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a00c40ae94ad2fc0b78571071c62faa19"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a00c40ae94ad2fc0b78571071c62faa19">pu::sdl2::Surface</a></div><div class="ttdeci">SDL_Surface * Surface</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:15</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a4872247f27ba13a3f3db43c110da39c0"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">pu::sdl2::Renderer</a></div><div class="ttdeci">SDL_Renderer * Renderer</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:13</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a4dc2c75c183ac8dd775de27b4e26b932"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a4dc2c75c183ac8dd775de27b4e26b932">pu::sdl2::Window</a></div><div class="ttdeci">SDL_Window * Window</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:12</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a65fedc3a65aa972d8e05f05545a65fc3"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">pu::sdl2::Texture</a></div><div class="ttdeci">SDL_Texture * Texture</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:11</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a6cc3040689b5eaa481307108ed33d996"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a6cc3040689b5eaa481307108ed33d996">pu::sdl2::Font</a></div><div class="ttdeci">TTF_Font * Font</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:14</div></div>
|
||||
<div class="ttc" id="asdl2___custom_ttf_8h_html"><div class="ttname"><a href="../../de/dfe/sdl2___custom_ttf_8h.html">sdl2_CustomTtf.h</a></div></div>
|
||||
<div class="ttc" id="asdl2___custom_ttf_8h_html_ac3b14e1c2946c0cf19776fe568d9abcf"><div class="ttname"><a href="../../de/dfe/sdl2___custom_ttf_8h.html#ac3b14e1c2946c0cf19776fe568d9abcf">TTF_Font</a></div><div class="ttdeci">struct _TTF_Font TTF_Font</div><div class="ttdef"><b>Definition:</b> sdl2_CustomTtf.h:79</div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_c56977794eda337641b99df1140d49e6.html">sdl2</a></li><li class="navelem"><a class="el" href="../../d0/d29/sdl2___types_8hpp.html">sdl2_Types.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,107 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Member List</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d7/d55/structpu_1_1ui_1_1_touch_point.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu::ui::TouchPoint Member List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html#a7797241cb367e5ffbbd2f5d9e7c59929">HitsRegion</a>(const i32 region_x, const i32 region_y, const i32 region_w, const i32 region_h) const</td><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html#ad1919bedf08cd88f0f0b5d085f435910">IsEmpty</a>() const</td><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html#a463faa05a99d011664b24321d91afd94">TouchPoint</a>()</td><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html#a3101acfec15553d4e497641acf07f1b2">TouchPoint</a>(const u32 x, const u32 y)</td><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html#a911f7a0d75d0b3e8ea256a0ba5530956">x</a></td><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html#a1b490a4531448177279248ec32286074">y</a></td><td class="entry"><a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,129 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/audio/audio_Sfx.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d98/audio___sfx_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#typedef-members">Typedefs</a> |
|
||||
<a href="#func-members">Functions</a> </div>
|
||||
<div class="headertitle"><div class="title">audio_Sfx.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <SDL2/SDL_mixer.h></code><br />
|
||||
<code>#include <<a class="el" href="../../d1/d52/pu___include_8hpp_source.html">pu/pu_Include.hpp</a>></code><br />
|
||||
</div>
|
||||
<p><a href="../../d0/d98/audio___sfx_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d8/d8f/namespacepu_1_1audio"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d8f/namespacepu_1_1audio.html">pu::audio</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr class="memitem:a21bc80b31e5b3e065615f5f24880e747"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d8f/namespacepu_1_1audio.html#a21bc80b31e5b3e065615f5f24880e747">pu::audio::Sfx</a> = Mix_Chunk *</td></tr>
|
||||
<tr class="separator:a21bc80b31e5b3e065615f5f24880e747"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:a9d37a88a7efef6bac8947b853965234b"><td class="memItemLeft" align="right" valign="top">Sfx </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d8f/namespacepu_1_1audio.html#a9d37a88a7efef6bac8947b853965234b">pu::audio::LoadSfx</a> (const std::string &path)</td></tr>
|
||||
<tr class="separator:a9d37a88a7efef6bac8947b853965234b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a38344de3e19215b9d8125e6971c7f6cd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d8f/namespacepu_1_1audio.html#a38344de3e19215b9d8125e6971c7f6cd">pu::audio::PlaySfx</a> (Sfx sfx)</td></tr>
|
||||
<tr class="separator:a38344de3e19215b9d8125e6971c7f6cd"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac3d79067485a253473beeae7691fea65"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d8/d8f/namespacepu_1_1audio.html#ac3d79067485a253473beeae7691fea65">pu::audio::DestroySfx</a> (Sfx &sfx)</td></tr>
|
||||
<tr class="separator:ac3d79067485a253473beeae7691fea65"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_5f40385c74880ea2ff624017833b6602.html">audio</a></li><li class="navelem"><a class="el" href="../../d0/d98/audio___sfx_8hpp.html">audio_Sfx.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,7 +0,0 @@
|
||||
var audio___sfx_8hpp =
|
||||
[
|
||||
[ "Sfx", "d0/d98/audio___sfx_8hpp.html#a21bc80b31e5b3e065615f5f24880e747", null ],
|
||||
[ "DestroySfx", "d0/d98/audio___sfx_8hpp.html#ac3d79067485a253473beeae7691fea65", null ],
|
||||
[ "LoadSfx", "d0/d98/audio___sfx_8hpp.html#a9d37a88a7efef6bac8947b853965234b", null ],
|
||||
[ "PlaySfx", "d0/d98/audio___sfx_8hpp.html#a38344de3e19215b9d8125e6971c7f6cd", null ]
|
||||
];
|
@ -1,131 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/audio/audio_Sfx.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/d98/audio___sfx_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">audio_Sfx.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d0/d98/audio___sfx_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Plutonium library</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> @file audio_Sfx.hpp</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> @brief Sfx (sound effects) support</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> @author XorTroll</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <SDL2/SDL_mixer.h></span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <<a class="code" href="../../d1/d52/pu___include_8hpp.html">pu/pu_Include.hpp</a>></span> </div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d8/d8f/namespacepu_1_1audio.html">pu::audio</a> {</div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="../../d8/d8f/namespacepu_1_1audio.html#a21bc80b31e5b3e065615f5f24880e747"> 20</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../d8/d8f/namespacepu_1_1audio.html#a21bc80b31e5b3e065615f5f24880e747">Sfx</a> = Mix_Chunk*;</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../d8/d8f/namespacepu_1_1audio.html#a9d37a88a7efef6bac8947b853965234b"> 22</a></span> <a class="code hl_typedef" href="../../d8/d8f/namespacepu_1_1audio.html#a21bc80b31e5b3e065615f5f24880e747">Sfx</a> <a class="code hl_function" href="../../d8/d8f/namespacepu_1_1audio.html#a9d37a88a7efef6bac8947b853965234b">LoadSfx</a>(<span class="keyword">const</span> std::string &path);</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../d8/d8f/namespacepu_1_1audio.html#a38344de3e19215b9d8125e6971c7f6cd"> 23</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d8/d8f/namespacepu_1_1audio.html#a38344de3e19215b9d8125e6971c7f6cd">PlaySfx</a>(<a class="code hl_typedef" href="../../d8/d8f/namespacepu_1_1audio.html#a21bc80b31e5b3e065615f5f24880e747">Sfx</a> sfx);</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../d8/d8f/namespacepu_1_1audio.html#ac3d79067485a253473beeae7691fea65"> 24</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d8/d8f/namespacepu_1_1audio.html#ac3d79067485a253473beeae7691fea65">DestroySfx</a>(<a class="code hl_typedef" href="../../d8/d8f/namespacepu_1_1audio.html#a21bc80b31e5b3e065615f5f24880e747">Sfx</a> &sfx);</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span>}</div>
|
||||
<div class="ttc" id="anamespacepu_1_1audio_html"><div class="ttname"><a href="../../d8/d8f/namespacepu_1_1audio.html">pu::audio</a></div><div class="ttdef"><b>Definition:</b> audio_Music.hpp:18</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1audio_html_a21bc80b31e5b3e065615f5f24880e747"><div class="ttname"><a href="../../d8/d8f/namespacepu_1_1audio.html#a21bc80b31e5b3e065615f5f24880e747">pu::audio::Sfx</a></div><div class="ttdeci">Mix_Chunk * Sfx</div><div class="ttdef"><b>Definition:</b> audio_Sfx.hpp:20</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1audio_html_a38344de3e19215b9d8125e6971c7f6cd"><div class="ttname"><a href="../../d8/d8f/namespacepu_1_1audio.html#a38344de3e19215b9d8125e6971c7f6cd">pu::audio::PlaySfx</a></div><div class="ttdeci">void PlaySfx(Sfx sfx)</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1audio_html_a9d37a88a7efef6bac8947b853965234b"><div class="ttname"><a href="../../d8/d8f/namespacepu_1_1audio.html#a9d37a88a7efef6bac8947b853965234b">pu::audio::LoadSfx</a></div><div class="ttdeci">Sfx LoadSfx(const std::string &path)</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1audio_html_ac3d79067485a253473beeae7691fea65"><div class="ttname"><a href="../../d8/d8f/namespacepu_1_1audio.html#ac3d79067485a253473beeae7691fea65">pu::audio::DestroySfx</a></div><div class="ttdeci">void DestroySfx(Sfx &sfx)</div></div>
|
||||
<div class="ttc" id="apu___include_8hpp_html"><div class="ttname"><a href="../../d1/d52/pu___include_8hpp.html">pu_Include.hpp</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_5f40385c74880ea2ff624017833b6602.html">audio</a></li><li class="navelem"><a class="el" href="../../d0/d98/audio___sfx_8hpp.html">audio_Sfx.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,120 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/elm/elm_Toggle.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/db0/elm___toggle_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle"><div class="title">elm_Toggle.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <<a class="el" href="../../d9/d3b/elm___element_8hpp_source.html">pu/ui/elm/elm_Element.hpp</a>></code><br />
|
||||
</div>
|
||||
<p><a href="../../d0/db0/elm___toggle_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d9/d7f/namespacepu_1_1ui"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">pu::ui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d2/d5e/namespacepu_1_1ui_1_1elm"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_db07433c06ed2bf7b5f4eabd443f7fba.html">elm</a></li><li class="navelem"><a class="el" href="../../d0/db0/elm___toggle_8hpp.html">elm_Toggle.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,224 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/elm/elm_Toggle.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d0/db0/elm___toggle_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">elm_Toggle.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d0/db0/elm___toggle_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Plutonium library</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> @file Toggle.hpp</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> @brief A Toggle is an Element used to switch between two options by toggling the item.</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> @author XorTroll</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <<a class="code" href="../../d9/d3b/elm___element_8hpp.html">pu/ui/elm/elm_Element.hpp</a>></span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a> {</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html"> 19</a></span> <span class="keyword">class </span><a class="code hl_class" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">Toggle</a> : <span class="keyword">public</span> <a class="code hl_class" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">Element</a> {</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a20a81cbb6c858f1a890f935416561728"> 21</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a20a81cbb6c858f1a890f935416561728">ContentHorizontalMargin</a> = 30;</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#aa9140fb959a2a590d70b1b0f095502df"> 22</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#aa9140fb959a2a590d70b1b0f095502df">ContentVerticalMargin</a> = 20;</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a4fb466d4378838309f7ad8d5f4c3e942"> 24</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u8 <a class="code hl_variable" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a4fb466d4378838309f7ad8d5f4c3e942">ToggleAlphaIncrement</a> = 48;</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a762f3c84bb082ee80883e85c42c78615"> 26</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a762f3c84bb082ee80883e85c42c78615">MakeBackgroundColor</a>(<span class="keyword">const</span> u8 alpha) {</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keywordflow">return</span> { 130, 130, 130, alpha };</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> }</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x;</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y;</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> u64 key;</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordtype">bool</span> checked;</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr;</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> std::string fnt_name;</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> toggle_alpha;</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> std::string cnt;</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">sdl2::Texture</a> cnt_tex;</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0186168d3a517849bbeaaa8fbb540430"> 42</a></span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0186168d3a517849bbeaaa8fbb540430">Toggle</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> std::string &content, <span class="keyword">const</span> u64 toggle_key, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr);</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> <a class="code hl_define" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a>(<a class="code hl_class" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">Toggle</a>)</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a28cb352af8e25b4e1a3539e67d49dcd4"> 44</a></span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a28cb352af8e25b4e1a3539e67d49dcd4">~Toggle</a>();</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a8f24f57a781c4dbcbe65b7bb907c9e87"> 46</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a8f24f57a781c4dbcbe65b7bb907c9e87">GetX</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">return</span> this->x;</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> }</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0818618e7b6d9f1714ddaa13024f0534"> 50</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0818618e7b6d9f1714ddaa13024f0534">SetX</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x) {</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> this->x = x;</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> }</div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a40d4a4dbeba921e66cf19d4f00fa0ed4"> 54</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a40d4a4dbeba921e66cf19d4f00fa0ed4">GetY</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">return</span> this->y;</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#af623ffcba145eb610e462697cba933b7"> 58</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#af623ffcba145eb610e462697cba933b7">SetY</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) {</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> this->y = y;</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a886903ec6fb56e75055115d2eb242dff"> 62</a></span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a886903ec6fb56e75055115d2eb242dff">GetWidth</a>() <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a5d734cdb6bca6698215fabc6006bcaa5"> 63</a></span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a5d734cdb6bca6698215fabc6006bcaa5">GetHeight</a>() <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a2fc38b22e8b699c3db16ba0268f79385"> 65</a></span> <span class="keyword">inline</span> std::string <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a2fc38b22e8b699c3db16ba0268f79385">GetContent</a>() {</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> this->cnt;</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a526a4ca5b3b1640c05de417376f13b38"> 69</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a526a4ca5b3b1640c05de417376f13b38">SetContent</a>(<span class="keyword">const</span> std::string &content);</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0493a6c73540df78ca927ce7c9523ced"> 70</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0493a6c73540df78ca927ce7c9523ced">SetFont</a>(<span class="keyword">const</span> std::string &font_name);</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#aadeebe9f6943dff46a8f0af7bdcc15f6"> 72</a></span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#aadeebe9f6943dff46a8f0af7bdcc15f6">GetColor</a>() {</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> this->clr;</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a5142174fffaba6ea1929aa9494b26827"> 76</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a5142174fffaba6ea1929aa9494b26827">SetColor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr);</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a126b6b2ff787655e65d7666f7e06416f"> 78</a></span> <span class="keyword">inline</span> u64 <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a126b6b2ff787655e65d7666f7e06416f">GetKey</a>() {</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">return</span> this->key;</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a3f01aa38e90da5012e9f377cb301dc50"> 82</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a3f01aa38e90da5012e9f377cb301dc50">SetKey</a>(<span class="keyword">const</span> u64 toggle_key) {</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> this->key = toggle_key;</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> }</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a31fbd169f44ddcd3458b4674b6880f5f"> 86</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a31fbd169f44ddcd3458b4674b6880f5f">IsChecked</a>() {</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">return</span> this->checked;</div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a38f0f65de3e93674d90d332d73c2e505"> 90</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a38f0f65de3e93674d90d332d73c2e505">OnRender</a>(render::Renderer::Ref &drawer, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a4a6ddbe6286b2e7780a2bc947730adf2"> 91</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a4a6ddbe6286b2e7780a2bc947730adf2">OnInput</a>(<span class="keyword">const</span> u64 keys_down, <span class="keyword">const</span> u64 keys_up, <span class="keyword">const</span> u64 keys_held, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">TouchPoint</a> touch_pos) <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> };</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span>}</div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_element_html"><div class="ttname"><a href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></div><div class="ttdef"><b>Definition:</b> elm_Element.hpp:37</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:19</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a0186168d3a517849bbeaaa8fbb540430"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0186168d3a517849bbeaaa8fbb540430">pu::ui::elm::Toggle::Toggle</a></div><div class="ttdeci">Toggle(const i32 x, const i32 y, const std::string &content, const u64 toggle_key, const Color clr)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a0493a6c73540df78ca927ce7c9523ced"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0493a6c73540df78ca927ce7c9523ced">pu::ui::elm::Toggle::SetFont</a></div><div class="ttdeci">void SetFont(const std::string &font_name)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a0818618e7b6d9f1714ddaa13024f0534"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0818618e7b6d9f1714ddaa13024f0534">pu::ui::elm::Toggle::SetX</a></div><div class="ttdeci">void SetX(const i32 x)</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:50</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a126b6b2ff787655e65d7666f7e06416f"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a126b6b2ff787655e65d7666f7e06416f">pu::ui::elm::Toggle::GetKey</a></div><div class="ttdeci">u64 GetKey()</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:78</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a20a81cbb6c858f1a890f935416561728"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a20a81cbb6c858f1a890f935416561728">pu::ui::elm::Toggle::ContentHorizontalMargin</a></div><div class="ttdeci">static constexpr u32 ContentHorizontalMargin</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:21</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a28cb352af8e25b4e1a3539e67d49dcd4"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a28cb352af8e25b4e1a3539e67d49dcd4">pu::ui::elm::Toggle::~Toggle</a></div><div class="ttdeci">~Toggle()</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a2fc38b22e8b699c3db16ba0268f79385"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a2fc38b22e8b699c3db16ba0268f79385">pu::ui::elm::Toggle::GetContent</a></div><div class="ttdeci">std::string GetContent()</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:65</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a31fbd169f44ddcd3458b4674b6880f5f"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a31fbd169f44ddcd3458b4674b6880f5f">pu::ui::elm::Toggle::IsChecked</a></div><div class="ttdeci">bool IsChecked()</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:86</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a38f0f65de3e93674d90d332d73c2e505"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a38f0f65de3e93674d90d332d73c2e505">pu::ui::elm::Toggle::OnRender</a></div><div class="ttdeci">void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a3f01aa38e90da5012e9f377cb301dc50"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a3f01aa38e90da5012e9f377cb301dc50">pu::ui::elm::Toggle::SetKey</a></div><div class="ttdeci">void SetKey(const u64 toggle_key)</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:82</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a40d4a4dbeba921e66cf19d4f00fa0ed4"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a40d4a4dbeba921e66cf19d4f00fa0ed4">pu::ui::elm::Toggle::GetY</a></div><div class="ttdeci">i32 GetY() override</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:54</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a4a6ddbe6286b2e7780a2bc947730adf2"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a4a6ddbe6286b2e7780a2bc947730adf2">pu::ui::elm::Toggle::OnInput</a></div><div class="ttdeci">void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a4fb466d4378838309f7ad8d5f4c3e942"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a4fb466d4378838309f7ad8d5f4c3e942">pu::ui::elm::Toggle::ToggleAlphaIncrement</a></div><div class="ttdeci">static constexpr u8 ToggleAlphaIncrement</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:24</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a5142174fffaba6ea1929aa9494b26827"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a5142174fffaba6ea1929aa9494b26827">pu::ui::elm::Toggle::SetColor</a></div><div class="ttdeci">void SetColor(const Color clr)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a526a4ca5b3b1640c05de417376f13b38"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a526a4ca5b3b1640c05de417376f13b38">pu::ui::elm::Toggle::SetContent</a></div><div class="ttdeci">void SetContent(const std::string &content)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a5d734cdb6bca6698215fabc6006bcaa5"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a5d734cdb6bca6698215fabc6006bcaa5">pu::ui::elm::Toggle::GetHeight</a></div><div class="ttdeci">i32 GetHeight() override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a762f3c84bb082ee80883e85c42c78615"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a762f3c84bb082ee80883e85c42c78615">pu::ui::elm::Toggle::MakeBackgroundColor</a></div><div class="ttdeci">static constexpr Color MakeBackgroundColor(const u8 alpha)</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:26</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a886903ec6fb56e75055115d2eb242dff"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a886903ec6fb56e75055115d2eb242dff">pu::ui::elm::Toggle::GetWidth</a></div><div class="ttdeci">i32 GetWidth() override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_a8f24f57a781c4dbcbe65b7bb907c9e87"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a8f24f57a781c4dbcbe65b7bb907c9e87">pu::ui::elm::Toggle::GetX</a></div><div class="ttdeci">i32 GetX() override</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:46</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_aa9140fb959a2a590d70b1b0f095502df"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#aa9140fb959a2a590d70b1b0f095502df">pu::ui::elm::Toggle::ContentVerticalMargin</a></div><div class="ttdeci">static constexpr u32 ContentVerticalMargin</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:22</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_aadeebe9f6943dff46a8f0af7bdcc15f6"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#aadeebe9f6943dff46a8f0af7bdcc15f6">pu::ui::elm::Toggle::GetColor</a></div><div class="ttdeci">Color GetColor()</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:72</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_toggle_html_af623ffcba145eb610e462697cba933b7"><div class="ttname"><a href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#af623ffcba145eb610e462697cba933b7">pu::ui::elm::Toggle::SetY</a></div><div class="ttdeci">void SetY(const i32 y)</div><div class="ttdef"><b>Definition:</b> elm_Toggle.hpp:58</div></div>
|
||||
<div class="ttc" id="aelm___element_8hpp_html"><div class="ttname"><a href="../../d9/d3b/elm___element_8hpp.html">elm_Element.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a65fedc3a65aa972d8e05f05545a65fc3"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">pu::sdl2::Texture</a></div><div class="ttdeci">SDL_Texture * Texture</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:11</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1elm_html"><div class="ttname"><a href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a></div><div class="ttdef"><b>Definition:</b> elm_Button.hpp:18</div></div>
|
||||
<div class="ttc" id="anamespacepu_html_ad6f40fe34a42045f7df3275f60b00e99"><div class="ttname"><a href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">pu::i32</a></div><div class="ttdeci">s32 i32</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:28</div></div>
|
||||
<div class="ttc" id="apu___include_8hpp_html_a2655f4e800efdd50e106951c6667d8d1"><div class="ttname"><a href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a></div><div class="ttdeci">#define PU_SMART_CTOR(type)</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:19</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:44</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_touch_point_html"><div class="ttname"><a href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:62</div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_db07433c06ed2bf7b5f4eabd443f7fba.html">elm</a></li><li class="navelem"><a class="el" href="../../d0/db0/elm___toggle_8hpp.html">elm_Toggle.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,154 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Member List</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu::ui::elm::Menu Member List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a29a820f09597fef7e363cfaacf6d4f7a">AddItem</a>(MenuItem::Ref &item)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abf94e076df3b81e5f35a22afcf8e59a2">ClearItems</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a51883af6fcc217c66c9b414b025ca29f">DefaultScrollbarColor</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ace42a2334b07d91fe497afd19d9d0309">Element</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a65ceb988a218bbbd3fe7e1dd89ebf413">GetHeight</a>() override</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a5c4ca13c8d3d6ad52f819c2065021044">GetHorizontalAlign</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a958940cffac582f4f9fe4b4529d8a0d0">GetItems</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abdcdcbb6636030cea9c93bd5ee1f2454">GetItemsColor</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a09f75b0b56096167ef9599fed1ebc6b2">GetItemsFocusColor</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1e036067e712794ef90eb6dfc18123df">GetItemsHeight</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a159b01bf00f53d240a7f9d2476c984a1">GetNumberOfItemsToShow</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a4ffe541c96bd748fa94ae17e61eed5c6">GetProcessedX</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a1bccdd7cf0e52c2d7db2201a30d2287c">GetProcessedY</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af645770008526443f4544623e7e51eba">GetScrollbarColor</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2c62051cb4d00c989e3dc3f0cda27438">GetSelectedIndex</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1b94e50b817d58ca2fab65f3682d4c80">GetSelectedItem</a>()</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a48cb61fcdbc2cf757e0f5abfc00c0800">GetVerticalAlign</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a66c4d9b796198ba19d802b8f6ae9d412">GetWidth</a>() override</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#add328966e5eccbb162e158796527168e">GetX</a>() override</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ac47968d50273b93d35ef38edeb4c3e66">GetY</a>() override</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a27117765b66cf5a7bcc6d272fac1bf48">h_align</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0e6d0fe95a46289c40441e8644445d">IconItemSizesFactor</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a87a799cbe4cee1e3c434fc00cbed4903">IconMargin</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a767a3e3f7456881f039e393018f7a11e">IsVisible</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a39184ce87a23d17e70865e6998a56aaa">ItemAlphaIncrement</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad5e26ee602c66c6d8eb95d4699eb77e2">LightScrollbarColorFactor</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ae8b2cae8e3a15b2040aa27056eefdc39">Menu</a>(const i32 x, const i32 y, const i32 width, const Color items_clr, const Color items_focus_clr, const i32 items_height, const i32 items_to_show)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a8513f7fc66b938d0cbaec4dc7e42f986">OnInput</a>(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab00c239a39190158a37866235e9b87d5">OnRender</a>(render::Renderer::Ref &drawer, const i32 x, const i32 y) override</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af1b77782418095762505bbd1d3022451">OnSelectionChangedCallback</a> typedef</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2e6c995d5a409815b11e15f1f895534a">parent_container</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2b3b88d164f08916e85676f65c59a715">ScrollbarWidth</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a21b17603c72e6afac87d21391d689835">SetCooldownEnabled</a>(const bool enabled)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aaca68308c70cafceb4478a7d4136fb0c">SetHorizontalAlign</a>(const HorizontalAlign align)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad656b194db971dd374e9aa931df0c37b">SetItemsColor</a>(const Color items_clr)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0109316c9734d6db2d555262017785">SetItemsFocusColor</a>(const Color items_focus_clr)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af9df49cb62e6786a83fbb5a181fffdc8">SetItemsHeight</a>(const i32 items_height)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aab52de9e0a906d8fc4ddafcf04322067">SetNumberOfItemsToShow</a>(const i32 items_to_show)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a6f7c8e6e462df71fb54eef0aebb781e9">SetOnSelectionChanged</a>(OnSelectionChangedCallback on_selection_changed_cb)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ade29148867c9c92641413bd2098cfb4c">SetParentContainer</a>(Container *parent_container)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a0b2197f2c4e59271bcc7a30f9dd731d9">SetScrollbarColor</a>(const Color scrollbar_clr)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2a7c18fb29fe2802d1de5278922c0dd5">SetSelectedIndex</a>(const i32 idx)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2c8c5cdc38c92dc0d21438a2c0140348">SetVerticalAlign</a>(const VerticalAlign align)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a6c5335a9797837d95e9125af890ec2b7">SetVisible</a>(const bool visible)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aa66f87d0e1843745e71d51cc035591b9">SetWidth</a>(const i32 width)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a55b92cfb287ab8c25fc95eb6a672771f">SetX</a>(const i32 x)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a06fc20588804c20a00a43c81fe70b382">SetY</a>(const i32 y)</td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a96db8cad313dedb360e4b54fea41aa6e">ShadowBaseAlpha</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab1d3d1185ddae9d7add1237a75623f1e">ShadowHeight</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a28f36a9751b1e84e17f4984d32f7a8b5">TextMargin</a></td><td class="entry"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ac9085dcbc1b4061b22075bc1cd32cedd">v_align</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ad46fad870d47414f843f2f35d099f1da">visible</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a56d6fc9e9a6924ac904cb380d8c38909">~Element</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,148 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/pu_Include.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d1/d52/pu___include_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#define-members">Macros</a> |
|
||||
<a href="#typedef-members">Typedefs</a> </div>
|
||||
<div class="headertitle"><div class="title">pu_Include.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <switch.h></code><br />
|
||||
<code>#include <string></code><br />
|
||||
<code>#include <memory></code><br />
|
||||
</div>
|
||||
<p><a href="../../d1/d52/pu___include_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
||||
Macros</h2></td></tr>
|
||||
<tr class="memitem:a2655f4e800efdd50e106951c6667d8d1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a>(type)</td></tr>
|
||||
<tr class="separator:a2655f4e800efdd50e106951c6667d8d1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr class="memitem:ad6f40fe34a42045f7df3275f60b00e99"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">pu::i32</a> = s32</td></tr>
|
||||
<tr class="separator:ad6f40fe34a42045f7df3275f60b00e99"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<h2 class="groupheader">Macro Definition Documentation</h2>
|
||||
<a id="a2655f4e800efdd50e106951c6667d8d1" name="a2655f4e800efdd50e106951c6667d8d1"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2655f4e800efdd50e106951c6667d8d1">◆ </a></span>PU_SMART_CTOR</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">#define PU_SMART_CTOR</td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"> </td>
|
||||
<td class="paramname">type</td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<b>Value:</b><div class="fragment"><div class="line"><span class="keyword">using</span> Ref = std::shared_ptr<type>; \</div>
|
||||
<div class="line">template<<span class="keyword">typename</span> ...Args> \</div>
|
||||
<div class="line">inline <span class="keyword">static</span> Ref New(Args &&...ctor_args) { \</div>
|
||||
<div class="line"> return std::move(std::make_shared<type>(std::forward<Args>(ctor_args)...)); \</div>
|
||||
<div class="line">}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../d1/d52/pu___include_8hpp.html">pu_Include.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,5 +0,0 @@
|
||||
var pu___include_8hpp =
|
||||
[
|
||||
[ "PU_SMART_CTOR", "d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1", null ],
|
||||
[ "i32", "d1/d52/pu___include_8hpp.html#ad6f40fe34a42045f7df3275f60b00e99", null ]
|
||||
];
|
@ -1,131 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/pu_Include.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d1/d52/pu___include_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu_Include.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d1/d52/pu___include_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Plutonium library</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> @file pu_Include.hpp</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> @brief Basic includes and definitions for the library</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew</span></div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> </div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include <switch.h></span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <string></span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <memory></span></div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment">// Defines a static function (::New(...)) as a constructor for smart ptrs, also defines a custom type (::Ref) to simplify it</span></div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1"> 19</a></span><span class="preprocessor">#define PU_SMART_CTOR(type) \</span></div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">using Ref = std::shared_ptr<type>; \</span></div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">template<typename ...Args> \</span></div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">inline static Ref New(Args &&...ctor_args) { \</span></div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor"> return std::move(std::make_shared<type>(std::forward<Args>(ctor_args)...)); \</span></div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">}</span></div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../da/df2/namespacepu.html">pu</a> {</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99"> 28</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> = s32;</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span>}</div>
|
||||
<div class="ttc" id="anamespacepu_html"><div class="ttname"><a href="../../da/df2/namespacepu.html">pu</a></div><div class="ttdef"><b>Definition:</b> audio_Music.hpp:18</div></div>
|
||||
<div class="ttc" id="anamespacepu_html_ad6f40fe34a42045f7df3275f60b00e99"><div class="ttname"><a href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">pu::i32</a></div><div class="ttdeci">s32 i32</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:28</div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../d1/d52/pu___include_8hpp.html">pu_Include.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,114 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Member List</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('dd/d76/classpu_1_1ttf_1_1_font.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu::ttf::Font Member List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#abb4ac46c73eaefd27282a6b3460d2a28">DefaultFontSize</a></td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a11cb4d9c0e5a4a89327a2c08d211c27b">EmptyFontFaceDisposingFunction</a>(void *)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a9a58d1b9ed579353b70fff68e5fd096d">FindValidFontFor</a>(const char ch)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#ab8d94d1d98e3d64184413d01992808e8">Font</a>(const u32 font_sz)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a75155cdaaa058dc76401839b6643ebfb">GetFontSize</a>()</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#adf857402bea5c385c17189953ec24b22">GetTextDimensions</a>(const std::string &str)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a99ce50e78019ea5a048d5f2f040e0f43">InvalidFontFaceIndex</a></td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a9bf8adcefc6de5b8ce195556184c9794">IsValidFontFaceIndex</a>(const i32 index)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#adbc4327d5579e631ab212396aaca21fd">LoadFromFile</a>(const std::string &path)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a53e4bb1bfa859c9e07d3b9531459d496">LoadFromMemory</a>(void *ptr, const size_t size, FontFaceDisposingFunction disp_fn)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a63b8e719cf5a6badb9b381fc4437b316">RenderText</a>(const std::string &str, const ui::Color clr)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a09f2e16e3ec0e20a61c49b9899ec0796">Unload</a>(const i32 font_idx)</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html#a5013c818d4c511e5a90e261e9c5e3323">~Font</a>()</td><td class="entry"><a class="el" href="../../dd/d76/classpu_1_1ttf_1_1_font.html">pu::ttf::Font</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,186 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: pu::sdl2 Namespace Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d1/d78/namespacepu_1_1sdl2.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#typedef-members">Typedefs</a> </div>
|
||||
<div class="headertitle"><div class="title">pu::sdl2 Namespace Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
||||
Typedefs</h2></td></tr>
|
||||
<tr class="memitem:a65fedc3a65aa972d8e05f05545a65fc3"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">Texture</a> = SDL_Texture *</td></tr>
|
||||
<tr class="separator:a65fedc3a65aa972d8e05f05545a65fc3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4dc2c75c183ac8dd775de27b4e26b932"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a4dc2c75c183ac8dd775de27b4e26b932">Window</a> = SDL_Window *</td></tr>
|
||||
<tr class="separator:a4dc2c75c183ac8dd775de27b4e26b932"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4872247f27ba13a3f3db43c110da39c0"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">Renderer</a> = SDL_Renderer *</td></tr>
|
||||
<tr class="separator:a4872247f27ba13a3f3db43c110da39c0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6cc3040689b5eaa481307108ed33d996"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a6cc3040689b5eaa481307108ed33d996">Font</a> = <a class="el" href="../../de/dfe/sdl2___custom_ttf_8h.html#ac3b14e1c2946c0cf19776fe568d9abcf">TTF_Font</a> *</td></tr>
|
||||
<tr class="separator:a6cc3040689b5eaa481307108ed33d996"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a00c40ae94ad2fc0b78571071c62faa19"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a00c40ae94ad2fc0b78571071c62faa19">Surface</a> = SDL_Surface *</td></tr>
|
||||
<tr class="separator:a00c40ae94ad2fc0b78571071c62faa19"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<h2 class="groupheader">Typedef Documentation</h2>
|
||||
<a id="a6cc3040689b5eaa481307108ed33d996" name="a6cc3040689b5eaa481307108ed33d996"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6cc3040689b5eaa481307108ed33d996">◆ </a></span>Font</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">using <a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a6cc3040689b5eaa481307108ed33d996">pu::sdl2::Font</a> = typedef <a class="el" href="../../de/dfe/sdl2___custom_ttf_8h.html#ac3b14e1c2946c0cf19776fe568d9abcf">TTF_Font</a>*</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a4872247f27ba13a3f3db43c110da39c0" name="a4872247f27ba13a3f3db43c110da39c0"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a4872247f27ba13a3f3db43c110da39c0">◆ </a></span>Renderer</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">using <a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">pu::sdl2::Renderer</a> = typedef SDL_Renderer*</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a00c40ae94ad2fc0b78571071c62faa19" name="a00c40ae94ad2fc0b78571071c62faa19"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a00c40ae94ad2fc0b78571071c62faa19">◆ </a></span>Surface</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">using <a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a00c40ae94ad2fc0b78571071c62faa19">pu::sdl2::Surface</a> = typedef SDL_Surface*</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a65fedc3a65aa972d8e05f05545a65fc3" name="a65fedc3a65aa972d8e05f05545a65fc3"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a65fedc3a65aa972d8e05f05545a65fc3">◆ </a></span>Texture</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">using <a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">pu::sdl2::Texture</a> = typedef SDL_Texture*</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a4dc2c75c183ac8dd775de27b4e26b932" name="a4dc2c75c183ac8dd775de27b4e26b932"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a4dc2c75c183ac8dd775de27b4e26b932">◆ </a></span>Window</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">using <a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html#a4dc2c75c183ac8dd775de27b4e26b932">pu::sdl2::Window</a> = typedef SDL_Window*</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../da/df2/namespacepu.html">pu</a></li><li class="navelem"><a class="el" href="../../d1/d78/namespacepu_1_1sdl2.html">sdl2</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,124 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/elm/elm_Menu.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d1/dd0/elm___menu_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle"><div class="title">elm_Menu.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <<a class="el" href="../../d9/d3b/elm___element_8hpp_source.html">pu/ui/elm/elm_Element.hpp</a>></code><br />
|
||||
<code>#include <chrono></code><br />
|
||||
<code>#include <functional></code><br />
|
||||
</div>
|
||||
<p><a href="../../d1/dd0/elm___menu_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html">pu::ui::elm::MenuItem</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d9/d7f/namespacepu_1_1ui"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">pu::ui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d2/d5e/namespacepu_1_1ui_1_1elm"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_db07433c06ed2bf7b5f4eabd443f7fba.html">elm</a></li><li class="navelem"><a class="el" href="../../d1/dd0/elm___menu_8hpp.html">elm_Menu.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,446 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/elm/elm_Menu.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d1/dd0/elm___menu_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">elm_Menu.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d1/dd0/elm___menu_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Plutonium library</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> @file Menu.hpp</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> @brief A Menu is a very useful Element for option browsing or selecting.</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> @author XorTroll</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <<a class="code" href="../../d9/d3b/elm___element_8hpp.html">pu/ui/elm/elm_Element.hpp</a>></span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <chrono></span></div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <functional></span></div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a> {</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html"> 21</a></span> <span class="keyword">class </span><a class="code hl_class" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html">MenuItem</a> {</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a8e77055d6b85df04010739767c61c48d"> 23</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a8e77055d6b85df04010739767c61c48d">OnKeyCallback</a> = std::function<void()>;</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a62b160e43a24fa6466a0f3081a2d12b1"> 24</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_variable" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a62b160e43a24fa6466a0f3081a2d12b1">DefaultColor</a> = { 10, 10, 10, 0xFF };</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> std::string name;</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> items_clr;</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> std::string icon_path;</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> std::vector<OnKeyCallback> on_key_cbs;</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> std::vector<u64> on_key_cb_keys;</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a83c50c4ca5f49289da2026fe0f662d7c"> 34</a></span> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a83c50c4ca5f49289da2026fe0f662d7c">MenuItem</a>(<span class="keyword">const</span> std::string &name) : name(name), items_clr(<a class="code hl_variable" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a62b160e43a24fa6466a0f3081a2d12b1">DefaultColor</a>) {}</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <a class="code hl_define" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a>(<a class="code hl_class" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html">MenuItem</a>)</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#ab6e9f3a65809763aa70b11ba66abc251"> 37</a></span> inline std::<span class="keywordtype">string</span> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#ab6e9f3a65809763aa70b11ba66abc251">GetName</a>() {</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">return</span> this->name;</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> }</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a3182a41b6b6d604d8692cc4d0338f1b7"> 41</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a3182a41b6b6d604d8692cc4d0338f1b7">SetName</a>(<span class="keyword">const</span> std::string &name) {</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> this->name = name;</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a13c86f370dfdde1b9d19762840d8d57a"> 45</a></span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a13c86f370dfdde1b9d19762840d8d57a">GetColor</a>() {</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keywordflow">return</span> this->items_clr;</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a94298f10821ae13f41ebedebe68dd170"> 49</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a94298f10821ae13f41ebedebe68dd170">SetColor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> items_clr) {</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> this->items_clr = items_clr;</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a5b7f483bde86cd3237f7e3bdb21ba437"> 53</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a5b7f483bde86cd3237f7e3bdb21ba437">AddOnKey</a>(<a class="code hl_typedef" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a8e77055d6b85df04010739767c61c48d">OnKeyCallback</a> on_key_cb, <span class="keyword">const</span> u64 key = HidNpadButton_A);</div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#af62ad8e3368a430c2818314dd8be4701"> 55</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#af62ad8e3368a430c2818314dd8be4701">GetOnKeyCallbackCount</a>() {</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keywordflow">return</span> this->on_key_cbs.size();</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> }</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a2f027a733ec2016f064b8b73aafbcfab"> 59</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a8e77055d6b85df04010739767c61c48d">OnKeyCallback</a> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a2f027a733ec2016f064b8b73aafbcfab">GetOnKeyCallback</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> idx) {</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordflow">if</span>(idx < this->on_key_cbs.size()) {</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keywordflow">return</span> this->on_key_cbs.at(idx);</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> }</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">return</span> {};</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> }</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> }</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#afdce956c0700df79ae134845257648f3"> 68</a></span> <span class="keyword">inline</span> u64 <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#afdce956c0700df79ae134845257648f3">GetOnKeyCallbackKey</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> idx) {</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keywordflow">if</span>(idx < this->on_key_cb_keys.size()) {</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordflow">return</span> this->on_key_cb_keys.at(idx);</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> }</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">return</span> {};</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> }</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> }</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a5652491238e88f142625db867ca95523"> 77</a></span> <span class="keyword">inline</span> std::string <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a5652491238e88f142625db867ca95523">GetIconPath</a>() {</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordflow">return</span> this->icon_path;</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> }</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a75ed47105bec4304b2ba457d1c301f4f"> 81</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a75ed47105bec4304b2ba457d1c301f4f">SetIcon</a>(<span class="keyword">const</span> std::string &icon_path);</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a32324239744b25ddf9256887069b554c"> 83</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a32324239744b25ddf9256887069b554c">HasIcon</a>() {</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordflow">return</span> !this->icon_path.empty();</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> }</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> };</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html"> 88</a></span> <span class="keyword">class </span><a class="code hl_class" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">Menu</a> : <span class="keyword">public</span> <a class="code hl_class" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">Element</a> {</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a51883af6fcc217c66c9b414b025ca29f"> 90</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a51883af6fcc217c66c9b414b025ca29f">DefaultScrollbarColor</a> = { 110, 110, 110, 0xFF };</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a39184ce87a23d17e70865e6998a56aaa"> 92</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u8 <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a39184ce87a23d17e70865e6998a56aaa">ItemAlphaIncrement</a> = 48;</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0e6d0fe95a46289c40441e8644445d"> 94</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0e6d0fe95a46289c40441e8644445d">IconItemSizesFactor</a> = 0.8f;</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a87a799cbe4cee1e3c434fc00cbed4903"> 96</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a87a799cbe4cee1e3c434fc00cbed4903">IconMargin</a> = 25;</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a28f36a9751b1e84e17f4984d32f7a8b5"> 97</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a28f36a9751b1e84e17f4984d32f7a8b5">TextMargin</a> = 25;</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad5e26ee602c66c6d8eb95d4699eb77e2"> 99</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u8 <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad5e26ee602c66c6d8eb95d4699eb77e2">LightScrollbarColorFactor</a> = 30;</div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2b3b88d164f08916e85676f65c59a715"> 101</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2b3b88d164f08916e85676f65c59a715">ScrollbarWidth</a> = 20;</div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab1d3d1185ddae9d7add1237a75623f1e"> 103</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab1d3d1185ddae9d7add1237a75623f1e">ShadowHeight</a> = 5;</div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a96db8cad313dedb360e4b54fea41aa6e"> 104</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u8 <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a96db8cad313dedb360e4b54fea41aa6e">ShadowBaseAlpha</a> = 160;</div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> </div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af1b77782418095762505bbd1d3022451"> 106</a></span> <span class="keyword">using</span> <a class="code hl_typedef" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af1b77782418095762505bbd1d3022451">OnSelectionChangedCallback</a> = std::function<void()>;</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x;</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y;</div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> w;</div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> items_h;</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> items_to_show;</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> selected_item_idx;</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> selected_item_alpha;</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> prev_selected_item_idx;</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> prev_selected_item_alpha;</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> advanced_item_count;</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> scrollbar_clr;</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> items_clr;</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> items_focus_clr;</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keywordtype">bool</span> cooldown_enabled;</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordtype">bool</span> item_touched;</div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> u8 move_mode;</div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> std::chrono::time_point<std::chrono::steady_clock> move_start_time;</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <a class="code hl_typedef" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af1b77782418095762505bbd1d3022451">OnSelectionChangedCallback</a> on_selection_changed_cb;</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> std::vector<MenuItem::Ref> items;</div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> std::string font_name;</div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> std::vector<sdl2::Texture> loaded_name_texs;</div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> std::vector<sdl2::Texture> loaded_icon_texs;</div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">void</span> ReloadItemRenders();</div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> MakeItemsFocusColor(<span class="keyword">const</span> u8 alpha) {</div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">return</span> { this->items_focus_clr.<a class="code hl_variable" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a85b0f2161d79f9260d7fbbe5db89a07b">r</a>, this->items_focus_clr.<a class="code hl_variable" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a4674bc7b15dea3d689f6310185347586">g</a>, this->items_focus_clr.<a class="code hl_variable" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#ae55e2a30e1796df374dd677d31d83342">b</a>, alpha };</div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">inline</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> MakeLighterScrollbarColor() {</div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> base_r = this->scrollbar_clr.<a class="code hl_variable" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a85b0f2161d79f9260d7fbbe5db89a07b">r</a> - <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad5e26ee602c66c6d8eb95d4699eb77e2">LightScrollbarColorFactor</a>;</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordflow">if</span>(base_r < 0) {</div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> base_r = 0;</div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> }</div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> base_g = this->scrollbar_clr.<a class="code hl_variable" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a4674bc7b15dea3d689f6310185347586">g</a> - <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad5e26ee602c66c6d8eb95d4699eb77e2">LightScrollbarColorFactor</a>;</div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordflow">if</span>(base_g < 0) {</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> base_g = 0;</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> }</div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> base_b = this->scrollbar_clr.<a class="code hl_variable" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#ae55e2a30e1796df374dd677d31d83342">b</a> - <a class="code hl_variable" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad5e26ee602c66c6d8eb95d4699eb77e2">LightScrollbarColorFactor</a>;</div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordflow">if</span>(base_b < 0) {</div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> base_b = 0;</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> }</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
||||
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keywordflow">return</span> { <span class="keyword">static_cast<</span>u8<span class="keyword">></span>(base_r), <span class="keyword">static_cast<</span>u8<span class="keyword">></span>(base_g), <span class="keyword">static_cast<</span>u8<span class="keyword">></span>(base_b), this->scrollbar_clr.<a class="code hl_variable" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a5c34ea431e3f4bdeb80c2bf6a2cf0950">a</a> };</div>
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> }</div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> HandleOnSelectionChanged() {</div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keywordflow">if</span>(this->on_selection_changed_cb) {</div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> (this->on_selection_changed_cb)();</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> }</div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> }</div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> RunSelectedItemCallback(<span class="keyword">const</span> u64 keys) {</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">auto</span> item = this->items.at(this->selected_item_idx);</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keyword">const</span> <span class="keyword">auto</span> cb_count = item->GetOnKeyCallbackCount();</div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <span class="keywordflow">for</span>(<a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> i = 0; i < cb_count; i++) {</div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keywordflow">if</span>(keys & item->GetOnKeyCallbackKey(i)) {</div>
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordflow">if</span>(!this->cooldown_enabled) {</div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keyword">auto</span> cb = item->GetOnKeyCallback(i);</div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <span class="keywordflow">if</span>(cb) {</div>
|
||||
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> cb();</div>
|
||||
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> }</div>
|
||||
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> }</div>
|
||||
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> }</div>
|
||||
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> }</div>
|
||||
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> this->cooldown_enabled = <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> }</div>
|
||||
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
|
||||
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ae8b2cae8e3a15b2040aa27056eefdc39"> 178</a></span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ae8b2cae8e3a15b2040aa27056eefdc39">Menu</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> items_clr, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> items_focus_clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> items_height, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> items_to_show);</div>
|
||||
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <a class="code hl_define" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a>(<a class="code hl_class" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">Menu</a>)</div>
|
||||
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
|
||||
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#add328966e5eccbb162e158796527168e"> 181</a></span> inline <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#add328966e5eccbb162e158796527168e">GetX</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <span class="keywordflow">return</span> this->x;</div>
|
||||
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> }</div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> </div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a55b92cfb287ab8c25fc95eb6a672771f"> 185</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a55b92cfb287ab8c25fc95eb6a672771f">SetX</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x) {</div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> this->x = x;</div>
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> }</div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ac47968d50273b93d35ef38edeb4c3e66"> 189</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ac47968d50273b93d35ef38edeb4c3e66">GetY</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keywordflow">return</span> this->y;</div>
|
||||
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> }</div>
|
||||
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
|
||||
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a06fc20588804c20a00a43c81fe70b382"> 193</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a06fc20588804c20a00a43c81fe70b382">SetY</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) {</div>
|
||||
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> this->y = y;</div>
|
||||
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> }</div>
|
||||
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
|
||||
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a66c4d9b796198ba19d802b8f6ae9d412"> 197</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a66c4d9b796198ba19d802b8f6ae9d412">GetWidth</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="keywordflow">return</span> this->w;</div>
|
||||
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> }</div>
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div>
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aa66f87d0e1843745e71d51cc035591b9"> 201</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aa66f87d0e1843745e71d51cc035591b9">SetWidth</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width) {</div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> this->w = width;</div>
|
||||
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> }</div>
|
||||
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
|
||||
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a65ceb988a218bbbd3fe7e1dd89ebf413"> 205</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a65ceb988a218bbbd3fe7e1dd89ebf413">GetHeight</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keywordflow">return</span> this->items_h * this->items_to_show;</div>
|
||||
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> }</div>
|
||||
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> </div>
|
||||
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1e036067e712794ef90eb6dfc18123df"> 209</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1e036067e712794ef90eb6dfc18123df">GetItemsHeight</a>() {</div>
|
||||
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <span class="keywordflow">return</span> this->items_h;</div>
|
||||
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> }</div>
|
||||
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> </div>
|
||||
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af9df49cb62e6786a83fbb5a181fffdc8"> 213</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af9df49cb62e6786a83fbb5a181fffdc8">SetItemsHeight</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> items_height) {</div>
|
||||
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> this->items_h = items_height;</div>
|
||||
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> }</div>
|
||||
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> </div>
|
||||
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a159b01bf00f53d240a7f9d2476c984a1"> 217</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a159b01bf00f53d240a7f9d2476c984a1">GetNumberOfItemsToShow</a>() {</div>
|
||||
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordflow">return</span> this->items_to_show;</div>
|
||||
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> }</div>
|
||||
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> </div>
|
||||
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aab52de9e0a906d8fc4ddafcf04322067"> 221</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aab52de9e0a906d8fc4ddafcf04322067">SetNumberOfItemsToShow</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> items_to_show) {</div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> this->items_to_show = items_to_show;</div>
|
||||
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> }</div>
|
||||
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> </div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abdcdcbb6636030cea9c93bd5ee1f2454"> 225</a></span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abdcdcbb6636030cea9c93bd5ee1f2454">GetItemsColor</a>() {</div>
|
||||
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> <span class="keywordflow">return</span> this->items_clr;</div>
|
||||
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> }</div>
|
||||
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> </div>
|
||||
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad656b194db971dd374e9aa931df0c37b"> 229</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad656b194db971dd374e9aa931df0c37b">SetItemsColor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> items_clr) {</div>
|
||||
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> this->items_clr = items_clr;</div>
|
||||
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> }</div>
|
||||
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> </div>
|
||||
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a09f75b0b56096167ef9599fed1ebc6b2"> 233</a></span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a09f75b0b56096167ef9599fed1ebc6b2">GetItemsFocusColor</a>() {</div>
|
||||
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <span class="keywordflow">return</span> this->items_focus_clr;</div>
|
||||
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> }</div>
|
||||
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> </div>
|
||||
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0109316c9734d6db2d555262017785"> 237</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0109316c9734d6db2d555262017785">SetItemsFocusColor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> items_focus_clr) {</div>
|
||||
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> this->items_focus_clr = items_focus_clr;</div>
|
||||
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> }</div>
|
||||
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
|
||||
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af645770008526443f4544623e7e51eba"> 241</a></span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af645770008526443f4544623e7e51eba">GetScrollbarColor</a>() {</div>
|
||||
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">return</span> this->scrollbar_clr;</div>
|
||||
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> }</div>
|
||||
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> </div>
|
||||
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a0b2197f2c4e59271bcc7a30f9dd731d9"> 245</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a0b2197f2c4e59271bcc7a30f9dd731d9">SetScrollbarColor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> scrollbar_clr) {</div>
|
||||
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> this->scrollbar_clr = scrollbar_clr;</div>
|
||||
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> }</div>
|
||||
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> </div>
|
||||
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a6f7c8e6e462df71fb54eef0aebb781e9"> 249</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a6f7c8e6e462df71fb54eef0aebb781e9">SetOnSelectionChanged</a>(<a class="code hl_typedef" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af1b77782418095762505bbd1d3022451">OnSelectionChangedCallback</a> on_selection_changed_cb) {</div>
|
||||
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> this->on_selection_changed_cb = on_selection_changed_cb;</div>
|
||||
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> }</div>
|
||||
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> </div>
|
||||
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a29a820f09597fef7e363cfaacf6d4f7a"> 253</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a29a820f09597fef7e363cfaacf6d4f7a">AddItem</a>(MenuItem::Ref &item) {</div>
|
||||
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> this->items.push_back(item);</div>
|
||||
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> }</div>
|
||||
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> </div>
|
||||
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abf94e076df3b81e5f35a22afcf8e59a2"> 257</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abf94e076df3b81e5f35a22afcf8e59a2">ClearItems</a>() {</div>
|
||||
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> this->items.clear();</div>
|
||||
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> }</div>
|
||||
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> </div>
|
||||
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a21b17603c72e6afac87d21391d689835"> 261</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a21b17603c72e6afac87d21391d689835">SetCooldownEnabled</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> enabled) {</div>
|
||||
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> this->cooldown_enabled = enabled;</div>
|
||||
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> }</div>
|
||||
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> </div>
|
||||
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1b94e50b817d58ca2fab65f3682d4c80"> 265</a></span> <span class="keyword">inline</span> MenuItem::Ref &<a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1b94e50b817d58ca2fab65f3682d4c80">GetSelectedItem</a>() {</div>
|
||||
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <span class="keywordflow">return</span> this->items.at(this->selected_item_idx);</div>
|
||||
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> }</div>
|
||||
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> </div>
|
||||
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a958940cffac582f4f9fe4b4529d8a0d0"> 269</a></span> <span class="keyword">inline</span> std::vector<MenuItem::Ref> &<a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a958940cffac582f4f9fe4b4529d8a0d0">GetItems</a>() {</div>
|
||||
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="keywordflow">return</span> this->items;</div>
|
||||
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> }</div>
|
||||
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> </div>
|
||||
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2c62051cb4d00c989e3dc3f0cda27438"> 273</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2c62051cb4d00c989e3dc3f0cda27438">GetSelectedIndex</a>() {</div>
|
||||
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> <span class="keywordflow">return</span> this->selected_item_idx;</div>
|
||||
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> }</div>
|
||||
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> </div>
|
||||
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2a7c18fb29fe2802d1de5278922c0dd5"> 277</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2a7c18fb29fe2802d1de5278922c0dd5">SetSelectedIndex</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> idx);</div>
|
||||
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
|
||||
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab00c239a39190158a37866235e9b87d5"> 279</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab00c239a39190158a37866235e9b87d5">OnRender</a>(render::Renderer::Ref &drawer, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a8513f7fc66b938d0cbaec4dc7e42f986"> 280</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a8513f7fc66b938d0cbaec4dc7e42f986">OnInput</a>(<span class="keyword">const</span> u64 keys_down, <span class="keyword">const</span> u64 keys_up, <span class="keyword">const</span> u64 keys_held, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">TouchPoint</a> touch_pos) <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> };</div>
|
||||
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span>}</div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_element_html"><div class="ttname"><a href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></div><div class="ttdef"><b>Definition:</b> elm_Element.hpp:37</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">pu::ui::elm::Menu</a></div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:88</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a06fc20588804c20a00a43c81fe70b382"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a06fc20588804c20a00a43c81fe70b382">pu::ui::elm::Menu::SetY</a></div><div class="ttdeci">void SetY(const i32 y)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:193</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a09f75b0b56096167ef9599fed1ebc6b2"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a09f75b0b56096167ef9599fed1ebc6b2">pu::ui::elm::Menu::GetItemsFocusColor</a></div><div class="ttdeci">Color GetItemsFocusColor()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:233</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a0b2197f2c4e59271bcc7a30f9dd731d9"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a0b2197f2c4e59271bcc7a30f9dd731d9">pu::ui::elm::Menu::SetScrollbarColor</a></div><div class="ttdeci">void SetScrollbarColor(const Color scrollbar_clr)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:245</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a159b01bf00f53d240a7f9d2476c984a1"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a159b01bf00f53d240a7f9d2476c984a1">pu::ui::elm::Menu::GetNumberOfItemsToShow</a></div><div class="ttdeci">i32 GetNumberOfItemsToShow()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:217</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a1b94e50b817d58ca2fab65f3682d4c80"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1b94e50b817d58ca2fab65f3682d4c80">pu::ui::elm::Menu::GetSelectedItem</a></div><div class="ttdeci">MenuItem::Ref & GetSelectedItem()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:265</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a1e036067e712794ef90eb6dfc18123df"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a1e036067e712794ef90eb6dfc18123df">pu::ui::elm::Menu::GetItemsHeight</a></div><div class="ttdeci">i32 GetItemsHeight()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:209</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a21b17603c72e6afac87d21391d689835"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a21b17603c72e6afac87d21391d689835">pu::ui::elm::Menu::SetCooldownEnabled</a></div><div class="ttdeci">void SetCooldownEnabled(const bool enabled)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:261</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a28f36a9751b1e84e17f4984d32f7a8b5"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a28f36a9751b1e84e17f4984d32f7a8b5">pu::ui::elm::Menu::TextMargin</a></div><div class="ttdeci">static constexpr u32 TextMargin</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:97</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a29a820f09597fef7e363cfaacf6d4f7a"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a29a820f09597fef7e363cfaacf6d4f7a">pu::ui::elm::Menu::AddItem</a></div><div class="ttdeci">void AddItem(MenuItem::Ref &item)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:253</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a2a7c18fb29fe2802d1de5278922c0dd5"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2a7c18fb29fe2802d1de5278922c0dd5">pu::ui::elm::Menu::SetSelectedIndex</a></div><div class="ttdeci">void SetSelectedIndex(const i32 idx)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a2b3b88d164f08916e85676f65c59a715"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2b3b88d164f08916e85676f65c59a715">pu::ui::elm::Menu::ScrollbarWidth</a></div><div class="ttdeci">static constexpr u32 ScrollbarWidth</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:101</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a2c62051cb4d00c989e3dc3f0cda27438"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a2c62051cb4d00c989e3dc3f0cda27438">pu::ui::elm::Menu::GetSelectedIndex</a></div><div class="ttdeci">i32 GetSelectedIndex()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:273</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a39184ce87a23d17e70865e6998a56aaa"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a39184ce87a23d17e70865e6998a56aaa">pu::ui::elm::Menu::ItemAlphaIncrement</a></div><div class="ttdeci">static constexpr u8 ItemAlphaIncrement</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:92</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a51883af6fcc217c66c9b414b025ca29f"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a51883af6fcc217c66c9b414b025ca29f">pu::ui::elm::Menu::DefaultScrollbarColor</a></div><div class="ttdeci">static constexpr Color DefaultScrollbarColor</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:90</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a55b92cfb287ab8c25fc95eb6a672771f"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a55b92cfb287ab8c25fc95eb6a672771f">pu::ui::elm::Menu::SetX</a></div><div class="ttdeci">void SetX(const i32 x)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:185</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a65ceb988a218bbbd3fe7e1dd89ebf413"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a65ceb988a218bbbd3fe7e1dd89ebf413">pu::ui::elm::Menu::GetHeight</a></div><div class="ttdeci">i32 GetHeight() override</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:205</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a66c4d9b796198ba19d802b8f6ae9d412"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a66c4d9b796198ba19d802b8f6ae9d412">pu::ui::elm::Menu::GetWidth</a></div><div class="ttdeci">i32 GetWidth() override</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:197</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a6f7c8e6e462df71fb54eef0aebb781e9"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a6f7c8e6e462df71fb54eef0aebb781e9">pu::ui::elm::Menu::SetOnSelectionChanged</a></div><div class="ttdeci">void SetOnSelectionChanged(OnSelectionChangedCallback on_selection_changed_cb)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:249</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a8513f7fc66b938d0cbaec4dc7e42f986"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a8513f7fc66b938d0cbaec4dc7e42f986">pu::ui::elm::Menu::OnInput</a></div><div class="ttdeci">void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a87a799cbe4cee1e3c434fc00cbed4903"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a87a799cbe4cee1e3c434fc00cbed4903">pu::ui::elm::Menu::IconMargin</a></div><div class="ttdeci">static constexpr u32 IconMargin</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:96</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a958940cffac582f4f9fe4b4529d8a0d0"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a958940cffac582f4f9fe4b4529d8a0d0">pu::ui::elm::Menu::GetItems</a></div><div class="ttdeci">std::vector< MenuItem::Ref > & GetItems()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:269</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_a96db8cad313dedb360e4b54fea41aa6e"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#a96db8cad313dedb360e4b54fea41aa6e">pu::ui::elm::Menu::ShadowBaseAlpha</a></div><div class="ttdeci">static constexpr u8 ShadowBaseAlpha</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:104</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_aa66f87d0e1843745e71d51cc035591b9"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aa66f87d0e1843745e71d51cc035591b9">pu::ui::elm::Menu::SetWidth</a></div><div class="ttdeci">void SetWidth(const i32 width)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:201</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_aab52de9e0a906d8fc4ddafcf04322067"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#aab52de9e0a906d8fc4ddafcf04322067">pu::ui::elm::Menu::SetNumberOfItemsToShow</a></div><div class="ttdeci">void SetNumberOfItemsToShow(const i32 items_to_show)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:221</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_ab00c239a39190158a37866235e9b87d5"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab00c239a39190158a37866235e9b87d5">pu::ui::elm::Menu::OnRender</a></div><div class="ttdeci">void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_ab1d3d1185ddae9d7add1237a75623f1e"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ab1d3d1185ddae9d7add1237a75623f1e">pu::ui::elm::Menu::ShadowHeight</a></div><div class="ttdeci">static constexpr u32 ShadowHeight</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:103</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_abdcdcbb6636030cea9c93bd5ee1f2454"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abdcdcbb6636030cea9c93bd5ee1f2454">pu::ui::elm::Menu::GetItemsColor</a></div><div class="ttdeci">Color GetItemsColor()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:225</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_abf94e076df3b81e5f35a22afcf8e59a2"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#abf94e076df3b81e5f35a22afcf8e59a2">pu::ui::elm::Menu::ClearItems</a></div><div class="ttdeci">void ClearItems()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:257</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_ac47968d50273b93d35ef38edeb4c3e66"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ac47968d50273b93d35ef38edeb4c3e66">pu::ui::elm::Menu::GetY</a></div><div class="ttdeci">i32 GetY() override</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:189</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_ad5e26ee602c66c6d8eb95d4699eb77e2"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad5e26ee602c66c6d8eb95d4699eb77e2">pu::ui::elm::Menu::LightScrollbarColorFactor</a></div><div class="ttdeci">static constexpr u8 LightScrollbarColorFactor</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:99</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_ad656b194db971dd374e9aa931df0c37b"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ad656b194db971dd374e9aa931df0c37b">pu::ui::elm::Menu::SetItemsColor</a></div><div class="ttdeci">void SetItemsColor(const Color items_clr)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:229</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_add328966e5eccbb162e158796527168e"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#add328966e5eccbb162e158796527168e">pu::ui::elm::Menu::GetX</a></div><div class="ttdeci">i32 GetX() override</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:181</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_ae8b2cae8e3a15b2040aa27056eefdc39"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#ae8b2cae8e3a15b2040aa27056eefdc39">pu::ui::elm::Menu::Menu</a></div><div class="ttdeci">Menu(const i32 x, const i32 y, const i32 width, const Color items_clr, const Color items_focus_clr, const i32 items_height, const i32 items_to_show)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_af1b77782418095762505bbd1d3022451"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af1b77782418095762505bbd1d3022451">pu::ui::elm::Menu::OnSelectionChangedCallback</a></div><div class="ttdeci">std::function< void()> OnSelectionChangedCallback</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:106</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_af645770008526443f4544623e7e51eba"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af645770008526443f4544623e7e51eba">pu::ui::elm::Menu::GetScrollbarColor</a></div><div class="ttdeci">Color GetScrollbarColor()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:241</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_af9df49cb62e6786a83fbb5a181fffdc8"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#af9df49cb62e6786a83fbb5a181fffdc8">pu::ui::elm::Menu::SetItemsHeight</a></div><div class="ttdeci">void SetItemsHeight(const i32 items_height)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:213</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_afa0109316c9734d6db2d555262017785"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0109316c9734d6db2d555262017785">pu::ui::elm::Menu::SetItemsFocusColor</a></div><div class="ttdeci">void SetItemsFocusColor(const Color items_focus_clr)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:237</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_html_afa0e6d0fe95a46289c40441e8644445d"><div class="ttname"><a href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html#afa0e6d0fe95a46289c40441e8644445d">pu::ui::elm::Menu::IconItemSizesFactor</a></div><div class="ttdeci">static constexpr float IconItemSizesFactor</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:94</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html">pu::ui::elm::MenuItem</a></div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:21</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a13c86f370dfdde1b9d19762840d8d57a"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a13c86f370dfdde1b9d19762840d8d57a">pu::ui::elm::MenuItem::GetColor</a></div><div class="ttdeci">Color GetColor()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:45</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a2f027a733ec2016f064b8b73aafbcfab"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a2f027a733ec2016f064b8b73aafbcfab">pu::ui::elm::MenuItem::GetOnKeyCallback</a></div><div class="ttdeci">OnKeyCallback GetOnKeyCallback(const i32 idx)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:59</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a3182a41b6b6d604d8692cc4d0338f1b7"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a3182a41b6b6d604d8692cc4d0338f1b7">pu::ui::elm::MenuItem::SetName</a></div><div class="ttdeci">void SetName(const std::string &name)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:41</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a32324239744b25ddf9256887069b554c"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a32324239744b25ddf9256887069b554c">pu::ui::elm::MenuItem::HasIcon</a></div><div class="ttdeci">bool HasIcon()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:83</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a5652491238e88f142625db867ca95523"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a5652491238e88f142625db867ca95523">pu::ui::elm::MenuItem::GetIconPath</a></div><div class="ttdeci">std::string GetIconPath()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:77</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a5b7f483bde86cd3237f7e3bdb21ba437"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a5b7f483bde86cd3237f7e3bdb21ba437">pu::ui::elm::MenuItem::AddOnKey</a></div><div class="ttdeci">void AddOnKey(OnKeyCallback on_key_cb, const u64 key=HidNpadButton_A)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a62b160e43a24fa6466a0f3081a2d12b1"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a62b160e43a24fa6466a0f3081a2d12b1">pu::ui::elm::MenuItem::DefaultColor</a></div><div class="ttdeci">static constexpr Color DefaultColor</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:24</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a75ed47105bec4304b2ba457d1c301f4f"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a75ed47105bec4304b2ba457d1c301f4f">pu::ui::elm::MenuItem::SetIcon</a></div><div class="ttdeci">void SetIcon(const std::string &icon_path)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a83c50c4ca5f49289da2026fe0f662d7c"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a83c50c4ca5f49289da2026fe0f662d7c">pu::ui::elm::MenuItem::MenuItem</a></div><div class="ttdeci">MenuItem(const std::string &name)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:34</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a8e77055d6b85df04010739767c61c48d"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a8e77055d6b85df04010739767c61c48d">pu::ui::elm::MenuItem::OnKeyCallback</a></div><div class="ttdeci">std::function< void()> OnKeyCallback</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:23</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_a94298f10821ae13f41ebedebe68dd170"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#a94298f10821ae13f41ebedebe68dd170">pu::ui::elm::MenuItem::SetColor</a></div><div class="ttdeci">void SetColor(const Color items_clr)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:49</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_ab6e9f3a65809763aa70b11ba66abc251"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#ab6e9f3a65809763aa70b11ba66abc251">pu::ui::elm::MenuItem::GetName</a></div><div class="ttdeci">std::string GetName()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:37</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_af62ad8e3368a430c2818314dd8be4701"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#af62ad8e3368a430c2818314dd8be4701">pu::ui::elm::MenuItem::GetOnKeyCallbackCount</a></div><div class="ttdeci">i32 GetOnKeyCallbackCount()</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:55</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_menu_item_html_afdce956c0700df79ae134845257648f3"><div class="ttname"><a href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html#afdce956c0700df79ae134845257648f3">pu::ui::elm::MenuItem::GetOnKeyCallbackKey</a></div><div class="ttdeci">u64 GetOnKeyCallbackKey(const i32 idx)</div><div class="ttdef"><b>Definition:</b> elm_Menu.hpp:68</div></div>
|
||||
<div class="ttc" id="aelm___element_8hpp_html"><div class="ttname"><a href="../../d9/d3b/elm___element_8hpp.html">elm_Element.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1elm_html"><div class="ttname"><a href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a></div><div class="ttdef"><b>Definition:</b> elm_Button.hpp:18</div></div>
|
||||
<div class="ttc" id="anamespacepu_html_ad6f40fe34a42045f7df3275f60b00e99"><div class="ttname"><a href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">pu::i32</a></div><div class="ttdeci">s32 i32</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:28</div></div>
|
||||
<div class="ttc" id="apu___include_8hpp_html_a2655f4e800efdd50e106951c6667d8d1"><div class="ttname"><a href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a></div><div class="ttdeci">#define PU_SMART_CTOR(type)</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:19</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:44</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html_a4674bc7b15dea3d689f6310185347586"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a4674bc7b15dea3d689f6310185347586">pu::ui::Color::g</a></div><div class="ttdeci">u8 g</div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:46</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html_a5c34ea431e3f4bdeb80c2bf6a2cf0950"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a5c34ea431e3f4bdeb80c2bf6a2cf0950">pu::ui::Color::a</a></div><div class="ttdeci">u8 a</div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:48</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html_a85b0f2161d79f9260d7fbbe5db89a07b"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a85b0f2161d79f9260d7fbbe5db89a07b">pu::ui::Color::r</a></div><div class="ttdeci">u8 r</div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:45</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html_ae55e2a30e1796df374dd677d31d83342"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html#ae55e2a30e1796df374dd677d31d83342">pu::ui::Color::b</a></div><div class="ttdeci">u8 b</div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:47</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_touch_point_html"><div class="ttname"><a href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:62</div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_db07433c06ed2bf7b5f4eabd443f7fba.html">elm</a></li><li class="navelem"><a class="el" href="../../d1/dd0/elm___menu_8hpp.html">elm_Menu.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,192 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: pu::ui::elm Namespace Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d2/d5e/namespacepu_1_1ui_1_1elm.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#enum-members">Enumerations</a> </div>
|
||||
<div class="headertitle"><div class="title">pu::ui::elm Namespace Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/de7/classpu_1_1ui_1_1elm_1_1_button.html">Button</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">Element</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d63/classpu_1_1ui_1_1elm_1_1_image.html">Image</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html">Menu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html">MenuItem</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html">ProgressBar</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html">Rectangle</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">TextBlock</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">Toggle</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
|
||||
Enumerations</h2></td></tr>
|
||||
<tr class="memitem:ac2066021dbc53818c251c446b6d7f864"><td class="memItemLeft" align="right" valign="top">enum class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864">HorizontalAlign</a> { <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864a945d5e233cf7d6240f6b783b36a374ff">Left</a>
|
||||
, <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864a4f1f6016fc9f3f2353c0cc7c67b292bd">Center</a>
|
||||
, <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864a92b09c7c48c520c3c55e497875da437c">Right</a>
|
||||
}</td></tr>
|
||||
<tr class="separator:ac2066021dbc53818c251c446b6d7f864"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac33e06ac84db60b2dd5b56b4a1276e92"><td class="memItemLeft" align="right" valign="top">enum class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92">VerticalAlign</a> { <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92a258f49887ef8d14ac268c92b02503aaa">Up</a>
|
||||
, <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92a4f1f6016fc9f3f2353c0cc7c67b292bd">Center</a>
|
||||
, <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92a08a38277b0309070706f6652eeae9a53">Down</a>
|
||||
}</td></tr>
|
||||
<tr class="separator:ac33e06ac84db60b2dd5b56b4a1276e92"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<h2 class="groupheader">Enumeration Type Documentation</h2>
|
||||
<a id="ac2066021dbc53818c251c446b6d7f864" name="ac2066021dbc53818c251c446b6d7f864"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ac2066021dbc53818c251c446b6d7f864">◆ </a></span>HorizontalAlign</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum class <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864">pu::ui::elm::HorizontalAlign</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">strong</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ac2066021dbc53818c251c446b6d7f864a945d5e233cf7d6240f6b783b36a374ff" name="ac2066021dbc53818c251c446b6d7f864a945d5e233cf7d6240f6b783b36a374ff"></a>Left </td><td class="fielddoc"></td></tr>
|
||||
<tr><td class="fieldname"><a id="ac2066021dbc53818c251c446b6d7f864a4f1f6016fc9f3f2353c0cc7c67b292bd" name="ac2066021dbc53818c251c446b6d7f864a4f1f6016fc9f3f2353c0cc7c67b292bd"></a>Center </td><td class="fielddoc"></td></tr>
|
||||
<tr><td class="fieldname"><a id="ac2066021dbc53818c251c446b6d7f864a92b09c7c48c520c3c55e497875da437c" name="ac2066021dbc53818c251c446b6d7f864a92b09c7c48c520c3c55e497875da437c"></a>Right </td><td class="fielddoc"></td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ac33e06ac84db60b2dd5b56b4a1276e92" name="ac33e06ac84db60b2dd5b56b4a1276e92"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ac33e06ac84db60b2dd5b56b4a1276e92">◆ </a></span>VerticalAlign</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum class <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92">pu::ui::elm::VerticalAlign</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">strong</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ac33e06ac84db60b2dd5b56b4a1276e92a258f49887ef8d14ac268c92b02503aaa" name="ac33e06ac84db60b2dd5b56b4a1276e92a258f49887ef8d14ac268c92b02503aaa"></a>Up </td><td class="fielddoc"></td></tr>
|
||||
<tr><td class="fieldname"><a id="ac33e06ac84db60b2dd5b56b4a1276e92a4f1f6016fc9f3f2353c0cc7c67b292bd" name="ac33e06ac84db60b2dd5b56b4a1276e92a4f1f6016fc9f3f2353c0cc7c67b292bd"></a>Center </td><td class="fielddoc"></td></tr>
|
||||
<tr><td class="fieldname"><a id="ac33e06ac84db60b2dd5b56b4a1276e92a08a38277b0309070706f6652eeae9a53" name="ac33e06ac84db60b2dd5b56b4a1276e92a08a38277b0309070706f6652eeae9a53"></a>Down </td><td class="fielddoc"></td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../da/df2/namespacepu.html">pu</a></li><li class="navelem"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">ui</a></li><li class="navelem"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">elm</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,22 +0,0 @@
|
||||
var namespacepu_1_1ui_1_1elm =
|
||||
[
|
||||
[ "Button", "d4/de7/classpu_1_1ui_1_1elm_1_1_button.html", "d4/de7/classpu_1_1ui_1_1elm_1_1_button" ],
|
||||
[ "Element", "d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html", "d9/d0e/classpu_1_1ui_1_1elm_1_1_element" ],
|
||||
[ "Image", "d6/d63/classpu_1_1ui_1_1elm_1_1_image.html", "d6/d63/classpu_1_1ui_1_1elm_1_1_image" ],
|
||||
[ "Menu", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu.html", "dc/d6c/classpu_1_1ui_1_1elm_1_1_menu" ],
|
||||
[ "MenuItem", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item.html", "de/dbb/classpu_1_1ui_1_1elm_1_1_menu_item" ],
|
||||
[ "ProgressBar", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar" ],
|
||||
[ "Rectangle", "d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html", "d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle" ],
|
||||
[ "TextBlock", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html", "df/d21/classpu_1_1ui_1_1elm_1_1_text_block" ],
|
||||
[ "Toggle", "d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html", "d5/d51/classpu_1_1ui_1_1elm_1_1_toggle" ],
|
||||
[ "HorizontalAlign", "d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864", [
|
||||
[ "Left", "d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864a945d5e233cf7d6240f6b783b36a374ff", null ],
|
||||
[ "Center", "d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864a4f1f6016fc9f3f2353c0cc7c67b292bd", null ],
|
||||
[ "Right", "d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864a92b09c7c48c520c3c55e497875da437c", null ]
|
||||
] ],
|
||||
[ "VerticalAlign", "d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92", [
|
||||
[ "Up", "d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92a258f49887ef8d14ac268c92b02503aaa", null ],
|
||||
[ "Center", "d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92a4f1f6016fc9f3f2353c0cc7c67b292bd", null ],
|
||||
[ "Down", "d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92a08a38277b0309070706f6652eeae9a53", null ]
|
||||
] ]
|
||||
];
|
@ -1,112 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Member List</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu::ui::render::TextureRenderOptions Member List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a4b579ab4b2bb90df8ad49d633a03e22a">alpha_mod</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050">Default</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aaf5207a4ee7b5198863579ac8da5ba66">height</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a66db5065001cf2ba752c7bb18c17300b">NoAlpha</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aefa877cc8f0002335d30eb93d1faa4e3">NoHeight</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#ac4399ad9cab23155bd9d5b6e9c30b015">NoRotation</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a308031ec24474b88bd71242522c42a5b">NoWidth</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a01880124bb058e56d5830254fe8eed01">rot_angle</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a8b2642bbebad684c07f9e692d053952b">width</a></td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aa4e31026155552f90a79d79ebb0b8960">WithCustomAlpha</a>(const u8 alpha)</td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a930d13b2448e2deb76b7d1acdfb16c38">WithCustomDimensions</a>(const i32 width, const i32 height)</td><td class="entry"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,953 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: pu::ui::elm::ProgressBar Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pub-static-attribs">Static Public Attributes</a> |
|
||||
<a href="../../d5/d36/classpu_1_1ui_1_1elm_1_1_progress_bar-members.html">List of all members</a> </div>
|
||||
<div class="headertitle"><div class="title">pu::ui::elm::ProgressBar Class Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><code>#include <<a class="el" href="../../d3/dd7/elm___progress_bar_8hpp_source.html">elm_ProgressBar.hpp</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for pu::ui::elm::ProgressBar:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.png" usemap="#pu::ui::elm::ProgressBar_map" alt=""/>
|
||||
<map id="pu::ui::elm::ProgressBar_map" name="pu::ui::elm::ProgressBar_map">
|
||||
<area href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html" alt="pu::ui::elm::Element" shape="rect" coords="0,0,144,24"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a6cf28de683bc5e197bc95eee2093246e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a6cf28de683bc5e197bc95eee2093246e">ProgressBar</a> (const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, const double max_val)</td></tr>
|
||||
<tr class="separator:a6cf28de683bc5e197bc95eee2093246e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b2053cbc38a68b323c9e430d9a2084b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2b2053cbc38a68b323c9e430d9a2084b">GetX</a> () override</td></tr>
|
||||
<tr class="separator:a2b2053cbc38a68b323c9e430d9a2084b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ade8f12e1bfca507b3d80dc11a7aef059"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ade8f12e1bfca507b3d80dc11a7aef059">SetX</a> (const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x)</td></tr>
|
||||
<tr class="separator:ade8f12e1bfca507b3d80dc11a7aef059"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae5da5e109fb98a0b1ac51f2da20dd179"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ae5da5e109fb98a0b1ac51f2da20dd179">GetY</a> () override</td></tr>
|
||||
<tr class="separator:ae5da5e109fb98a0b1ac51f2da20dd179"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad8a4914868a95086a8ebf6017a8850ee"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad8a4914868a95086a8ebf6017a8850ee">SetY</a> (const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y)</td></tr>
|
||||
<tr class="separator:ad8a4914868a95086a8ebf6017a8850ee"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2c6544906bb2c7a4dd22573403b7d1b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2c6544906bb2c7a4dd22573403b7d1b1">GetWidth</a> () override</td></tr>
|
||||
<tr class="separator:a2c6544906bb2c7a4dd22573403b7d1b1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af33c8c19327c84f2c073ddfb86551a77"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af33c8c19327c84f2c073ddfb86551a77">SetWidth</a> (const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width)</td></tr>
|
||||
<tr class="separator:af33c8c19327c84f2c073ddfb86551a77"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af3899e9155b3a81aca565434d3e130e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af3899e9155b3a81aca565434d3e130e7">GetHeight</a> () override</td></tr>
|
||||
<tr class="separator:af3899e9155b3a81aca565434d3e130e7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3cf62061db210829295a74c499849fd3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a3cf62061db210829295a74c499849fd3">SetHeight</a> (const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height)</td></tr>
|
||||
<tr class="separator:a3cf62061db210829295a74c499849fd3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5c1d574cbd779e649701e5dbecbd12d3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a5c1d574cbd779e649701e5dbecbd12d3">GetProgressColor</a> ()</td></tr>
|
||||
<tr class="separator:a5c1d574cbd779e649701e5dbecbd12d3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a55c31108d04e1416820dc081e26eeaa8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a55c31108d04e1416820dc081e26eeaa8">SetProgressColor</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> progress_clr)</td></tr>
|
||||
<tr class="separator:a55c31108d04e1416820dc081e26eeaa8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab085611ad6d22a549a76b14af3cf2e7e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab085611ad6d22a549a76b14af3cf2e7e">GetBackgroundColor</a> ()</td></tr>
|
||||
<tr class="separator:ab085611ad6d22a549a76b14af3cf2e7e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7c418c686ac99febb179af6f05aa73a6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a7c418c686ac99febb179af6f05aa73a6">SetBackgroundColor</a> (const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> bg_clr)</td></tr>
|
||||
<tr class="separator:a7c418c686ac99febb179af6f05aa73a6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:adfa64b3d1d577277180ed114fee172f5"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#adfa64b3d1d577277180ed114fee172f5">GetProgress</a> ()</td></tr>
|
||||
<tr class="separator:adfa64b3d1d577277180ed114fee172f5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a59a987df45962ac2e18904b442993492"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492">SetProgress</a> (const double progress)</td></tr>
|
||||
<tr class="separator:a59a987df45962ac2e18904b442993492"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a895e5f81b485ca6d672cc6a120c4ebe5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a895e5f81b485ca6d672cc6a120c4ebe5">IncrementProgress</a> (const double extra_progress)</td></tr>
|
||||
<tr class="separator:a895e5f81b485ca6d672cc6a120c4ebe5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aad4260e21dd970ff7cd74ca77810550d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#aad4260e21dd970ff7cd74ca77810550d">DecrementProgress</a> (const double extra_progress)</td></tr>
|
||||
<tr class="separator:aad4260e21dd970ff7cd74ca77810550d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4402d3440cfd35e33ef13460cb840646"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4402d3440cfd35e33ef13460cb840646">SetMaxProgress</a> (const double max_progress)</td></tr>
|
||||
<tr class="separator:a4402d3440cfd35e33ef13460cb840646"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a12e38a8086bd49a3ab185a542ac7a041"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12e38a8086bd49a3ab185a542ac7a041">GetMaxProgress</a> ()</td></tr>
|
||||
<tr class="separator:a12e38a8086bd49a3ab185a542ac7a041"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abbb7edaaf5b35ed7a0bb1ed39cea4dff"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#abbb7edaaf5b35ed7a0bb1ed39cea4dff">FillProgress</a> ()</td></tr>
|
||||
<tr class="separator:abbb7edaaf5b35ed7a0bb1ed39cea4dff"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4cfaf7feebb4e8a2178d794a36d45d6e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4cfaf7feebb4e8a2178d794a36d45d6e">ClearProgress</a> ()</td></tr>
|
||||
<tr class="separator:a4cfaf7feebb4e8a2178d794a36d45d6e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9392e6e224b8460a12caf6ca80117063"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a9392e6e224b8460a12caf6ca80117063">IsCompleted</a> ()</td></tr>
|
||||
<tr class="separator:a9392e6e224b8460a12caf6ca80117063"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a12ffccd4bc28ad8452b344d84c042d7e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12ffccd4bc28ad8452b344d84c042d7e">OnRender</a> (render::Renderer::Ref &drawer, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) override</td></tr>
|
||||
<tr class="separator:a12ffccd4bc28ad8452b344d84c042d7e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4ae51238a8831a7c6234fc356e5da3da"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4ae51238a8831a7c6234fc356e5da3da">OnInput</a> (const u64 keys_down, const u64 keys_up, const u64 keys_held, const <a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">TouchPoint</a> touch_pos) override</td></tr>
|
||||
<tr class="separator:a4ae51238a8831a7c6234fc356e5da3da"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="inherit_header pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpu_1_1ui_1_1elm_1_1_element')"><img src="../../closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td></tr>
|
||||
<tr class="memitem:ace42a2334b07d91fe497afd19d9d0309 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ace42a2334b07d91fe497afd19d9d0309">Element</a> ()</td></tr>
|
||||
<tr class="separator:ace42a2334b07d91fe497afd19d9d0309 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a56d6fc9e9a6924ac904cb380d8c38909 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a56d6fc9e9a6924ac904cb380d8c38909">~Element</a> ()</td></tr>
|
||||
<tr class="separator:a56d6fc9e9a6924ac904cb380d8c38909 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7d9f78985cfbecb10f469b30850eb44f inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a7d9f78985cfbecb10f469b30850eb44f">GetX</a> ()=0</td></tr>
|
||||
<tr class="separator:a7d9f78985cfbecb10f469b30850eb44f inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0544cb8bccb6e86eda4ad27dd4de9924 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a0544cb8bccb6e86eda4ad27dd4de9924">GetY</a> ()=0</td></tr>
|
||||
<tr class="separator:a0544cb8bccb6e86eda4ad27dd4de9924 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acdcf10ee65406a78c001c7d8583bff6c inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#acdcf10ee65406a78c001c7d8583bff6c">GetWidth</a> ()=0</td></tr>
|
||||
<tr class="separator:acdcf10ee65406a78c001c7d8583bff6c inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa17f772252020a43f9170b81ead8f30d inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aa17f772252020a43f9170b81ead8f30d">GetHeight</a> ()=0</td></tr>
|
||||
<tr class="separator:aa17f772252020a43f9170b81ead8f30d inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a022d9e188640ec7ce186186a96f4a1a1 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a022d9e188640ec7ce186186a96f4a1a1">OnRender</a> (render::Renderer::Ref &drawer, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y)=0</td></tr>
|
||||
<tr class="separator:a022d9e188640ec7ce186186a96f4a1a1 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aeb6bc0689cdd91019565e8b0ed58b079 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aeb6bc0689cdd91019565e8b0ed58b079">OnInput</a> (const u64 keys_down, const u64 keys_up, const u64 keys_held, const <a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">TouchPoint</a> touch_pos)=0</td></tr>
|
||||
<tr class="separator:aeb6bc0689cdd91019565e8b0ed58b079 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a767a3e3f7456881f039e393018f7a11e inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a767a3e3f7456881f039e393018f7a11e">IsVisible</a> ()</td></tr>
|
||||
<tr class="separator:a767a3e3f7456881f039e393018f7a11e inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6c5335a9797837d95e9125af890ec2b7 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a6c5335a9797837d95e9125af890ec2b7">SetVisible</a> (const bool <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ad46fad870d47414f843f2f35d099f1da">visible</a>)</td></tr>
|
||||
<tr class="separator:a6c5335a9797837d95e9125af890ec2b7 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aaca68308c70cafceb4478a7d4136fb0c inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aaca68308c70cafceb4478a7d4136fb0c">SetHorizontalAlign</a> (const <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864">HorizontalAlign</a> align)</td></tr>
|
||||
<tr class="separator:aaca68308c70cafceb4478a7d4136fb0c inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5c4ca13c8d3d6ad52f819c2065021044 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864">HorizontalAlign</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a5c4ca13c8d3d6ad52f819c2065021044">GetHorizontalAlign</a> ()</td></tr>
|
||||
<tr class="separator:a5c4ca13c8d3d6ad52f819c2065021044 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2c8c5cdc38c92dc0d21438a2c0140348 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2c8c5cdc38c92dc0d21438a2c0140348">SetVerticalAlign</a> (const <a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92">VerticalAlign</a> align)</td></tr>
|
||||
<tr class="separator:a2c8c5cdc38c92dc0d21438a2c0140348 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a48cb61fcdbc2cf757e0f5abfc00c0800 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92">VerticalAlign</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a48cb61fcdbc2cf757e0f5abfc00c0800">GetVerticalAlign</a> ()</td></tr>
|
||||
<tr class="separator:a48cb61fcdbc2cf757e0f5abfc00c0800 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ade29148867c9c92641413bd2098cfb4c inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ade29148867c9c92641413bd2098cfb4c">SetParentContainer</a> (<a class="el" href="../../dc/dcd/classpu_1_1ui_1_1_container.html">Container</a> *<a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2e6c995d5a409815b11e15f1f895534a">parent_container</a>)</td></tr>
|
||||
<tr class="separator:ade29148867c9c92641413bd2098cfb4c inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4ffe541c96bd748fa94ae17e61eed5c6 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a4ffe541c96bd748fa94ae17e61eed5c6">GetProcessedX</a> ()</td></tr>
|
||||
<tr class="separator:a4ffe541c96bd748fa94ae17e61eed5c6 inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1bccdd7cf0e52c2d7db2201a30d2287c inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a1bccdd7cf0e52c2d7db2201a30d2287c">GetProcessedY</a> ()</td></tr>
|
||||
<tr class="separator:a1bccdd7cf0e52c2d7db2201a30d2287c inherit pub_methods_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
|
||||
Static Public Attributes</h2></td></tr>
|
||||
<tr class="memitem:ab50f8aea0b37568355c4683830e1467b"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab50f8aea0b37568355c4683830e1467b">DefaultProgressColor</a> = { 139, 195, 74, 255 }</td></tr>
|
||||
<tr class="separator:ab50f8aea0b37568355c4683830e1467b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad4d519a38187fd69ae4c04c62266de15"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad4d519a38187fd69ae4c04c62266de15">DefaultBackgroundColor</a> = { 140, 140, 140, 255 }</td></tr>
|
||||
<tr class="separator:ad4d519a38187fd69ae4c04c62266de15"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
|
||||
Additional Inherited Members</h2></td></tr>
|
||||
<tr class="inherit_header pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classpu_1_1ui_1_1elm_1_1_element')"><img src="../../closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td></tr>
|
||||
<tr class="memitem:ad46fad870d47414f843f2f35d099f1da inherit pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ad46fad870d47414f843f2f35d099f1da">visible</a></td></tr>
|
||||
<tr class="separator:ad46fad870d47414f843f2f35d099f1da inherit pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a27117765b66cf5a7bcc6d272fac1bf48 inherit pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac2066021dbc53818c251c446b6d7f864">HorizontalAlign</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a27117765b66cf5a7bcc6d272fac1bf48">h_align</a></td></tr>
|
||||
<tr class="separator:a27117765b66cf5a7bcc6d272fac1bf48 inherit pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac9085dcbc1b4061b22075bc1cd32cedd inherit pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92">VerticalAlign</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ac9085dcbc1b4061b22075bc1cd32cedd">v_align</a></td></tr>
|
||||
<tr class="separator:ac9085dcbc1b4061b22075bc1cd32cedd inherit pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2e6c995d5a409815b11e15f1f895534a inherit pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/dcd/classpu_1_1ui_1_1_container.html">Container</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2e6c995d5a409815b11e15f1f895534a">parent_container</a></td></tr>
|
||||
<tr class="separator:a2e6c995d5a409815b11e15f1f895534a inherit pro_attribs_classpu_1_1ui_1_1elm_1_1_element"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a id="a6cf28de683bc5e197bc95eee2093246e" name="a6cf28de683bc5e197bc95eee2093246e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a6cf28de683bc5e197bc95eee2093246e">◆ </a></span>ProgressBar()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">pu::ui::elm::ProgressBar::ProgressBar </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>width</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>height</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const double </td>
|
||||
<td class="paramname"><em>max_val</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a id="a4cfaf7feebb4e8a2178d794a36d45d6e" name="a4cfaf7feebb4e8a2178d794a36d45d6e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a4cfaf7feebb4e8a2178d794a36d45d6e">◆ </a></span>ClearProgress()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::ClearProgress </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="aad4260e21dd970ff7cd74ca77810550d" name="aad4260e21dd970ff7cd74ca77810550d"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#aad4260e21dd970ff7cd74ca77810550d">◆ </a></span>DecrementProgress()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::DecrementProgress </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const double </td>
|
||||
<td class="paramname"><em>extra_progress</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="abbb7edaaf5b35ed7a0bb1ed39cea4dff" name="abbb7edaaf5b35ed7a0bb1ed39cea4dff"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#abbb7edaaf5b35ed7a0bb1ed39cea4dff">◆ </a></span>FillProgress()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::FillProgress </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ab085611ad6d22a549a76b14af3cf2e7e" name="ab085611ad6d22a549a76b14af3cf2e7e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab085611ad6d22a549a76b14af3cf2e7e">◆ </a></span>GetBackgroundColor()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> pu::ui::elm::ProgressBar::GetBackgroundColor </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="af3899e9155b3a81aca565434d3e130e7" name="af3899e9155b3a81aca565434d3e130e7"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#af3899e9155b3a81aca565434d3e130e7">◆ </a></span>GetHeight()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> pu::ui::elm::ProgressBar::GetHeight </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Implements <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aa17f772252020a43f9170b81ead8f30d">pu::ui::elm::Element</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a12e38a8086bd49a3ab185a542ac7a041" name="a12e38a8086bd49a3ab185a542ac7a041"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a12e38a8086bd49a3ab185a542ac7a041">◆ </a></span>GetMaxProgress()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">double pu::ui::elm::ProgressBar::GetMaxProgress </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="adfa64b3d1d577277180ed114fee172f5" name="adfa64b3d1d577277180ed114fee172f5"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#adfa64b3d1d577277180ed114fee172f5">◆ </a></span>GetProgress()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">double pu::ui::elm::ProgressBar::GetProgress </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a5c1d574cbd779e649701e5dbecbd12d3" name="a5c1d574cbd779e649701e5dbecbd12d3"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a5c1d574cbd779e649701e5dbecbd12d3">◆ </a></span>GetProgressColor()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> pu::ui::elm::ProgressBar::GetProgressColor </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2c6544906bb2c7a4dd22573403b7d1b1" name="a2c6544906bb2c7a4dd22573403b7d1b1"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2c6544906bb2c7a4dd22573403b7d1b1">◆ </a></span>GetWidth()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> pu::ui::elm::ProgressBar::GetWidth </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Implements <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#acdcf10ee65406a78c001c7d8583bff6c">pu::ui::elm::Element</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a2b2053cbc38a68b323c9e430d9a2084b" name="a2b2053cbc38a68b323c9e430d9a2084b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a2b2053cbc38a68b323c9e430d9a2084b">◆ </a></span>GetX()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> pu::ui::elm::ProgressBar::GetX </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Implements <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a7d9f78985cfbecb10f469b30850eb44f">pu::ui::elm::Element</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae5da5e109fb98a0b1ac51f2da20dd179" name="ae5da5e109fb98a0b1ac51f2da20dd179"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ae5da5e109fb98a0b1ac51f2da20dd179">◆ </a></span>GetY()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> pu::ui::elm::ProgressBar::GetY </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Implements <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a0544cb8bccb6e86eda4ad27dd4de9924">pu::ui::elm::Element</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a895e5f81b485ca6d672cc6a120c4ebe5" name="a895e5f81b485ca6d672cc6a120c4ebe5"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a895e5f81b485ca6d672cc6a120c4ebe5">◆ </a></span>IncrementProgress()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::IncrementProgress </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const double </td>
|
||||
<td class="paramname"><em>extra_progress</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a9392e6e224b8460a12caf6ca80117063" name="a9392e6e224b8460a12caf6ca80117063"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a9392e6e224b8460a12caf6ca80117063">◆ </a></span>IsCompleted()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool pu::ui::elm::ProgressBar::IsCompleted </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a4ae51238a8831a7c6234fc356e5da3da" name="a4ae51238a8831a7c6234fc356e5da3da"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a4ae51238a8831a7c6234fc356e5da3da">◆ </a></span>OnInput()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::OnInput </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const u64 </td>
|
||||
<td class="paramname"><em>keys_down</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const u64 </td>
|
||||
<td class="paramname"><em>keys_up</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const u64 </td>
|
||||
<td class="paramname"><em>keys_held</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">TouchPoint</a> </td>
|
||||
<td class="paramname"><em>touch_pos</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Implements <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aeb6bc0689cdd91019565e8b0ed58b079">pu::ui::elm::Element</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a12ffccd4bc28ad8452b344d84c042d7e" name="a12ffccd4bc28ad8452b344d84c042d7e"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a12ffccd4bc28ad8452b344d84c042d7e">◆ </a></span>OnRender()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::OnRender </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">render::Renderer::Ref & </td>
|
||||
<td class="paramname"><em>drawer</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Implements <a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a022d9e188640ec7ce186186a96f4a1a1">pu::ui::elm::Element</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a7c418c686ac99febb179af6f05aa73a6" name="a7c418c686ac99febb179af6f05aa73a6"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a7c418c686ac99febb179af6f05aa73a6">◆ </a></span>SetBackgroundColor()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::SetBackgroundColor </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>bg_clr</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a3cf62061db210829295a74c499849fd3" name="a3cf62061db210829295a74c499849fd3"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a3cf62061db210829295a74c499849fd3">◆ </a></span>SetHeight()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::SetHeight </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>height</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a4402d3440cfd35e33ef13460cb840646" name="a4402d3440cfd35e33ef13460cb840646"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a4402d3440cfd35e33ef13460cb840646">◆ </a></span>SetMaxProgress()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::SetMaxProgress </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const double </td>
|
||||
<td class="paramname"><em>max_progress</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a59a987df45962ac2e18904b442993492" name="a59a987df45962ac2e18904b442993492"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a59a987df45962ac2e18904b442993492">◆ </a></span>SetProgress()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::SetProgress </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const double </td>
|
||||
<td class="paramname"><em>progress</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="a55c31108d04e1416820dc081e26eeaa8" name="a55c31108d04e1416820dc081e26eeaa8"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a55c31108d04e1416820dc081e26eeaa8">◆ </a></span>SetProgressColor()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::SetProgressColor </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> </td>
|
||||
<td class="paramname"><em>progress_clr</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="af33c8c19327c84f2c073ddfb86551a77" name="af33c8c19327c84f2c073ddfb86551a77"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#af33c8c19327c84f2c073ddfb86551a77">◆ </a></span>SetWidth()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::SetWidth </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>width</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ade8f12e1bfca507b3d80dc11a7aef059" name="ade8f12e1bfca507b3d80dc11a7aef059"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ade8f12e1bfca507b3d80dc11a7aef059">◆ </a></span>SetX()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::SetX </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>x</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad8a4914868a95086a8ebf6017a8850ee" name="ad8a4914868a95086a8ebf6017a8850ee"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad8a4914868a95086a8ebf6017a8850ee">◆ </a></span>SetY()</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void pu::ui::elm::ProgressBar::SetY </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="el" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> </td>
|
||||
<td class="paramname"><em>y</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Data Documentation</h2>
|
||||
<a id="ad4d519a38187fd69ae4c04c62266de15" name="ad4d519a38187fd69ae4c04c62266de15"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ad4d519a38187fd69ae4c04c62266de15">◆ </a></span>DefaultBackgroundColor</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">constexpr <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> pu::ui::elm::ProgressBar::DefaultBackgroundColor = { 140, 140, 140, 255 }</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">constexpr</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a id="ab50f8aea0b37568355c4683830e1467b" name="ab50f8aea0b37568355c4683830e1467b"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#ab50f8aea0b37568355c4683830e1467b">◆ </a></span>DefaultProgressColor</h2>
|
||||
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">constexpr <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> pu::ui::elm::ProgressBar::DefaultProgressColor = { 139, 195, 74, 255 }</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">constexpr</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li>Plutonium/include/pu/ui/elm/<a class="el" href="../../d3/dd7/elm___progress_bar_8hpp_source.html">elm_ProgressBar.hpp</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../da/df2/namespacepu.html">pu</a></li><li class="navelem"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">ui</a></li><li class="navelem"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">elm</a></li><li class="navelem"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html">ProgressBar</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,29 +0,0 @@
|
||||
var classpu_1_1ui_1_1elm_1_1_progress_bar =
|
||||
[
|
||||
[ "ProgressBar", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a6cf28de683bc5e197bc95eee2093246e", null ],
|
||||
[ "ClearProgress", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4cfaf7feebb4e8a2178d794a36d45d6e", null ],
|
||||
[ "DecrementProgress", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#aad4260e21dd970ff7cd74ca77810550d", null ],
|
||||
[ "FillProgress", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#abbb7edaaf5b35ed7a0bb1ed39cea4dff", null ],
|
||||
[ "GetBackgroundColor", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab085611ad6d22a549a76b14af3cf2e7e", null ],
|
||||
[ "GetHeight", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af3899e9155b3a81aca565434d3e130e7", null ],
|
||||
[ "GetMaxProgress", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12e38a8086bd49a3ab185a542ac7a041", null ],
|
||||
[ "GetProgress", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#adfa64b3d1d577277180ed114fee172f5", null ],
|
||||
[ "GetProgressColor", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a5c1d574cbd779e649701e5dbecbd12d3", null ],
|
||||
[ "GetWidth", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2c6544906bb2c7a4dd22573403b7d1b1", null ],
|
||||
[ "GetX", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2b2053cbc38a68b323c9e430d9a2084b", null ],
|
||||
[ "GetY", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ae5da5e109fb98a0b1ac51f2da20dd179", null ],
|
||||
[ "IncrementProgress", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a895e5f81b485ca6d672cc6a120c4ebe5", null ],
|
||||
[ "IsCompleted", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a9392e6e224b8460a12caf6ca80117063", null ],
|
||||
[ "OnInput", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4ae51238a8831a7c6234fc356e5da3da", null ],
|
||||
[ "OnRender", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12ffccd4bc28ad8452b344d84c042d7e", null ],
|
||||
[ "SetBackgroundColor", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a7c418c686ac99febb179af6f05aa73a6", null ],
|
||||
[ "SetHeight", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a3cf62061db210829295a74c499849fd3", null ],
|
||||
[ "SetMaxProgress", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4402d3440cfd35e33ef13460cb840646", null ],
|
||||
[ "SetProgress", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492", null ],
|
||||
[ "SetProgressColor", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a55c31108d04e1416820dc081e26eeaa8", null ],
|
||||
[ "SetWidth", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af33c8c19327c84f2c073ddfb86551a77", null ],
|
||||
[ "SetX", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ade8f12e1bfca507b3d80dc11a7aef059", null ],
|
||||
[ "SetY", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad8a4914868a95086a8ebf6017a8850ee", null ],
|
||||
[ "DefaultBackgroundColor", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad4d519a38187fd69ae4c04c62266de15", null ],
|
||||
[ "DefaultProgressColor", "d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab50f8aea0b37568355c4683830e1467b", null ]
|
||||
];
|
Binary file not shown.
Before Width: | Height: | Size: 625 B |
@ -1,108 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Member List</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d7/d0c/structpu_1_1ui_1_1_color.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu::ui::Color Member List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a5c34ea431e3f4bdeb80c2bf6a2cf0950">a</a></td><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#ae55e2a30e1796df374dd677d31d83342">b</a></td><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#adef2f6a421806d673966db29846da573">Color</a>()</td><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#ae82d21739871896b29969910b7f48623">Color</a>(const u8 r, const u8 g, const u8 b, const u8 a)</td><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a36c556d915a95745227672074bd8f95a">FromHex</a>(const std::string &str_clr)</td><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a4674bc7b15dea3d689f6310185347586">g</a></td><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html#a85b0f2161d79f9260d7fbbe5db89a07b">r</a></td><td class="entry"><a class="el" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,138 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Member List</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu::ui::elm::Toggle Member List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a20a81cbb6c858f1a890f935416561728">ContentHorizontalMargin</a></td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#aa9140fb959a2a590d70b1b0f095502df">ContentVerticalMargin</a></td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ace42a2334b07d91fe497afd19d9d0309">Element</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#aadeebe9f6943dff46a8f0af7bdcc15f6">GetColor</a>()</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a2fc38b22e8b699c3db16ba0268f79385">GetContent</a>()</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a5d734cdb6bca6698215fabc6006bcaa5">GetHeight</a>() override</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a5c4ca13c8d3d6ad52f819c2065021044">GetHorizontalAlign</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a126b6b2ff787655e65d7666f7e06416f">GetKey</a>()</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a4ffe541c96bd748fa94ae17e61eed5c6">GetProcessedX</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a1bccdd7cf0e52c2d7db2201a30d2287c">GetProcessedY</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a48cb61fcdbc2cf757e0f5abfc00c0800">GetVerticalAlign</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a886903ec6fb56e75055115d2eb242dff">GetWidth</a>() override</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a8f24f57a781c4dbcbe65b7bb907c9e87">GetX</a>() override</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a40d4a4dbeba921e66cf19d4f00fa0ed4">GetY</a>() override</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a27117765b66cf5a7bcc6d272fac1bf48">h_align</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a31fbd169f44ddcd3458b4674b6880f5f">IsChecked</a>()</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a767a3e3f7456881f039e393018f7a11e">IsVisible</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a762f3c84bb082ee80883e85c42c78615">MakeBackgroundColor</a>(const u8 alpha)</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">static</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a4a6ddbe6286b2e7780a2bc947730adf2">OnInput</a>(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a38f0f65de3e93674d90d332d73c2e505">OnRender</a>(render::Renderer::Ref &drawer, const i32 x, const i32 y) override</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2e6c995d5a409815b11e15f1f895534a">parent_container</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a5142174fffaba6ea1929aa9494b26827">SetColor</a>(const Color clr)</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a526a4ca5b3b1640c05de417376f13b38">SetContent</a>(const std::string &content)</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0493a6c73540df78ca927ce7c9523ced">SetFont</a>(const std::string &font_name)</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aaca68308c70cafceb4478a7d4136fb0c">SetHorizontalAlign</a>(const HorizontalAlign align)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a3f01aa38e90da5012e9f377cb301dc50">SetKey</a>(const u64 toggle_key)</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ade29148867c9c92641413bd2098cfb4c">SetParentContainer</a>(Container *parent_container)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2c8c5cdc38c92dc0d21438a2c0140348">SetVerticalAlign</a>(const VerticalAlign align)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a6c5335a9797837d95e9125af890ec2b7">SetVisible</a>(const bool visible)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0818618e7b6d9f1714ddaa13024f0534">SetX</a>(const i32 x)</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#af623ffcba145eb610e462697cba933b7">SetY</a>(const i32 y)</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a0186168d3a517849bbeaaa8fbb540430">Toggle</a>(const i32 x, const i32 y, const std::string &content, const u64 toggle_key, const Color clr)</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a4fb466d4378838309f7ad8d5f4c3e942">ToggleAlphaIncrement</a></td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ac9085dcbc1b4061b22075bc1cd32cedd">v_align</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ad46fad870d47414f843f2f35d099f1da">visible</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a56d6fc9e9a6924ac904cb380d8c38909">~Element</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html#a28cb352af8e25b4e1a3539e67d49dcd4">~Toggle</a>()</td><td class="entry"><a class="el" href="../../d5/d51/classpu_1_1ui_1_1elm_1_1_toggle.html">pu::ui::elm::Toggle</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,120 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/elm/elm_ProgressBar.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d3/dd7/elm___progress_bar_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle"><div class="title">elm_ProgressBar.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <<a class="el" href="../../d9/d3b/elm___element_8hpp_source.html">pu/ui/elm/elm_Element.hpp</a>></code><br />
|
||||
</div>
|
||||
<p><a href="../../d3/dd7/elm___progress_bar_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html">pu::ui::elm::ProgressBar</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d9/d7f/namespacepu_1_1ui"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">pu::ui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d2/d5e/namespacepu_1_1ui_1_1elm"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_db07433c06ed2bf7b5f4eabd443f7fba.html">elm</a></li><li class="navelem"><a class="el" href="../../d3/dd7/elm___progress_bar_8hpp.html">elm_ProgressBar.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,257 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/elm/elm_ProgressBar.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d3/dd7/elm___progress_bar_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">elm_ProgressBar.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d3/dd7/elm___progress_bar_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Plutonium library</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> @file ProgressBar.hpp</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> @brief A ProgressBar is an Element which represents a progress (a percentage) by filling a bar.</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> @author XorTroll</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <<a class="code" href="../../d9/d3b/elm___element_8hpp.html">pu/ui/elm/elm_Element.hpp</a>></span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a> {</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html"> 19</a></span> <span class="keyword">class </span><a class="code hl_class" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html">ProgressBar</a> : <span class="keyword">public</span> <a class="code hl_class" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">Element</a> {</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab50f8aea0b37568355c4683830e1467b"> 21</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_variable" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab50f8aea0b37568355c4683830e1467b">DefaultProgressColor</a> = { 139, 195, 74, 255 };</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad4d519a38187fd69ae4c04c62266de15"> 22</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_variable" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad4d519a38187fd69ae4c04c62266de15">DefaultBackgroundColor</a> = { 140, 140, 140, 255 };</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x;</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y;</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> w;</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> h;</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keywordtype">double</span> val;</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">double</span> max_val;</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> progress_clr;</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> bg_clr;</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a6cf28de683bc5e197bc95eee2093246e"> 35</a></span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a6cf28de683bc5e197bc95eee2093246e">ProgressBar</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, <span class="keyword">const</span> <span class="keywordtype">double</span> max_val) : <a class="code hl_class" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">Element</a>(), x(x), y(y), w(width), h(height), val(0), max_val(max_val), progress_clr(<a class="code hl_variable" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab50f8aea0b37568355c4683830e1467b">DefaultProgressColor</a>), bg_clr(<a class="code hl_variable" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad4d519a38187fd69ae4c04c62266de15">DefaultBackgroundColor</a>) {}</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_define" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a>(<a class="code hl_class" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html">ProgressBar</a>)</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2b2053cbc38a68b323c9e430d9a2084b"> 38</a></span> inline <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2b2053cbc38a68b323c9e430d9a2084b">GetX</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keywordflow">return</span> this->x;</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> }</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ade8f12e1bfca507b3d80dc11a7aef059"> 42</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ade8f12e1bfca507b3d80dc11a7aef059">SetX</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x) {</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> this->x = x;</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> }</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ae5da5e109fb98a0b1ac51f2da20dd179"> 46</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ae5da5e109fb98a0b1ac51f2da20dd179">GetY</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">return</span> this->y;</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> }</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad8a4914868a95086a8ebf6017a8850ee"> 50</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad8a4914868a95086a8ebf6017a8850ee">SetY</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) {</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> this->y = y;</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> }</div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2c6544906bb2c7a4dd22573403b7d1b1"> 54</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2c6544906bb2c7a4dd22573403b7d1b1">GetWidth</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">return</span> this->w;</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af33c8c19327c84f2c073ddfb86551a77"> 58</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af33c8c19327c84f2c073ddfb86551a77">SetWidth</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width) {</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> this->w = width;</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af3899e9155b3a81aca565434d3e130e7"> 62</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af3899e9155b3a81aca565434d3e130e7">GetHeight</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">return</span> this->h;</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> }</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a3cf62061db210829295a74c499849fd3"> 66</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a3cf62061db210829295a74c499849fd3">SetHeight</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height) {</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> this->h = height;</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> }</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a5c1d574cbd779e649701e5dbecbd12d3"> 70</a></span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a5c1d574cbd779e649701e5dbecbd12d3">GetProgressColor</a>() {</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="keywordflow">return</span> this->progress_clr;</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> }</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a55c31108d04e1416820dc081e26eeaa8"> 74</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a55c31108d04e1416820dc081e26eeaa8">SetProgressColor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> progress_clr) {</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> this->progress_clr = progress_clr;</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab085611ad6d22a549a76b14af3cf2e7e"> 78</a></span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab085611ad6d22a549a76b14af3cf2e7e">GetBackgroundColor</a>() {</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">return</span> this->bg_clr;</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a7c418c686ac99febb179af6f05aa73a6"> 82</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a7c418c686ac99febb179af6f05aa73a6">SetBackgroundColor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> bg_clr) {</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> this->bg_clr = bg_clr;</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> }</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#adfa64b3d1d577277180ed114fee172f5"> 86</a></span> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#adfa64b3d1d577277180ed114fee172f5">GetProgress</a>() {</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">return</span> this->val;</div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492"> 90</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492">SetProgress</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> progress);</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a895e5f81b485ca6d672cc6a120c4ebe5"> 92</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a895e5f81b485ca6d672cc6a120c4ebe5">IncrementProgress</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> extra_progress) {</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> this-><a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492">SetProgress</a>(this->val + extra_progress);</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> }</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#aad4260e21dd970ff7cd74ca77810550d"> 96</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#aad4260e21dd970ff7cd74ca77810550d">DecrementProgress</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> extra_progress) {</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> this-><a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492">SetProgress</a>(this->val - extra_progress);</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> }</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4402d3440cfd35e33ef13460cb840646"> 100</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4402d3440cfd35e33ef13460cb840646">SetMaxProgress</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> max_progress) {</div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> this->max_val = max_progress;</div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> }</div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12e38a8086bd49a3ab185a542ac7a041"> 104</a></span> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12e38a8086bd49a3ab185a542ac7a041">GetMaxProgress</a>() {</div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordflow">return</span> this->max_val;</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> }</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#abbb7edaaf5b35ed7a0bb1ed39cea4dff"> 108</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#abbb7edaaf5b35ed7a0bb1ed39cea4dff">FillProgress</a>() {</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> this-><a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492">SetProgress</a>(this->max_val);</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> }</div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4cfaf7feebb4e8a2178d794a36d45d6e"> 112</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4cfaf7feebb4e8a2178d794a36d45d6e">ClearProgress</a>() {</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> this-><a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492">SetProgress</a>(0);</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> }</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a9392e6e224b8460a12caf6ca80117063"> 116</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a9392e6e224b8460a12caf6ca80117063">IsCompleted</a>() {</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">return</span> this->val == this->max_val;</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12ffccd4bc28ad8452b344d84c042d7e"> 120</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12ffccd4bc28ad8452b344d84c042d7e">OnRender</a>(render::Renderer::Ref &drawer, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4ae51238a8831a7c6234fc356e5da3da"> 121</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4ae51238a8831a7c6234fc356e5da3da">OnInput</a>(<span class="keyword">const</span> u64 keys_down, <span class="keyword">const</span> u64 keys_up, <span class="keyword">const</span> u64 keys_held, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">TouchPoint</a> touch_pos)<span class="keyword"> override </span>{}</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> };</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span>}</div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_element_html"><div class="ttname"><a href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></div><div class="ttdef"><b>Definition:</b> elm_Element.hpp:37</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html">pu::ui::elm::ProgressBar</a></div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:19</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a12e38a8086bd49a3ab185a542ac7a041"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12e38a8086bd49a3ab185a542ac7a041">pu::ui::elm::ProgressBar::GetMaxProgress</a></div><div class="ttdeci">double GetMaxProgress()</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:104</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a12ffccd4bc28ad8452b344d84c042d7e"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a12ffccd4bc28ad8452b344d84c042d7e">pu::ui::elm::ProgressBar::OnRender</a></div><div class="ttdeci">void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a2b2053cbc38a68b323c9e430d9a2084b"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2b2053cbc38a68b323c9e430d9a2084b">pu::ui::elm::ProgressBar::GetX</a></div><div class="ttdeci">i32 GetX() override</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:38</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a2c6544906bb2c7a4dd22573403b7d1b1"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a2c6544906bb2c7a4dd22573403b7d1b1">pu::ui::elm::ProgressBar::GetWidth</a></div><div class="ttdeci">i32 GetWidth() override</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:54</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a3cf62061db210829295a74c499849fd3"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a3cf62061db210829295a74c499849fd3">pu::ui::elm::ProgressBar::SetHeight</a></div><div class="ttdeci">void SetHeight(const i32 height)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:66</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a4402d3440cfd35e33ef13460cb840646"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4402d3440cfd35e33ef13460cb840646">pu::ui::elm::ProgressBar::SetMaxProgress</a></div><div class="ttdeci">void SetMaxProgress(const double max_progress)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:100</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a4ae51238a8831a7c6234fc356e5da3da"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4ae51238a8831a7c6234fc356e5da3da">pu::ui::elm::ProgressBar::OnInput</a></div><div class="ttdeci">void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:121</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a4cfaf7feebb4e8a2178d794a36d45d6e"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a4cfaf7feebb4e8a2178d794a36d45d6e">pu::ui::elm::ProgressBar::ClearProgress</a></div><div class="ttdeci">void ClearProgress()</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:112</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a55c31108d04e1416820dc081e26eeaa8"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a55c31108d04e1416820dc081e26eeaa8">pu::ui::elm::ProgressBar::SetProgressColor</a></div><div class="ttdeci">void SetProgressColor(const Color progress_clr)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:74</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a59a987df45962ac2e18904b442993492"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a59a987df45962ac2e18904b442993492">pu::ui::elm::ProgressBar::SetProgress</a></div><div class="ttdeci">void SetProgress(const double progress)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a5c1d574cbd779e649701e5dbecbd12d3"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a5c1d574cbd779e649701e5dbecbd12d3">pu::ui::elm::ProgressBar::GetProgressColor</a></div><div class="ttdeci">Color GetProgressColor()</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:70</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a6cf28de683bc5e197bc95eee2093246e"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a6cf28de683bc5e197bc95eee2093246e">pu::ui::elm::ProgressBar::ProgressBar</a></div><div class="ttdeci">ProgressBar(const i32 x, const i32 y, const i32 width, const i32 height, const double max_val)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:35</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a7c418c686ac99febb179af6f05aa73a6"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a7c418c686ac99febb179af6f05aa73a6">pu::ui::elm::ProgressBar::SetBackgroundColor</a></div><div class="ttdeci">void SetBackgroundColor(const Color bg_clr)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:82</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a895e5f81b485ca6d672cc6a120c4ebe5"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a895e5f81b485ca6d672cc6a120c4ebe5">pu::ui::elm::ProgressBar::IncrementProgress</a></div><div class="ttdeci">void IncrementProgress(const double extra_progress)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:92</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_a9392e6e224b8460a12caf6ca80117063"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#a9392e6e224b8460a12caf6ca80117063">pu::ui::elm::ProgressBar::IsCompleted</a></div><div class="ttdeci">bool IsCompleted()</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:116</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_aad4260e21dd970ff7cd74ca77810550d"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#aad4260e21dd970ff7cd74ca77810550d">pu::ui::elm::ProgressBar::DecrementProgress</a></div><div class="ttdeci">void DecrementProgress(const double extra_progress)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:96</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_ab085611ad6d22a549a76b14af3cf2e7e"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab085611ad6d22a549a76b14af3cf2e7e">pu::ui::elm::ProgressBar::GetBackgroundColor</a></div><div class="ttdeci">Color GetBackgroundColor()</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:78</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_ab50f8aea0b37568355c4683830e1467b"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ab50f8aea0b37568355c4683830e1467b">pu::ui::elm::ProgressBar::DefaultProgressColor</a></div><div class="ttdeci">static constexpr Color DefaultProgressColor</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:21</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_abbb7edaaf5b35ed7a0bb1ed39cea4dff"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#abbb7edaaf5b35ed7a0bb1ed39cea4dff">pu::ui::elm::ProgressBar::FillProgress</a></div><div class="ttdeci">void FillProgress()</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:108</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_ad4d519a38187fd69ae4c04c62266de15"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad4d519a38187fd69ae4c04c62266de15">pu::ui::elm::ProgressBar::DefaultBackgroundColor</a></div><div class="ttdeci">static constexpr Color DefaultBackgroundColor</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:22</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_ad8a4914868a95086a8ebf6017a8850ee"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ad8a4914868a95086a8ebf6017a8850ee">pu::ui::elm::ProgressBar::SetY</a></div><div class="ttdeci">void SetY(const i32 y)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:50</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_ade8f12e1bfca507b3d80dc11a7aef059"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ade8f12e1bfca507b3d80dc11a7aef059">pu::ui::elm::ProgressBar::SetX</a></div><div class="ttdeci">void SetX(const i32 x)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:42</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_adfa64b3d1d577277180ed114fee172f5"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#adfa64b3d1d577277180ed114fee172f5">pu::ui::elm::ProgressBar::GetProgress</a></div><div class="ttdeci">double GetProgress()</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:86</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_ae5da5e109fb98a0b1ac51f2da20dd179"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#ae5da5e109fb98a0b1ac51f2da20dd179">pu::ui::elm::ProgressBar::GetY</a></div><div class="ttdeci">i32 GetY() override</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:46</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_af33c8c19327c84f2c073ddfb86551a77"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af33c8c19327c84f2c073ddfb86551a77">pu::ui::elm::ProgressBar::SetWidth</a></div><div class="ttdeci">void SetWidth(const i32 width)</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:58</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_progress_bar_html_af3899e9155b3a81aca565434d3e130e7"><div class="ttname"><a href="../../d2/dcc/classpu_1_1ui_1_1elm_1_1_progress_bar.html#af3899e9155b3a81aca565434d3e130e7">pu::ui::elm::ProgressBar::GetHeight</a></div><div class="ttdeci">i32 GetHeight() override</div><div class="ttdef"><b>Definition:</b> elm_ProgressBar.hpp:62</div></div>
|
||||
<div class="ttc" id="aelm___element_8hpp_html"><div class="ttname"><a href="../../d9/d3b/elm___element_8hpp.html">elm_Element.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1elm_html"><div class="ttname"><a href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a></div><div class="ttdef"><b>Definition:</b> elm_Button.hpp:18</div></div>
|
||||
<div class="ttc" id="anamespacepu_html_ad6f40fe34a42045f7df3275f60b00e99"><div class="ttname"><a href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">pu::i32</a></div><div class="ttdeci">s32 i32</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:28</div></div>
|
||||
<div class="ttc" id="apu___include_8hpp_html_a2655f4e800efdd50e106951c6667d8d1"><div class="ttname"><a href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a></div><div class="ttdeci">#define PU_SMART_CTOR(type)</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:19</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:44</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_touch_point_html"><div class="ttname"><a href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:62</div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_db07433c06ed2bf7b5f4eabd443f7fba.html">elm</a></li><li class="navelem"><a class="el" href="../../d3/dd7/elm___progress_bar_8hpp.html">elm_ProgressBar.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,121 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/extras/extras_Toast.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d4/d16/extras___toast_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle"><div class="title">extras_Toast.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <<a class="el" href="../../d6/d08/ui___overlay_8hpp_source.html">pu/ui/ui_Overlay.hpp</a>></code><br />
|
||||
<code>#include <<a class="el" href="../../d7/d3f/elm___text_block_8hpp_source.html">pu/ui/elm/elm_TextBlock.hpp</a>></code><br />
|
||||
</div>
|
||||
<p><a href="../../d4/d16/extras___toast_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html">pu::ui::extras::Toast</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d9/d7f/namespacepu_1_1ui"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">pu::ui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d6/d78/namespacepu_1_1ui_1_1extras"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d78/namespacepu_1_1ui_1_1extras.html">pu::ui::extras</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_17be5089da37cb69d78f8c5e394ec1ef.html">extras</a></li><li class="navelem"><a class="el" href="../../d4/d16/extras___toast_8hpp.html">extras_Toast.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,157 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/extras/extras_Toast.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d4/d16/extras___toast_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">extras_Toast.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d4/d16/extras___toast_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Plutonium library</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> @file extras_Toast.hpp</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> @brief An Overlay similar to Android's toast notifications</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> @author XorTroll</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <<a class="code" href="../../d6/d08/ui___overlay_8hpp.html">pu/ui/ui_Overlay.hpp</a>></span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <<a class="code" href="../../d7/d3f/elm___text_block_8hpp.html">pu/ui/elm/elm_TextBlock.hpp</a>></span></div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="../../d6/d78/namespacepu_1_1ui_1_1extras.html"> 18</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d6/d78/namespacepu_1_1ui_1_1extras.html">pu::ui::extras</a> {</div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html"> 20</a></span> <span class="keyword">class </span><a class="code hl_class" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html">Toast</a> final : <span class="keyword">public</span> <a class="code hl_class" href="../../d6/d8f/classpu_1_1ui_1_1_overlay.html">Overlay</a> {</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a23747403d5048ab9d1eb985f45942ee2"> 22</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a23747403d5048ab9d1eb985f45942ee2">DefaultY</a> = 550;</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a343475c2661cfb0d1ccc644db4335e90"> 23</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a343475c2661cfb0d1ccc644db4335e90">HeightAndTextHeightFactor</a> = 3;</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a4aa3d45962c92ed2d6f554f1f4acc2dd"> 24</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a4aa3d45962c92ed2d6f554f1f4acc2dd">HorizontalMargin</a> = 50;</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#aeaad0b5a3c8e580ff6a3f02e9df86797"> 25</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> u8 <a class="code hl_variable" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#aeaad0b5a3c8e580ff6a3f02e9df86797">BaseAlpha</a> = 200;</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> pu::ui::elm::TextBlock::Ref text;</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keywordtype">void</span> AdjustDimensions();</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a44c63bca452b4696c9561e24ecef5b0e"> 33</a></span> <a class="code hl_function" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a44c63bca452b4696c9561e24ecef5b0e">Toast</a>(<span class="keyword">const</span> std::string &text, <span class="keyword">const</span> std::string &font_name, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> text_clr, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> bg_clr);</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <a class="code hl_define" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a>(<a class="code hl_class" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html">Toast</a>)</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a4c3a98bda1991664cb73542e8047c67a"> 36</a></span> void <a class="code hl_function" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a4c3a98bda1991664cb73542e8047c67a">SetText</a>(const std::<span class="keywordtype">string</span> &text);</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#afa43c401515e588174a9b9a3775791fa"> 37</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#afa43c401515e588174a9b9a3775791fa">OnPreRender</a>(render::<a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">Renderer</a>::Ref &drawer) override;</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#ad7dcaf60b7d87c347cd4519b26841c71"> 38</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#ad7dcaf60b7d87c347cd4519b26841c71">OnPostRender</a>(render::<a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">Renderer</a>::Ref &drawer) override;</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> };</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>}</div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1_overlay_html"><div class="ttname"><a href="../../d6/d8f/classpu_1_1ui_1_1_overlay.html">pu::ui::Overlay</a></div><div class="ttdef"><b>Definition:</b> ui_Overlay.hpp:19</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html">pu::ui::extras::Toast</a></div><div class="ttdef"><b>Definition:</b> extras_Toast.hpp:20</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html_a23747403d5048ab9d1eb985f45942ee2"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a23747403d5048ab9d1eb985f45942ee2">pu::ui::extras::Toast::DefaultY</a></div><div class="ttdeci">static constexpr i32 DefaultY</div><div class="ttdef"><b>Definition:</b> extras_Toast.hpp:22</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html_a343475c2661cfb0d1ccc644db4335e90"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a343475c2661cfb0d1ccc644db4335e90">pu::ui::extras::Toast::HeightAndTextHeightFactor</a></div><div class="ttdeci">static constexpr i32 HeightAndTextHeightFactor</div><div class="ttdef"><b>Definition:</b> extras_Toast.hpp:23</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html_a44c63bca452b4696c9561e24ecef5b0e"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a44c63bca452b4696c9561e24ecef5b0e">pu::ui::extras::Toast::Toast</a></div><div class="ttdeci">Toast(const std::string &text, const std::string &font_name, const Color text_clr, const Color bg_clr)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html_a4aa3d45962c92ed2d6f554f1f4acc2dd"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a4aa3d45962c92ed2d6f554f1f4acc2dd">pu::ui::extras::Toast::HorizontalMargin</a></div><div class="ttdeci">static constexpr i32 HorizontalMargin</div><div class="ttdef"><b>Definition:</b> extras_Toast.hpp:24</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html_a4c3a98bda1991664cb73542e8047c67a"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#a4c3a98bda1991664cb73542e8047c67a">pu::ui::extras::Toast::SetText</a></div><div class="ttdeci">void SetText(const std::string &text)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html_ad7dcaf60b7d87c347cd4519b26841c71"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#ad7dcaf60b7d87c347cd4519b26841c71">pu::ui::extras::Toast::OnPostRender</a></div><div class="ttdeci">void OnPostRender(render::Renderer::Ref &drawer) override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html_aeaad0b5a3c8e580ff6a3f02e9df86797"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#aeaad0b5a3c8e580ff6a3f02e9df86797">pu::ui::extras::Toast::BaseAlpha</a></div><div class="ttdeci">static constexpr u8 BaseAlpha</div><div class="ttdef"><b>Definition:</b> extras_Toast.hpp:25</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1extras_1_1_toast_html_afa43c401515e588174a9b9a3775791fa"><div class="ttname"><a href="../../dc/d49/classpu_1_1ui_1_1extras_1_1_toast.html#afa43c401515e588174a9b9a3775791fa">pu::ui::extras::Toast::OnPreRender</a></div><div class="ttdeci">void OnPreRender(render::Renderer::Ref &drawer) override</div></div>
|
||||
<div class="ttc" id="aelm___text_block_8hpp_html"><div class="ttname"><a href="../../d7/d3f/elm___text_block_8hpp.html">elm_TextBlock.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a4872247f27ba13a3f3db43c110da39c0"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">pu::sdl2::Renderer</a></div><div class="ttdeci">SDL_Renderer * Renderer</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:13</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1extras_html"><div class="ttname"><a href="../../d6/d78/namespacepu_1_1ui_1_1extras.html">pu::ui::extras</a></div><div class="ttdef"><b>Definition:</b> extras_Toast.hpp:18</div></div>
|
||||
<div class="ttc" id="anamespacepu_html_ad6f40fe34a42045f7df3275f60b00e99"><div class="ttname"><a href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">pu::i32</a></div><div class="ttdeci">s32 i32</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:28</div></div>
|
||||
<div class="ttc" id="apu___include_8hpp_html_a2655f4e800efdd50e106951c6667d8d1"><div class="ttname"><a href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a></div><div class="ttdeci">#define PU_SMART_CTOR(type)</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:19</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:44</div></div>
|
||||
<div class="ttc" id="aui___overlay_8hpp_html"><div class="ttname"><a href="../../d6/d08/ui___overlay_8hpp.html">ui_Overlay.hpp</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_17be5089da37cb69d78f8c5e394ec1ef.html">extras</a></li><li class="navelem"><a class="el" href="../../d4/d16/extras___toast_8hpp.html">extras_Toast.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,132 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Member List</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">pu::ui::elm::TextBlock Member List</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a22026d87a80576dd41eb1074097cb0f1">DefaultColor</a></td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ace42a2334b07d91fe497afd19d9d0309">Element</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a4df9ca024179ff31534463f57750c4c7">GetColor</a>()</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a70d4c6bb076406752fe4ac82dcf8de3f">GetHeight</a>() override</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a5c4ca13c8d3d6ad52f819c2065021044">GetHorizontalAlign</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a4ffe541c96bd748fa94ae17e61eed5c6">GetProcessedX</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a1bccdd7cf0e52c2d7db2201a30d2287c">GetProcessedY</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a611edbe4430f49292f55c83c409bf52a">GetText</a>()</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a48cb61fcdbc2cf757e0f5abfc00c0800">GetVerticalAlign</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#aaf3acb29e652f73e96d2bbc39bb56b02">GetWidth</a>() override</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#ad3443e65c22d339d774ccbb65bd51c40">GetX</a>() override</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a81fc9e373ad39f42ab9d8b2bd9552352">GetY</a>() override</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a27117765b66cf5a7bcc6d272fac1bf48">h_align</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a767a3e3f7456881f039e393018f7a11e">IsVisible</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a2b8c187956510b6794cb741441561d41">OnInput</a>(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a5639bd0b9800c87b124e6cffc22a3932">OnRender</a>(render::Renderer::Ref &drawer, const i32 x, const i32 y) override</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2e6c995d5a409815b11e15f1f895534a">parent_container</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a770dba61aee470eb151d0dc8c4566073">SetColor</a>(const Color clr)</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a9f04c7d87296736c67a5a5964c03ee32">SetFont</a>(const std::string &font_name)</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#aaca68308c70cafceb4478a7d4136fb0c">SetHorizontalAlign</a>(const HorizontalAlign align)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ade29148867c9c92641413bd2098cfb4c">SetParentContainer</a>(Container *parent_container)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a71e8dea5cbd362d3847940fb3e5391c8">SetText</a>(const std::string &text)</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a2c8c5cdc38c92dc0d21438a2c0140348">SetVerticalAlign</a>(const VerticalAlign align)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a6c5335a9797837d95e9125af890ec2b7">SetVisible</a>(const bool visible)</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a2bac7d345f87901579ffaeab325074d7">SetX</a>(const i32 x)</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#ab51da76bb08921802e7cc31b1fd8034f">SetY</a>(const i32 y)</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a53765fda58529ef8f6c0012729a98f66">TextBlock</a>(const i32 x, const i32 y, const std::string &text)</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ac9085dcbc1b4061b22075bc1cd32cedd">v_align</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#ad46fad870d47414f843f2f35d099f1da">visible</a></td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
|
||||
<tr class="odd"><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html#a56d6fc9e9a6924ac904cb380d8c38909">~Element</a>()</td><td class="entry"><a class="el" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html#a50a27767538bd5f5d11dfe8917df2462">~TextBlock</a>()</td><td class="entry"><a class="el" href="../../df/d21/classpu_1_1ui_1_1elm_1_1_text_block.html">pu::ui::elm::TextBlock</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,170 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/render/render_Renderer.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d4/dbe/render___renderer_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> |
|
||||
<a href="#func-members">Functions</a> |
|
||||
<a href="#var-members">Variables</a> </div>
|
||||
<div class="headertitle"><div class="title">render_Renderer.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <<a class="el" href="../../df/d13/ui___types_8hpp_source.html">pu/ui/ui_Types.hpp</a>></code><br />
|
||||
<code>#include <<a class="el" href="../../db/db1/render___s_d_l2_8hpp_source.html">pu/ui/render/render_SDL2.hpp</a>></code><br />
|
||||
<code>#include <vector></code><br />
|
||||
</div>
|
||||
<p><a href="../../d4/dbe/render___renderer_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html">pu::ui::render::RendererInitOptions</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html">pu::ui::render::Renderer</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d9/d7f/namespacepu_1_1ui"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">pu::ui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:da/d54/namespacepu_1_1ui_1_1render"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html">pu::ui::render</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:ac3ef345ab94510dd75774086f3737224"><td class="memItemLeft" align="right" valign="top">sdl2::Renderer </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ac3ef345ab94510dd75774086f3737224">pu::ui::render::GetMainRenderer</a> ()</td></tr>
|
||||
<tr class="separator:ac3ef345ab94510dd75774086f3737224"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a49da42826685906d7bf6662b9be169e1"><td class="memItemLeft" align="right" valign="top">sdl2::Window </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a49da42826685906d7bf6662b9be169e1">pu::ui::render::GetMainWindow</a> ()</td></tr>
|
||||
<tr class="separator:a49da42826685906d7bf6662b9be169e1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7d87075716f44ab90d397ade7da4cb70"><td class="memItemLeft" align="right" valign="top">sdl2::Surface </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7d87075716f44ab90d397ade7da4cb70">pu::ui::render::GetMainSurface</a> ()</td></tr>
|
||||
<tr class="separator:a7d87075716f44ab90d397ade7da4cb70"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abd48c078f9a0d5a57bf93d413a8ed2e6"><td class="memItemLeft" align="right" valign="top">std::pair< u32, u32 > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#abd48c078f9a0d5a57bf93d413a8ed2e6">pu::ui::render::GetDimensions</a> ()</td></tr>
|
||||
<tr class="separator:abd48c078f9a0d5a57bf93d413a8ed2e6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9fc279a6b6f318722a1330cfde9ed612"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a9fc279a6b6f318722a1330cfde9ed612">pu::ui::render::AddSharedFont</a> (const std::string &font_name, const u32 font_size, const PlSharedFontType type)</td></tr>
|
||||
<tr class="separator:a9fc279a6b6f318722a1330cfde9ed612"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab5ebf894ae9239221d39569e379fe188"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ab5ebf894ae9239221d39569e379fe188">pu::ui::render::AddAllSharedFonts</a> (const std::string &font_name, const u32 font_size)</td></tr>
|
||||
<tr class="separator:ab5ebf894ae9239221d39569e379fe188"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7028fbbfd0b390992a62b0dd64c7e86e"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7028fbbfd0b390992a62b0dd64c7e86e">pu::ui::render::AddFontFile</a> (const std::string &font_name, const u32 font_size, const std::string &path)</td></tr>
|
||||
<tr class="separator:a7028fbbfd0b390992a62b0dd64c7e86e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad22e51883cfc01c65c9c2cb2bd6bd871"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ad22e51883cfc01c65c9c2cb2bd6bd871">pu::ui::render::AddDefaultFontFromShared</a> (const u32 font_size)</td></tr>
|
||||
<tr class="separator:ad22e51883cfc01c65c9c2cb2bd6bd871"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a879d9bdd49dd85e24c56a7eab7e56f78"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a879d9bdd49dd85e24c56a7eab7e56f78">pu::ui::render::AddDefaultFontFromFile</a> (const u32 font_size, const std::string &path)</td></tr>
|
||||
<tr class="separator:a879d9bdd49dd85e24c56a7eab7e56f78"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5d9f841115348f57afed74d536a6b291"><td class="memItemLeft" align="right" valign="top">sdl2::Texture </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a5d9f841115348f57afed74d536a6b291">pu::ui::render::RenderText</a> (const std::string &font_name, const std::string &text, const Color clr)</td></tr>
|
||||
<tr class="separator:a5d9f841115348f57afed74d536a6b291"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:abb9cc63606c0f861f03830cf1bb3cf88"><td class="memItemLeft" align="right" valign="top">i32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#abb9cc63606c0f861f03830cf1bb3cf88">pu::ui::render::GetTextWidth</a> (const std::string &font_name, const std::string &text)</td></tr>
|
||||
<tr class="separator:abb9cc63606c0f861f03830cf1bb3cf88"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ace12eee5e824e7246730c4141cc73210"><td class="memItemLeft" align="right" valign="top">i32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ace12eee5e824e7246730c4141cc73210">pu::ui::render::GetTextHeight</a> (const std::string &font_name, const std::string &text)</td></tr>
|
||||
<tr class="separator:ace12eee5e824e7246730c4141cc73210"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
|
||||
Variables</h2></td></tr>
|
||||
<tr class="memitem:ae5920eeeae0aa4c3eac8073c2471ebb6"><td class="memItemLeft" align="right" valign="top">constexpr u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae5920eeeae0aa4c3eac8073c2471ebb6">pu::ui::render::ScreenWidth</a> = 1280</td></tr>
|
||||
<tr class="separator:ae5920eeeae0aa4c3eac8073c2471ebb6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af387b6301a55da00e921539845d9f357"><td class="memItemLeft" align="right" valign="top">constexpr u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#af387b6301a55da00e921539845d9f357">pu::ui::render::ScreenHeight</a> = 720</td></tr>
|
||||
<tr class="separator:af387b6301a55da00e921539845d9f357"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0955ba96cbd635c6bc387fcb51088555"><td class="memItemLeft" align="right" valign="top">constexpr u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a0955ba96cbd635c6bc387fcb51088555">pu::ui::render::MixerAllFlags</a> = MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG</td></tr>
|
||||
<tr class="separator:a0955ba96cbd635c6bc387fcb51088555"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aca8de816c249f71ecec38137222352f2"><td class="memItemLeft" align="right" valign="top">constexpr u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#aca8de816c249f71ecec38137222352f2">pu::ui::render::IMGAllFlags</a> = IMG_INIT_PNG | IMG_INIT_JPG | IMG_INIT_TIF | IMG_INIT_WEBP</td></tr>
|
||||
<tr class="separator:aca8de816c249f71ecec38137222352f2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aaedd6a7faa3d79a5e6cf58120fe8626b"><td class="memItemLeft" align="right" valign="top">constexpr u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#aaedd6a7faa3d79a5e6cf58120fe8626b">pu::ui::render::RendererSoftwareFlags</a> = SDL_RENDERER_SOFTWARE</td></tr>
|
||||
<tr class="separator:aaedd6a7faa3d79a5e6cf58120fe8626b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae9f1375477d6776bad834896952ecaf2"><td class="memItemLeft" align="right" valign="top">constexpr u32 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae9f1375477d6776bad834896952ecaf2">pu::ui::render::RendererHardwareFlags</a> = SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED</td></tr>
|
||||
<tr class="separator:ae9f1375477d6776bad834896952ecaf2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_8fb01eea200176b300268894688b4495.html">render</a></li><li class="navelem"><a class="el" href="../../d4/dbe/render___renderer_8hpp.html">render_Renderer.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,24 +0,0 @@
|
||||
var render___renderer_8hpp =
|
||||
[
|
||||
[ "pu::ui::render::RendererInitOptions", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html", "df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options" ],
|
||||
[ "pu::ui::render::TextureRenderOptions", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html", "dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options" ],
|
||||
[ "pu::ui::render::Renderer", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html", "d0/d27/classpu_1_1ui_1_1render_1_1_renderer" ],
|
||||
[ "AddAllSharedFonts", "d4/dbe/render___renderer_8hpp.html#ab5ebf894ae9239221d39569e379fe188", null ],
|
||||
[ "AddDefaultFontFromFile", "d4/dbe/render___renderer_8hpp.html#a879d9bdd49dd85e24c56a7eab7e56f78", null ],
|
||||
[ "AddDefaultFontFromShared", "d4/dbe/render___renderer_8hpp.html#ad22e51883cfc01c65c9c2cb2bd6bd871", null ],
|
||||
[ "AddFontFile", "d4/dbe/render___renderer_8hpp.html#a7028fbbfd0b390992a62b0dd64c7e86e", null ],
|
||||
[ "AddSharedFont", "d4/dbe/render___renderer_8hpp.html#a9fc279a6b6f318722a1330cfde9ed612", null ],
|
||||
[ "GetDimensions", "d4/dbe/render___renderer_8hpp.html#abd48c078f9a0d5a57bf93d413a8ed2e6", null ],
|
||||
[ "GetMainRenderer", "d4/dbe/render___renderer_8hpp.html#ac3ef345ab94510dd75774086f3737224", null ],
|
||||
[ "GetMainSurface", "d4/dbe/render___renderer_8hpp.html#a7d87075716f44ab90d397ade7da4cb70", null ],
|
||||
[ "GetMainWindow", "d4/dbe/render___renderer_8hpp.html#a49da42826685906d7bf6662b9be169e1", null ],
|
||||
[ "GetTextHeight", "d4/dbe/render___renderer_8hpp.html#ace12eee5e824e7246730c4141cc73210", null ],
|
||||
[ "GetTextWidth", "d4/dbe/render___renderer_8hpp.html#abb9cc63606c0f861f03830cf1bb3cf88", null ],
|
||||
[ "RenderText", "d4/dbe/render___renderer_8hpp.html#a5d9f841115348f57afed74d536a6b291", null ],
|
||||
[ "IMGAllFlags", "d4/dbe/render___renderer_8hpp.html#aca8de816c249f71ecec38137222352f2", null ],
|
||||
[ "MixerAllFlags", "d4/dbe/render___renderer_8hpp.html#a0955ba96cbd635c6bc387fcb51088555", null ],
|
||||
[ "RendererHardwareFlags", "d4/dbe/render___renderer_8hpp.html#ae9f1375477d6776bad834896952ecaf2", null ],
|
||||
[ "RendererSoftwareFlags", "d4/dbe/render___renderer_8hpp.html#aaedd6a7faa3d79a5e6cf58120fe8626b", null ],
|
||||
[ "ScreenHeight", "d4/dbe/render___renderer_8hpp.html#af387b6301a55da00e921539845d9f357", null ],
|
||||
[ "ScreenWidth", "d4/dbe/render___renderer_8hpp.html#ae5920eeeae0aa4c3eac8073c2471ebb6", null ]
|
||||
];
|
@ -1,377 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/render/render_Renderer.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d4/dbe/render___renderer_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">render_Renderer.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d4/dbe/render___renderer_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Plutonium library</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> @file render_Renderer.hpp</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> @brief A Renderer is the object performing basic rendering. (simply, a SDL2 wrapper)</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> @author XorTroll</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <<a class="code" href="../../df/d13/ui___types_8hpp.html">pu/ui/ui_Types.hpp</a>></span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <<a class="code" href="../../db/db1/render___s_d_l2_8hpp.html">pu/ui/render/render_SDL2.hpp</a>></span></div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <vector></span></div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html"> 19</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../da/d54/namespacepu_1_1ui_1_1render.html">pu::ui::render</a> {</div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae5920eeeae0aa4c3eac8073c2471ebb6"> 21</a></span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae5920eeeae0aa4c3eac8073c2471ebb6">ScreenWidth</a> = 1280;</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#af387b6301a55da00e921539845d9f357"> 22</a></span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../da/d54/namespacepu_1_1ui_1_1render.html#af387b6301a55da00e921539845d9f357">ScreenHeight</a> = 720;</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html"> 24</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html">RendererInitOptions</a> {</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#afa4665c4893bdfd09b3d039c1e3a7e86"> 25</a></span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#afa4665c4893bdfd09b3d039c1e3a7e86">sdl_flags</a>;</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a3d91fb198cc5867cdb6ae8aadd0281e8"> 26</a></span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a3d91fb198cc5867cdb6ae8aadd0281e8">sdl_render_flags</a>;</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa042751d8759c060e7b845832cc00ef0"> 27</a></span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa042751d8759c060e7b845832cc00ef0">width</a>;</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a072f8793d8e3e2e670dc782554abc131"> 28</a></span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a072f8793d8e3e2e670dc782554abc131">height</a>;</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a20c992b4a0bbafe56a304e01e688852f"> 29</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a20c992b4a0bbafe56a304e01e688852f">init_ttf</a>;</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a18a9ec1702ef30964391be62f777a1ad"> 30</a></span> std::vector<u32> <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a18a9ec1702ef30964391be62f777a1ad">extra_default_font_sizes</a>;</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa064b0fd59c49602b364117809a4800e"> 31</a></span> std::string <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa064b0fd59c49602b364117809a4800e">default_font_path</a>;</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a5795fa97895c9dfc1d2b583c75f19d7f"> 32</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a5795fa97895c9dfc1d2b583c75f19d7f">init_mixer</a>;</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a404582159cc98e75c42bb8ad6e113c3f"> 33</a></span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a404582159cc98e75c42bb8ad6e113c3f">audio_mixer_flags</a>;</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a90f6cc91a32d2d12a8d3b1c99b8cf403"> 34</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a90f6cc91a32d2d12a8d3b1c99b8cf403">init_img</a>;</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ab713bbdc588bcf1cc55255db74701998"> 35</a></span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ab713bbdc588bcf1cc55255db74701998">sdl_img_flags</a>;</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7fc319d0d55ffb5f1b73d9a0f8366b3f"> 36</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7fc319d0d55ffb5f1b73d9a0f8366b3f">init_pl</a>;</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7aeb5c4f0f793bfd13590668cd43235a"> 37</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7aeb5c4f0f793bfd13590668cd43235a">init_romfs</a>;</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7848ebce825fe19017add859efe618f4"> 39</a></span> <a class="code hl_function" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7848ebce825fe19017add859efe618f4">RendererInitOptions</a>(<span class="keyword">const</span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#afa4665c4893bdfd09b3d039c1e3a7e86">sdl_flags</a>, <span class="keyword">const</span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a3d91fb198cc5867cdb6ae8aadd0281e8">sdl_render_flags</a>, <span class="keyword">const</span> u32 w = <a class="code hl_variable" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae5920eeeae0aa4c3eac8073c2471ebb6">ScreenWidth</a>, <span class="keyword">const</span> u32 h = <a class="code hl_variable" href="../../da/d54/namespacepu_1_1ui_1_1render.html#af387b6301a55da00e921539845d9f357">ScreenHeight</a>) : <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#afa4665c4893bdfd09b3d039c1e3a7e86">sdl_flags</a>(<a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#afa4665c4893bdfd09b3d039c1e3a7e86">sdl_flags</a>), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a3d91fb198cc5867cdb6ae8aadd0281e8">sdl_render_flags</a>(<a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a3d91fb198cc5867cdb6ae8aadd0281e8">sdl_render_flags</a>), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa042751d8759c060e7b845832cc00ef0">width</a>(w), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a072f8793d8e3e2e670dc782554abc131">height</a>(h), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a20c992b4a0bbafe56a304e01e688852f">init_ttf</a>(false), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a18a9ec1702ef30964391be62f777a1ad">extra_default_font_sizes</a>(), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa064b0fd59c49602b364117809a4800e">default_font_path</a>(), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a5795fa97895c9dfc1d2b583c75f19d7f">init_mixer</a>(false), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a404582159cc98e75c42bb8ad6e113c3f">audio_mixer_flags</a>(0), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a90f6cc91a32d2d12a8d3b1c99b8cf403">init_img</a>(false), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ab713bbdc588bcf1cc55255db74701998">sdl_img_flags</a>(0), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7fc319d0d55ffb5f1b73d9a0f8366b3f">init_pl</a>(false), <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7aeb5c4f0f793bfd13590668cd43235a">init_romfs</a>(false) {}</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a91145726cdb1f2b358baef5073942648"> 41</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a91145726cdb1f2b358baef5073942648">UseTTF</a>(<span class="keyword">const</span> std::string &<a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa064b0fd59c49602b364117809a4800e">default_font_path</a> = <span class="stringliteral">""</span>) {</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> this->init_ttf = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="comment">// Empty font path = using shared font</span></div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keywordflow">if</span>(!<a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa064b0fd59c49602b364117809a4800e">default_font_path</a>.empty()) {</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> this->default_font_path = <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa064b0fd59c49602b364117809a4800e">default_font_path</a>;</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> this->init_pl = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> }</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a32d5cf94d1f6bff9d7b4b90c93cbd504"> 53</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a32d5cf94d1f6bff9d7b4b90c93cbd504">SetExtraDefaultFontSize</a>(<span class="keyword">const</span> u32 font_size) {</div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> this->extra_default_font_sizes.push_back(font_size);</div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ac2901bc764cc2a5fc8cbeb62de0a772a"> 57</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ac2901bc764cc2a5fc8cbeb62de0a772a">UseAudio</a>(<span class="keyword">const</span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a404582159cc98e75c42bb8ad6e113c3f">audio_mixer_flags</a>) {</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> this->init_mixer = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> this->audio_mixer_flags = <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a404582159cc98e75c42bb8ad6e113c3f">audio_mixer_flags</a>;</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> }</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a2eb74956016e2eea77f1b40d93dba5cb"> 62</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a2eb74956016e2eea77f1b40d93dba5cb">UseImage</a>(<span class="keyword">const</span> u32 <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ab713bbdc588bcf1cc55255db74701998">sdl_img_flags</a>) {</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> this->init_img = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> this->sdl_img_flags = <a class="code hl_variable" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ab713bbdc588bcf1cc55255db74701998">sdl_img_flags</a>;</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> }</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#acbe8272f338247638d1a603dc00de07f"> 67</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#acbe8272f338247638d1a603dc00de07f">UseRomfs</a>() {</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> this->init_romfs = <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> }</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> };</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a0955ba96cbd635c6bc387fcb51088555"> 72</a></span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a0955ba96cbd635c6bc387fcb51088555">MixerAllFlags</a> = MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG;</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#aca8de816c249f71ecec38137222352f2"> 73</a></span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../da/d54/namespacepu_1_1ui_1_1render.html#aca8de816c249f71ecec38137222352f2">IMGAllFlags</a> = IMG_INIT_PNG | IMG_INIT_JPG | IMG_INIT_TIF | IMG_INIT_WEBP;</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#aaedd6a7faa3d79a5e6cf58120fe8626b"> 74</a></span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../da/d54/namespacepu_1_1ui_1_1render.html#aaedd6a7faa3d79a5e6cf58120fe8626b">RendererSoftwareFlags</a> = SDL_RENDERER_SOFTWARE;</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae9f1375477d6776bad834896952ecaf2"> 75</a></span> <span class="keyword">constexpr</span> u32 <a class="code hl_variable" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae9f1375477d6776bad834896952ecaf2">RendererHardwareFlags</a> = SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED;</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html"> 77</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> {</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a4b579ab4b2bb90df8ad49d633a03e22a"> 78</a></span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a4b579ab4b2bb90df8ad49d633a03e22a">alpha_mod</a>;</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a8b2642bbebad684c07f9e692d053952b"> 79</a></span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a8b2642bbebad684c07f9e692d053952b">width</a>;</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aaf5207a4ee7b5198863579ac8da5ba66"> 80</a></span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aaf5207a4ee7b5198863579ac8da5ba66">height</a>;</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a01880124bb058e56d5830254fe8eed01"> 81</a></span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a01880124bb058e56d5830254fe8eed01">rot_angle</a>;</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a66db5065001cf2ba752c7bb18c17300b"> 83</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a66db5065001cf2ba752c7bb18c17300b">NoAlpha</a> = -1;</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a308031ec24474b88bd71242522c42a5b"> 84</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a308031ec24474b88bd71242522c42a5b">NoWidth</a> = -1;</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aefa877cc8f0002335d30eb93d1faa4e3"> 85</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aefa877cc8f0002335d30eb93d1faa4e3">NoHeight</a> = -1;</div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#ac4399ad9cab23155bd9d5b6e9c30b015"> 86</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <span class="keywordtype">float</span> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#ac4399ad9cab23155bd9d5b6e9c30b015">NoRotation</a> = -1.0f;</div>
|
||||
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
|
||||
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aa4e31026155552f90a79d79ebb0b8960"> 88</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> <a class="code hl_function" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aa4e31026155552f90a79d79ebb0b8960">WithCustomAlpha</a>(<span class="keyword">const</span> u8 alpha) {</div>
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordflow">return</span> { alpha, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a308031ec24474b88bd71242522c42a5b">NoWidth</a>, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aefa877cc8f0002335d30eb93d1faa4e3">NoHeight</a>, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#ac4399ad9cab23155bd9d5b6e9c30b015">NoRotation</a> };</div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> }</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a930d13b2448e2deb76b7d1acdfb16c38"> 92</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_struct" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> <a class="code hl_function" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a930d13b2448e2deb76b7d1acdfb16c38">WithCustomDimensions</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a8b2642bbebad684c07f9e692d053952b">width</a>, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aaf5207a4ee7b5198863579ac8da5ba66">height</a>) {</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keywordflow">return</span> { <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a66db5065001cf2ba752c7bb18c17300b">NoAlpha</a>, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a8b2642bbebad684c07f9e692d053952b">width</a>, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aaf5207a4ee7b5198863579ac8da5ba66">height</a>, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#ac4399ad9cab23155bd9d5b6e9c30b015">NoRotation</a> };</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> }</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="comment">// No special options</span></div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050"> 97</a></span> <span class="keyword">static</span> <span class="keyword">const</span> <a class="code hl_struct" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050">Default</a>;</div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> };</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keyword">inline</span> <span class="keyword">constexpr</span> <span class="keyword">const</span> <a class="code hl_struct" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050">TextureRenderOptions::Default</a> = { <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a66db5065001cf2ba752c7bb18c17300b">TextureRenderOptions::NoAlpha</a>, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a308031ec24474b88bd71242522c42a5b">TextureRenderOptions::NoWidth</a>, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aefa877cc8f0002335d30eb93d1faa4e3">TextureRenderOptions::NoHeight</a>, <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#ac4399ad9cab23155bd9d5b6e9c30b015">TextureRenderOptions::NoRotation</a> };</div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html"> 102</a></span> <span class="keyword">class </span><a class="code hl_class" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html">Renderer</a> {</div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <a class="code hl_struct" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html">RendererInitOptions</a> init_opts;</div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordtype">bool</span> ok_romfs;</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">bool</span> ok_pl;</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordtype">bool</span> initialized;</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> base_x;</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> base_y;</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> base_a;</div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">inline</span> u8 GetActualAlpha(<span class="keyword">const</span> u8 input_a) {</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keywordflow">if</span>(this->base_a >= 0) {</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>u8<span class="keyword">></span>(this->base_a);</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordflow">return</span> input_a;</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> }</div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> }</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2d06e4ab292e03c75b40d88562dd5469"> 122</a></span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2d06e4ab292e03c75b40d88562dd5469">Renderer</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html">RendererInitOptions</a> init_opts) : init_opts(init_opts), ok_romfs(false), ok_pl(false), initialized(false), base_x(0), base_y(0), base_a(0) {}</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <a class="code hl_define" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a>(<a class="code hl_class" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html">Renderer</a>)</div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> </div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a6dfe3a5a54c6fbefd664abb073fe4f4d"> 125</a></span> void <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a6dfe3a5a54c6fbefd664abb073fe4f4d">Initialize</a>();</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a15df7905cffacb178961b93b87d990dc"> 126</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a15df7905cffacb178961b93b87d990dc">Finalize</a>();</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> </div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#afea5a6b3fe4e8b149fe97a3d6678e144"> 128</a></span> inline <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#afea5a6b3fe4e8b149fe97a3d6678e144">HasInitialized</a>() {</div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordflow">return</span> this->initialized;</div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> }</div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a7eadc0c749b995b0e4011c4e0d59984a"> 132</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a7eadc0c749b995b0e4011c4e0d59984a">HasRomFs</a>() {</div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keywordflow">return</span> this->ok_romfs;</div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> }</div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> </div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af8848fa4a8a13ec522d778d98955864c"> 136</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af8848fa4a8a13ec522d778d98955864c">InitializeRender</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr);</div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ab6e04837ac0ea0a08eeab90ec1d27df6"> 137</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ab6e04837ac0ea0a08eeab90ec1d27df6">FinalizeRender</a>();</div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#add2a3ca972026eb6e715f01b019d7d3b"> 138</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#add2a3ca972026eb6e715f01b019d7d3b">RenderTexture</a>(<a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">sdl2::Texture</a> texture, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_struct" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">TextureRenderOptions</a> opts = <a class="code hl_variable" href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050">TextureRenderOptions::Default</a>);</div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2329b554520fa5dc1a02208f4a8a76f5"> 139</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2329b554520fa5dc1a02208f4a8a76f5">RenderRectangle</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height);</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a866ae45b8730a2ad786a701b7bae02f2"> 140</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a866ae45b8730a2ad786a701b7bae02f2">RenderRectangleFill</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height);</div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0ecd70fc83b371f2957f990363400faa"> 142</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0ecd70fc83b371f2957f990363400faa">RenderRectangleOutline</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> border_width) {</div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> this-><a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a866ae45b8730a2ad786a701b7bae02f2">RenderRectangleFill</a>(clr, x - border_width, y - border_width, width + (border_width * 2), height + (border_width * 2));</div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> }</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a578c086e93c8eecc71995dbd170dc2f9"> 146</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a578c086e93c8eecc71995dbd170dc2f9">RenderRoundedRectangle</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> radius);</div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a97268b78eb7286d476c39a3308b55483"> 147</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a97268b78eb7286d476c39a3308b55483">RenderRoundedRectangleFill</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> radius);</div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0c3cc8e8cec5f7c77db744441cf3d8ac"> 148</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0c3cc8e8cec5f7c77db744441cf3d8ac">RenderCircle</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> radius);</div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad080dfb16df4d934d227c83195debd37"> 149</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad080dfb16df4d934d227c83195debd37">RenderCircleFill</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> radius);</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a41477557dcafdb135112dbaec7980e17"> 150</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a41477557dcafdb135112dbaec7980e17">RenderShadowSimple</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> base_alpha, <span class="keyword">const</span> u8 main_alpha = 0xFF);</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
||||
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af3446219ca682fa60778a3509bbedbc4"> 152</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af3446219ca682fa60778a3509bbedbc4">SetBaseRenderPosition</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) {</div>
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> this->base_x = x;</div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> this->base_y = y;</div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> }</div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad1726412cb8b0f2658fa8ac980d40a5c"> 157</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad1726412cb8b0f2658fa8ac980d40a5c">ResetBaseRenderPosition</a>() {</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> this-><a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af3446219ca682fa60778a3509bbedbc4">SetBaseRenderPosition</a>(0, 0);</div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> }</div>
|
||||
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
|
||||
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a86280457eb612a88ab7c00199a17c115"> 161</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a86280457eb612a88ab7c00199a17c115">SetBaseRenderAlpha</a>(<span class="keyword">const</span> u8 alpha) {</div>
|
||||
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> this->base_a = alpha;</div>
|
||||
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> }</div>
|
||||
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0acd213f97329a9f584b6983cfe61910"> 165</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0acd213f97329a9f584b6983cfe61910">ResetBaseRenderAlpha</a>() {</div>
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> this->base_a = -1;</div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> }</div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> };</div>
|
||||
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
|
||||
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="comment">// Global rendering</span></div>
|
||||
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
|
||||
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ac3ef345ab94510dd75774086f3737224"> 172</a></span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">sdl2::Renderer</a> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ac3ef345ab94510dd75774086f3737224">GetMainRenderer</a>();</div>
|
||||
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a49da42826685906d7bf6662b9be169e1"> 173</a></span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a4dc2c75c183ac8dd775de27b4e26b932">sdl2::Window</a> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a49da42826685906d7bf6662b9be169e1">GetMainWindow</a>();</div>
|
||||
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7d87075716f44ab90d397ade7da4cb70"> 174</a></span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a00c40ae94ad2fc0b78571071c62faa19">sdl2::Surface</a> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7d87075716f44ab90d397ade7da4cb70">GetMainSurface</a>();</div>
|
||||
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
|
||||
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#abd48c078f9a0d5a57bf93d413a8ed2e6"> 176</a></span> std::pair<u32, u32> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#abd48c078f9a0d5a57bf93d413a8ed2e6">GetDimensions</a>();</div>
|
||||
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
|
||||
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="comment">// Text rendering</span></div>
|
||||
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> </div>
|
||||
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a9fc279a6b6f318722a1330cfde9ed612"> 180</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a9fc279a6b6f318722a1330cfde9ed612">AddSharedFont</a>(<span class="keyword">const</span> std::string &font_name, <span class="keyword">const</span> u32 font_size, <span class="keyword">const</span> PlSharedFontType type);</div>
|
||||
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ab5ebf894ae9239221d39569e379fe188"> 181</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ab5ebf894ae9239221d39569e379fe188">AddAllSharedFonts</a>(<span class="keyword">const</span> std::string &font_name, <span class="keyword">const</span> u32 font_size);</div>
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7028fbbfd0b390992a62b0dd64c7e86e"> 182</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7028fbbfd0b390992a62b0dd64c7e86e">AddFontFile</a>(<span class="keyword">const</span> std::string &font_name, <span class="keyword">const</span> u32 font_size, <span class="keyword">const</span> std::string &path);</div>
|
||||
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ad22e51883cfc01c65c9c2cb2bd6bd871"> 184</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ad22e51883cfc01c65c9c2cb2bd6bd871">AddDefaultFontFromShared</a>(<span class="keyword">const</span> u32 font_size) {</div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ab5ebf894ae9239221d39569e379fe188">AddAllSharedFonts</a>(<a class="code hl_function" href="../../d9/d7f/namespacepu_1_1ui.html#a2dc46745a47dfcca22fbd18451a7dfd3">MakeDefaultFontName</a>(font_size), font_size);</div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> }</div>
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> </div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a879d9bdd49dd85e24c56a7eab7e56f78"> 188</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a879d9bdd49dd85e24c56a7eab7e56f78">AddDefaultFontFromFile</a>(<span class="keyword">const</span> u32 font_size, <span class="keyword">const</span> std::string &path) {</div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7028fbbfd0b390992a62b0dd64c7e86e">AddFontFile</a>(<a class="code hl_function" href="../../d9/d7f/namespacepu_1_1ui.html#a2dc46745a47dfcca22fbd18451a7dfd3">MakeDefaultFontName</a>(font_size), font_size, path);</div>
|
||||
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> }</div>
|
||||
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div>
|
||||
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a5d9f841115348f57afed74d536a6b291"> 192</a></span> <a class="code hl_typedef" href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">sdl2::Texture</a> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#a5d9f841115348f57afed74d536a6b291">RenderText</a>(<span class="keyword">const</span> std::string &font_name, <span class="keyword">const</span> std::string &text, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr);</div>
|
||||
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#abb9cc63606c0f861f03830cf1bb3cf88"> 193</a></span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#abb9cc63606c0f861f03830cf1bb3cf88">GetTextWidth</a>(<span class="keyword">const</span> std::string &font_name, <span class="keyword">const</span> std::string &text);</div>
|
||||
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ace12eee5e824e7246730c4141cc73210"> 194</a></span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../da/d54/namespacepu_1_1ui_1_1render.html#ace12eee5e824e7246730c4141cc73210">GetTextHeight</a>(<span class="keyword">const</span> std::string &font_name, <span class="keyword">const</span> std::string &text);</div>
|
||||
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> </div>
|
||||
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span>}</div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html">pu::ui::render::Renderer</a></div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:102</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a0acd213f97329a9f584b6983cfe61910"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0acd213f97329a9f584b6983cfe61910">pu::ui::render::Renderer::ResetBaseRenderAlpha</a></div><div class="ttdeci">void ResetBaseRenderAlpha()</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:165</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a0c3cc8e8cec5f7c77db744441cf3d8ac"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0c3cc8e8cec5f7c77db744441cf3d8ac">pu::ui::render::Renderer::RenderCircle</a></div><div class="ttdeci">void RenderCircle(const Color clr, const i32 x, const i32 y, const i32 radius)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a0ecd70fc83b371f2957f990363400faa"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a0ecd70fc83b371f2957f990363400faa">pu::ui::render::Renderer::RenderRectangleOutline</a></div><div class="ttdeci">void RenderRectangleOutline(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 border_width)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:142</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a15df7905cffacb178961b93b87d990dc"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a15df7905cffacb178961b93b87d990dc">pu::ui::render::Renderer::Finalize</a></div><div class="ttdeci">void Finalize()</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a2329b554520fa5dc1a02208f4a8a76f5"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2329b554520fa5dc1a02208f4a8a76f5">pu::ui::render::Renderer::RenderRectangle</a></div><div class="ttdeci">void RenderRectangle(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a2d06e4ab292e03c75b40d88562dd5469"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a2d06e4ab292e03c75b40d88562dd5469">pu::ui::render::Renderer::Renderer</a></div><div class="ttdeci">Renderer(const RendererInitOptions init_opts)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:122</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a41477557dcafdb135112dbaec7980e17"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a41477557dcafdb135112dbaec7980e17">pu::ui::render::Renderer::RenderShadowSimple</a></div><div class="ttdeci">void RenderShadowSimple(const i32 x, const i32 y, const i32 width, const i32 height, const i32 base_alpha, const u8 main_alpha=0xFF)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a578c086e93c8eecc71995dbd170dc2f9"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a578c086e93c8eecc71995dbd170dc2f9">pu::ui::render::Renderer::RenderRoundedRectangle</a></div><div class="ttdeci">void RenderRoundedRectangle(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 radius)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a6dfe3a5a54c6fbefd664abb073fe4f4d"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a6dfe3a5a54c6fbefd664abb073fe4f4d">pu::ui::render::Renderer::Initialize</a></div><div class="ttdeci">void Initialize()</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a7eadc0c749b995b0e4011c4e0d59984a"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a7eadc0c749b995b0e4011c4e0d59984a">pu::ui::render::Renderer::HasRomFs</a></div><div class="ttdeci">bool HasRomFs()</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:132</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a86280457eb612a88ab7c00199a17c115"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a86280457eb612a88ab7c00199a17c115">pu::ui::render::Renderer::SetBaseRenderAlpha</a></div><div class="ttdeci">void SetBaseRenderAlpha(const u8 alpha)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:161</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a866ae45b8730a2ad786a701b7bae02f2"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a866ae45b8730a2ad786a701b7bae02f2">pu::ui::render::Renderer::RenderRectangleFill</a></div><div class="ttdeci">void RenderRectangleFill(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_a97268b78eb7286d476c39a3308b55483"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#a97268b78eb7286d476c39a3308b55483">pu::ui::render::Renderer::RenderRoundedRectangleFill</a></div><div class="ttdeci">void RenderRoundedRectangleFill(const Color clr, const i32 x, const i32 y, const i32 width, const i32 height, const i32 radius)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_ab6e04837ac0ea0a08eeab90ec1d27df6"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ab6e04837ac0ea0a08eeab90ec1d27df6">pu::ui::render::Renderer::FinalizeRender</a></div><div class="ttdeci">void FinalizeRender()</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_ad080dfb16df4d934d227c83195debd37"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad080dfb16df4d934d227c83195debd37">pu::ui::render::Renderer::RenderCircleFill</a></div><div class="ttdeci">void RenderCircleFill(const Color clr, const i32 x, const i32 y, const i32 radius)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_ad1726412cb8b0f2658fa8ac980d40a5c"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#ad1726412cb8b0f2658fa8ac980d40a5c">pu::ui::render::Renderer::ResetBaseRenderPosition</a></div><div class="ttdeci">void ResetBaseRenderPosition()</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:157</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_add2a3ca972026eb6e715f01b019d7d3b"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#add2a3ca972026eb6e715f01b019d7d3b">pu::ui::render::Renderer::RenderTexture</a></div><div class="ttdeci">void RenderTexture(sdl2::Texture texture, const i32 x, const i32 y, const TextureRenderOptions opts=TextureRenderOptions::Default)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_af3446219ca682fa60778a3509bbedbc4"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af3446219ca682fa60778a3509bbedbc4">pu::ui::render::Renderer::SetBaseRenderPosition</a></div><div class="ttdeci">void SetBaseRenderPosition(const i32 x, const i32 y)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:152</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_af8848fa4a8a13ec522d778d98955864c"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#af8848fa4a8a13ec522d778d98955864c">pu::ui::render::Renderer::InitializeRender</a></div><div class="ttdeci">void InitializeRender(const Color clr)</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1render_1_1_renderer_html_afea5a6b3fe4e8b149fe97a3d6678e144"><div class="ttname"><a href="../../d0/d27/classpu_1_1ui_1_1render_1_1_renderer.html#afea5a6b3fe4e8b149fe97a3d6678e144">pu::ui::render::Renderer::HasInitialized</a></div><div class="ttdeci">bool HasInitialized()</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:128</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a00c40ae94ad2fc0b78571071c62faa19"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a00c40ae94ad2fc0b78571071c62faa19">pu::sdl2::Surface</a></div><div class="ttdeci">SDL_Surface * Surface</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:15</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a4872247f27ba13a3f3db43c110da39c0"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a4872247f27ba13a3f3db43c110da39c0">pu::sdl2::Renderer</a></div><div class="ttdeci">SDL_Renderer * Renderer</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:13</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a4dc2c75c183ac8dd775de27b4e26b932"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a4dc2c75c183ac8dd775de27b4e26b932">pu::sdl2::Window</a></div><div class="ttdeci">SDL_Window * Window</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:12</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1sdl2_html_a65fedc3a65aa972d8e05f05545a65fc3"><div class="ttname"><a href="../../d1/d78/namespacepu_1_1sdl2.html#a65fedc3a65aa972d8e05f05545a65fc3">pu::sdl2::Texture</a></div><div class="ttdeci">SDL_Texture * Texture</div><div class="ttdef"><b>Definition:</b> sdl2_Types.hpp:11</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html">pu::ui::render</a></div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:19</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_a0955ba96cbd635c6bc387fcb51088555"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#a0955ba96cbd635c6bc387fcb51088555">pu::ui::render::MixerAllFlags</a></div><div class="ttdeci">constexpr u32 MixerAllFlags</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:72</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_a49da42826685906d7bf6662b9be169e1"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#a49da42826685906d7bf6662b9be169e1">pu::ui::render::GetMainWindow</a></div><div class="ttdeci">sdl2::Window GetMainWindow()</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_a5d9f841115348f57afed74d536a6b291"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#a5d9f841115348f57afed74d536a6b291">pu::ui::render::RenderText</a></div><div class="ttdeci">sdl2::Texture RenderText(const std::string &font_name, const std::string &text, const Color clr)</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_a7028fbbfd0b390992a62b0dd64c7e86e"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7028fbbfd0b390992a62b0dd64c7e86e">pu::ui::render::AddFontFile</a></div><div class="ttdeci">bool AddFontFile(const std::string &font_name, const u32 font_size, const std::string &path)</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_a7d87075716f44ab90d397ade7da4cb70"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#a7d87075716f44ab90d397ade7da4cb70">pu::ui::render::GetMainSurface</a></div><div class="ttdeci">sdl2::Surface GetMainSurface()</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_a879d9bdd49dd85e24c56a7eab7e56f78"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#a879d9bdd49dd85e24c56a7eab7e56f78">pu::ui::render::AddDefaultFontFromFile</a></div><div class="ttdeci">void AddDefaultFontFromFile(const u32 font_size, const std::string &path)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:188</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_a9fc279a6b6f318722a1330cfde9ed612"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#a9fc279a6b6f318722a1330cfde9ed612">pu::ui::render::AddSharedFont</a></div><div class="ttdeci">bool AddSharedFont(const std::string &font_name, const u32 font_size, const PlSharedFontType type)</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_aaedd6a7faa3d79a5e6cf58120fe8626b"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#aaedd6a7faa3d79a5e6cf58120fe8626b">pu::ui::render::RendererSoftwareFlags</a></div><div class="ttdeci">constexpr u32 RendererSoftwareFlags</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:74</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_ab5ebf894ae9239221d39569e379fe188"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#ab5ebf894ae9239221d39569e379fe188">pu::ui::render::AddAllSharedFonts</a></div><div class="ttdeci">bool AddAllSharedFonts(const std::string &font_name, const u32 font_size)</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_abb9cc63606c0f861f03830cf1bb3cf88"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#abb9cc63606c0f861f03830cf1bb3cf88">pu::ui::render::GetTextWidth</a></div><div class="ttdeci">i32 GetTextWidth(const std::string &font_name, const std::string &text)</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_abd48c078f9a0d5a57bf93d413a8ed2e6"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#abd48c078f9a0d5a57bf93d413a8ed2e6">pu::ui::render::GetDimensions</a></div><div class="ttdeci">std::pair< u32, u32 > GetDimensions()</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_ac3ef345ab94510dd75774086f3737224"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#ac3ef345ab94510dd75774086f3737224">pu::ui::render::GetMainRenderer</a></div><div class="ttdeci">sdl2::Renderer GetMainRenderer()</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_aca8de816c249f71ecec38137222352f2"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#aca8de816c249f71ecec38137222352f2">pu::ui::render::IMGAllFlags</a></div><div class="ttdeci">constexpr u32 IMGAllFlags</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:73</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_ace12eee5e824e7246730c4141cc73210"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#ace12eee5e824e7246730c4141cc73210">pu::ui::render::GetTextHeight</a></div><div class="ttdeci">i32 GetTextHeight(const std::string &font_name, const std::string &text)</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_ad22e51883cfc01c65c9c2cb2bd6bd871"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#ad22e51883cfc01c65c9c2cb2bd6bd871">pu::ui::render::AddDefaultFontFromShared</a></div><div class="ttdeci">void AddDefaultFontFromShared(const u32 font_size)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:184</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_ae5920eeeae0aa4c3eac8073c2471ebb6"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae5920eeeae0aa4c3eac8073c2471ebb6">pu::ui::render::ScreenWidth</a></div><div class="ttdeci">constexpr u32 ScreenWidth</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:21</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_ae9f1375477d6776bad834896952ecaf2"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#ae9f1375477d6776bad834896952ecaf2">pu::ui::render::RendererHardwareFlags</a></div><div class="ttdeci">constexpr u32 RendererHardwareFlags</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:75</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1render_html_af387b6301a55da00e921539845d9f357"><div class="ttname"><a href="../../da/d54/namespacepu_1_1ui_1_1render.html#af387b6301a55da00e921539845d9f357">pu::ui::render::ScreenHeight</a></div><div class="ttdeci">constexpr u32 ScreenHeight</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:22</div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_html_a2dc46745a47dfcca22fbd18451a7dfd3"><div class="ttname"><a href="../../d9/d7f/namespacepu_1_1ui.html#a2dc46745a47dfcca22fbd18451a7dfd3">pu::ui::MakeDefaultFontName</a></div><div class="ttdeci">std::string MakeDefaultFontName(const u32 font_size)</div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:32</div></div>
|
||||
<div class="ttc" id="anamespacepu_html_ad6f40fe34a42045f7df3275f60b00e99"><div class="ttname"><a href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">pu::i32</a></div><div class="ttdeci">s32 i32</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:28</div></div>
|
||||
<div class="ttc" id="apu___include_8hpp_html_a2655f4e800efdd50e106951c6667d8d1"><div class="ttname"><a href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a></div><div class="ttdeci">#define PU_SMART_CTOR(type)</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:19</div></div>
|
||||
<div class="ttc" id="arender___s_d_l2_8hpp_html"><div class="ttname"><a href="../../db/db1/render___s_d_l2_8hpp.html">render_SDL2.hpp</a></div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:44</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html">pu::ui::render::RendererInitOptions</a></div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:24</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a072f8793d8e3e2e670dc782554abc131"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a072f8793d8e3e2e670dc782554abc131">pu::ui::render::RendererInitOptions::height</a></div><div class="ttdeci">u32 height</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:28</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a18a9ec1702ef30964391be62f777a1ad"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a18a9ec1702ef30964391be62f777a1ad">pu::ui::render::RendererInitOptions::extra_default_font_sizes</a></div><div class="ttdeci">std::vector< u32 > extra_default_font_sizes</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:30</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a20c992b4a0bbafe56a304e01e688852f"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a20c992b4a0bbafe56a304e01e688852f">pu::ui::render::RendererInitOptions::init_ttf</a></div><div class="ttdeci">bool init_ttf</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:29</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a2eb74956016e2eea77f1b40d93dba5cb"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a2eb74956016e2eea77f1b40d93dba5cb">pu::ui::render::RendererInitOptions::UseImage</a></div><div class="ttdeci">void UseImage(const u32 sdl_img_flags)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:62</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a32d5cf94d1f6bff9d7b4b90c93cbd504"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a32d5cf94d1f6bff9d7b4b90c93cbd504">pu::ui::render::RendererInitOptions::SetExtraDefaultFontSize</a></div><div class="ttdeci">void SetExtraDefaultFontSize(const u32 font_size)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:53</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a3d91fb198cc5867cdb6ae8aadd0281e8"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a3d91fb198cc5867cdb6ae8aadd0281e8">pu::ui::render::RendererInitOptions::sdl_render_flags</a></div><div class="ttdeci">u32 sdl_render_flags</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:26</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a404582159cc98e75c42bb8ad6e113c3f"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a404582159cc98e75c42bb8ad6e113c3f">pu::ui::render::RendererInitOptions::audio_mixer_flags</a></div><div class="ttdeci">u32 audio_mixer_flags</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:33</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a5795fa97895c9dfc1d2b583c75f19d7f"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a5795fa97895c9dfc1d2b583c75f19d7f">pu::ui::render::RendererInitOptions::init_mixer</a></div><div class="ttdeci">bool init_mixer</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:32</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a7848ebce825fe19017add859efe618f4"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7848ebce825fe19017add859efe618f4">pu::ui::render::RendererInitOptions::RendererInitOptions</a></div><div class="ttdeci">RendererInitOptions(const u32 sdl_flags, const u32 sdl_render_flags, const u32 w=ScreenWidth, const u32 h=ScreenHeight)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:39</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a7aeb5c4f0f793bfd13590668cd43235a"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7aeb5c4f0f793bfd13590668cd43235a">pu::ui::render::RendererInitOptions::init_romfs</a></div><div class="ttdeci">bool init_romfs</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:37</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a7fc319d0d55ffb5f1b73d9a0f8366b3f"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a7fc319d0d55ffb5f1b73d9a0f8366b3f">pu::ui::render::RendererInitOptions::init_pl</a></div><div class="ttdeci">bool init_pl</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:36</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a90f6cc91a32d2d12a8d3b1c99b8cf403"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a90f6cc91a32d2d12a8d3b1c99b8cf403">pu::ui::render::RendererInitOptions::init_img</a></div><div class="ttdeci">bool init_img</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:34</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_a91145726cdb1f2b358baef5073942648"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#a91145726cdb1f2b358baef5073942648">pu::ui::render::RendererInitOptions::UseTTF</a></div><div class="ttdeci">void UseTTF(const std::string &default_font_path="")</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:41</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_aa042751d8759c060e7b845832cc00ef0"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa042751d8759c060e7b845832cc00ef0">pu::ui::render::RendererInitOptions::width</a></div><div class="ttdeci">u32 width</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:27</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_aa064b0fd59c49602b364117809a4800e"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#aa064b0fd59c49602b364117809a4800e">pu::ui::render::RendererInitOptions::default_font_path</a></div><div class="ttdeci">std::string default_font_path</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:31</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_ab713bbdc588bcf1cc55255db74701998"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ab713bbdc588bcf1cc55255db74701998">pu::ui::render::RendererInitOptions::sdl_img_flags</a></div><div class="ttdeci">u32 sdl_img_flags</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:35</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_ac2901bc764cc2a5fc8cbeb62de0a772a"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#ac2901bc764cc2a5fc8cbeb62de0a772a">pu::ui::render::RendererInitOptions::UseAudio</a></div><div class="ttdeci">void UseAudio(const u32 audio_mixer_flags)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:57</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_acbe8272f338247638d1a603dc00de07f"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#acbe8272f338247638d1a603dc00de07f">pu::ui::render::RendererInitOptions::UseRomfs</a></div><div class="ttdeci">void UseRomfs()</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:67</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_renderer_init_options_html_afa4665c4893bdfd09b3d039c1e3a7e86"><div class="ttname"><a href="../../df/d6f/structpu_1_1ui_1_1render_1_1_renderer_init_options.html#afa4665c4893bdfd09b3d039c1e3a7e86">pu::ui::render::RendererInitOptions::sdl_flags</a></div><div class="ttdeci">u32 sdl_flags</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:25</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html">pu::ui::render::TextureRenderOptions</a></div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:77</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_a01880124bb058e56d5830254fe8eed01"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a01880124bb058e56d5830254fe8eed01">pu::ui::render::TextureRenderOptions::rot_angle</a></div><div class="ttdeci">float rot_angle</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:81</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_a308031ec24474b88bd71242522c42a5b"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a308031ec24474b88bd71242522c42a5b">pu::ui::render::TextureRenderOptions::NoWidth</a></div><div class="ttdeci">static constexpr i32 NoWidth</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:84</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_a4b579ab4b2bb90df8ad49d633a03e22a"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a4b579ab4b2bb90df8ad49d633a03e22a">pu::ui::render::TextureRenderOptions::alpha_mod</a></div><div class="ttdeci">i32 alpha_mod</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:78</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_a66db5065001cf2ba752c7bb18c17300b"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a66db5065001cf2ba752c7bb18c17300b">pu::ui::render::TextureRenderOptions::NoAlpha</a></div><div class="ttdeci">static constexpr i32 NoAlpha</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:83</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_a8b2642bbebad684c07f9e692d053952b"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a8b2642bbebad684c07f9e692d053952b">pu::ui::render::TextureRenderOptions::width</a></div><div class="ttdeci">i32 width</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:79</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_a930d13b2448e2deb76b7d1acdfb16c38"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a930d13b2448e2deb76b7d1acdfb16c38">pu::ui::render::TextureRenderOptions::WithCustomDimensions</a></div><div class="ttdeci">static constexpr TextureRenderOptions WithCustomDimensions(const i32 width, const i32 height)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:92</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_a94c26c6ecd1916c945150a136f315050"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#a94c26c6ecd1916c945150a136f315050">pu::ui::render::TextureRenderOptions::Default</a></div><div class="ttdeci">static const TextureRenderOptions Default</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:97</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_aa4e31026155552f90a79d79ebb0b8960"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aa4e31026155552f90a79d79ebb0b8960">pu::ui::render::TextureRenderOptions::WithCustomAlpha</a></div><div class="ttdeci">static constexpr TextureRenderOptions WithCustomAlpha(const u8 alpha)</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:88</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_aaf5207a4ee7b5198863579ac8da5ba66"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aaf5207a4ee7b5198863579ac8da5ba66">pu::ui::render::TextureRenderOptions::height</a></div><div class="ttdeci">i32 height</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:80</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_ac4399ad9cab23155bd9d5b6e9c30b015"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#ac4399ad9cab23155bd9d5b6e9c30b015">pu::ui::render::TextureRenderOptions::NoRotation</a></div><div class="ttdeci">static constexpr float NoRotation</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:86</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1render_1_1_texture_render_options_html_aefa877cc8f0002335d30eb93d1faa4e3"><div class="ttname"><a href="../../dc/d32/structpu_1_1ui_1_1render_1_1_texture_render_options.html#aefa877cc8f0002335d30eb93d1faa4e3">pu::ui::render::TextureRenderOptions::NoHeight</a></div><div class="ttdeci">static constexpr i32 NoHeight</div><div class="ttdef"><b>Definition:</b> render_Renderer.hpp:85</div></div>
|
||||
<div class="ttc" id="aui___types_8hpp_html"><div class="ttname"><a href="../../df/d13/ui___types_8hpp.html">ui_Types.hpp</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_8fb01eea200176b300268894688b4495.html">render</a></li><li class="navelem"><a class="el" href="../../d4/dbe/render___renderer_8hpp.html">render_Renderer.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,120 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/elm/elm_Rectangle.hpp File Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d4/dd2/elm___rectangle_8hpp.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#nested-classes">Classes</a> |
|
||||
<a href="#namespaces">Namespaces</a> </div>
|
||||
<div class="headertitle"><div class="title">elm_Rectangle.hpp File Reference</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock"><code>#include <<a class="el" href="../../d9/d3b/elm___element_8hpp_source.html">pu/ui/elm/elm_Element.hpp</a>></code><br />
|
||||
</div>
|
||||
<p><a href="../../d4/dd2/elm___rectangle_8hpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html">pu::ui::elm::Rectangle</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="namespaces" name="namespaces"></a>
|
||||
Namespaces</h2></td></tr>
|
||||
<tr class="memitem:da/df2/namespacepu"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/df2/namespacepu.html">pu</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d9/d7f/namespacepu_1_1ui"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d9/d7f/namespacepu_1_1ui.html">pu::ui</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:d2/d5e/namespacepu_1_1ui_1_1elm"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a></td></tr>
|
||||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
</div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_db07433c06ed2bf7b5f4eabd443f7fba.html">elm</a></li><li class="navelem"><a class="el" href="../../d4/dd2/elm___rectangle_8hpp.html">elm_Rectangle.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1,208 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.9.3"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Plutonium framework API: Plutonium/include/pu/ui/elm/elm_Rectangle.hpp Source File</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../jquery.js"></script>
|
||||
<script type="text/javascript" src="../../dynsections.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../search/searchdata.js"></script>
|
||||
<script type="text/javascript" src="../../search/search.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Plutonium framework API<span id="projectnumber"> 0.3.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">UI framework libraries for libnx</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.9.3 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",'Search','.html');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(document).ready(function(){initNavTree('d4/dd2/elm___rectangle_8hpp_source.html','../../'); initResizable(); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
onmouseover="return searchBox.OnSearchSelectShow()"
|
||||
onmouseout="return searchBox.OnSearchSelectHide()"
|
||||
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
||||
</div>
|
||||
|
||||
<!-- iframe showing the search results (closed by default) -->
|
||||
<div id="MSearchResultsWindow">
|
||||
<iframe src="javascript:void(0)" frameborder="0"
|
||||
name="MSearchResults" id="MSearchResults">
|
||||
</iframe>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
<div class="headertitle"><div class="title">elm_Rectangle.hpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d4/dd2/elm___rectangle_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
|
||||
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> Plutonium library</span></div>
|
||||
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> @file Rectangle.hpp</span></div>
|
||||
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> @brief A Rectangle is an Element which simply draws a filled rectangle.</span></div>
|
||||
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> @author XorTroll</span></div>
|
||||
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew</span></div>
|
||||
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"></span> </div>
|
||||
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment">*/</span></div>
|
||||
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#pragma once</span></div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <<a class="code" href="../../d9/d3b/elm___element_8hpp.html">pu/ui/elm/elm_Element.hpp</a>></span></div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a> {</div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
||||
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html"> 19</a></span> <span class="keyword">class </span><a class="code hl_class" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html">Rectangle</a> : <span class="keyword">public</span> <a class="code hl_class" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">Element</a></div>
|
||||
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> {</div>
|
||||
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x;</div>
|
||||
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y;</div>
|
||||
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> w;</div>
|
||||
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> h;</div>
|
||||
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr;</div>
|
||||
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> border_radius;</div>
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#adbf8a4151bcba56715d1e01fcde1ac00"> 30</a></span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#adbf8a4151bcba56715d1e01fcde1ac00">Rectangle</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> border_radius = 0) : <a class="code hl_class" href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">Element</a>(), x(x), y(y), w(width), h(height), clr(clr), border_radius(border_radius) {}</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <a class="code hl_define" href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a>(<a class="code hl_class" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html">Rectangle</a>)</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a427ec71758f7b99930196cce7c66a9f7"> 33</a></span> inline <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a427ec71758f7b99930196cce7c66a9f7">GetX</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> <span class="keywordflow">return</span> this->x;</div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> }</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a26b9c6bab4e13a0fc8201627f7d8bee4"> 37</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a26b9c6bab4e13a0fc8201627f7d8bee4">SetX</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x) {</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> this->x = x;</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> }</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a30994615d16a4dbba5d5ac87e1ca0fa1"> 41</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a30994615d16a4dbba5d5ac87e1ca0fa1">GetY</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keywordflow">return</span> this->y;</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a2e9a96d5d2518c5ca29886c6dd0cd984"> 45</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a2e9a96d5d2518c5ca29886c6dd0cd984">SetY</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) {</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> this->y = y;</div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a54efd903f89253eec5a4d0b3c8de1a6a"> 49</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a54efd903f89253eec5a4d0b3c8de1a6a">GetWidth</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordflow">return</span> this->w;</div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> }</div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a52f64c5a02c89822f872a091bdd5d202"> 53</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a52f64c5a02c89822f872a091bdd5d202">SetWidth</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> width) {</div>
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> this->w = width;</div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#af0164b5a133bb2724740263f1ba368d3"> 57</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#af0164b5a133bb2724740263f1ba368d3">GetHeight</a>()<span class="keyword"> override </span>{</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keywordflow">return</span> this->h;</div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> }</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a8ed4e8c98689f146171757257da1ead4"> 61</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a8ed4e8c98689f146171757257da1ead4">SetHeight</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> height) {</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> this->h = height;</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> }</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a31441872d59b969b815abf93a133a120"> 65</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a31441872d59b969b815abf93a133a120">GetBorderRadius</a>() {</div>
|
||||
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keywordflow">return</span> this->border_radius;</div>
|
||||
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> }</div>
|
||||
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a1aac3e60ee6af16b2c52d4d6eb739846"> 69</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a1aac3e60ee6af16b2c52d4d6eb739846">SetBorderRadius</a>(<span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> border_radius) {</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> this->border_radius = border_radius;</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> }</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> </div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a0855a80c9467a793e85b44ec39f9d5a6"> 74</a></span> <span class="keyword">inline</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a0855a80c9467a793e85b44ec39f9d5a6">GetColor</a>() {</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordflow">return</span> this->clr;</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> }</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> </div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a8216bfb5f3980ef5252839cdc6106b11"> 78</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a8216bfb5f3980ef5252839cdc6106b11">SetColor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d0c/structpu_1_1ui_1_1_color.html">Color</a> clr) {</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> this->clr = clr;</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#ad27ed33f82d1137a442cada048127a70"> 82</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#ad27ed33f82d1137a442cada048127a70">OnRender</a>(render::Renderer::Ref &drawer, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> x, <span class="keyword">const</span> <a class="code hl_typedef" href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">i32</a> y) <span class="keyword">override</span>;</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a751498cc3b96d1227bfeae4f511a923a"> 83</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a751498cc3b96d1227bfeae4f511a923a">OnInput</a>(<span class="keyword">const</span> u64 keys_down, <span class="keyword">const</span> u64 keys_up, <span class="keyword">const</span> u64 keys_held, <span class="keyword">const</span> <a class="code hl_struct" href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">TouchPoint</a> touch_pos)<span class="keyword"> override </span>{}</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> };</div>
|
||||
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
|
||||
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span>}</div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_element_html"><div class="ttname"><a href="../../d9/d0e/classpu_1_1ui_1_1elm_1_1_element.html">pu::ui::elm::Element</a></div><div class="ttdef"><b>Definition:</b> elm_Element.hpp:37</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html">pu::ui::elm::Rectangle</a></div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:20</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a0855a80c9467a793e85b44ec39f9d5a6"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a0855a80c9467a793e85b44ec39f9d5a6">pu::ui::elm::Rectangle::GetColor</a></div><div class="ttdeci">Color GetColor()</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:74</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a1aac3e60ee6af16b2c52d4d6eb739846"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a1aac3e60ee6af16b2c52d4d6eb739846">pu::ui::elm::Rectangle::SetBorderRadius</a></div><div class="ttdeci">void SetBorderRadius(const i32 border_radius)</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:69</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a26b9c6bab4e13a0fc8201627f7d8bee4"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a26b9c6bab4e13a0fc8201627f7d8bee4">pu::ui::elm::Rectangle::SetX</a></div><div class="ttdeci">void SetX(const i32 x)</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:37</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a2e9a96d5d2518c5ca29886c6dd0cd984"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a2e9a96d5d2518c5ca29886c6dd0cd984">pu::ui::elm::Rectangle::SetY</a></div><div class="ttdeci">void SetY(const i32 y)</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:45</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a30994615d16a4dbba5d5ac87e1ca0fa1"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a30994615d16a4dbba5d5ac87e1ca0fa1">pu::ui::elm::Rectangle::GetY</a></div><div class="ttdeci">i32 GetY() override</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:41</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a31441872d59b969b815abf93a133a120"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a31441872d59b969b815abf93a133a120">pu::ui::elm::Rectangle::GetBorderRadius</a></div><div class="ttdeci">i32 GetBorderRadius()</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:65</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a427ec71758f7b99930196cce7c66a9f7"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a427ec71758f7b99930196cce7c66a9f7">pu::ui::elm::Rectangle::GetX</a></div><div class="ttdeci">i32 GetX() override</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:33</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a52f64c5a02c89822f872a091bdd5d202"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a52f64c5a02c89822f872a091bdd5d202">pu::ui::elm::Rectangle::SetWidth</a></div><div class="ttdeci">void SetWidth(const i32 width)</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:53</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a54efd903f89253eec5a4d0b3c8de1a6a"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a54efd903f89253eec5a4d0b3c8de1a6a">pu::ui::elm::Rectangle::GetWidth</a></div><div class="ttdeci">i32 GetWidth() override</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:49</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a751498cc3b96d1227bfeae4f511a923a"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a751498cc3b96d1227bfeae4f511a923a">pu::ui::elm::Rectangle::OnInput</a></div><div class="ttdeci">void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const TouchPoint touch_pos) override</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:83</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a8216bfb5f3980ef5252839cdc6106b11"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a8216bfb5f3980ef5252839cdc6106b11">pu::ui::elm::Rectangle::SetColor</a></div><div class="ttdeci">void SetColor(const Color clr)</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:78</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_a8ed4e8c98689f146171757257da1ead4"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#a8ed4e8c98689f146171757257da1ead4">pu::ui::elm::Rectangle::SetHeight</a></div><div class="ttdeci">void SetHeight(const i32 height)</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:61</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_ad27ed33f82d1137a442cada048127a70"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#ad27ed33f82d1137a442cada048127a70">pu::ui::elm::Rectangle::OnRender</a></div><div class="ttdeci">void OnRender(render::Renderer::Ref &drawer, const i32 x, const i32 y) override</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_adbf8a4151bcba56715d1e01fcde1ac00"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#adbf8a4151bcba56715d1e01fcde1ac00">pu::ui::elm::Rectangle::Rectangle</a></div><div class="ttdeci">Rectangle(const i32 x, const i32 y, const i32 width, const i32 height, const Color clr, const i32 border_radius=0)</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:30</div></div>
|
||||
<div class="ttc" id="aclasspu_1_1ui_1_1elm_1_1_rectangle_html_af0164b5a133bb2724740263f1ba368d3"><div class="ttname"><a href="../../d5/dea/classpu_1_1ui_1_1elm_1_1_rectangle.html#af0164b5a133bb2724740263f1ba368d3">pu::ui::elm::Rectangle::GetHeight</a></div><div class="ttdeci">i32 GetHeight() override</div><div class="ttdef"><b>Definition:</b> elm_Rectangle.hpp:57</div></div>
|
||||
<div class="ttc" id="aelm___element_8hpp_html"><div class="ttname"><a href="../../d9/d3b/elm___element_8hpp.html">elm_Element.hpp</a></div></div>
|
||||
<div class="ttc" id="anamespacepu_1_1ui_1_1elm_html"><div class="ttname"><a href="../../d2/d5e/namespacepu_1_1ui_1_1elm.html">pu::ui::elm</a></div><div class="ttdef"><b>Definition:</b> elm_Button.hpp:18</div></div>
|
||||
<div class="ttc" id="anamespacepu_html_ad6f40fe34a42045f7df3275f60b00e99"><div class="ttname"><a href="../../da/df2/namespacepu.html#ad6f40fe34a42045f7df3275f60b00e99">pu::i32</a></div><div class="ttdeci">s32 i32</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:28</div></div>
|
||||
<div class="ttc" id="apu___include_8hpp_html_a2655f4e800efdd50e106951c6667d8d1"><div class="ttname"><a href="../../d1/d52/pu___include_8hpp.html#a2655f4e800efdd50e106951c6667d8d1">PU_SMART_CTOR</a></div><div class="ttdeci">#define PU_SMART_CTOR(type)</div><div class="ttdef"><b>Definition:</b> pu_Include.hpp:19</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_color_html"><div class="ttname"><a href="../../d7/d0c/structpu_1_1ui_1_1_color.html">pu::ui::Color</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:44</div></div>
|
||||
<div class="ttc" id="astructpu_1_1ui_1_1_touch_point_html"><div class="ttname"><a href="../../d7/d55/structpu_1_1ui_1_1_touch_point.html">pu::ui::TouchPoint</a></div><div class="ttdef"><b>Definition:</b> ui_Types.hpp:62</div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_9cdebf0ee729e1c59321e289709dba63.html">Plutonium</a></li><li class="navelem"><a class="el" href="../../dir_89a404d1d17e2b511b2195eff3f10426.html">include</a></li><li class="navelem"><a class="el" href="../../dir_3e32bc87794f4c3a1bffbf65b6e30fa0.html">pu</a></li><li class="navelem"><a class="el" href="../../dir_e7fde04134964d158a479396baa8a22f.html">ui</a></li><li class="navelem"><a class="el" href="../../dir_db07433c06ed2bf7b5f4eabd443f7fba.html">elm</a></li><li class="navelem"><a class="el" href="../../d4/dd2/elm___rectangle_8hpp.html">elm_Rectangle.hpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user