class documentation

class CircleDrawer(ShapeDrawer): (source)

查看层次结构

绘制圆形顶点的静态类

静态方法 draw_path 在Cairo上下文中绘制一个圆形路径,但不进行描边或填充。
静态方法 intersection_point 确定以 (center_x, center_y) 为中心的圆与从 (source_x, source_y) 到 (center_x, center_y) 绘制的直线的交点。
类变量 names 未记录
@staticmethod
def draw_path(ctx, center_x, center_y, width, height=None, **kwargs): (source)

在Cairo上下文中绘制一个圆形路径,但不进行描边或填充。

高度被忽略,决定圆直径的是宽度。

另请参阅
ShapeDrawer.draw_path
@staticmethod
def intersection_point(center_x, center_y, source_x, source_y, width, height=None): (source)

确定以 (center_x, center_y) 为中心的圆与从 (source_x, source_y) 到 (center_x, center_y) 绘制的直线的交点。

另请参阅
ShapeDrawer.intersection_point

未记录