CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui.graphics Module Reference

Exported Modules

module  cydui.graphics.types
 
module  cydui.graphics.vector
 
module  cydui.graphics.vector
 
module  cydui.graphics.window
 
module  cydui.graphics.window
 
module  cydui.application
 
module  fabric.async
 
module  fabric.profiling
 

Classes

struct  cydui::compositing::device_texture_t
 
struct  cydui::compositing::compositing_operation_t
 
struct  cydui::compositing::compositing_node_t
 
class  cydui::compositing::LayoutCompositor
 

Enumerations

enum  { OVERLAY }
 

Typedefs

using texture_ptr = SDL_Texture*
 

Functions

 device_texture_t (bool streaming=false)
 
 device_texture_t (const device_texture_t &other)
 
device_texture_toperator= (const device_texture_t &other)
 
 device_texture_t (device_texture_t &&other) noexcept
 
device_texture_toperator= (device_texture_t &&other) noexcept
 
 ~device_texture_t ()
 
void resize (SDL_Renderer *renderer, float w, float h, bool copy_old=false)
 
void clear (SDL_Renderer *renderer)
 
void update_with (const pixelmap_t &pm)
 
void * lock ()
 
void unlock ()
 
bool is_locked () const
 
void copy_into (SDL_Renderer *renderer, device_texture_t &other, SDL_FRect *dst, bool blend=true, SDL_FRect *src_=nullptr)
 
void copy_into (SDL_Renderer *renderer, device_texture_t &other, SDL_FRect *dst) const
 
float width () const
 
float height () const
 
SDL_Texture * sdl_texture ()
 
bool operator== (const compositing_operation_t &other) const
 
void set_parent (compositing_node_t *parent_)
 
bool is_flattened_node () const
 
void mark_flattening_target_dirty ()
 
bool is_dirty_from_flattening () const
 
void start_render (graphics::window_t *render_target)
 
void render (graphics::window_t *render_target)
 
void flush_rendered_texture (graphics::window_t *render_target)
 
void clear_composite_texture (graphics::window_t *render_target)
 
void compose_own (graphics::window_t *render_target)
 
void compose (graphics::window_t *render_target, compositing_node_t *other)
 
 LayoutCompositor ()
 
 ~LayoutCompositor ()
 
void set_render_target (graphics::window_t *_render_target, prof::context_t *_profiler)
 
void compose (compositing_node_t *root)
 

Variables

int x
 
int y
 
int orig_x
 
int orig_y
 
int w
 
int h
 
double rot = 0.0
 
double scale_x = 1.0
 
double scale_y = 1.0
 
bool animated = false
 
std::function< void(compositing_operation_t &op)> _fix_dimensions
 
unsigned long id = 0
 
compositing_operation_t op { }
 
fragment_t graphics { }
 
device_texture_t rendered_texture {true}
 
device_texture_t composite_texture { }
 
pixel_t * pixels
 

Files

file  include/cyd_ui/graphics/graphics.cppm
 
file  include/cyd_ui/graphics/api.cppm
 !
 
file  include/cyd_ui/graphics/compositing.cppm
 
file  include/cyd_ui/graphics/device_texture.cppm