nsbaci 1.0
Loading...
Searching...
No Matches
drawingTypes.h File Reference

Type definitions for drawing-related operations. More...

Include dependency graph for drawingTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsbaci::types::Color
 RGB color representation with values from 0-255. More...
struct  nsbaci::types::Point
 2D point/position representation. More...
struct  nsbaci::types::Size
 2D size representation. More...
struct  nsbaci::types::Circle
 Circle shape with center and radius. More...
struct  nsbaci::types::Rectangle
 Rectangle shape with position and size. More...
struct  nsbaci::types::Triangle
 Triangle shape defined by three vertices. More...
struct  nsbaci::types::Line
 Line segment from start to end point. More...
struct  nsbaci::types::Ellipse
 Ellipse shape with center and radii. More...
struct  nsbaci::types::Pixel
 Single pixel at a position. More...
struct  nsbaci::types::DrawText
struct  nsbaci::types::Drawable
 Complete drawable object with shape, color, and visibility. More...
struct  nsbaci::types::DrawCommand
 Represents a single drawing command to be executed. More...
struct  nsbaci::types::CanvasConfig
 Configuration for the drawing canvas. More...

Namespaces

namespace  nsbaci::types
 Type definitions namespace for nsbaci (runtime-specific).
namespace  nsbaci
 Root namespace for the nsbaci application.

Typedefs

using nsbaci::types::Shape = std::variant<Circle, Rectangle, Triangle, Line, Ellipse, Pixel, DrawText>
 Variant type for all drawable shapes.

Enumerations

enum class  nsbaci::types::DrawCommandType {
  Clear , SetColor , SetPosition , DrawShape ,
  Fill , SetLineWidth , Refresh
}
 Types of drawing commands that can be executed.
enum class  StandardPosition {
  TopLeft , TopCenter , TopRight , CenterLeft ,
  Center , CenterRight , BottomLeft , BottomCenter ,
  BottomRight
}

Functions

Point nsbaci::types::resolvePosition (StandardPosition pos, Size canvasSize)
 Resolve a standard position to actual coordinates.

Variables

constexpr Color nsbaci::types::Colors::BLACK {0, 0, 0}
constexpr Color nsbaci::types::Colors::WHITE {255, 255, 255}
constexpr Color nsbaci::types::Colors::RED {255, 0, 0}
constexpr Color nsbaci::types::Colors::GREEN {0, 255, 0}
constexpr Color nsbaci::types::Colors::BLUE {0, 0, 255}
constexpr Color nsbaci::types::Colors::YELLOW {255, 255, 0}
constexpr Color nsbaci::types::Colors::CYAN {0, 255, 255}
constexpr Color nsbaci::types::Colors::MAGENTA {255, 0, 255}
constexpr Color nsbaci::types::Colors::ORANGE {255, 165, 0}
constexpr Color nsbaci::types::Colors::PINK {255, 192, 203}
constexpr Color nsbaci::types::Colors::PURPLE {128, 0, 128}
constexpr Color nsbaci::types::Colors::GRAY {128, 128, 128}
constexpr Color nsbaci::types::Colors::LIGHT_GRAY {192, 192, 192}
constexpr Color nsbaci::types::Colors::DARK_GRAY {64, 64, 64}
constexpr Color nsbaci::types::Colors::BROWN {139, 69, 19}

Detailed Description

Type definitions for drawing-related operations.

This header provides type definitions for the drawing system including colors, positions, shapes, and drawable interfaces.

Author
Nicolás Serrano García