std1.0.0-beta-7 SafeC docs

std :: gui::gui_path

Struct std::GuiRect

#include <std/gui/gui_path.h> source

struct GuiRect {
    float x;
    float y;
    float w;
    float h;
}

Fields

§float xsource
§float ysource
§float wsource
§float hsource

Methods

§static struct GuiRect new(float x, float y, float w, float h)source · definition
§int contains(float px, float py) constsource · definition
§struct GuiRect intersect(struct GuiRect o) constsource · definition

The overlap of two rects (w/h 0 if they don't overlap) / the smallest rect holding both.

§struct GuiRect unite(struct GuiRect o) constsource · definition
§int is_empty() constsource · definition