GDK Reference ManualReturns TRUE if the GdkRegion is empty. region : a GdkRegion. Returns : TRUE if region is empty.
Returns TRUE if the two regions are the same. region1 : a GdkRegion. region2 : a GdkRegion. Returns : TRUE if region1 and region2 are equal.
Returns TRUE if a point is in a region. region : a GdkRegion. x : the x coordinate of a point. y : the y coordinate of a point. Returns : TRUE if the point is in region.
Tests whether a rectangle is within a region. region : a GdkRegion. rect : a GdkRectangle. Returns : GDK_OVERLAP_RECTANGLE_IN, GDK_OVERLAP_RECTANGLE_OUT, or GDK_OVERLAP_RECTANGLE_PART, depending on whether the rectangle is inside, outside, or partly inside the GdkRegion, respectively. enum GdkOverlapType
Specifies the possible values returned by gdk_region_rect_in(). GDK_OVERLAP_RECTANGLE_IN if the rectangle is inside the GdkRegion. GDK_OVERLAP_RECTANGLE_OUT if the rectangle is outside the GdkRegion. GDK_OVERLAP_RECTANGLE_PART if the rectangle is partly inside the GdkRegion.
Returns the smallest rectangle which includes the entire GdkRegion. region : a GdkRegion. rectangle : returns the smallest rectangle which includes all of region. Graphics Contexts Name Graphics Contexts -- objects to encapsulate drawing properties. Synopsis
Description All drawing operations in GDK take a graphics context (GC) argument. A graphics context encapsulates information about the way things are drawn, such as the foreground color or line width. By using graphics contexts, the number of arguments to each drawing call is greatly reduced, and communication overhead is minimized, since identical arguments do not need to be passed repeatedly. Most values of a graphics context can be set at creation time by using gdk_gc_new_with_values(), or can be set one-by-one using functions such as gdk_gc_set_foreground(). A few of the values in the GC, such as the dash pattern, can only be set by the latter method. 上一篇:GTK v1.2 Tutorial(英文) 下一篇:Java入门(12) 事件与错误处理 更多相关文章
|
推荐文章
精彩文章
|