void GraphicsContext::clip(const FloatRect& rect) { if (paintingDisabled()) return; m_data->setClipping(BRegion(rect)); }
/** * Method: BInputServerFilter::GetScreenRegion() * Descr: */ status_t BInputServerFilter::GetScreenRegion(BRegion *region) const { if (!region) return B_BAD_VALUE; *region = BRegion(((InputServer*)be_app)->ScreenFrame()); return B_OK; }
MyView::MyView(BRect frame, const char *name, uint32 resizingMode, uint32 flags) : BView(frame, name, resizingMode, flags) { SetViewColor(B_TRANSPARENT_COLOR); fTracking = false; fIsResize = false; fIs2ndButton= false; fMovingLayer = NULL; rgb_color col; col.red = 49; col.green = 101; col.blue = 156; topLayer = new Layer(Bounds(), "topLayer", B_FOLLOW_ALL, 0, col); topLayer->SetRootLayer(this); topLayer->rebuild_visible_regions(BRegion(Bounds()), BRegion(Bounds()), NULL); fRedrawReg.Set(Bounds()); }
void resetClipping() { m_currentLayer->cippingSet = false; m_currentLayer->clipping = BRegion(); }